Scroll to navigation

XSetClipOrigin(3X11) XLIB FUNCTIONS XSetClipOrigin(3X11)

̾??

XSetClipOrigin, XSetClipMask, XSetClipRectangles - GC ?ʰ״ؿ?

????

XSetClipOrigin(display, gc, clip_x_origin, clip_y_origin)
Display *display;
GC gc;
int clip_x_origin, clip_y_origin;

XSetClipMask(display, gc, pixmap)
Display *display;
GC gc;
Pixmap pixmap;

XSetClipRectangles(display, gc, clip_x_origin, clip_y_origin, rectangles, n, ordering)
Display *display;
GC gc;
int clip_x_origin, clip_y_origin;
XRectangle rectangles[];
int n;
int ordering;

??????

X ?????Фؤ???³?????ꡣ

?????åץޥ????????? x, y ??ɸ?????ꡣ
GC ?????ꡣ
Ĺ?????ο??????ꡣ
Ĺ?????ν????δط??????ꡣ Unsorted, YSorted, YXSorted, YXBanded. ?Τ????줫?????ꤹ?롣
?ԥå????ޥåפ? None ?????ꤹ?롣
?????åץޥ????????ꤹ??Ĺ???????????????ꡣ

????

?ؿ? XSetClipOrigin ?ϻ??ꤷ?? GC ?˥????åפθ????????ꤹ?롣 ?????åץޥ????θ????ϥ????ե??å????ꥯ?????Ȥǻ??ꤵ?줿?????оݤΥ? ???????֥????Ф??????к?ɸ?Ȥ??Ʋ??ᤵ???롣

XSetClipOrigin ?ϥ??顼 BadAlloc, BadGC ?򵯤??????Ȥ????롣

?ؿ? XSetClipMask ?ϡ????ꤷ??GC ?Υ????åץޥ????????ꤷ???ԥå????ޥåפ˥??åȤ??롣 ?????åץޥ????? None ?????åȤ????Ƥ??????硢?ԥ??????Ͼ??????褵????(?????åפ?ĺ???ˤ?̵ ?ط??Ǥ???)??

XSetClipMask ?ϥ??顼 BadAlloc, BadGC, BadMatch, BadValue ?򵯤??????Ȥ????롣

?ؿ? XSetClipRectangles ?ϻ??ꤷ?? GC ?Υ????åץޥ????????ꤷ??Ĺ?????Υꥹ?Ȥ??ѹ??????????? ?פθ????򥻥åȤ??롣 ???Ϥϥꥹ??????Ĺ?????˴ޤޤ?????ʬ?˥????åפ????롣 ?????åפθ????ϥ????ե??å????ꥯ?????Ȥǻ??ꤵ????Ǥ?դ??????оݥɥ? ?????֥??θ??????Ф??????к?ɸ?Ȥ??Ʋ??ᤵ???롣 Ĺ?????κ?ɸ?ϥ????åפθ??????Ф??????к?ɸ?Ȥ??Ʋ??ᤵ???롣 Ĺ?????ϴ??Ĥ??ƤϤʤ??ʤ????????Ǥʤ????С??????ե??å????ꥯ?????Ȥ? ???̤?̤?????Ǥ??롣 Ĺ?????Υꥹ?Ȥ϶??Ǥ??ɤ????????ξ????ϼºݤˤϽ??Ϥ?̵???ˤʤ롣 ?????? XCreateGC, XChangeGC, XSetClipMask ?Υ????åץޥ????Ǥϡ? None ?????ꤹ?뤳?Ȥ?ȿ?Фΰ?̣?Ǥ??롣

???饤?????Ȥ?ʬ???äƤ????С?Ĺ?????ν????ط??ϰ????? ordering ?ǻ??ꤹ ?뤳?Ȥ??Ǥ??롣 ?????ˤ??ꡢ?????Фˤ??????®???ʤ뤳?Ȥ????롣 ?ְ??ä??????????ꤷ?????硢X ?????Фϥ??顼 BadMatch ?򵯤??????Ȥ⤢?뤬???????Фμ????Ȥ??ƥ??顼?򵯤??????Ȥ?ɬ?פʤ櫓 ?ǤϤʤ??? ???顼???????ʤ??ä????硢?????ե??å????????η??̤?̤?????Ǥ??롣 Unsorted ??Ĺ?????ν?????Ǥ?դǤ??뤳?Ȥ򼨤??? YSorted ??Ĺ?????ν????ϡ?Ĺ?????θ????? Y ??ɸ?ˤĤ??ƾ???(Ʊ??Y??ɸ??????)?? ???뤳?Ȥ򼨤??? YXSorted ?? YSorted ?ν????˲ä?????????Y??ɸ??Ʊ??Ĺ?????????Ƹ?????X??ɸ?ˤĤ??ƾ???(Ʊ ??X??ɸ??????)???¤????????ɲä??????ΤǤ??롣 YXBanded ?? YXSorted ?˼??????????ä??????ΤǤ??롣 ?????????Ȥϡ????Ƥβ?ǽ??Y?????????饤?????Ф??ơ????Υ????????饤?? ???ޤ?Ĺ???????Ƥ?Ʊ??Y??ɸ??Y???????礭???????Ĥ??ȤǤ??롣

XSetClipRectangles ?ϥ??顼 BadAlloc, BadGC, BadMatch, BadValue ?򵯤??????Ȥ????롣

?֤???

?׵ᤵ?줿?꥽?????䥵???Х??????γ??????Ƥ˥????Ф????Ԥ?????
?????? GContext ???ͤ????????????Ƥ??? GContext ???ؤ??Ƥ??ʤ???
?????????????????Ȥ????????????ϰϤ????äƤ??뤬?????Υꥯ?????Ȥ??׵᤹?? ¾?ξ?????Ŭ???Ǥ??ʤ??ä???
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣

??Ϣ????

XCreateGC(3X11), XDrawRectangle(3X11), XQueryBestSize(3X11), XSetArcMode(3X11), XSetFillStyle(3X11), XSetFont(3X11), XSetLineAttributes(3X11), XSetState(3X11), XSetTile(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11