[其他] 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+ 即可。

相关推荐

  1. 其他元素

    2023-12-15 03:48:03       32 阅读
  2. MySQL 其他

    2023-12-15 03:48:03       25 阅读
  3. 其他】数字孪生简介

    2023-12-15 03:48:03       68 阅读
  4. mysql的其他问题

    2023-12-15 03:48:03       39 阅读
  5. IO流——其他

    2023-12-15 03:48:03       33 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-15 03:48:03       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-15 03:48:03       101 阅读
  3. 在Django里面运行非项目文件

    2023-12-15 03:48:03       82 阅读
  4. Python语言-面向对象

    2023-12-15 03:48:03       91 阅读

热门阅读

  1. yarn install或者 npm install 下载安装超时的解决办法

    2023-12-15 03:48:03       57 阅读
  2. Nacos的应用

    2023-12-15 03:48:03       52 阅读
  3. 什么?通过 Prometheus 编写巡检脚本

    2023-12-15 03:48:03       57 阅读
  4. Spring 框架有哪些缺点?

    2023-12-15 03:48:03       67 阅读
  5. 每日一题:Leetcode974.和可被k整除的子数组

    2023-12-15 03:48:03       55 阅读
  6. 如何选择适合的公共 DNS

    2023-12-15 03:48:03       47 阅读
  7. IP和DNS不在同一地区原因

    2023-12-15 03:48:03       60 阅读
  8. ubuntu 20.04.6 desk 安装 初始化

    2023-12-15 03:48:03       64 阅读
  9. 再探再报:SQL中的关联查询

    2023-12-15 03:48:03       36 阅读
  10. Nacos 系统参数介绍

    2023-12-15 03:48:03       68 阅读
  11. [云原生基础] 浅谈 Docker

    2023-12-15 03:48:03       63 阅读