Scroll to navigation

XAllocSizeHints(3X11) XLIB FUNCTIONS XAllocSizeHints(3X11)

̾??

XAllocSizeHints, XSetWMNormalHints, XGetWMNormalHints, XSetWMSizeHints, XGetWMSizeHints, XSizeHints - ???????ҥ??ȹ?¤?Τγ??????Ƥȡ????????ɥ??? WM_NORMAL_HINTS ?ץ??ѥƥ??????ꡦ????

????

XSizeHints *XAllocSizeHints()

void XSetWMNormalHints(display, w, hints)
Display *display;
Window w;
XSizeHints *hints;

Status XGetWMNormalHints(display, w, hints_return, supplied_return)
Display *display;
Window w;
XSizeHints *hints_return;
long *supplied_return;

void XSetWMSizeHints(display, w, hints, property)
Display *display;
Window w;
XSizeHints *hints;
Atom property;

Status XGetWMSizeHints(display, w, hints_return, supplied_return, property)
Display *display;
Window w;
XSizeHints *hints_return;
long *supplied_return;
Atom property;

??????

X ?????Фؤ???³?????ꤹ?롣
?̾??ξ??֤ˤ????륦?????ɥ??Υ??????ҥ??Ȥ????ꤹ?롣
?Ȥ????? XSizeHints ??¤?Τ????ꤹ?롣
?̾??ξ??֤ǤΥ??????ɥ??Υ??????ҥ??Ȥ??֤????롣
?ץ??ѥƥ?̾?????ꤹ?롣
?桼????Ϳ?????ҥ??Ȥ??֤????롣
???????ɥ??????ꤹ?롣

????

?ؿ? XAllocSizeHints ?? XSizeHints ??¤?Τ????????ơ????ι?¤?Τ??ؤ??ݥ??󥿤??֤??? XSizeHints ??¤?Τ????ƤΥե??????ɤ? 0 ?ǽ??????????????????դ??뤳?ȡ? ??ʬ?ʥ????꤬???ݤǤ??ʤ????硢 XAllocSizeHints ?? NULL ???֤??? ???ι?¤?Τ˳??????Ƥ??줿?????????????????ˤ? XFree ???Ȥ????ȡ?

?ؿ? XSetWMNormalHints ?ϻ??ꤷ?????????ɥ??? WM_NORMAL_HINTS ?ץ??ѥƥ??Υ??????ҥ??Ȥ??֤? ?????롣 ???Υץ??ѥƥ????ޤ?¸?ߤ??ʤ????硢 XSetWMNormalHints ?ϻ??ꤷ?????????ɥ??? WM_NORMAL_HINTS ?ץ??ѥƥ??˥??????ҥ??Ȥ????? ???롣 ???Υץ??ѥƥ??? WM_SIZE_HINTS ?????ե????ޥå? 32 ?dz?Ǽ?????롣

XSetWMNormalHints ?ϥ??顼 BadAlloc, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XGetWMNormalHints ?ϡ????ꤷ?????????ɥ??? WM_NORMAL_HINTS ?ץ??ѥƥ??˳?Ǽ?????Ƥ??? ???????ҥ??Ȥ??֤??? ???Υץ??ѥƥ??? WM_SIZE_HINTS ?????ե????ޥå? 32 ?Ǥ??ꡢ???줤?? ???Υ??????ҥ??ȹ?¤??(?Ť????Τ? ICCCM ?????η???)?Ǥ???Ǽ?Ǥ??뽽ʬ ??Ĺ???????ľ??硢 XGetWMNormalHints ?? XSizeHints ?γƥե??????ɤ????ꤷ???桼????Ϳ?????ե??????ɤΥꥹ?Ȥ?(???????? ?????Ƥ????ͤ??ޤ??Ǥ??뤫?ɤ????˴ؤ??餺)?????? supplied_return ?? ???ꤷ??0 ?Ǥʤ????ơ????????֤??? ???ξ????????????ʤ??????ϡ????δؿ??ϥ??ơ??????Ȥ??? 0 ???֤???

