Scroll to navigation

XGetWindowAttributes(3X11) XLIB FUNCTIONS XGetWindowAttributes(3X11)

̾??

XGetWindowAttributes, XGetGeometry, XWindowAttributes - ???????ɥ??θ??ߤ?°???ȥ??????ȥ????????????ؿ??????ߤΥ??????ɥ?°???ι?¤??

????

Status XGetWindowAttributes(display, w, window_attributes_return)
Display *display;
Window w;
XWindowAttributes *window_attributes_return;

Status XGetGeometry(display, d, root_return, x_return, y_return, width_return,
height_return, border_width_return, depth_return)
Display *display;
Drawable d;
Window *root_return;
int *x_return, *y_return;
unsigned int *width_return, *height_return;
unsigned int *border_width_return;
unsigned int *depth_return;

??????

?????????Υԥ??????????֤????롣
?ɥ??????֥??????ꤹ?롣 ?????ϥ??????ɥ????ԥå????ޥåפǤ??롣
?ɥ??????֥??ο??????֤?????(???֥??????ȤΥԥ????뤴?ȤΥӥåȿ?)??
X ?????Фؤ???³?????ꤹ?롣
?롼?ȥ??????ɥ??????ꤹ?롣
???ߤ?°???ͤ??????????оݤΥ??????ɥ??????ꤹ?롣

?ɥ??????֥??Υǥ????󥸥???(???ȹ⤵)???֤????롣
XWindowAttributes ??¤?Τλ??ꤷ?????????ɥ?°???ͤ??֤????롣

?ɥ??????֥??ΰ??֤????????? x, y ??ɸ???֤????롣 ???????ɥ??ξ??硢???κ?ɸ?Ͽƥ??????ɥ??θ??????Ф??????к?ɸ?Ǥ??ꡢ ???峰¦?ζ??򼨤??? ?ԥå????ޥåפξ????ϡ?x, y ??ɸ?Ͼ??? 0 ?Ǥ??롣

????

?ؿ? XGetWindowAttributes ?ϻ??ꤷ?????????ɥ??θ??ߤ?°???ͤ? XWindowAttributes ??¤?Τ??֤???

XGetWindowAttributes ?ϥ??顼 BadDrawable, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XGetGeometry ?ϥɥ??????֥??θ??ߤΥ??????ȥ??ȥ롼?ȥ??????ɥ????֤??? ?ɥ??????֥??Υ??????ȥ??ϡ?x, y ??ɸ?????ȹ⤵?????????????????????ġ? ???????ϰ??????ꥹ?Ȥ˵??Ҥ????롣 ???δؿ??˥??饹?? InputOnly ?Ǥ??륦?????ɥ????Ϥ????Ȥ????????????Ǥ??롣

??¤??

XWindowAttributes ??¤?Τ????Ƥ򼨤???

typedef struct {
	int x, y;	
	int width, height;	
	int border_width;	
	int depth;	
	Visual *visual;	
	Window root;	
	int class;	
	int bit_gravity;	
	int win_gravity;	
	int backing_store;	
	unsigned long backing_planes;	
	unsigned long backing_pixel;	
	Bool save_under;	
	Colormap colormap;	
	Bool map_installed;	
	int map_state;	
	long all_event_masks;	
	long your_event_mask;	
	long do_not_propagate_mask;	
	Bool override_redirect;	
	Screen *screen;	
} XWindowAttributes;


x, y ?????Фˤϡ????????ɥ??κ??峰¦?ζ??κ?ɸ???????????Ф??? ???к?ɸ?????ꤵ???롣 width, height ?????Фˤϡ????????ޤޤʤ????????ɥ??????Υ??????????? ?????롣 border_width ?????Фˤϡ????????ɥ??????Υԥ????????????ꤵ???롣 depth ?????Фˤϥ??????ɥ??ο???(?Ĥޤꡢ???֥??????ȤΥԥ????뤴?Ȥ? ?ӥåȿ?)?????ꤵ???롣 visual ?????Фϥ????꡼?????б????? Visual ??¤?ΤؤΥݥ??󥿤Ǥ??롣 root ?????Фˤϡ????Υ??????ɥ??????륹???꡼???Υ롼?ȥ??????ɥ??????? ?Ȥ????롣 class ?????Фˤϥ??????ɥ??Υ??饹?????ꤵ???롣 ?????? InputOutput ?? InputOnly ?Τ????줫?Ǥ??롣

