Scroll to navigation

XParseGeometry(3X11) XLIB FUNCTIONS XParseGeometry(3X11)

̾??

XParseGeometry, XWMGeometry - ???????ɥ??Υ??????ȥ??β???

????

int XParseGeometry(parsestring, x_return, y_return, width_return, height_return)
char *parsestring;
int *x_return, *y_return;
unsigned int *width_return, *height_return;

int XWMGeometry(display, screen, user_geom, def_geom, bwidth, hints, x_return, y_return,
width_return, height_return, gravity_return)
Display *display;
int screen;
char *user_geom;
char *def_geom;
unsigned int bwidth;
XSizeHints *hints;
int *x_return, *y_return;
int *width_return;
int *height_return;
int *gravity_return;

??????


???????ȥ???????Ϳ???롣
X ?????Фؤ???³?????ꤹ?롣

?ե????Ȥι⤵???????ԥ?????ñ?̤ǻ??ꤹ??(???å???????)??
???Ϥ???ʸ?????????ꤹ?롣
?????꡼???????ꤹ?롣

???ꤵ?줿???ȹ⤵???֤????롣

???????ɥ???ɬ?פȤ??????ɲ?Ū????¦?Υѥǥ??󥰤????ꤹ?롣

x, y ?Υ??ե??åȤ??֤????롣
???????????ꤹ?롣
?̾??ξ??֤ǤΡ????????ɥ??Υ??????Υҥ??Ȥ????ꤹ?롣
???ץꥱ?????????Υǥե????ȤΥ??????ȥ꤫ NULL ?????ꤹ?롣
???????ɥ??? gravity ?ͤ??֤????롣
?桼???????Υ??????ȥ꤫ NULL ?????ꤹ?롣

????

????Ū?? X ?Υ??ץꥱ?????????Ǥϡ?ɸ????ʸ???????Ȥä? ???????ɥ??Υ??????????֤????ꤹ?롣 XParseGeometry ???Ȥ???ɸ???Υ??????ɥ??Υ??????ȥ??????Ϥ??뤳?Ȥ??Ǥ????Τǡ? ???ץꥱ?????????򤳤?ɸ???˽??򤵤??뤳?Ȥ???ñ?˹Ԥ??롣 ????Ū?ˤϡ????δؿ??ϼ??η?????ʸ?????????Ϥ??롣

[=][<width>{xX}<height>][{+-}<xoffset>{+-}<yoffset>] 


?ƥե??????ɤϤ??δؿ??ΰ????????б????롣 (<> ?ǰϤ??????Τ???????[] ?ǰϤ??????ΤϾ?ά??ǽ??{} ?ǰϤ????? ?Τϡ֤ɤ줫1?Ĥ??????פ???̣???롣 ?ºݤ?ʸ?????ˤϳ??̤????????ƤϤʤ??ʤ??Τ????դ??뤳?ȡ?) ʸ?????Υ??󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ??󥰤Ǥʤ??????? ???̤ϼ?????¸?Ǥ??롣

?ؿ? XParseGeometry ?ϡ?4 ?Ĥ???(width, height, xoffset, yoffset)?Τ????ºݤ?ʸ???????? ???ꤵ???Ƥ??????Τȡ?x, y ???ͤ????Ǥʤ????ɤ????򼨤??ӥåȥޥ??? ???֤??? ????Ū?ˤϡ?-0 ?? +0 ?ϰۤʤ??ͤǤ??롣?桼???ϡֲ??̤α?ü???뤤?ϲ? ü?????????к?ɸ?פ????ꤹ??ɬ?פ????뤫???Ǥ??롣 ???Ĥ??ä????줾?????ͤ??Ф??ơ??б??????????????????????롣 ???Ĥ????ʤ??ä??ͤˤĤ??Ƥϡ??????????ѹ??????ʤ??ޤޤǤ??롣 ?ӥåȤ? XValue, YValue, WidthValue, HeightValue, XNegative, YNegative ??ɽ???????롣?????? <X11/Xutil.h> ???????????Ƥ??롣 ?ͤΤ????Τ????줫???????Τ????Τ????줫??ʸ???????˸??????Ƥ????С????ΥӥåȤ? ɬ?????ꤵ???롣

???δؿ??? XValue ?ե饰?? YValue ?ե饰???֤??????硢???饤?????Ȥ??׵ᤵ?줿???֤˥??????ɥ??????֤??? ???Ǥ??롣

The ?ؿ? XWMGeometry ?ϡ??桼???䤳?δؿ????ƤӽФ????ץ??????ब???ꤷ?????餫?Υ??????ȥ? ????( XParseGeometry ?ǻ??Ѥ??????ե????ޥå?)?򥵥????ҥ???(???̤? WM_NORMAL_HINTS ?˳?Ǽ ?????Ƥ????ҥ???)?ȷ??ӤĤ??????????ɥ??򵭽Ҥ??????֡?????????gravity ?? (NorthWestGravity, NorthEastGravity, SouthEastGravity, SouthWestGravity ?Τ????줫)???֤??? XSizeHints ??¤?Τ˴??ܥ??????????ꤵ???Ƥ??ʤ??????ˤϡ??Ǿ????????????ꤵ???Ƥ? ???Ф????????Ѥ??롣 ?????Ǥʤ??????ˤϡ????ܥ??????? 0 ?Ȥ????롣 ?ҥ??ȹ?¤?Τ˺Ǿ????????????ꤵ???Ƥ??ʤ??????ϡ????ܥ??????????Ѥ??? ?롣 ???δؿ???( XParseGeometry ???֤???????)?ޥ????ͤ??֤??? ?????ͤϡ??ɤ??ͤ??桼???????Ǥ??뤫?????????ɥ??ΰ??֤ϲ??̱?ü?䲼ü?? ???????к?ɸ?Ǥ??뤫?ɤ????򼨤??? ???????κ?ɸ?ϴ??ˡ?x_return, y_return ???ͤȤ??ƽ????????Ƥ????????? ?դ??뤳?ȡ?

?ޤ????????ʥ??????ȥ??????ꤹ???ȹ⤵?????Ȥ??? 0 ???֤????????礬 ???????????դ??뤳?ȡ? ?ؿ????Ƥֻ??ˤϡ??ҥ??Ȥ?ľ?ܹ??????뤿???˥ҥ??Ȥ? win_gravity ?ե??????ɤΥ??ɥ쥹???Ϥ??Ƥ??褤??

??Ϣ????

XSetWMProperties(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11