GTK、GTK+之间有什么关系?还有GTK2?
我对 GTK 术语感到困惑。根据 Wikipedia,似乎有与 GTK+ 的绑定,称为 GTK (GtkAda) 和 GTK2 ( gtk2hs、Gtk2-Perl)。
有人可以帮我解决这个问题吗?
I'm confused by the GTK terminology. According to Wikipedia, there seem to be bindings to GTK+ that are called GTK (GtkAda) and GTK2 (gtk2hs, Gtk2-Perl).
Could someone clear this up for me?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
该项目的第一个版本称为 GTK(代表 GIMP Toolkit)。
在很早的某个时刻,当该项目仍然是GIMP(以及1.0版本之前),它被重命名为GTK+。尽管如此,人们常常出于方便或无知而将其称为 GTK。
GTK+ 名称通过版本 1.x、2.x 和 3.x 使用了 20 多年,但“GIMP Toolkit”扩展被放弃。我不知道这到底是什么时候发生的,但也许是在 1.x → 2.x 过渡期间。
没有任何东西被正式称为 GTK2。就是有些人所说的GTK+ 2.x系列。
2019 年 2 月 6 日,该项目重命名 回到GTK,这将影响4.0及以后的版本。
The first incarnation of the project was called GTK (which stood for GIMP Toolkit).
At some very early point, while the project was still part of The GIMP (and before version 1.0), it was renamed to GTK+. Despite this, people often referred to it as GTK out of convenience or ignorance.
The GTK+ name was used for more than 20 years through versions 1.x, 2.x, and 3.x, but the "GIMP Toolkit" expansion was dropped. I don't know when exactly this happened but perhaps during the 1.x → 2.x transition.
There is nothing officially called GTK2. It's just what some people call the 2.x series of GTK+.
On 2019-02-06, the project was renamed back to GTK, which will affect version 4.0 onwards.
GTK/GTK+ 和 GTK2 是同一 API 的不同版本。 GTK 是一个旧的、已弃用的版本,GTK2 是之前的版本,GTK+ 3/GTK3 是当前版本。
GTK+是旧API的正确名称,但大多数人只是称之为GTK。
GTK+ 的 C++ 绑定是 GTKmm 项目的一部分。
GTK/GTK+ and GTK2 are different versions of the same API. GTK is an old, deprecated version, GTK2 is the previous one, GTK+ 3/GTK3 is the current version.
GTK+ is the correct name of the old API, but most people just call it GTK.
The C++ bindings for GTK+ are part of the project GTKmm.
GTK 是为 Linux / GNU 创建 GUI 的库。它有几个版本(我认为最新的是版本3)。
为了让其他编程语言(C 除外)使用它,必须存在可以将 GTK 绑定到该特定语言的库。
PHP-GTK 意味着有一个将 GTK 与 PHP 绑定的库,使 PHP 能够创建可以在漂亮的界面中显示的应用程序。然而,它仅支持 GTK 2.2 版本。
其他语言也是如此,它们有前缀/后缀,并且(例如 GtkAda)这些库还会告诉您它们支持 GTK 的最高版本(因为您可能想尝试绑定 GTK 的库中不可用的更新的 GTK 函数)到您的语言)。
GTK is the library for creating GUI-s for Linux / GNU. It has several versions (I think the latest is version 3).
In order for other programming languages to use it (other than C), there have to exist libraries that can bind GTK to that particular language.
PHP-GTK means that there's a library binding GTK to PHP enabling PHP to create apps that can be displayed in a nice interface. It supports, however, only up to version 2.2 of the GTK.
Same goes for other languages, they have a prefix / suffix and (GtkAda for example) those libraries also tell you up to what version they support GTK (since you might want to try newer GTK functions that aren't available in the library binding GTK to your language).