Scroll to navigation

XChangeWindowAttributes(3X11) XLIB FUNCTIONS XChangeWindowAttributes(3X11)

̾??

XChangeWindowAttributes, XSetWindowBackground, XSetWindowBackgroundPixmap, XSetWindowBorder, XSetWindowBorderPixmap, XSetWindowColormap - ???????ɥ???°?????ѹ?????

????

XChangeWindowAttributes(display, w, valuemask, attributes)
Display *display;
Window w;
unsigned long valuemask;
XSetWindowAttributes *attributes;

XSetWindowBackground(display, w, background_pixel)
Display *display;
Window w;
unsigned long background_pixel;

XSetWindowBackgroundPixmap(display, w, background_pixmap)
Display *display;
Window w;
Pixmap background_pixmap;

XSetWindowBorder(display, w, border_pixel)
Display *display;
Window w;
unsigned long border_pixel;

XSetWindowBorderPixmap(display, w, border_pixmap)
Display *display;
Window w;
Pixmap border_pixmap;

XSetWindowColormap(display, w, colormap)
Display *display;
Window w;
Colormap colormap;

??????

XSetWindowAttributes ??¤?Τ????ꤹ?롣 ?ޥ????? valuemask ?λ????˽??äơ????ι?¤?Τ????ͤ??????Ф????롣 ?ޥ????ͤϡ???¤?Τ????ꤵ???Ƥ????ɤ??ͤ??????Ф????򼨤?Ŭ?ڤ? ?ӥåȤ????äƤ??ʤ????Фʤ??ʤ???
?طʿ??Υԥ??????????ꤹ?롣
?طʥԥå????ޥåס? ParentRelative, None ?Τ????줫?????ꤹ?롣
???顼?ޥå????Υ????ȥ꡼?????ꤹ?롣
?????ԥå????ޥåפ? CopyFromParent ?????ꤹ?롣
X ?????Фؤ???³?????ꤹ?롣
?????? attribute ???????????Ƥ??륦?????ɥ?°?????ؼ????롣 ???Υޥ????ͤϡ????????ޥ????ӥå??ͤΥӥåȤ??Ȥ??????¤????ä????ΤǤ??롣 valuemask ?? 0 ?ʤ???°????̵?뤵?졢???Ȥ????ʤ???
???????ɥ??????ꤹ?롣
???顼?ޥåפ????ꤹ?롣

????

?ؿ? XChangeWindowAttributes ?ϡ??????? valuemask ?˽??ä? XSetWindowAttributes ??¤?ΤΥ??????ɥ?°?????Ȥ??????ꤷ?????????ɥ?°?????ѹ????롣 ?طʿ????ѹ????Ƥ⡢???????ɥ???ɽ?????Ƥ??ѹ??????ʤ??? ???????ɥ??Ȥ????طʤ??????褹???ˤ? XClearWindow ???Ȥ????ȡ? ?????Υ??????󥰤θ??????Ѥ????褦?ʶ????????????طʿ????????򤹤??ȡ? ?????Ϻ????褵???롣 ?롼?ȥ??????ɥ????طʤ? None ?? ParentRelative ?????ꤹ???ȡ??طʤϥǥե????Ȥ??طʥԥå????ޥåפ????롣 ?롼?ȥ??????ɥ??ζ????? CopyFromParent ???ѹ??????ȡ??????ϥǥե????Ȥζ????ԥå????ޥåפ????롣 win-gravity ?ͤ??ѹ????Ƥ⡢???????ɥ??θ??߰??֤ˤϱƶ???Ϳ???ʤ??? ¾?Υ??????ɥ??˱??????Ƥ??륦?????ɥ??? backing-store ?ͤ? WhenMapped ?? Always ???ѹ??????ꡢ?ޥåפ????Ƥ??륦?????ɥ??? backing-planes ?͡? backing-pixel ??, save-under ?ͤ??ѹ????Ƥ⡢???αƶ??Ϥ????ˤ? ?????ʤ????Ȥ????롣 ???????ɥ??Υ??顼?ޥåפ??ѹ???????(?Ĥޤ꿷???????顼?ޥåפ????? ?򤷤????硣????¸?ߤ??륫?顼?ޥåפ????Ƥ??ѹ??ǤϤʤ?)?? ColormapNotify ???٥??Ȥ??????????롣 ?Ļ륦?????ɥ??Υ??顼?ޥåפ??ѹ????Ƥ⡢???αƶ??Ϥ????ˤϸ????ʤ??? ?Ȥ????롣 ?????ϡ????顼?ޥåפ????󥹥ȡ??뤵???Ƥ??ʤ????⤷???ʤ??????Ǥ???( XInstallColormap ?򻲾Ȥ??뤳??)?? ?롼?ȥ??????ɥ??Υ????????? None ?????ꤹ???ȡ??????????ϥǥե????ȤΤ??Τ????롣 ???饤?????Ȥϲ?ǽ?ʸ¤ꥫ?顼?ޥåפ???ͭ???뤳?Ȥ?˾?ޤ?????

