Scroll to navigation

XConfigureWindow(3X11) XLIB FUNCTIONS XConfigureWindow(3X11)

̾??

XConfigureWindow, XMoveWindow, XResizeWindow, XMoveResizeWindow, XSetWindowBorderWidth, XWindowChanges - ???????ɥ??????ꡢ???????ɥ??ѹ???¤??

????

XConfigureWindow(display, w, value_mask, values)
Display *display;
Window w;
unsigned int value_mask;
XWindowChanges *values;

XMoveWindow(display, w, x, y)
Display *display;
Window w;
int x, y;

XResizeWindow(display, w, width, height)
Display *display;
Window w;
unsigned int width, height;

XMoveResizeWindow(display, w, x, y, width, height)
Display *display;
Window w;
int x, y;
unsigned int width, height;

XSetWindowBorderWidth(display, w, width)
Display *display;
Window w;
unsigned int width;

??????

X ?????Фؤ???³?????ꤹ?롣
??¤?Τ??ͤ??Ȥä????ꤹ???оݤ??ͤ????ꤹ?롣 ???Υޥ?????ͭ???ʥ??????ɥ??????ͥӥåȤ??????¤Ǥ??롣
XWindowChanges ??¤?Τ????ꤹ?롣
?????ꡢ??ư?????????ѹ????Ԥʤ????????ɥ??????ꤹ?롣
???????ɥ??????????????ꤹ?롣

???????ɥ??????ȹ⤵?????ꤹ?롣 ?????ϥ??????ɥ?????¦???礭???Ǥ??롣

x, y ??ɸ?????ꤹ?롣 ?????????ͤϥ??????ɥ??ζ????κ????ο????????֤????????뤬?? ???????????ʤ????????ɥ??ξ????ϥ??????ɥ????Ȥκ????ΰ??֤򼨤??? ???????ͤϿƥ??????ɥ????Ф??????к?ɸ??ɽ?????롣

????

?ؿ? XConfigureWindow ?? XWindowChanges ??¤?Τǻ??ꤵ?줿?ͤ??Ѥ??ơ????????ɥ????礭???????֡????????????å? ?????????ꤹ?롣 ???ꤵ???Ƥ??ʤ??ͤϡ????Υ??????ɥ??θ??ߤΥ??????ȥ꤫???????롣

stack_mode ?Ǥʤ??Τ˷??復?????ɥ??????ꤵ???Ƥ????????ȡ? ???ꤷ?????????ɥ????ºݤˤϷ??復?????ɥ??Ǥʤ??????ˤϡ????顼 BadMatch ?Ȥʤ롣 BottomIf, TopIf, Opposite ?η׻??ϡ????????ɥ??κǽ??Υ??????ȥ??ǤϤʤ???( XConfigureWindow ???Ϥ??줿¾?ΰ??????ˤ??ä?????줿)?ǽ?Ū?ʥ??????ȥ??˴ؤ??Ƽ¹Ԥ????롣 ???????ɥ??????̥??????ɥ??????????Ļ????֤ˤʤä????????ɥ??? ?Хå??󥰥??ȥ??????Ƥ??˴??????뤫???????꡼???κǿ??????Ƥ? ȿ?Ǥ????褦???ѹ???????(?ºݤˤɤ??ʤ뤫?ϼ????ˤ???)??

XConfigureWindow ?ϥ??顼 BadMatch, BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XMoveWindow ?ϻ??ꤷ?????????ɥ??????ꤷ?? x, y ??ɸ?ذ?ư?????롣 ???????????????ɥ????礭?????ޥåԥ󥰤ξ??֤??ѹ??????ꡢ ???????ɥ??????̤˰?ư?????????Ϥ??ʤ??? ?ޥåפ??줿???????ɥ???ư?????ȡ????????ɥ???ɽ?????Ƥ????????뤳?Ȥ? ???뤷???????Ǥʤ????Ȥ⤢?롣 ??????ư?????????????ɥ????ҤǤʤ????????ɥ??˱??????Ƥ??뤫?ɤ????? ???뤤?ϥХå??󥰥??ȥ???¸?ߤ??뤫?ɤ????ˤ??롣 ???????ɥ???ɽ?????Ƥ??????줿???硢X ?????Ф? Expose ???٥??Ȥ????????롣 ?ޥåפ????Ƥ??륦?????ɥ???ư?????ȡ??????ޤǤ??Υ??????ɥ??˱??????? ???????????ɥ??? Expose ???٥??Ȥ??????롣

???????ɥ??? override-redirect ?ե饰?? False ?Ǥ??ꡢ???Ŀƥ??????ɥ??? SubstructureRedirectMask ?????򤷤Ƥ???¾?Υ??????ɥ??????????硢X ?????Ф? ConfigureRequest ???????????????ʾ??ν????ϹԤ??ʤ??? ?????ʳ??ξ????ϡ????????ɥ??ΰ?ư???????롣

XMoveWindow ?ϥ??顼 BadWindow ?򵯤??????Ȥ????롣

