XrmUniqueQuark(3X11) | XLIB FUNCTIONS | XrmUniqueQuark(3X11) |
̾Á°¶
XrmUniqueQuark, XrmStringToQuark, XrmPermStringToQuark, XrmQuarkToString, XrmStringToQuarkList, XrmStringToBindingQuarkList - ¥ê¥½¡¼¥¹¤Î¥¯¥©¡¼¥¯¤òÁàºî¤¹¤ë
½ñ¼°¶
XrmQuark XrmUniqueQuark()
#define XrmStringToName(string) XrmStringToQuark(string) #define XrmStringToClass(string) XrmStringToQuark(string) #define XrmStringToRepresentation(string) XrmStringToQuark(string)
XrmQuark XrmStringToQuark(string)
char *string;
XrmQuark XrmPermStringToQuark(string)
char *string;
#define XrmStringToName(string) XrmStringToQuark(string) #define XrmStringToClass(string) XrmStringToQuark(string) #define XrmStringToRepresentation(string) XrmStringToQuark(string)
XrmQuark XrmStringToQuark(string)
char *string;
XrmQuark XrmPermStringToQuark(string)
char *string;
#define XrmNameToString(name) XrmQuarkToString(name) #define XrmClassToString(class) XrmQuarkToString(class) #define XrmRepresentationToString(type) XrmQuarkToString(type)
char *XrmQuarkToString(quark)
XrmQuark quark;
#define XrmStringToNameList(str, name) XrmStringToQuarkList((str), (name)) #define XrmStringToClassList(str,class) XrmStringToQuarkList((str), (class))
void XrmStringToQuarkList(string, quarks_return)
char *string;
XrmQuarkList quarks_return;
XrmStringToBindingQuarkList(string, bindings_return,
quarks_return)
char *string;
XrmBindingList bindings_return;
XrmQuarkList quarks_return;
°ú¤¿ô¶
- bindings_return
- ·ë¹ç¥ê¥¹¥È¤¬ÊÖ¤µ¤ì¤ë¡£
- quark
- Åù²Á¤Êʸ»úÎó¤òµá¤á¤ëÂоݤǤ¢¤ë¥¯¥©¡¼¥¯¤ò»ØÄꤹ¤ë¡£
- quarks_return
- ¥¯¥©¡¼¥¯¤Î¥ê¥¹¥È¤¬ÊÖ¤µ¤ì¤ë¡£
- string
- ³ä¤êÅö¤Æ¤é¤ì¤ë¥¯¥©¡¼¥¯¤«¥¯¥©¡¼¥¯¤Î¥ê¥¹¥È¤ËÂФ¹¤ëʸ»úÎó¤ò»ØÄꤹ¤ë¡£
ÀâÌÀ¶
´Ø¿ô XrmUniqueQuark ¤Ï¡¢¥ê¥½¡¼¥¹¥Þ¥Í¡¼¥¸¥ã¤¬Ç§¼±¤·¤Æ¤¤¤ë¤É¤Îʸ»úÎó¤âɽ¤µ¤Ê¤¤¤³¤È¤¬Êݾڤµ¤ì ¤ë¥¯¥©¡¼¥¯¤ò³ä¤êÅö¤Æ¤ë¡£
¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Ê¸»úÎó¤ò¥¯¥©¡¼¥¯É½¸½¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£ ʸ»úÎó¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬¥Û¥¹¥È¥Ý¡¼¥¿¥Ö¥ëʸ»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ç¤Ê¤¤¾ì ¹ç¡¢ÊÑ´¹¤ÎÆ°ºî¤Ï¼ÂÁõ¤Ë°Í¸¤¹¤ë¡£ XrmStringToQuark ¤ËÅϤ¹°ú¤¿ô string ¤Ï¡¢¤º¤Ã¤È³ä¤êÅö¤Æ¤é¤ì¤¿¤Þ¤Þ¤ÎÎΰè¤Ç¤¢¤ëɬÍפϤʤ¤¡£ ´Ø¿ô XrmPermStringToQuark ¤Ï XrmStringToQuark ¤È¤Û¤ÜƱ¤¸¤Ç¤¢¤ë¤¬¡¢°ú¤¿ô string ¤¬³ä¤êÅö¤Æ¤é¤ì¤¿¤Þ¤Þ¤ÎÎΰè¤Ç ¤¢¤ë¤³¤È¤ò Xlib ¤¬ÁÛÄꤷ¤Æ¤â¤è¤¤ÅÀ¤¬°Û¤Ê¤ë¡£¤·¤¿¤¬¤Ã¤Æ¡¢°ú¤¿ô string ¤Ï XrmQuarkToString ¤¬ÊÖ¤¹ÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
Í¿¤¨¤é¤ì¤¿¥¯¥©¡¼¥¯¤Ë¤Ä¤¤¤Æ¡¢ XrmStringToQuark ¤¬ NULL ¤Ç¤Ê¤¤ÃͤòÊÖ¤·¤¿¾ì¹ç¡¢¤½¤ì°Ê¹ß¤ÎÁ´¤Æ¤Î´Ø¿ô¸Æ¤Ó½Ð¤·¤ËÂФ·¤ÆƱ¤¸ ÃÍ(Ʊ°ì¤Î¥¢¥É¥ì¥¹)¤¬ÊÖ¤µ¤ì¤ë¡£
¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢¥¯¥©¡¼¥¯É½¸½¤òʸ»úÎó¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£ ´Ø¿ô¤ÎÊÖ¤êÃͤ¬»Ø¤¹Ê¸»úÎó¤ÎÊѹ¹¤ä²òÊü¤ò¹Ô¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£ ÊÖ¤µ¤ì¤ëʸ»úÎó¤Ï¡¢Ê¸»úÎó¤ò¥¯¥©¡¼¥¯¤ËÊÑ´¹¤¹¤ë´Ø¿ô¤ËÅϤµ¤ì¤¿¸µ¤Îʸ»úÎó ¤È¥Ð¥¤¥È¤Î¥ì¥Ù¥ë¤ÇÅù¤·¤¤¡£ ¤½¤Î¥¯¥©¡¼¥¯¤ËÂФ¹¤ëʸ»úÎó¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¡¢ XrmQuarkToString ¤Ï NULL ¤òÊÖ¤¹¡£ Í¿¤¨¤é¤ì¤¿¥¯¥©¡¼¥¯¤ËÂФ·¤Æ XrmQuarkToString ¤¬ NULL ¤Ç¤Ê¤¤ÃͤòÊÖ¤·¤¿¾ì¹ç¡¢¤½¤ì°Ê¹ß¤ÎÁ´¤Æ¤Î´Ø¿ô¸Æ¤Ó½Ð¤·¤ËÂФ·¤ÆƱ¤¸ ÃÍ(Ʊ°ì¤Î¥¢¥É¥ì¥¹)¤¬ÊÖ¤µ¤ì¤ë¡£
¤³¤ì¤é¤Î´Ø¿ô¤Ï¡¢Ê¸»úÎó¤Î¥¯¥©¡¼¥¯É½¸½¤Ø¤ÎÊÑ´¹¤Ë»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£ ʸ»úÎó¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬¥Û¥¹¥È¥Ý¡¼¥¿¥Ö¥ëʸ»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ç¤Ê¤¤¾ì ¹ç¡¢ ÊÑ´¹¤ÎÆ°ºî¤Ï¼ÂÁõ°Í¸¤Ç¤¢¤ë¡£ XrmStringToQuark ¤ËÅϤ¹°ú¤¿ô string ¤Ï¡¢¤º¤Ã¤È³ä¤êÅö¤Æ¤é¤ì¤¿¤Þ¤Þ¤ÎÎΰè¤Ç¤¢¤ëɬÍפϤʤ¤¡£ ´Ø¿ô XrmPermStringToQuark ¤Ï XrmStringToQuark ¤È¤Û¤ÜƱ¤¸¤Ç¤¢¤ë¤¬¡¢Xlib ¤¬°ú¤¿ô string ¤¬³ä¤êÅö¤Æ¤é¤ì¤¿¤Þ¤Þ¤ÎÎΰè¤Ç ¤¢¤ë¤³¤È¤òÁÛÄꤷ¤Æ¤â¤è¤¤ÅÀ¤¬°Û¤Ê¤ë¡£¤·¤¿¤¬¤Ã¤Æ¡¢¤³¤Î´Ø¿ô¤Ç¤Ï°ú¤¿ô string ¤ò XrmQuarkToString ¤ËÊÖ¤µ¤ì¤ëÃͤȤ·¤Æ»È¤¦¤³¤È¤¬¤Ç¤¤ë¡£
Í¿¤¨¤é¤ì¤¿¥¯¥©¡¼¥¯¤Ë¤Ä¤¤¤Æ¡¢ XrmStringToQuark ¤¬ NULL ¤Ç¤Ê¤¤ÃͤòÊÖ¤·¤¿¾ì¹ç¡¢¤½¤ì°Ê¹ß¤ÎÁ´¤Æ¤Î´Ø¿ô¸Æ¤Ó½Ð¤·¤ËÂФ·¤ÆƱ¤¸ ÃÍ(Ʊ°ì¤Î¥¢¥É¥ì¥¹)¤¬ÊÖ¤µ¤ì¤ë¡£
´Ø¿ô XrmStringToQuarkList ¤Ï NULL ¤Ç½ª¤ï¤ëʸ»úÎó(°ìÈÌŪ¤Ë¤Ï´°Á´¤Ë¸ÂÄꤵ¤ì¤¿Ì¾Á°)¤ò¥¯¥©¡¼¥¯¤Î¥ê¥¹ ¥È¤ËÊÑ´¹¤¹¤ë¡£ ¸Æ¤Ó½Ð¤·Â¦¤Ï¡¢ XrmStringToQuarkList ¤ò¸Æ¤Ó½Ð¤¹Á°¤Ë¡¢¥¯¥©¡¼¥¯¤Î¥ê¥¹¥È¤ò³ÊǼ¤¹¤ë¤Î¤Ë½½Ê¬¤Ê¥á¥â¥ê¤ò³ä¤êÅö¤Æ¤Æ ¤ª¤«¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ ¤³¤Îʸ»úÎó¤Ï͸ú¤Ê ResourceName ·Á¼°¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤(15.1 Àá¤ò»²¾È)¡£ ¤³¤Îʸ»úÎó¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬¥Û¥¹¥È¥Ý¡¼¥¿¥Ö¥ëʸ»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ç¤Ê ¤¤¾ì¹ç¡¢ÊÑ´¹¤ÎÆ°ºî¤Ï¼ÂÁõ°Í¸¤Ç¤¢¤ë¡£
·ë¹ç¥ê¥¹¥È¤Ï¡¢ XrmBindingList ·¿¤Ç¤¢¤ê¡¢¥¯¥é¥¹¤ä̾Á°¤Î¥ê¥¹¥È¤ÎÍ×ÁǤ¬¶¯¤¯¤¢¤ë¤¤¤Ï´Ë¤¯´ØÏ¢¤Å¤±¤µ¤ì¤Æ¤¤ ¤ë(¤Ä¤Þ¤ê¡¢¥ï¡¼¥ë¥É¥«¡¼¥É¤ò»È¤Ã¤¿Ãæ´ÖÍ×ÁǤ¬»ØÄꤵ¤ì¤Æ¤¤¤ë)¤³¤È¤ò¼¨¤¹¡£
typedef enum {XrmBindTightly, XrmBindLoosely} XrmBinding, *XrmBindingList;
XrmBindTightly ¤Ï¡¢¥Ô¥ê¥ª¥É¤¬Í×ÁǤò¶èÀڤäƤ¤¤ë¤³¤È¼¨¤¹¡£¤Þ¤¿¡¢ XrmBindLoosely ¤Ï¡¢¥¢¥¹¥¿¥ê¥¹¥¯¤¬Í×ÁǤò¶èÀڤäƤ¤¤ë¤³¤È¤ò¼¨¤¹¡£
´Ø¿ô XrmStringToBindingQuarkList ¤Ï¡¢»ØÄꤷ¤¿Ê¸»úÎó¤ò·ë¹ç¥ê¥¹¥È¤È¥¯¥©¡¼¥¯¤Î¥ê¥¹¥È¤ËÊÑ´¹¤¹¤ë¡£ ¸Æ¤Ó½Ð¤·Â¦¤Ï¡¢ XrmStringToBindingQuarkList ¤ò¸Æ¤Ó½Ð¤¹Á°¤Ë¡¢¥¯¥©¡¼¥¯¤Î¥ê¥¹¥È¤È·ë¹ç¥ê¥¹¥È¤ò³ÊǼ¤¹¤ë¤Î¤Ë ½½Ê¬¤Ê¥á¥â¥ê¤ò³ä¤êÅö¤Æ¤Æ¤ª¤«¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ ʸ»úÎó¤Î¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬¥Û¥¹¥È¥Ý¡¼¥¿¥Ö¥ëʸ»ú¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤Ç¤Ê¤¤¾ì ¹ç¡¢ÊÑ´¹¤ÎÆ°ºî¤Ï¼ÂÁõ°Í¸¤Ç¤¢¤ë¡£ ¥ê¥¹¥È¤¬´Þ¤àÍ×ÁÇ̾¤Ï¡¢¥Ô¥ê¥ª¥É¤«¥¢¥¹¥¿¥ê¥¹¥¯¤Ç¶èÀÚ¤é¤ì¤Æ¤¤¤ë¡£ ʸ»úÎó¤ÎºÇ½é¤Îʸ»ú¤¬¥Ô¥ê¥ª¥É¤«¥¢¥¹¥¿¥ê¥¹¥¯¤Ç¤Ï¤Ê¤¤¾ì¹ç¤Ï¡¢¥Ô¥ê¥ª¥É¤Ç¤¢ ¤ë¤â¤Î¤È¤·¤Æ°·¤ï¤ì¤ë¡£ Î㤨¤Ð ``*a.b*c'' ¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤ë:
¥¯¥©¡¼¥¯ a b c
·ë¹ç ´Ë¤¤ ¶¯¤¤ ´Ë¤¤
´ØÏ¢¹àÌܶ
XrmGetResource(3X11), XrmInitialize(3X11),
XrmMergeDatabases(3X11), XrmPutResource(3X11)
Xlib - C Language X Interface
Release 6.5 | X Version 11 |