是否有用于C语言的跨平台GUI库? [英] Is there any crossplatform GUI library for C language?

查看:168
本文介绍了是否有用于C语言的跨平台GUI库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


可能重复:

是否有用于C语言的跨平台GUI库? (我的意思是至少要赢得mac lin)如果有任何类似XML的GUI编辑模型,任何GUI编辑跨平台可视化程序都将不胜感激!)

Is there any crossplatform GUI library for C language? (I mean at least win mac lin) If there is any XML-like GUI editing model, any GUI editing crossplatform visual programms it'l be grate!)

推荐答案

我经常使用 Gtk ,它是一致的并且很好用。它以前曾用作Gimp的通用平台,但后来被广泛使用,并且是Linux下Gnome桌面的基本工具包。

I use Gtk a lot it is consistent and nice to use. It was formerly used as a common platform for Gimp but became widely used and is the base toolkit for the Gnome desktop under Linux.

我使用的GUI编辑器是 Glade 在Linux下。在Windows下,无需更改即可重新编译生成的代码。 GLib是一个基础库,用于抽象文件,网络,提供基本类型和集合。只要使用Glib,您就基本上与操作系统无关。

The GUI editor I use is Glade under Linux. The code generated can be recompiled without change under Windows. GLib is an underlying library that abstracts files, network, provides basic types and collections. As long as you use Glib, you are mostly OS independent.

我忘了提到了Glade将用户界面存储为XML并从中生成代码。在林间空地页面上,我看到那里有一个Windows版本,但是我不能说太多有关它的行为。在Linux下,可以使用并且非常稳定。

I forgot to mention that glade stores the user interface in XML and generates code out of it. On the glade page I saw there is a windows version there but I cannot tell much about its behaviour. Under Linux it's fairly OK to use and quite stable.

这篇关于是否有用于C语言的跨平台GUI库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