Scroll to navigation

XmbTextListToTextProperty(3X11) XLIB FUNCTIONS XmbTextListToTextProperty(3X11)

̾??

XmbTextListToTextProperty, XwcTextListToTextProperty, Xutf8TextListToTextProperty, XmbTextPropertyToTextList, XwcTextPropertyToTextList, Xutf8TextPropertyToTextList, XwcFreeStringList, XDefaultString - ?ƥ????ȥꥹ?Ȥȥƥ????ȥץ??ѥƥ???¤?Τ????ߤ??Ѵ?????

????

int XmbTextListToTextProperty(display, list, count, style, text_prop_return)
Display *display;
char **list;
int count;
XICCEncodingStyle style;
XTextProperty *text_prop_return;

int XwcTextListToTextProperty(display, list, count, style, text_prop_return)
Display *display;
wchar_t **list;
int count;
XICCEncodingStyle style;
XTextProperty *text_prop_return;

int Xutf8TextListToTextProperty(display, list, count, style, text_prop_return)
Display *display;
char **list;
int count;
XICCEncodingStyle style;
XTextProperty *text_prop_return;

int XmbTextPropertyToTextList(display, text_prop, list_return, count_return)
Display *display;
XTextProperty *text_prop;
char ***list_return;
int *count_return;

int XwcTextPropertyToTextList(display, text_prop, list_return, count_return)
Display *display;
XTextProperty *text_prop;
wchar_t ***list_return;
int *count_return;

int Xutf8TextPropertyToTextList(display, text_prop, list_return, count_return)
Display *display;
XTextProperty *text_prop;
char ***list_return;
int *count_return;

void XwcFreeStringList(list)
wchar_t **list;

char *XDefaultString()

??????

X ?????Фؤ???³?????ꤹ?롣
NULL ʸ???ǽ?????ʸ?????Υꥹ?Ȥ????ꤹ?롣
???ꤷ??ʸ?????ο??????ꤹ?롣
?ץ??ѥƥ??򥨥󥳡??ɤ?????ˡ?????ꤹ?롣
XTextProperty ??¤?Τ??֤????롣
???Ѥ??? XTextProperty ??¤?Τ????ꤹ?롣
NULL ʸ???ǽ?????ʸ?????Υꥹ?Ȥ??֤????롣
ʸ???? ?ο????֤????롣
????????ʸ?????Υꥹ?Ȥ????ꤹ?롣

????

?ؿ? XmbTextListToTextProperty, XwcTextListToTextProperty, Xutf8TextListToTextProperty ?ϻ??ꤷ?? XTextProperty ???ͤȤ??? NULL ʸ???Ƕ??ڤ??줿???Ǥ????ʤ뽸???????ꤹ?롣?????????? ???뽸???ϡ?NULL ʸ???ǽ??????ƥ?????ʸ???󤫤??ʤ????ꤷ???ꥹ?Ȥ??? ?礷?????ΤǤ??롣 ???Ϥ????ƥ????Ȥϸ??ߤΥ????????Υ??󥳡??ǥ?????( XmbTextListToTextProperty ?????? XwcTextListToTextProperty ?ξ???)?ޤ??? UTF-8 ???󥳡??ǥ?????( Xutf8TextListToTextProperty ?ξ???)??Ϳ???ʤ????Фʤ??ʤ???

???????δؿ??? text_prop_return ?? encoding ?ե??????ɤˡ????ꤷ?? ?ǥ????ץ쥤???Ф??? Atom ?????ꤹ?롣???? Atom ?ϻ??ꤷ?????????뤫?????ޤ륨?󥳡??ǥ??󥰤򼨤??? ???????δؿ??ϼ??ˡ????ꤷ???ƥ????ȥꥹ?Ȥ򤳤Υ??󥳡??ǥ??󥰤??Ѵ? ???? text_prop_return ?ե??????ɤ??????롣 ?????????? XStringStyle ???뤤?? XCompoundTextStyle ?????ꤵ?줿?????ϡ????Υ??󥳡??ǥ??󥰤Ϥ??줾?? ``STRING'' ?? ``COMPOUND_TEXT'' ?Ȥʤ롣 ?????????? XUTF8StringStyle ?????ꤵ?줿?????ϡ????󥳡??ǥ??󥰤? ``UTF8_STRING'' ?Ȥʤ?(?????? XFree86 4.0.2 ??Ƴ?????줿 XFree86 ?ȼ??γ?ĥ?Ǥ??롣???줬?Ȥ??뤫?? ?????ϥޥ??? X_HAVE_UTF8_STRING ??Ƚ???Ǥ???)?? ?????????? XTextStyle ?????ꤵ?줿?????ˤϡ????󥳡??ǥ??󥰤ϸ??ߤΥ????????Υ??󥳡??ǥ??? ???Ȥʤ롣 ?????????? XStdICCTextStyle ???ؼ????줿???硢?ƥ????Ȥ??????? STRING ???Ѵ???ǽ?Ǥ????? ???󥳡??ǥ??󥰤? ``STRING'' ?ˡ??????Ǥʤ????? ``COMPOUND_TEXT'' ?? ?ʤ롣 ??ü?? NULL ?Х??Ȥ? text_prop_return ?? value ?ե??????ɤ??????? ??Ǽ?????뤬???????? nitems ?Υ????Фο??ˤϴޤ??????ʤ???

