Scroll to navigation

XAllocClassHint(3X11) XLIB FUNCTIONS XAllocClassHint(3X11)

̾??

XAllocClassHint, XSetClassHint, XGetClassHint, XClassHint - ???饹?ҥ??ȹ?¤?Τγ??????Ƥȥ??????ɥ??? WM_CLASS ?ץ??ѥƥ??????ꡦ????

????

XClassHint *XAllocClassHint()

XSetClassHint(display, w, class_hints)
Display *display;
Window w;
XClassHint *class_hints;

Status XGetClassHint(display, w, class_hints_return)
Display *display;
Window w;
XClassHint *class_hints_return;

??????

X ?????Фؤ???³?????ꤹ?롣
???Ѥ????? XClassHint ??¤?Τ????ꤹ?롣
XClassHint ??¤?Τ??֤????롣
???????ɥ??????ꤹ?롣

????

?ؿ? XAllocClassHint ?? XClassHint ??¤?Τ????????ơ????ι?¤?ΤؤΥݥ??󥿤??֤??? XClassHint ??¤?Τ? pointer ?ե??????ɤ? NULL ?ǽ??????????????????դ??뤳?ȡ? ??ʬ?ʥ????꤬???ݤǤ??ʤ????硢 XAllocClassHint ?? NULL ???֤??? ???ι?¤?Τ??Ф??Ƴ??????Ƥ??줿?????????????????ˤϡ? XFree ?????Ѥ??뤳?ȡ?

The ?ؿ? XSetClassHint ?ϻ??ꤷ?????????ɥ??Υ??饹?ҥ??Ȥ????ꤹ?롣 ʸ?????Υ??󥳡??ǥ??󥰤??ۥ??ȥݡ????֥?ʸ?????󥳡??ǥ??󥰤Ǥʤ??? ?硢???̤ϼ?????¸?Ǥ??롣

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

?ؿ? XGetClassHint ?ϡ????ꤷ?????????ɥ??Υ??饹?ҥ??Ȥ???Ϳ?????줿??¤?ΤΥ????Ф??֤??? ?????Ф??֤??ǡ????Υ??󥳡??ǥ??󥰤? Latin ?ݡ????֥?ʸ?????󥳡??ǥ? ?󥰤ʤ??С??ؿ????֤?ʸ?????Υ??󥳡??ǥ??󥰤ϥۥ??ȥݡ????֥?ʸ???? ?󥳡??ǥ??󥰤Ǥ??롣 ?????Ǥʤ??????η??̤ϼ?????¸?Ǥ??롣 ???δؿ????????????????ˤ? 0 ?Ǥʤ????ơ????????֤??????Ԥ????????ˤ? ???ơ??????Ȥ??? 0 ???֤??? ʸ???? res_name ?? res_class ???Ȥ????ä????˲????????ˤϡ????줾???? ?Ф??? XFree ???Ԥʤ????ȡ?

XGetClassHint ?ϥ??顼 BadWindow ?򵯤??????Ȥ????롣

?ץ??ѥƥ?

???ץꥱ?????????ץ????????ˤ??äƥ??åȤ??졢???????ɥ??ޥ͡??????䥻?? ???????ޥ͡????㤬?꥽?????ǡ????١??????饢?ץꥱ?????????Υ꥽?????? ?????Ǥ????褦?ˤ??롣

??¤??

XClassHint ??¤?Τ????Ƥ򼨤???

typedef struct {
	char *res_name;
	char *res_class;
} XClassHint;


res_name ?????Фϥ??ץꥱ??????????̾???Ǥ??ꡢ res_class ?ϥ??ץꥱ?????????Υ??饹?Ǥ??롣 ???Υץ??ѥƥ??????ꤵ???Ƥ???̾???ϡ?WM_NAME ?Ȥ??????ꤵ???Ƥ??? ̾???Ȥϰۤʤ????礬???????????դ??뤳?ȡ? ?ĤޤꡢWM_NAME ?ϥ????ȥ??С???ɽ?????٤????ΤǤ??ꡢ???????äư??? Ū?ʾ????????Ĥ??Ȥ?????(?㤨?С????ǥ????ΥХåե??θ??ߤΥե?????̾)?? ??????WM_CLASS ?ΰ????Ȥ??ƻ??ꤵ????̾???ϡ??꥽?????ǡ????١??????? ???ץꥱ?????????Υ꥽???????????Ф????˻Ȥ????륢?ץꥱ???????????? ????̾???Ǥ??롣

?֤???

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

??Ϣ????

XAllocIconSize(3X11), XAllocSizeHints(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