xlib入门

一些基本概念, 例子:
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?
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值