ʣ???Υ??饤?????Ȥ???Ʊ?????????ɥ??????Ϥ????򤹤뤳?Ȥ??Ǥ??롣 ???ξ????Υ??٥??ȥޥ??????̡??˴????????롣 ???륤?٥??Ȥ????????줿?Ȥ??????Υ??٥??Ȥ? ???٥??Ȥ????ܤ??Ƥ??????ƤΥ??饤?????Ȥ????????롣 ???????? SubstructureRedirectMask, ResizeRedirectMask, ButtonPressMask ???????Ǥ??륯?饤?????Ȥ?Ʊ???ˤҤȤĤ????Ǥ??롣 ???륯?饤?????Ȥ????????Υ??٥??ȥޥ????????򤷤褦?Ȥ????Ȥ??ˡ?¾?? ???饤?????Ȥ????Ǥˤ????????򤷤Ƥ????????ϡ????顼 BadAccess ?Ȥʤ롣 ???Ť????ʤ????٥??Ȥ????ꤹ???ޥ????ϡ??ҤȤĤΥ??????ɥ??ˤĤ??? ?ҤȤĤ???¸?ߤ??롣 ???饤?????Ȥ??ȤˤҤȤĤǤϤʤ???

XChangeWindowAttributes ?ϥ??顼 BadAccess, BadColor, BadCursor, BadMatch, BadPixmap, BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWindowBackground ?ϡ????ꤷ???ԥ??????ͤ򥦥????ɥ??طʤ????ꤹ?롣 ?طʤ??ѹ????Ƥ⥦?????ɥ??????Ƥ??Ѳ????뤳?ȤϤʤ??? XSetWindowBackground ?ϡ??桼?????Ϥ????ԥ??????ͤ??ɤ??Ĥ֤??줿??̤???????????? ?ԥå????ޥåפ??Ȥ??? InputOnly ???????ɥ????طʤ??ѹ????褦?Ȥ????ȡ????顼 BadMatch ?Ȥʤ롣

XSetWindowBackground ?ϥ??顼 BadMatch, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWindowBackgroundPixmap ?ϡ????ꤷ???ԥå????ޥåפ򥦥????ɥ????طʥԥå????ޥåפȤ??????ꤹ?롣 ?طʥԥå????ޥåפϡ??⤦????Ū?˻??Ȥ????뤳?Ȥ??ʤ????С??????˲??? ???Ƥ褤?? ParentRelative ?????ꤵ?????ȡ??ƥ??????ɥ????طʥԥå????ޥåפ??Ȥ????롣 ?롼?ȥ??????ɥ????Ф??? ParentRelative ?????ꤵ?????ȡ??طʥԥå????ޥåפϥǥե????ȤΤ??Τ????롣 InputOnly ???????ɥ????طʤ??ѹ????褦?Ȥ????ȡ????顼 BadMatch ?Ȥʤ롣 ?طʤ? None ?????ꤵ?????ȡ????Υ??????ɥ????طʤ?̤?????Ȥʤ롣

XSetWindowBackgroundPixmap ?ϥ??顼 BadMatch, BadPixmap, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWindowBorder ?ϡ????ꤷ???ԥ??????ͤ򥦥????ɥ??????????ꤹ?롣 InputOnly ???????ɥ????Ф??Ƥ??????????Ԥ??ȡ????顼 BadMatch ?Ȥʤ롣

XSetWindowBorder ?ϥ??顼 BadMatch, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWindowBorderPixmap ?ϡ????ꤷ???ԥå????ޥåפ򥦥????ɥ??ζ????ԥå????ޥå? ?????ꤹ?롣 ?????ԥå????ޥåפϡ??⤦????Ū?˻??Ȥ????뤳?Ȥ??ʤ????С??????˲??? ???Ƥ褤?? CopyFromParent ?????ꤷ???????ϡ??ƥ??????ɥ??ζ????ԥå????ޥåפΥ??ԡ????Ȥ????롣 InputOnly ???????ɥ????Ф??Ƥ??????????Ԥ??ȡ????顼 BadMatch ?Ȥʤ롣

XSetWindowBorderPixmap ?ϥ??顼 BadMatch, BadPixmap, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWindowColormap ?ϡ????ꤷ?????顼?ޥåפ????ꤷ?????????ɥ??????ꤹ?롣 ???顼?ޥåפϥ??????ɥ???Ʊ???ӥ??奢?뷿?Ǥʤ????Фʤ??ʤ??? ?????Ǥʤ??????ˤϡ????顼 BadMatch ?Ȥʤ롣

XSetWindowColormap ?ϥ??顼 BadColor, BadMatch, BadWindow ?򵯤??????Ȥ????롣

?֤???

???????Ƥ????Ƥ??ʤ????顼?ޥåפ򥯥饤?????Ȥ????????褦?Ȥ?????
???饤?????Ȥ??ɤ߼??????ѤΥ??顼?ޥåפΥ????ȥ꡼???ͤ???Ǽ???褦?? ??????
?????? Colormap ???ͤ????????????Ƥ??? Colormap ???ؤ??Ƥ??ʤ???
?????? Cursor ???ͤ????????????Ƥ??? Cursor ???ؤ??Ƥ??ʤ???
?????????????????Ȥη????ϰϤ????????????ꥯ?????Ȥ??׵᤹?? ¾?ξ????????????Ƥ??ʤ??ä???
InputOnly ???????ɥ???????°???????å????Ƥ??롣
?????? Pixmap ???ͤ????????????Ƥ??? Pixmap ???ؤ??Ƥ??ʤ???
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

XConfigureWindow(3X11), XCreateWindow(3X11), XDestroyWindow(3X11), XInstallColormap(3X11), XMapWindow(3X11), XRaiseWindow(3X11), XUnmapWindow(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11