一些基本概念, 例子:
Introduction to the x11 library
较上一个有更详细的解释, 这两个可以结合起来读
Basic Programming with the X11 library
待续。。。
from ubuntu forum
The XLib reference manual:
The XLib manuals live in the "libx11-dev" package. Have you installed that?
$ sudo apt-get install libx11-dev
Which files does it carry, contain, have within?
$ dpkg -L libx11-dev
/usr/lib
/usr/lib/libX11.a
/usr/lib/pkgconfig
/usr/lib/pkgconfig/x11.pc
/usr/share/man/man3/XParseColor.3.gz
....
/usr/share/man/man3/XPoint.3.gz
/usr/share/man/man3/XBell.3.gz
-----------------
Look in the manual section 3
$ man 3 XCreateSimpleWidow
I normally just paste the function name into Firefox and Google for it. It's the easiest and fastest method in my casa.
-----------------
Manuals for the XLib's extended functions (such as XShape* non rectangular windows) are in the libxext-dev package.
$ man 3 XShapeCombineMask
-----------------
Reading:
A good introduction to XLib graphics
http://users.actcom.co.il/%7Echoo/lu...ogramming.html
+
Other examples here: http://tronche.com/gui/x/
And general guides: http://www.futuredesktop.org/opportunities.html
------------------
EDIT: GNOME has also a graphical GUI tool to show manual (man) pages. I just cannot remember the name of it. Does anyone else know?
Introduction to the x11 library
较上一个有更详细的解释, 这两个可以结合起来读
Basic Programming with the X11 library
待续。。。
from ubuntu forum
The XLib reference manual:
The XLib manuals live in the "libx11-dev" package. Have you installed that?
$ sudo apt-get install libx11-dev
Which files does it carry, contain, have within?
$ dpkg -L libx11-dev
/usr/lib
/usr/lib/libX11.a
/usr/lib/pkgconfig
/usr/lib/pkgconfig/x11.pc
/usr/share/man/man3/XParseColor.3.gz
....
/usr/share/man/man3/XPoint.3.gz
/usr/share/man/man3/XBell.3.gz
-----------------
Look in the manual section 3
$ man 3 XCreateSimpleWidow
I normally just paste the function name into Firefox and Google for it. It's the easiest and fastest method in my casa.
-----------------
Manuals for the XLib's extended functions (such as XShape* non rectangular windows) are in the libxext-dev package.
$ man 3 XShapeCombineMask
-----------------
Reading:
A good introduction to XLib graphics
http://users.actcom.co.il/%7Echoo/lu...ogramming.html
+
Other examples here: http://tronche.com/gui/x/
And general guides: http://www.futuredesktop.org/opportunities.html
------------------
EDIT: GNOME has also a graphical GUI tool to show manual (man) pages. I just cannot remember the name of it. Does anyone else know?