⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.html

📁 linux图形界面x liberary手册
💻 HTML
字号:
<HTML><HEAD><TITLE>Xlib Programming Manual: Drawing Points, Lines, Rectangles, and Arcs</TITLE></HEAD><BODY><H1 ALIGN=center>8.3 Drawing Points, Lines, Rectangles, and Arcs</H1>Xlib provides functions that you can use to draw:<UL><P><LI><A HREF="points.html">A single point or multiple points</A><P><LI><A HREF="lines.html">A single line or multiple lines</A><P><LI><A HREF="rectangles.html">A single rectangle or multiple rectangles</A><P><LI><A HREF="arcs.html">A single arc or multiple arcs</A></UL><P>Some of the functions described in the following sectionsuse these structures:<A NAME="XSegment"></A><P><!.IN "XSegment" "" "@DEF@"><PRE><CODE>typedef struct {	short x1, y1, x2, y2;} XSegment;</PRE></CODE><A NAME="XPoint"></A><P><!.IN "XPoint" "" "@DEF@"><PRE><CODE>typedef struct {	short x, y;} XPoint;</PRE></CODE><A NAME="XRectangle"></A><P><!.IN "XRectangle" "" "@DEF@"><PRE><CODE>typedef struct {	short x, y;	unsigned short width, height;} XRectangle;</PRE></CODE><A NAME="XArc"></A><P><!.IN "XArc" "" "@DEF@"><PRE><CODE>typedef struct {	short x, y;	unsigned short width, height;	short angle1, angle2;             /* Degrees * 64 */} XArc;</PRE></CODE><P>All x and y members are signed integers.The width and height members are 16-bit unsigned integers.You should be careful not to generate coordinates and sizesout of the 16-bit ranges, because the protocol only has 16-bit fieldsfor these values.<H5 ALIGN=right><I>Next: <A HREF="points.html">Drawing Single and Multiple Points</A></I></H5><HR><ADDRESS><A HREF="http://tronche.com/">Christophe Tronche</A>, <A HREF="mailto:ch.tronche@computer.org">ch.tronche@computer.org</A></ADDRESS></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -