GTK 主题引擎:从哪里开始?
我想开始编写 gtk 主题引擎,但我想知道在哪里可以找到一些文档(如果存在)。 我知道如何查看其他引擎的代码、示例或酷刑测试和小部件工厂等...,我想要的是可能来自可靠来源(例如 Gnome 基金会或之类的。 您知道,在为 Win32 平台编码时,可以通过遵循 MSDN 来找到有关该主题的可靠参考,然后阅读各种其他来源以了解问题是如何解决的(如果有)。
那么,哪里可以找到有关 GTK 主题引擎开发的权威、可靠且可能完整的文档来源呢?有真的吗?
后来补充:
还有,这样的引擎如何调试?在如此精致的操作系统 UI 组件上执行测试和调试最明智、最轻松的方法是什么?
I would like to start coding a gtk theme engine, but i'm wondering where i can find some documentation, if any exists.
I know how to have look at someone else engine's code, examples, or torture tests and widget factories etc.., what i want instead is any documentation type, design, references, examples or tutorials possibly from reliable sources such as the Gnome foundation or the like.
You know, when coding for the Win32 platform one can pinpoint reliable references on the subject by following the MSDN and then read a variety of other sources to see how the problem has been tackled, if any.
So, where to find an authoritative, reliable and possibly complete source of documentation about GTK theme engine development? Is there any for real?
Later added:
Also, how to debug such an engine? What's the most sane and painless way to perform testing and debugging on such a delicate os' ui component?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,您可以查看 Ubuntu 中 gtk smooth 引擎的源代码,其中大部分位于一个相当巨大的 C 文件中 smooth_gtk2_drawing.c。我不知道这是否是一个特别好的例子,但可能找到看起来最简单或维护最积极的一个将是一个好主意。
Well, you can look for instance at the source for the gtk smooth engine in Ubuntu most of which is in one fairly enormous C file smooth_gtk2_drawing.c. I don't know if that's an especially good example, but probably finding whichever looks simplest or most actively maintained would be a good idea.
主题引擎通常用于更改小部件的形状等。如果您只是想更改配色方案等,则只需创建一个主题。
就像主题引擎一样,创建主题时也没有大量文档。但是,http://www.gnome-look.org 上有大量示例
A theme engine is typically used to change the shape of widgets among other things. If you're just trying to change the color scheme and so on, you just need to create a theme.
Just like the theme engines, theres not a whole lot of documentation when it comes to creating a theme either. However, there are a ton of examples at http://www.gnome-look.org