XGetWMNormalHints ?????????????? ICCCM ?????θŤ????????ҥ??ȥץ??ѥƥ??????????줿???硢 ?????? supplied_return ?ˤϼ??ΥӥåȤ??ޤޤ??롣

(USPosition|USSize|PPosition|PSize|PMinSize|

PMaxSize|PResizeInc|PAspect)

?ץ??ѥƥ?????ʬ?礭?????ץ??ѥƥ????١??????????ȥ??????ɥ??? gravity ?ͤ????Ĥ??Ȥ??Ǥ??????硢?????? supplied_return ?ˤϼ??ΥӥåȤ??ޤ? ???롣

PBaseSize|PWinGravity


XGetWMNormalHints ?ϥ??顼 BadWindow ?򵯤??????Ȥ????롣

?ؿ? XSetWMSizeHints ?ϻ??ꤷ?????????ɥ??λ??ꤷ???ץ??ѥƥ??Υ??????ҥ??Ȥ??֤??????롣 ???Υץ??ѥƥ????ޤ?¸?ߤ??ʤ????硢 XSetWMSizeHints ?ϻ??ꤷ?????????ɥ??Υץ??ѥƥ??˥??????ҥ??Ȥ????ꤹ?롣 ???Υץ??ѥƥ??? WM_SIZE_HINTS ?????ե????ޥå? 32 ?dz?Ǽ?????롣 ???????ɥ????̾??Υ??????ҥ??Ȥ????ꤹ???ˤϡ??ؿ? XSetWMNormalHints ???Ȥ????Ȥ??Ǥ??롣

XSetWMSizeHints ?ϥ??顼 BadAlloc, BadAtom, BadWindow ?򵯤??????Ȥ????롣

?ؿ? XGetWMSizeHints ?ϡ????ꤷ?????????ɥ??λ??ꤷ???ץ??ѥƥ??˳?Ǽ?????Ƥ??륵?????ҥ??? ???֤??? ???Υץ??ѥƥ??? WM_SIZE_HINTS ?????ե????ޥå? 32 ?Ǥ??ꡢ???줤?? ???Υ??????ҥ??ȹ?¤??(?Ť????Τ? ICCCM ?????η???)????Ǽ?Ǥ??뽽ʬ?? Ĺ???????ľ??硢 XGetWMSizeHints ?? XSizeHints ?γƥե??????ɤ????ꤷ???桼????Ϳ?????ե??????ɤΥꥹ?Ȥ?(???????? ?????Ƥ????ͤ??ޤ??Ǥ??뤫?ɤ????˴ؤ??餺)?????? supplied_return ?? ???ꤷ??0 ?Ǥʤ????ơ????????֤??? ???ξ????????????ʤ??????ϡ????δؿ??ϥ??ơ??????Ȥ??? 0 ???֤??? ???????ɥ????̾??Υ??????ҥ??Ȥ????????뤿???ˤϡ??ؿ? XGetWMNormalHints ?????ѤǤ??롣

XGetWMSizeHints ??????????ICCCM ?θŤ????????ҥ??ȥץ??ѥƥ??????????줿???硢?????? supplied_return ?ϼ??ΥӥåȤ??ޤࡣ

(USPosition|USSize|PPosition|PSize|PMinSize|

PMaxSize|PResizeInc|PAspect)

?ץ??ѥƥ?????ʬ?礭?????ץ??ѥƥ????١??????????ȥ??????ɥ??? gravity ?ͤ??ޤळ?Ȥ??Ǥ??????硢?????? supplied_return ?ˤϼ??ΥӥåȤ??ޤޤ? ?롣

PBaseSize|PWinGravity


XGetWMSizeHints ?ϥ??顼 BadAtom, BadWindow ?򵯤??????Ȥ????롣

?ץ??ѥƥ?

?̾??ξ??֤Υ??????ɥ??Υ??????ҥ??ȡ? ???Υץ??ѥƥ??? C ?????ˤ????뷿?? XSizeHints ?Ǥ??롣

