4

I have stubbornly decided to learn Xlib programming for Linux GUIs, just for fun & the gained experience. I'm young and have lots of time to read useless stuff. Nobody seems to want people to learn this, though, as everywhere I look, askers are being bombarded with suggestions of using a toolset instead - usually Qt or wxWidgets. This is kind of sad, if nobody learns Xlib, who will continue development of e.g. wxWidgets? I will learn wxWidgets too, though, when I feel comfortable with Xlib.

So - with that out of the way - my question is: Is there a recommended book (or other resources) for learning Xlib programming, preferably with C++, but C is OK too. Windows programming has its Petzold, I was wondering if Xlib had some sort of equivalent.

4

4 回答 4

7

曾经有一整套关于 X 编程的书籍(它们实际上一直学习 Xlib!),但您可能想要的是Xlib 编程手册

一年多后,我遇到了一张“复古 UNIX”imgur 相册,里面有一张照片!与红皮书(Postscript 语言参考手册)和 O'Reilly X 系列中的另一本保持良好的关系。

于 2010-11-01T20:28:28.983 回答
2

我喜欢 Levi Reiss 和 Joseph Radin 的一个,我认为它是“X Window inside and out”(我读过翻译版)。当然,它确实已经过时了,早于 Xutf8* 函数、XRender、XFt 和客户端字体、XCB、XRandr、Composite 等......

于 2010-11-01T22:41:38.017 回答
1

我在亚马逊上找到了这个:X 编程基础

于 2010-11-01T20:33:55.073 回答
0

我自己也找到了这些书:

http://www.amazon.com/Introduction-Window-System-Oliver-Jones/dp/0134999975/ref=sr_1_4?s=books&ie=UTF8&qid=1288651669&sr=1-4(旧的和昂贵的,但它的东西)

http://www.amazon.com/Window-Programming-Scratch-Jesse-Libertys/dp/0789723727/ref=sr_1_25?s=books&ie=UTF8&qid=1288651711&sr=1-25(与其他大多数相比,这是最近的我可以找到资源,但它有一些不好的评论。也许值得一读)

http://www.amazon.com/Window-Toolkit-Complete-Programmers-Specification/dp/1555581781/ref=sr_1_44?s=books&ie=UTF8&qid=1288651754&sr=1-44(据说很好,实际上在 Xt 上,但我猜可能值得一读)

这个网站似乎至少包含一些可用的东西:http: //manuals.itc.virginia.edu/unixdocs/u014.xwindows.html

如果有人读过这些,请发表评论。

于 2010-11-01T22:58:52.910 回答