??????ʸ????(XTextProperty ?? value ?ե???????)?˳??????Ƥ??????꤬?? ʬ?ˤʤ????硢?ؿ??? XNoMemory ???֤??? ???ߤΥ??????뤬???ݡ??Ȥ????Ƥ??ʤ????硢?ؿ??? XLocaleNotSupported ???֤??? ?ɤ????Υ??顼?ξ????⡢?ؿ??? text_prop_return ???ͤ????ꤷ?ʤ???

?ؿ??? XLocaleNotSupported ???֤??ʤ????ɤ??????μ¤??Τ뤿???ˤϡ??ؿ? XSupportsLocale ?????Ѥ??뤳?ȡ?

Ϳ?????줿?ƥ????Ȥ????Ƥ????ꤵ?줿???󥳡??ǥ??󥰤??Ѵ???ǽ?Ǥʤ??? ?硢?ؿ????Ѵ??Ǥ??ʤ?ʸ???ο????֤??? ?Ѵ??Ǥ??ʤ?ʸ???Ϥ??줾?????????????ĥ??󥳡??ǥ???????ͭ?Υǥե????? ʸ???????Ѵ??????롣 ?嵭?ʳ??ξ????ˤϡ??ؿ??? Success ???֤??? XStringStyle ?????????ƤΥ??????????Ф??Ƥϡ??ƥ????Ȥ????????Ѵ??Ǥ??뤳?Ȥ??ݾڤ? ???Ƥ??????????դ??뤳?ȡ?

XTextProperty ??¤?Τ? value ?ե??????ɤΥ????????????????ˤϡ? XFree ?????Ѥ??뤳?ȡ?

?ؿ? XmbTextPropertyToTextList, XwcTextPropertyToTextList, Xutf8TextPropertyToTextList ?ϡ?Ϳ?????줿 XTextProperty ??¤?Τ?????????(NULL ʸ???Ƕ??ڤ????Ƥ???)??ɽ???ƥ?????ʸ?????? ?ꥹ?Ȥ??֤??? ?֤?????ʸ?????Υ??󥳡??ǥ??󥰤ϸ??ߤΥ????????Υ??󥳡??ǥ?????( XmbTextPropertyToTextList ?????? XwcTextPropertyToTextList ?ξ???)?ޤ??? UTF-8 ( Xutf8TextPropertyToTextList ?ξ???)?Ǥ??롣 text_prop ???Υǡ????ϥե????ޥå? 8 ?Ǥʤ????Фʤ??ʤ???

?ץ??ѥƥ???ʣ????????(?㤨?С??Ф??Ф??Υƥ????ȥ??쥯??????ʸ????)?? NULL ?Х??ȤǶ??ڤ????롣 ?ץ??ѥƥ??????Ƥ? NULL ?ǽ?????ɬ?פϤʤ??? ??ü?? NULL ʸ???? text_prop.nitems ?˴ޤޤ??ƤϤʤ??ʤ???

?ꥹ?ȤȤ??????Ǥ˳??????Ƥ뽽ʬ?ʥ????꤬?ʤ????硢?ؿ? XmbTextPropertyToTextList, XwcTextPropertyToTextList, Xutf8TextPropertyToTextList ?? XNoMemory ???֤??? ???ߤΥ??????뤬???ݡ??Ȥ????Ƥ??ʤ????硢?ؿ??? XLocaleNotSupported ???֤??? ?????ʳ??ξ??硢?⤷ text_prop ?? encoding ?ե??????ɤ򸽺ߤΥ??????? ?Υ??󥳡??ǥ??󥰤??Ѵ????뤳?Ȥ??Ǥ??ʤ????С??ؿ??? XConverterNotFound ???֤??? ???ݡ??Ȥ????Ƥ??????????????Ф??Ƥϡ? XSupportsLocale ?????ߤΥ??????????Ф??? True ???֤??ΤǤ????С? COMPOUND_TEXT, STRING, UTF8_STRING, ???ߤΥ????????Υ??󥳡??ǥ????? ?????Υ????С?????¸?ߤ??ݾڤ?????(?????????ºݤΥƥ????Ȥ??Ѵ??Բ?ǽ ??ʸ?????ޤफ?⤷???ʤ?)?? ¾?Υ??󥳡??ǥ??󥰤Ȥ??Ѵ??ˤĤ??Ƥϼ?????¸?Ǥ??롣 ?ʾ??Τ??????Υ??顼?ξ??????ؿ????֤??ͤ????ꤷ?ʤ???