?ؿ? XResizeWindow ?ϻ??ꤷ?????????ɥ??Ρ????????ޤޤʤ????????礭?????ѹ????롣 ???δؿ??ϡ????????ɥ??κ????κ?ɸ?丶?????ѹ????ʤ????????????ɥ??? ?ƥ????å????Ԥ??ʤ??? ?ޥåפ????Ƥ??륦?????ɥ??Υ????????Ѥ?????ɽ?????Ƥ????????? Expose ???٥??Ȥ??????????뤳?Ȥ????롣 ?ޥåפ????Ƥ??륦?????ɥ??Υ??????򾮤????????ȡ??????ޤǤ??? ???????ɥ??˱??????Ƥ???¾?Υ??????ɥ??? Expose ???٥??Ȥ??????????롣

???????ɥ??? override-redirect ?ե饰?? False ?Ǥ??ꡢ???Ŀƥ??????ɥ????? SubstructureRedirectMask ?????򤷤Ƥ???¾?Υ??饤?????Ȥ????????硢X ?????Ф? ConfigureRequest ???????????????ʾ??ν????ϹԤ??ʤ??? ???ȹ⤵?Τ????줫?? 0 ?ξ??硢???顼 BadValue ?Ȥʤ롣

XResizeWindow ?ϥ??顼 BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XMoveResizeWindow ?ϻ??ꤷ?????????ɥ????礭???Ȱ??֤??Ѥ??롣 ???????ɥ??????̤ؤΰ?ư?ϹԤ??ʤ??? ?ޥåפ????Ƥ??륦?????ɥ??ΰ?ư?䥵?????ѹ????Ԥä????硢 ???Υ??????ɥ??? Expose ???٥??Ȥ??????뤳?Ȥ????롣 ???????ɥ??ΰ?ư?κݤΥ??????Ȱ??֤Υѥ??᡼???ˤ??äƤϡ? ?????ޤǤ??Υ??????ɥ??˱??????Ƥ??????????ɥ??? Expose ???٥??Ȥ??????뤳?Ȥ????롣

???????ɥ??? override-redirect ?ե饰?? False ?Ǥ??ꡢ???Ŀƥ??????ɥ????? SubstructureRedirectMask ?????򤷤Ƥ???¾?Υ??饤?????Ȥ????????硢X ?????Ф? ConfigureRequest ???????????????ʾ??ν????ϹԤ??ʤ??? ?????Ǥʤ????硢???????ɥ??Υ??????????֤??ѹ??????롣

XMoveResizeWindow ?ϥ??顼 BadValue, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWindowBorderWidth ?ϻ??ꤷ?????????ɥ??ζ????????????ꤷ?????????ˤ??롣

XSetWindowBorderWidth ?ϥ??顼 BadWindow ?򵯤??????Ȥ????롣

??¤??

XWindowChanges ??¤?Τ????Ƥ򼨤?:

#define CWX (1<<0)
#define CWY (1<<1)
#define CWWidth (1<<2)
#define CWHeight (1<<3)
#define CWBorderWidth (1<<4)
#define CWSibling (1<<5)
#define CWStackMode (1<<6)
typedef struct {
	int x, y;
	int width, height;
	int border_width;
	Window sibling;
	int stack_mode;
} XWindowChanges;


x, y ?????Фϥ??????ɥ??? x, y ??ɸ?򥻥åȤ??뤿?????Ѥ??롣 ?????Ͽƥ??????ɥ??θ??????Ф??????к?ɸ?ǡ????????ɥ??κ??峰¦?ζ??? ???֤򼨤??? width, height ?????Фϥ??????ɥ?????¦???礭???򥻥åȤ??뤿?????Ѥ??롣 ?????϶????ϴޤޤʤ? 0 ?ʳ????ͤǤʤ????Фʤ餺???????Ǥʤ??????ˤϥ? ?顼 BadValue ?Ȥʤ롣 ?롼?ȥ??????ɥ??????ꤷ?褦?Ȥ??Ƥⲿ?ⵯ?????ʤ???

border_width ?????ФǤϡ????????ɥ????????????ԥ?????ñ?̤ǻ??ꤹ?롣 ???????????򥻥åȤ????ȡ????????ɥ????峰¦?ζ??ΰ??֤??Ѥ????ʤ????? ???????ɥ??θ????????а??֤???ư???롣 InputOnly ?Υ??????ɥ??? border-width °???ͤ? 0 ?Ǥʤ??ͤ򥻥åȤ??褦?Ȥ????? ???ˤϡ????顼 BadMatch ?Ȥʤ롣

sibling ?????Фˤϡ??????å??????ˤĤ??????復?????ɥ??򥻥åȤ??롣 stack_mode ?????ФǤϡ????????ɥ????ɤΤ褦?˺ƥ????å??????뤫?????? ???롣?????Ǥ????ͤ? Above, Below, TopIf, BottomIf, Opposite. ?Τ????줫?Ǥ??롣

?֤???

InputOnly ?Υ??????ɥ????ɥ??????֥??Ȥ????Ѥ?????
?????????????????Ȥ????????????ϰϤ????äƤ??뤬?????Υꥯ?????Ȥ??׵᤹?? ¾?ξ?????Ŭ???Ǥ??ʤ??ä???
???ꤵ?줿???ͤˡ??ꥯ?????Ȥε????ϰϤ??ۤ??Ƥ??????Τ????롣?????????? ???????????ϰϤ????ꤵ???Ƥ??ʤ????С????????η????????????Ƥ??????Ƥ??? ?Ϥ????????롣???????Ȥ????????????Ƥ??????????Ϥ??Υ??顼?򵯤??????Ȥ? ???롣
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

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

Release 6.5 X Version 11