bit_gravity ?????Фˤϥ??????ɥ??? bit gravity ?ͤ????ꤵ???롣 ?????ϰʲ??Τ????줫?Ǥ???:

ForgetGravity EastGravity
NorthWestGravity SouthWestGravity
NorthGravity SouthGravity
NorthEastGravity SouthEastGravity
WestGravity StaticGravity
CenterGravity

win_gravity ?????Фˤϥ??????ɥ??? window gravity ?ͤ????ꤵ???롣 ?????ϰʲ??Τ????줫?Ǥ???:

UnmapGravity EastGravity
NorthWestGravity SouthWestGravity
NorthGravity SouthGravity
NorthEastGravity SouthEastGravity
WestGravity StaticGravity
CenterGravity

For additional information on gravity, see section 3.3.

backing_store ?????Фϡ????????ɥ??????Ƥ??ɤΤ褦???ݻ????٤??????ꤹ ?롣?????ͤϡ? WhenMapped, Always, NotUseful ?Τ????줫?Ǥ??롣 backing_planes ?????Фϡ??Хå??󥰥??ȥ??䥻???֥???????????¸???ʤ? ???Фʤ??ʤ?ưŪ?ʥǡ????򡢥??????ɥ??ΤɤΥӥåȥץ졼?????ݻ??????? ?????ؼ?????(?ӥåȤ? 1 ?????ꤵ????)?? backing_pixel ?????Фϡ?backing_planes ?????ꤵ???Ƥ??ʤ??ץ졼???? ?Ф??ơ??ɤ??ͤ????Ѥ????Τ??򼨤???

save_under ?????Фˤ? True ?? False ?????ꤵ???롣 colormap ?????Фˤϻ??ꤷ?????????ɥ??Υ??顼?ޥåפ????ꤵ???롣 ???Υ????Фμ????ͤϥ??顼?ޥåפ? ID ?? None ?Ǥ??롣 map_installed ?????Фϥ??顼?ޥåפ????ߥ??󥹥ȡ??뤵???Ƥ??뤫?ɤ??? ?򼨤??????Υ????Фμ????ͤϡ? True ?? False ?Ǥ??롣 map_state ?????Фϥ??????ɥ??ξ??֤򼨤??? IsUnmapped, IsUnviewable, IsViewable ?Τ????줫???ͤ????롣 IsUnviewable ?ϡ????Υ??????ɥ????Τϥޥåפ????Ƥ??뤬???襦?????ɥ??˥ޥåפ????? ???ʤ????Τ??????????˻??Ѥ????롣

all_event_masks ?????Фϡ????Υ??????ɥ????????򤷤Ƥ??륤?٥??ȥޥ??? ?????ƤΥ??饤?????ȤˤĤ??ƥӥåȤ??Ȥ??????¤????ä????ΤǤ??롣 your_event_mask ?????Ф??䤤???碌?򤷤????饤?????Ȥ????򤷤Ƥ??????? ?Υ??٥??ȥޥ??????????¤????ä????ΤǤ??롣 do_not_propagate_mask ?????Фϡ????Ť??ƤϤʤ??ʤ????٥??Ȥν????ˤĤ? ?ƥӥåȤ??Ȥ??????¤????ä????ΤǤ??롣

override_redirect ?????Фϡ????Υ??????ɥ??????????ɥ?????????????̵?? ???뤫?ɤ????????ꤹ?롣???Υ????Фμ????ͤ? True ?? False ?Ǥ??롣 ???Υ????Ф? True ?ʤ??С????????ɥ??ޥ͡??????Ϥ??Υ??????ɥ???̵?뤹?٤??Ǥ??롣

screen ?????Фˤϡ????????????꡼?????ؤ??Хå??ݥ??󥿤?Ϳ???? ?????꡼???ؤΥݥ??󥿤????ꤵ???롣 ?????ˤ??ꡢ?롼?ȥ??????ɥ??Υե??????ɤ??Ȥä??롼?פǥޥå????? ?ե??????ɤ?õ?????Ȥʤ????ưפ˥????꡼???????????????뤳?Ȥ??Ǥ??롣

?֤???

?????? Drawable ???ͤ????????????Ƥ??? Window ?? Pixmap ???ؤ??Ƥ??ʤ???
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

XQueryPointer(3X11), XQueryTree(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11