XtCreateWidget(3Xt) | XT FUNCTIONS | XtCreateWidget(3Xt) |
̾Á°¶
XtCreateWidget, XtVaCreateWidget, XtCreateManagedWidget, XtVaCreateManagedWidget, XtDestroyWidget - ¥¦¥£¥¸¥§¥Ã¥È¤òÀ¸À®¡¦ÇË´þ¤¹¤ë
½ñ¼°¶
Widget XtCreateWidget(name, widget_class,
parent, args, num_args)
String name;
WidgetClass widget_class;
Widget parent;
ArgList args;
Cardinal num_args;
Widget XtVaCreateWidget(name, widget_class,
parent, ...)
String name;
WidgetClass widget_class;
Widget parent;
Widget XtCreateManagedWidget(name, widget_class,
parent, args, num_args)
String name;
WidgetClass widget_class;
Widget parent;
ArgList args;
Cardinal num_args;
Widget XtVaCreateManagedWidget(name, widget_class,
parent, ...)
String name;
WidgetClass widget_class;
Widget parent;
void XtDestroyWidget(w)
Widget w;
°ú¤¿ô¶
- args
- ¥ê¥½¡¼¥¹¤Î¥Ç¥Õ¥©¥ë¥ÈÃͤò¾å½ñ¤¤¹¤ë°ú¤¿ô¥ê¥¹¥È¤ò»ØÄꤹ¤ë¡£
- name
- À¸À®¤¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤Î¥ê¥½¡¼¥¹Ì¾¤ò»ØÄꤹ¤ë¡£ ¤³¤ì¤Ï¥ê¥½¡¼¥¹¤Î¼èÆÀ¤Ë»È¤ï¤ì¤ë¤Î¤Ç¡¢Æ±¤¸¿Æ¤ò»ý¤Ä¾¤Î¤É¤Î¥¦¥£¥¸¥§¥Ã¥È¤È ¤âƱ¤¸¤Ç¤¢¤Ã¤Æ¤Ï¤Ê¤é¤Ê¤¤¡£
- num_args
- °ú¤¿ô¥ê¥¹¥ÈÆâ¤Î°ú¤¿ô¤Î¿ô¤ò»ØÄꤹ¤ë¡£
- parent
- ¿Æ¥¦¥£¥¸¥§¥Ã¥È¤ò»ØÄꤹ¤ë¡£
- w
- ¥¦¥£¥¸¥§¥Ã¥È¤ò»ØÄꤹ¤ë¡£
- widget_class
- À¸À®¤µ¤ì¤ë¥¦¥£¥¸¥§¥Ã¥È¤ËÂФ¹¤ë¥¦¥£¥¸¥§¥Ã¥È¥¯¥é¥¹¤Ø¤Î¥Ý¥¤¥ó¥¿¤ò»ØÄꤹ¤ë¡£
- ...
- ¥Ç¥Õ¥©¥ë¥È¤Î¥ê¥½¡¼¥¹Ãͤò¾å½ñ¤¤¹¤ë²ÄÊÑĹ°ú¤¿ô¥ê¥¹¥È¤ò»ØÄꤹ¤ë¡£
ÀâÌÀ¶
´Ø¿ô XtCreateWidget ¤Ï¡¢¥¦¥£¥¸¥§¥Ã¥ÈÀ¸À®Áàºî¤ÎÂçÉôʬ¤ò¹Ô¤¦¡£
- ¤³¤Î¥¯¥é¥¹¤È¤½¤ÎÁ´¤Æ¤Î¥¹¡¼¥Ñ¡¼¥¯¥é¥¹¤ËÂФ·¤Æ¡¢class_initialize ¼ê³¤ ¤¬¸Æ¤Ð¤ì¤¿¤«¤É¤¦¤«¥Á¥§¥Ã¥¯¤¹¤ë¡£¸Æ¤Ð¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¡¢¥¹¡¼¥Ñ¡¼¥¯¥é¥¹¤«¤é ¥µ¥Ö¥¯¥é¥¹¤Î½ç¤ËɬÍפʸƤӽФ·¤ò¹Ô¤¦¡£
- ¥¦¥£¥¸¥§¥Ã¥È¤Î¥¤¥ó¥¹¥¿¥ó¥¹¤ËÂФ¹¤ë¥á¥â¥ê¤ò³ä¤êÅö¤Æ¤ë¡£
- ¿Æ¥¯¥é¥¹¤¬ constraintWidgetClass ¤Î¥µ¥Ö¥¯¥é¥¹¤Ê¤é¤Ð¡¢¿Æ¥¦¥£¥¸¥§¥Ã¥È¤Î constraint ¾ðÊó¤Î¤¿¤á¤Î¥á¥â¥ê¤ò ³ä¤êÅö¤Æ¡¢¤³¤ÎÎΰè¤Î¥¢¥É¥ì¥¹¤ò constraints ¥Õ¥£¡¼¥ë¥É¤Ë³ÊǼ¤¹¤ë¡£
- ¥³¥¢¤ÎÈó¥ê¥½¡¼¥¹¥Ç¡¼¥¿¤Î¥Õ¥£¡¼¥ë¥É¤ò½é´ü²½¤¹¤ë(Î㤨¤Ð¡¢parent ¤ä visible Åù)¡£
- ¤³¤Î¥¯¥é¥¹¤äÁ´¤Æ¤Î¥¹¡¼¥Ñ¡¼¥¯¥é¥¹¤ËÂФ·¤Æ»ØÄꤵ¤ì¤¿¥ê¥½¡¼¥¹¤Î¥ê¥¹¥È¤ò»È¤Ã ¤Æ¡¢¥ê¥½¡¼¥¹¤Î¥Õ¥£¡¼¥ë¥É(Î㤨¤Ð¡¢background_piexel Åù)¤ò½é´ü²½¤¹¤ë¡£
- ¿Æ¥¦¥£¥¸¥§¥Ã¥È¤Î¥¯¥é¥¹¤¬ constraintWidgetClass ¤Î¥µ¥Ö¥¯¥é¥¹¤Ê¤é¤Ð¡¢constraint ¾ðÊó¤Î¥ì¥³¡¼¥ÉÍѤΥ꥽¡¼¥¹¤Î¥Õ¥£¡¼¥ë¥É ¤ò½é´ü²½¤¹¤ë¡£¤³¤ì¤Ë¤Ï¡¢¿Æ¤Î¥¯¥é¥¹¤È constraintWidgetClass ¤Þ¤Ç¤ÎÁ´¤Æ¤Î¥¹¡¼¥Ñ¡¼¥¯¥é¥¹¤ËÂФ·¤Æ»ØÄꤵ¤ì¤¿ constraint ¾ðÊó¤Î¥ê¥½¡¼¥¹ ¤¬ÍѤ¤¤é¤ì¤ë¡£
- ¥¦¥£¥¸¥§¥Ã¥È¤ËÂФ¹¤ë½é´ü²½¼ê³¤¤¬¡¢ Core ¤Î½é´ü²½¼ê³¤¤«¤é¡¢¥¦¥£¥¸¥§¥Ã¥È¤Î½é´ü²½¼ê³¤¤Ø¸þ¤«¤¦½ç¤Ç¸Æ¤Ð¤ì¤ë¡£
- ¿Æ¥¦¥£¥¸¥§¥Ã¥È¤Î¥¯¥é¥¹¤¬ compositeWidgetClass ¤Î¥µ¥Ö¥¯¥é¥¹¤Ê¤é¤Ð¡¢¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤Ï¿Æ¥¦¥£¥¸¥§¥Ã¥È insert_child ¼ê³ ¤¤ò¸Æ¤Ö¤³¤È¤Ë¤è¤Ã¤Æ¡¢¿Æ¥¦¥£¥¸¥§¥Ã¥È¤Î»Ò¤Î¥ê¥¹¥È¤Ë²Ã¤¨¤é¤ì¤ë¡£ ¾Ü¤·¤¯¤Ï 3.5 ¾Ï¤ò»²¾È¤¹¤ë¤³¤È¡£
- ¿Æ¥¦¥£¥¸¥§¥Ã¥È¤Î¥¯¥é¥¹¤¬ constraintWidgetClass ¤Î¥µ¥Ö¥¯¥é¥¹¤Ê¤é¤Ð¡¢ constraintWidgetClass ¤«¤é»Ï¤Þ¤Ã¤Æ¿Æ¤Î constraint ¾ðÊó¤Î½é´ü²½¼ê³¤¤Ë¸þ¤«¤¦½ç¤Ç constraint ¾ðÊó¤Î½é´ü²½¼ê³¤¤¬¸Æ¤Ð¤ì¤ë¡£
¥Þ¥¯¥í XtNumber ¤ò»È¤Ã¤Æ¡¢°ú¤¿ô¥ê¥¹¥ÈÃæ¤Î°ú¤¿ô¤Î¿ô¤òµá¤á¤ë¤³¤È¤¬¤Ç¤¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£ ¾Ü¤·¤¯¤Ï¡¢11.1 ¾Ï¤ò»²¾È¤¹¤ë¤³¤È¡£
´Ø¿ô XtCreateManagedWidget ¤Ï¡¢ XtCreateWidget ¤È XtManageChild ¤ò¸Æ¤Ö´Ê°×´Ø¿ô¤Ç¤¢¤ë¡£
´Ø¿ô XtDestroyWidget ¤Ï¡¢¥¦¥£¥¸¥§¥Ã¥È¤òÇË´þ¤¹¤ëÍ£°ì¤ÎÊýË¡¤òÄ󶡤¹¤ë¡£¤³¤ì¤Ë¤Ï¡¢¼«Ê¬¼«¿È¤òÇË ´þ¤¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤â´Þ¤Þ¤ì¤ë¡£ ¤³¤Î´Ø¿ô¤Ï¡¢ÇË´þ¤µ¤ì¤ë¥¦¥£¥¸¥§¥Ã¥È¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥³¡¼¥ë¥Ð¥Ã¥¯¥ë¡¼¥Á ¥ó¤«¤é¸Æ¤Ö¤³¤È¤â´Þ¤á¤Æ¡¢¤¤¤Ä¸Æ¤ó¤Ç¤â¤è¤¤¡£ ¤³¤Î´Ø¿ô¤Ï¡¢ÇË´þ¤µ¤ì¤ë¥¦¥£¥¸¥§¥Ã¥È¤ËÂФ¹¤ë¤Ö¤é²¼¤¬¤ê»²¾È¤òÈò¤±¤ë¤¿¤á¡¢ 2¤Ä¤Î¥Õ¥§¡¼¥º¤ÇÇË´þ¤Î½èÍý¤ò¹Ô¤Ê¤¦¤³¤È¤¬É¬ÍפǤ¢¤ë¡£
¥Õ¥§¡¼¥º1¤Ç¤Ï¡¢ XtDestroyWidget ¤¬°Ê²¼¤Î½èÍý¤ò¹Ô¤¦¡£
- ¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤Î being_destroyed ¥Õ¥£¡¼¥ë¥É¤¬ True ¤Ê¤é¤Ð¡¢½èÍý¤Ï¨ºÂ¤ËÌá¤ë¡£
- ¥¦¥£¥¸¥§¥Ã¥È¥Ä¥ê¡¼¤òºÆµ¢Åª¤Ë²¼¤ê¡¢¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤ÈÁ´¤Æ¤Î»Ò¥¦¥£¥¸¥§¥Ã ¥È¤Îbeing_destroy ¥Õ¥£¡¼¥ë¥É¤Ë True ¤ò¥»¥Ã¥È¤¹¤ë¡£
- °ÂÁ´¤ËÇË´þ¤Ç¤¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿»þ¤ËÇË´þ¤¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤Î¥ê¥¹¥È(ÇË´þ¥ê¥¹ ¥È)¤Ë¡¢¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤ò²Ã¤¨¤ë¡£
ÇË´þ¥ê¥¹¥È¤Î¥¨¥ó¥È¥ê¡¼¤Ï¡¢ÇË´þ¥ê¥¹¥È¾å¤Ç w2 ¤¬ w1 ¤Î¸å¤Ë¤¢¤é¤ï¤ì¤¿¾ì¹ç¡¢ w2 ¤Ï w1 ¤Î²¼°Ì¥¦¥£¥¸¥§¥Ã¥È¤Ç¤Ï¤Ê¤¤¤È¤¤¤¦ÉÔÊÑÀ¤òËþ¤¿¤¹¡£ (²¼°Ì¥¦¥£¥¸¥§¥Ã¥È¤Ï¡¢Ä̾ï¤È¥Ý¥Ã¥×¥¢¥Ã¥×¤Î»Ò¥¦¥£¥¸¥§¥Ã¥È¤ÎξÊý¤ò»Ø¤¹¡£)
¥Õ¥§¡¼¥º2¤Ï¡¢¸½ºß¤Î¥¤¥Ù¥ó¥È¤Î·ë²Ì¤È¤·¤ÆÀ¸¤¸¤ë¡¢¼Â¹Ô¤¹¤Ù¤Á´¤Æ¤Î¼ê³¤ ¤¬¸Æ¤Ð¤ì¤¿¤È¤¤Ë¹Ô¤ï¤ì¤ë(¤³¤ì¤Ï¡¢¥¤¥Ù¥ó¥È¥Þ¥Í¡¼¥¸¥ã¤È¥È¥é¥ó¥¹¥ì¡¼¥·¥ç ¥ó¥Þ¥Í¡¼¥¸¥ã¤ËÅÐÏ¿¤µ¤ì¤¿Á´¤Æ¤Î¼ê³¤¤ò´Þ¤à)¡£¤Ä¤Þ¤ê¡¢¤³¤ì¤Ï XtDispatchEvent ¤Î¸½ºß¤Î¸Æ¤Ó½Ð¤·¤¬Ìá¤Ã¤Æ¤¯¤ë¤È¤¤Ë¹Ô¤ï¤ì¡¢ XtDispatchEvent ¤¬¸Æ¤Ð¤ì¤Æ¤¤¤Ê¤¤¤È¤¤Ë¤Ï¨ºÂ¤Ë¹Ô¤ï¤ì¤ë¡£
¥Õ¥§¡¼¥º2¤Ç¤Ï¡¢ XtDestroyWidget ¤ÏÇË´þ¥ê¥¹¥È¤Î³Æ¥¨¥ó¥È¥ê¡¼¤ËÂФ·¤Æ¼¡¤Î½èÍý¤ò¹Ô¤¦¡£
- ¥¦¥£¥¸¥§¥Ã¥È(¤È¡¢¤½¤ÎÁ´¤Æ¤Î²¼°Ì¥¦¥£¥¸¥§¥Ã¥È)¤ËÅÐÏ¿¤µ¤ì¤¿ÇË´þ¥³¡¼¥ë¥Ð¥Ã ¥¯¼ê³¤¤ò¸Æ¤Ö¡£¸Æ¤Ó½Ð¤·¤Î½ç½ø¤Ï¹ß½ç¤Ç¤¢¤ë(¿Æ¤Î¥³¡¼¥ë¥Ð¥Ã¥¯¤ÎÁ°¤Ë¡¢»Ò ¤Î¥³¡¼¥ë¥Ð¥Ã¥¯¤ò¸Æ¤Ö)¡£
- ¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤Î¿Æ¤¬ compositeWidgetClass ¤Î¥µ¥Ö¥¯¥é¥¹¤Ç¤¢¤ê¡¢¤«¤Ä¿Æ¤¬ÇË´þ¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï¡¢¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤Ë ÂФ·¤Æ XtUnmanageChild ¤¬¸Æ¤Ð¤ì¡¢¿Æ¤Î delete_child ¼ê³¤¤¬¸Æ¤Ð¤ì¤ë(3.4 ¾Ï¤ò»²¾È¤Î¤³¤È)¡£
- ¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤Î¿Æ¤¬ constraintWidgetClass ¤Î¾ì¹ç¡¢ºÇ½ªÅª¤Ë constraintWidgetClass ¤ËÂФ·¤Æ constraint ¾ðÊó¤ÎÇË´þ¼ê³¤¤¬¸Æ¤Ð¤ì¤ë¤Þ¤Ç¡¢ ¿Æ¡¢¤½¤·¤Æ¤½¤Î¥¹¡¼¥Ñ¡¼¥¯¥é¥¹¤ËÂФ·¤Æ constraint ¤ÎÇË´þ¼ê³¤¤¬¸Æ¤Ð¤ì¤ë¡£
- ¥¦¥£¥¸¥§¥Ã¥È(¤È¡¢¤½¤ÎÁ´¤Æ¤Î²¼°Ì¥¦¥£¥¸¥§¥Ã¥È)¤ËÂФ·¤Æ¡¢¹ß½ç¤Ç destroy ¥á¥½¥Ã¥É¤¬¸Æ¤Ð¤ì¤ë¡£ ¤³¤Î¤è¤¦¤Ê¥¦¥£¥¸¥§¥Ã¥È¤ËÂФ·¤Æ¤Ï¡¢ºÇ½é¤Ï¤½¤Î¥¦¥£¥¸¥§¥Ã¥È¤ËÀë¸À¤µ¤ì¤¿ÇË ´þ¼ê³¤¡¢¼¡¤Ë¤½¤Î¥¹¡¼¥Ñ¡¼¥¯¥é¥¹¤ÎÇË´þ¼ê³¤¤È¤¤¤¦¤è¤¦¤Ë¼ê³¤¤¬¸Æ¤Ð¤ì ¤Æ¤æ¤¯¡£¤³¤ì¤Ï¡¢Core ¥¯¥é¥¹¤Î¥ì¥³¡¼¥É¤ËÀë¸À¤µ¤ì¤¿ÇË´þ¼ê³¤¤¬ºÇ½ªÅª¤Ë ¸Æ¤Ð¤ì¤ë¤Þ¤Ç¹Ô¤ï¤ì¤ë¡£ ¥¦¥£¥¸¥§¥Ã¥È¤¬¥ê¥¢¥é¥¤¥º¤µ¤ì¤Æ¤¤¤ì¤Ð(¤Ä¤Þ¤ê¡¢X ¤Î¥¦¥£¥ó¥É¥¦¤ò»ý¤Ã¤Æ¤¤ ¤ì¤Ð)¡¢ XDestroyWindow ¤¬¸Æ¤Ð¤ì¤ë¡£ X ¥µ¡¼¥Ð¤Ï¡¢Á´¤Æ¤Î²¼°Ì¥¦¥£¥ó¥É¥¦¤òºÆµ¢Åª¤ËÇË´þ¤¹¤ë¡£
- ºÆµ¢Åª¤Ë¥Ä¥ê¡¼¤ò¹ß¤ê¡¢Á´¤Æ¤Î¥Ý¥Ã¥×¥¢¥Ã¥×¥¦¥£¥¸¥§¥Ã¥È¡¢constraint ¾ðÊó ¤Î¥ì¥³¡¼¥É¡¢¥³¡¼¥ë¥Ð¥Ã¥¯¤Î¥ê¥¹¥È¡¢(¥¦¥£¥¸¥§¥Ã¥È¤¬ compositeWidgetClass ¤Î¥µ¥Ö¥¯¥é¥¹¤Ê¤é¤Ð)»Ò¥¦¥£¥¸¥§¥Ã¥È¤ò²òÊü¤¹¤ë¡£
´ØÏ¢¹àÌܶ
XtAppCreateShell(3Xt), XtCreatePopupShell(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface
Release 6.5 | X Version 11 |