?????ʳ??ξ????ˤϡ? XmbTextPropertyToTextList, XwcTextPropertyToTextList, Xutf8TextPropertyToTextList ?? list_return ?? NULL ʸ???ǽ??????ƥ?????ʸ?????Υꥹ?Ȥ??֤??? count_return ?˥ƥ?????ʸ?????ο????֤???

?⤷??text_prop ?? value ?ե??????ɤ򸽺ߤΥ????????Υ??󥳡??ǥ????? ?˴????ˤ??Ѵ??Ǥ??ʤ??????ˤϡ??ؿ????Ѵ??Ǥ??ʤ?ʸ???ο????֤??? ?Ѵ??Ǥ??ʤ????줾????ʸ???ϡ????ߤΥ????????˴ޤޤ졢???? ???ߤΥ???????????ͭ??ʸ???????Ѵ??????롣 ????ʸ???????ͤ??????ˤ? XDefaultString ?????Ѥ??롣 ?????ʳ??ξ??硢 XmbTextPropertyToTextList, XwcTextPropertyToTextList, Xutf8TextPropertyToTextList ?? Success ???֤???

XmbTextPropertyToTextList ?? Xutf8TextPropertyToTextList ???֤????ꥹ?ȤȤ??????ƤΤ????Υ????????????????ˤ? XFreeStringList ?????Ѥ??롣 XwcTextPropertyToTextList ???֤????ꥹ?ȤȤ??????ƤΤ????Υ????????????????ˤ? XwcFreeStringList ?????Ѥ??롣

?ؿ? XwcFreeStringList ?ϡ? XwcTextPropertyToTextList ?ˤ??äƳ??????Ƥ??줿???????????????롣

?ؿ? XDefaultString ?? Xlib ??(?㤨?С? XmbTextPropertyToTextList ??)?ƥ??????Ѵ????Ѥ????ǥե?????ʸ???????֤??? ?ǥե?????ʸ?????ϸ??ߤΥ?????????ʸ?????Ǥ??ꡢ?ƥ??????Ѵ??????Ѵ??? ???ʤ?ʸ???????줿?Ȥ??˽??Ϥ????롣 XDefaultString ???֤?ʸ???󤬶?ʸ????("")?Ǥ??????硢?Ѵ????줿?ƥ????Ȥˤϲ??????? ?????ʤ??? XDefaultString ?? NULL ???֤??ʤ???

XDefaultString ???֤?ʸ?????ϡ??ƥ??????????Υǥե?????ʸ?????Ȥ???Ω?Ǥ??롣 XFontSet ???Ф????ǥե?????ʸ?????????????????? XCreateFontSet ?ι??򻲾Ȥ??뤳?ȡ?

undefined. Xlib ?????Ƥδؿ??ϡ???????ʸ???????ɤ?Ϳ?????줿?Ȥ???ư????̤?????? ???롣

?֤?????ʸ?????? NULL ʸ???ǽ????롣 ?????? Xlib ????ͭ???Ƥ????Τǡ????饤?????Ȥ??ѹ????????򤷤ƤϤʤ??ʤ??? ?????ϸ??ߤΥ??????뤬?ѹ????줿???˲????????롣 ???????????ޤǤϡ?Xlib ?ˤ??ä??ѹ??????뤳?ȤϤʤ???

?ؿ? Xutf8TextListToTextProperty ?????? Xutf8TextPropertyToTextList ?? XFree86 4.0.2 ????Ƴ?????줿 XFree86 ?ȼ??γ?ĥ?Ǥ??롣???δؿ??? ???뤫?ɤ????ϥޥ??? X_HAVE_UTF8_STRING ??Ƚ???Ǥ??롣

??¤??

XTextProperty ??¤?Τ????Ƥ򼨤???

typedef struct {
	unsigned char *value;	
	Atom encoding;	
	int format;	
	unsigned long nitems;	
} XTextProperty;


XICCEncodingStyle ??¤?Τ????Ƥ򼨤???

#define XNoMemory -1
#define XLocaleNotSupported -2
#define XConverterNotFound -3
typedef enum {
	XStringStyle,		
	XCompoundTextStyle,	
	XTextStyle,		
	XStdICCTextStyle,	
	XUTF8StringStyle	
} XICCEncodingStyle;


??Ϣ????

XSetTextProperty(3X11), XStringListToTextProperty(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11