Xlib 相关函数简介

本文介绍了Xlib库中用于窗口管理和属性设置的主要函数,包括配置窗口大小位置、移动窗口、改变边框宽度、调整窗口堆叠顺序等操作。此外,还涵盖了颜色映射、游标定义、属性获取和修改、绘图操作等内容,为X Window System的开发提供详尽指导。
摘要由CSDN通过智能技术生成

 

1. To configure a window's size, location, stacking, or border, use XConfigureWindow() .

2. To move a window without changing its size, use XMoveWindow() .

3. To change a window's size without changing the upper-left coordinate, use XResizeWindow() .

4. To change the size and location of a window, use XMoveResizeWindow() .

5. To change the border width of a given window, use XSetWindowBorderWidth() .

6. To raise a window so that no sibling window obscures it, use XRaiseWindow() .

7. To lower a window so that it does not obscure any sibling windows, use XLowerWindow() .

8. To circulate a subwindow up or down, use XCirculateSubwindows() .

9. To raise the lowest mapped child of a window that is partially or completely occluded by another child, use XCirculateSubwindowsUp() .

10. To lower the highest mapped child of a window that partially or completely occludes another child, use XCirculateSubwindowsDown() .

11. To restack a set of windows from top to bottom, use XRestackWindows() .

12. To change one or more attributes for a given window, use XChangeWindowAttributes() .

13. To set the background of a window to a given pixel, use XSetWindowBackground() .

14. To set the background of a window to a given pixmap, use XSetWindowBackgroundPixmap() .

15. To change and repaint a window's border to a given pixel, use XSetWindowBorder() .

16. To change and repaint the border tile of a given window, use XSetWindowBorderPixmap() .

17. To set the colormap of a given window, use XSetWindowColormap() .

18. To define which cursor will be used in a window, use XDefineCursor() .

19. To undefine the cursor in a given window, use XUndefineCursor() .

20. To obtain the parent, a list of children, and number of children for a given window, use XQueryTree() .

21. To obtain the current attributes of a given window, use XGetWindowAttributes() .

22. To obtain the current geometry of a given drawable, use XGetGeometry() .

23. To obtain the screen coordinates of the pointer or to determine the pointer coordinates relative to a specified window, use XQueryPointer() .

24. To return an atom for a given name, use XInternAtom() .

25. To return atoms for an array of names, use XInternAtoms() .

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值