??¤??

XSizeHints ??¤?Τ????Ƥ򼨤?:

#define USPosition (1L << 0)
#define USSize (1L << 1)
#define PPosition (1L << 2)
#define PSize (1L << 3)
#define PMinSize (1L << 4)
#define PMaxSize (1L << 5)
#define PResizeInc (1L << 6)
#define PAspect (1L << 7)
#define PBaseSize (1L << 8)
#define PWinGravity (1L << 9)
#define PAllHints (PPosition|PSize| PMinSize|PMaxSize| PResizeInc|PAspect)
/* ?? */
typedef struct {
	long flags;	
	int x, y;	
	int width, height;	
	int min_width, min_height;
	int max_width, max_height;
	int width_inc, height_inc;
	struct {
	       int x;	
	       int y;	
	} min_aspect, max_aspect;
	int base_width, base_height;
	int win_gravity;
	
} XSizeHints;


x, y, width, height ?????ФϺ??ϸŤ????ͤλȤ??٤??Ǥʤ??????ФǤ??ꡢ ?ߴ????Τ????˻Ĥ????Ƥ????????Ǥ??롣 min_width, min_height ?????Фϥ??ץꥱ???????󤬻Ȥ????Τˤʤ??Ǿ??¤? ???????ɥ??Υ??????????ꤹ?롣 max_width, max_height ?????Фϥ??????ɥ??κ??祵?????????ꤹ?롣 width_inc, height_inc ?????Фϡ????Υ??????ɥ??ˤȤä?˾?ޤ??????????? ?ѹ??????????Ρ???????????ʬ(?Ǿ??ͤ?????????)?????????롣 min_aspect, max_aspect ?????Ф? x, y ?????Ȥ???ɽ???졢˾?ޤ????????? ?????????ϰϤ????ꤹ?뤳?Ȥ??Ǥ??롣 base_width, base_height ?ϥ??????ɥ???˾?ޤ??????????????????롣 ???????ɥ??ޥ͡??????ϥ??????ɥ??ΰ??֤ȶ???????Ƚ?Ǥ???win_gravity ?? ???Фǻ??ꤵ?줿???????ɥ????Τγ?¦??Ĺ?????ΰ??֤˥??????ɥ??????֤??롣 ???????ɥ??γ?¦??Ĺ?????ˤϡ??????ȥ??????ɥ??ޥ͡????㤬?դ????????? ʬ???ޤ??????롣 ?Ĥޤꡢ???????ɥ??ޥ͡????㤬???饤?????Ȥ??׵ᤷ?????֤ˤ??Υ??????ɥ? ?????֤????ȷ??᤿?ʤ??С?win_gravity ?ǻ??ꤵ?????ƥ??????ɥ??ζ????? ?ˤ????????֤ϡ????????ɥ??ޥ͡????㤬?ʤ????????襯?饤?????Ȥ? ???????ɥ??ȤʤäƤ????????ˤʤ롣

?ޥ??? PAllHints ?????Ѥ϶ˤ??ƹ??ޤ????ʤ????????դ??뤳?ȡ?

?֤???

?׵ᤵ?줿?꥽?????䥵???Х??????γ??????Ƥ˥????Ф????Ԥ?????
?????? Atom ???ͤ????????????Ƥ??? Atom ???ؤ??Ƥ??ʤ???
?????? Window ???ͤ????????????Ƥ??? Window ???ؤ??Ƥ??ʤ???

??Ϣ????

XAllocClassHint(3X11), XAllocIconSize(3X11), XAllocWMHints(3X11), XFree(3X11), XSetCommand(3X11), XSetTransientForHint(3X11), XSetTextProperty(3X11), XSetWMClientMachine(3X11), XSetWMColormapWindows(3X11), XSetWMIconName(3X11), XSetWMName(3X11), XSetWMProperties(3X11), XSetWMProtocols(3X11), XStringListToTextProperty(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11