XAllocWMHints(3X11) | XLIB FUNCTIONS | XAllocWMHints(3X11) |
̾??¶
XAllocWMHints, XSetWMHints, XGetWMHints, XWMHints - ???????ɥ??ޥ͡??????Υҥ??ȹ?¤?Τ????????Ƥ??ؿ??ȥ??????ɥ??? WM_HINTS ?ץ??ѥƥ??????ꡦ???????Ԥ??ؿ???
????¶
XWMHints *XAllocWMHints()
XSetWMHints(display, w, wmhints)
Display *display;
Window w;
XWMHints *wmhints;
XWMHints *XGetWMHints(display, w)
Display *display;
Window w;
??????¶
????¶
?ؿ? XAllocWMHints ?? XWMHints ??¤?Τ????????ơ????ι?¤?ΤؤΥݥ????֤??? XWMHints ??¤?Τ????ƤΥե??????ɤ? 0 ?ǽ??????????????????դ??뤳?ȡ? ??ʬ?ʥ????꤬???ݤǤ??ʤ????硢 XAllocWMHints ?? NULL ???֤??? ???ι?¤?Τ˳??????Ƥ??줿???????????????????ˤ? XFree ?????Ѥ??뤳?ȡ?
?ؿ? XSetWMHints ?ϥ??????ɥ??ޥ͡??????ؤΥҥ??Ȥ????ꤹ?롣 ???Υҥ??Ȥˤϥ????????ξ????????֤䥦?????ɥ??ν??????֡????ץꥱ???????? ?ϥ??????ɥ??ޥ͡???????ͳ?ǥ????ܡ??????Ϥ????????뤫?ɤ????ʤɤξ? ?ޤޤ??롣
XSetWMHints ?ϥ??顼 BadAlloc, BadWindow ???????Ȥ????롣
?ؿ? XGetWMHints ?ϥ??????ɥ??ޥ͡??????ؤΥҥ??Ȥ??ɤߡ????????ɥ??? WM_HINTS ?ץ??ѥƥ? ?????ꤵ???Ƥ??ʤ????? NULL ???֤????????????? XWMHints ??¤?ΤؤΥݥ????֤??? ?ǡ??????Ȥ????ä????? XFree ???Ƥ??ǥ??????????????뤳?ȡ?
XGetWMHints ?ϥ??顼 BadWindow ???????Ȥ????롣
?ץ??ѥƥ?¶
- WM_HINTS
- ???????ɥ??ޥ͡??????λ??ѤΤ????˥??饤?????Ȥˤ??ä????ꤵ?????ɲ? ?Υҥ??ȡ? ???Υץ??ѥƥ??? C ?????Ǥη??? XWMHints ?Ǥ??롣
??¤??¶
XWMHints ??¤?Τ????Ƥϰʲ??Ǥ??롣
#define | InputHint | (1L << 0) |
#define | StateHint | (1L << 1) |
#define | IconPixmapHint | (1L << 2) |
#define | IconWindowHint | (1L << 3) |
#define | IconPositionHint | (1L << 4) |
#define | IconMaskHint | (1L << 5) |
#define | WindowGroupHint | (1L << 6) |
#define | UrgencyHint | (1L << 8) |
#define | AllHints | (InputHint|StateHint|IconPixmapHint| IconWindowHint|IconPositionHint| IconMaskHint|WindowGroupHint) |
typedef struct { long flags; Bool input; int initial_state; Pixmap icon_pixmap; Window icon_window; int icon_x, icon_y; Pixmap icon_mask; XID window_group; } XWMHints;
input ?????Фϡ????ץꥱ???????Ȥ????ϥե??????????ǥ??? ???????ɥ??ޥ͡????????????뤿?????Ѥ??????롣 ?ꥢ?륨???ơ??ȥɥ??֥??ե???????(real-estate driven focus)???Ȥ? X ?С??????? 10 ?????????Υ??ץꥱ?????????Τ褦?ˡ????Ϥ????Ԥ??뤬???? Ū?˥??֥??????ɥ??˥ե????????????ꤷ?ʤ?(?Ĥޤꡢ?ե????????????? ?ץå??????ǥ????ȤäƤ???)???ץꥱ?????????Ǥϡ????Υ????Ф? True ?????ꤹ?٤??Ǥ??롣 Ʊ?ͤˡ????????ɥ??ޥ͡??????ˤ??äƥȥåץ??٥륦?????ɥ??˥ե??????? ??Ϳ?????줿?????????ϥե????????????֥??????ɥ??????ꤵ???? ???ץꥱ?????????Ǥ⡢???Υ????Ф? True ?????ꤹ?٤??Ǥ??롣 ?????ܡ??ɤ????Ϥ?ɬ?פʤȤ??ˤ?????Ū?˥ե????????֥??????ɥ????? ?ꤹ?뤳?Ȥˤ??äƼ?ʬ???Ȥ????Ϥ??????????褦??(?Ĥޤꡢ?ե????????? ???Υץ????ǥ????ȤäƤ???)???ץꥱ?????????Ǥϡ????Υ????Ф? False ?????ꤹ?٤??Ǥ??롣 ?????ܡ??ɤ????Ϥ??????Ȥ??ʤ????ץꥱ?????????Ǥ⡢???Υ????Ф? False ?????ꤹ?٤??Ǥ??롣
?ץ????ǥ??Υ??????ɥ??ޥ͡??????ϡ?input ?????Ф? True ?Ǥ??륢?ץꥱ?????????Υȥåץ??٥륦?????ɥ??????ϥե????????????? ???뤳?Ȥˤ??äơ??ץå??????ǥ??Υ??ץꥱ?????????????Ϥ??????Ǥ????? ???ˤ??ʤ????Фʤ??ʤ??? ?ץå??????ǥ??Υ??????ɥ??ޥ͡??????ϡ????????٤??????ߥ???(?㤨?С? input ?????Ф? False ?Ǥ??륢?ץꥱ?????????????ϥե????????֥??????ɥ??????ꤷ???Ȥ?) ?????ϥե????????? PointerRoot ?˥ꥻ?åȤ??뤳?Ȥˤ??äơ??ץ????ǥ??Υ??ץꥱ?????????????ɥ??? ?͡????????˲????Ƥ??ޤ??ʤ??褦?????դ??ʤ????Фʤ??ʤ???
initial_state ?ե饰?????????ʲ??˼?????
#define | WithdrawnState | 0 | |
#define | NormalState | 1 | |
#define | IconicState | 3 |
UrgencyHint ?ե饰?? flags ?ե??????ɤ????ꤵ???Ƥ????С????饤?????Ȥϥ??????? ???????Ƥ??۵????Ǥ??ꡢ?桼????Ŭ???ʱ?????ɬ?פȤ??뤳?Ȥ??? ???????ɥ??ޥ͡??????Ϥ??Υե饰?????ꤵ???Ƥ????֡??桼???????դ??? ???????˲??餫??ư???롣 ???饤?????Ȥϡ??桼???????? urgency ?ե饰?ꥢ???뤿???β??餫?? ????(???????ɥ??? urgent ?ե饰?ξ????????¤??뤫??ñ?˥??顼?????ߤ? ??)???????????ɥ????ä????뤿???μ??ʤ??Ѱդ??ʤ????Фʤ??ʤ???
?֤???¶
??Ϣ????¶
XAllocClassHint(3X11), XAllocIconSize(3X11),
XAllocSizeHints(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 |