XtSetArg(3Xt) | XT FUNCTIONS | XtSetArg(3Xt) |
̾Á°¶
XtSetArg, XtMergeArgLists - ArgList ¤ÎÀßÄꡦ¥Þ¡¼¥¸¤ò¹Ô¤¦
½ñ¼°¶
XtSetArg(arg, name, value)
Arg arg;
String name;
XtArgVal value;
ArgList XtMergeArgLists(args1, num_args1,
args2, num_args2)
ArgList args1;
Cardinal num_args1;
ArgList args2;
Cardinal num_args2;
°ú¤¿ô¶
- arg
- ÀßÄꤹ¤ë Arg ¹½Â¤ÂΤò»ØÄꤹ¤ë¡£
- args1
- ºÇ½é¤Î ArgList ¤ò»ØÄꤹ¤ë¡£
- args2
- 2 ÈÖÌܤΠArgList ¤ò»ØÄꤹ¤ë¡£
- num_args1
- ºÇ½é¤Î°ú¤¿ô¥ê¥¹¥È¤Î°ú¤¿ô¤Î¿ô¤ò»ØÄꤹ¤ë¡£
- num_args2
- 2 ÈÖÌܤΰú¤¿ô¥ê¥¹¥È¤Î°ú¤¿ô¤Î¿ô¤ò»ØÄꤹ¤ë¡£
- name
- ¥ê¥½¡¼¥¹Ì¾¤ò»ØÄꤹ¤ë¡£
- value
- ¥ê¥½¡¼¥¹¤¬ XtArgVal ¤ÎÂ礤µ°Ê²¼¤Ç¤¢¤ì¤Ð¤½¤ÎÃÍ¡¢µÕ¤ËÂ礤±¤ì¤Ð¥¢¥É¥ì¥¹¤ò»ØÄꤹ¤ë¡£
ÀâÌÀ¶
¥ß¥¹¤òºÇ¾®¸Â¤ËÍÞ¤¨¤ë¤¿¤á¡¢ XtSetArg ´Ø¿ô¤Ï¶Ë¤á¤ÆÆÃÄê¤Î·Á¼°¤Ç»ÈÍѤµ¤ì¤ë¡£Î㤨¤Ð¡§
Arg args[20]; int n; n = 0; XtSetArg(args[n], XtNheight, 100); n++; XtSetArg(args[n], XtNwidth, 200); n++; XtSetValues(widget, args, n);
¤Þ¤¿¡¢°ú¤¿ô¤Î¥ê¥¹¥È¤òÀÅŪ¤ËÀë¸À¤·¤Æ¤«¤é XtNumber ¤ò»ÈÍѤ¹¤ëÊýË¡¤â¤¢¤ë¡§
static Args args[] = { {XtNheight, (XtArgVal) 100}, {XtNwidth, (XtArgVal) 200}, }; XtSetValues(Widget, args, XtNumber(args));
¼«Æ°¥¤¥ó¥¯¥ê¥á¥ó¥È¤ä¼«Æ°¥Ç¥¯¥ê¥á¥ó¥È¤ò XtSetArg ¤ÎºÇ½é¤Î°ú¤¿ô¤Ë»ÈÍѤ·¤Æ¤Ï¤Ê¤é¤Ê¤¤¤³¤È¤ËÃí°Õ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£ ¤³¤ì¤Ï XtSetArg ¤¬ºÇ½é¤Î°ú¤¿ô¤ò 2 ²ó»²¾È¤¹¤ë¥Þ¥¯¥í¤ò¼ÂÁõ¤·¤Æ¤¤¤ë¤¿¤á¤Ç¤¢¤ë¡£
XtMergeArgLists ´Ø¿ô¤Ï»ØÄꤵ¤ì¤¿ 2 ¤Ä¤Î ArgList ¹½Â¤ÂΤò´Þ¤á¤ë¤³¤È¤Î¤Ç¤¤ë½½Ê¬¤Êµ²±Îΰè¤ò³ä¤êÅö¤Æ¡¢¤½¤ÎÃæ¤Ë¤³¤Î 2 ¤Ä ¤ò¥³¥Ô¡¼¤¹¤ë¡£ ¥³¥Ô¡¼¤µ¤ì¤¿ÆâÍƤˤĤ¤¤Æ¤Ï¥Á¥§¥Ã¥¯¤µ¤ì¤Ê¤¤»ö¤ËÃí°Õ¤¹¤ë¤³¤È¡£ ¿·¤¿¤ËÀ¸À®¤µ¤ì¤¿ ArgList ¤¬ÉÔÍפˤʤ俤Ȥ¤Ï XtFree ¤Ë¤è¤Ã¤Æ²òÊü¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
´ØÏ¢¹àÌܶ
XtOffset(3Xt)
X
¥Ä¡¼¥ë¥¥Ã¥È
¥¤¥ó¥È¥ê¥ó¥·¥¯¥¹
- C
¸À¸ì¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹
Xlib - C ¸À¸ì X
¥¤¥ó¥¿¡¼¥Õ¥§¥¤¥¹
Release 6.5 | X Version 11 |