XDrawRectangle(3X11) | XLIB FUNCTIONS | XDrawRectangle(3X11) |
̾??¶
XDrawRectangle, XDrawRectangles, XRectangle - Ĺ???????????ȡ?Ĺ??????ɽ????¤??
????¶
XDrawRectangle(display, d, gc, x,
y, width, height)
Display *display;
Drawable d;
GC gc;
int x, y;
unsigned int width, height;
XDrawRectangles(display, d, gc,
rectangles, nrectangles)
Display *display;
Drawable d;
GC gc;
XRectangle rectangles[];
int nrectangles;
??????¶
- d
- ?ɥ??????֥?(drawable)?????ꡣ
- display
- X ?????Фؤ???³?????ꡣ
- gc
- GC ?????ꡣ
- nrectangles
- ????????Ĺ?????ο??????ꡣ
- rectangles
- Ĺ???????????????ꡣ
- width
-
- height
- Ĺ?????Υǥ??????????????????ȹ⤵?????ꡣ
- x
-
- y
- Ĺ?????κ??????ΰ??֤?????????ɸ?????ꡣ
????¶
?ؿ? XDrawRectangle ?? XDrawRectangles ?ϡ???Ĺ???????Ф??????˼???5?????Ȥä? PolyLine ?ץ??ȥ??뤬???ꤵ?줿???Τ褦?ˡ?Ĺ???????س?(1?Ĥ??뤤??ʣ??)?????? ???롣
- [x,y] [x+width,y] [x+width,y+height] [x,y+height] [x,y]
???????δؿ??ϡ????ꤷ??1?Ĥ??뤤??ʣ????Ĺ???????Ф??ơ?1?ĤΥԥ????? ??1?٤??????褷?ʤ??? XDrawRectangles ?ϡ????????ν????̤???Ĺ?????????褹?롣 Ĺ???????????äƤ??????硢?ŤʤäƤ?????ʬ?Υԥ???????ʣ???????褵???롣
???????δؿ????ʲ??? GC ?????ݡ??ͥ??Ȥ????Ѥ??롣 function, plane-mask, line-width, line-style, cap-style, join-style, fill-style, subwindow-mode, clip-x-origin, clip-y-origin, and clip-mask. They also use these GC mode-dependent components: foreground, background, tile, stipple, tile-stipple-x-origin, tile-stipple-y-origin, dash-offset, dash-list.
XDrawRectangle ?? XDrawRectangles ?ϥ??顼 BadDrawable, BadGC, BadMatch ???????Ȥ????롣
??¤??¶
XRectangle ??¤?Τ????Ƥ???
typedef struct { short x, y; unsigned short width, height; } XRectangle;
???Ƥ? x, y ?????Ф??????դ??????Ǥ??롣 width, height ?????Ф?16?ӥåȤ?????̵???????Ǥ??롣 ?ץ??ȥ????ǤϤ????????ͤ?16?ӥåȤΥե??????ɤ????????ʤ??Τǡ?16?ӥ? ?Ȥ??ϰϤ??ۤ?????ɸ?䥵?????????????ʤ??褦???դ??ʤ????Фʤ??ʤ???
?֤???¶
- BadDrawable
- ?????? Drawable ???ͤ????????????Ƥ??? Window ?? Pixmap ???ؤ??Ƥ??ʤ???
- BadGC
- ?????? GContext ???ͤ????????????Ƥ??? GContext ???ؤ??Ƥ??ʤ???
- BadMatch
- InputOnly ?Υ??????ɥ????ɥ??????֥??Ȥ??ƻ??ꤵ?줿??
- BadMatch
- ?????????????????Ȥ????????????ϰϤ????äƤ??뤬?????Υꥯ?????Ȥ??᤹?? ¾?ξ?????Ŭ???Ǥ??ʤ??ä???
??Ϣ????¶
XDrawArc(3X11), XDrawLine(3X11), XDrawPoint(3X11)
Xlib - C Language X Interface
Release 6.5 | X Version 11 |