Xlib Programming Manual

来源:互联网 发布:three.js全景源码特效 编辑:程序博客网 时间:2024/04/27 13:33

最近看了王垠写的那篇清华退学的文章,看到了他研究linux的过程,文中提到了x Windows, 我也总想搞一搞这个东西,但是不知从何入手。它推荐这本书Xlib Programming Manual,网上找了本电子书,准备研读一下!

看了他写的文章,我也觉得深有感触,我对于中国的教育也是抱有这样的一种认识的态度,但是我自认为不是一个很牛叉的人物。

中国教育虽然这样那样的不好,但是我却从这样的教育中也学到了不少的东西。

上学只是学习东西的一种方法,我们怎样学习一生,并用学到的东西,为自己,为社会做出贡献,我觉得才是最为重要,也是最难的。

学习从来就是为实践而准备的,必须要实践!!!

2012.5.24

1. 每个窗口有四个widnows configuration:    position,width,height, stacking order(这个用来控制当某个窗口有多个子窗口时,哪个应该被显示)

2. 每个窗口用一个ID来标识

3. A windows's border. it can vary in width; zero makes the border invisible

4. a window has a set of attributes.  The window attributes control many aspects of the appearance and response of the
window:
    • What color or pattern is used for the border and background of the window?
    • How are partial window contents relocated during resizing?
    • When are the contents of the window saved automatically as they become covered and then exposed?
    • Which event types are received, and which types are thrown away (not passed on to ancestor windows)?
    • Should this window be allowed to be displayed, moved, or resized without notifying the window manager?
    • Which colormap is used to interpret pixel values drawn in this window?
    • Which cursor should be displayed when the pointer is in this window?
2012.5.31

The number of bits per pixel is also referred to as the number of planes in the graphics display.

2012.6.7

xlib只是提供了窗口windows的机制,并没有工具栏,菜单栏,按钮等东西,需要自己实现,很是麻烦。于是就出现了许多工具箱,如gnome,KDE等。终于明白了KDE,gnome与xlib的关系了,还是经典的书籍好呀。
计划把第三章也给读了!
2012.6.28

Xlib的另一本名著:X Window System Internals
2012.8.14

原创粉丝点击