[其他] GNome KDE / GTK GTK+ Qt / GDK / Glib

GTK, GTK+, and Qt are GUI toolkits. These are libraries that developers use to design graphical interfaces, all running on top of the X Server or Wayland. These are things that you need to install as dependencies. They're the Linux "equivalent" to Windows' GDI/GDI+. When an application uses any of these, it will usually have a general "look and feel".

GNOME and KDE are Desktop Environments. GNOME primarily uses the GTK+ toolkit, while KDE primarily uses the Qt toolkit. There are applications designed for GNOME or KDE, such as a settings menu or a default music player, usually in the appropriate toolkit. These Desktop Environments have a set of utilities/window managers/design specification to create a more unified desktop. You can mix the two if you feel like it, but you may run into issues with colliding standards and applications (which is a bit more common on systems like Arch).

Unity uses many of the GNOME utilities and backends (Nautilus, Rhythmbox, gvfs, etc.), so Unity is more GNOME than KDE.

One A GNOME program uses multiple libraries to form a hierarchy:

The Gnome library is at the top level, including help routines, classes, and special widgets, and provides an infrastructure for your application.

The second layer is GTK, which is part of the GTK + library. This library provides a basic toolkit and widget to create GUI applications. Most GUIs are written directly with GTK. GTK also provides a powerful object system for the GNOME library.

The next layer is GDK, which is simply packaged with the X function library, which is only used when we make special drawings or set the special properties of the window.

The bottom layer is glib, a utility library for C, which includes portability and some utility functions, as well as some container classes, such as lists, variable groups, variable-length strings, hashes (seemingly Hassi), caching, an event loop, and other useful constructs

小结:

  • GLib 是基础对象库,不涉及任何图形绘制。
  • GDK 是图形绘制库,如果想定制化widget,则再此层实现。不太需要关心。
  • GTK GTK+ 和 Qt 都是 GUI 库,同级别。设备事件管理和窗口管理都在在这一层。
  • GNome 和 KDE 是对 GUI 库的二次封装。

一般开发触及到 GNome 和 GTK/GTK+ 即可。

相关推荐
cnftv1 天前
中国山水画在他这里暂停拐了个弯儿再重启
笔记·其他·生活·娱乐·媒体
nikoni232 天前
【模电】整流稳压电源
笔记·其他·硬件工程
红点租赁系统开发5 天前
小程序租赁系统开发为企业提供高效便捷的租赁服务解决方案
其他
催催125 天前
手机领夹麦克风哪个牌子好,哪种领夹麦性价比高,热门麦克风推荐
网络·人工智能·经验分享·其他·智能手机
cczixun6 天前
局域网协同办公软件,2024安全的协同办公软件推荐
经验分享·其他·政务
红点租赁系统开发6 天前
支付宝租赁小程序的优势与应用前景分析
其他
WHabcwu7 天前
统⼀数据返回格式快速⼊⻔
java·经验分享·笔记·其他
消息快传7 天前
天童美语:提升孩子的自信心的方法
其他
万笑佛7 天前
国产数据库oceanBbase,达梦,金仓与mysql数据库的性能对比 一、比对方法和结果
其他
老陈头聊SEO7 天前
掌握SEO提升网站流量的关键在于长尾关键词的有效运用
其他