Scroll to navigation

XtInsertEventTypeHandler(3Xt) XT FUNCTIONS XtInsertEventTypeHandler(3Xt)

̾Á°

XtInsertEventTypeHandler, XtRemoveEventTypeHandler, XtRegisterExtensionSelector, XtSetEventDispatcher, XtDispatchEventToWidget - ³ÈÄ¥¥¤¥Ù¥ó¥È½èÍý

½ñ¼°

void XtInsertEventTypeHandler(widget, event_type, select_data, proc, client_data, position)
Widget wdget;
int event_type;
XtPointer select_data;
XtEventHandler proc;
XtPointer client_data;
XtListPosition position;

void XtRemoveEventTypeHandler(widget, event_type, select_data, proc, client_data)
Widget wdget;
int event_type;
XtPointer select_data;
XtEventHandler proc;
XtPointer client_data;

void XtRegisterExtensionSelector(display, min_event_type, max_event_type, proc, client_data)
Display* display;
int min_event_type;
int max_event_type;
XtExtensionSelectProc proc;
XtPointer client_data;

XtEventDispatchProc XtSetEventDispatcher(display, event_type, proc)
Widget widget;
int event_type;
XtEventDispatchProc proc;

Boolean XtDispatchEventToWidget(widget, event)
Widget widget;
XEvent* event;

°ú¤­¿ô

¤³¤Î¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤ËÂФ¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤ò»ØÄꤹ¤ë¡£ Core ¥¯¥é¥¹¤«¤½¤Î¥µ¥Ö¥¯¥é¥¹¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£
¥¤¥Ù¥ó¥È·¿¤ò»ØÄꤹ¤ë¡£
¥µ¡¼¥Ð¤«¤é¤Î¥¤¥Ù¥ó¥È¤òÁªÂò¤Þ¤¿¤ÏÁªÂò²ò½ü¤¹¤ë¤¿¤á¤Ë»È¤¦¥Ç¡¼¥¿¤ò»ØÄꤹ¤ë¡£
¼ê³¤­¤ò»ØÄꤹ¤ë¡£
¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤ËÅϤ¹ÄɲÃŪ¤Ê¥Ç¡¼¥¿¤ò»ØÄꤹ¤ë¡£
°ÊÁ°¤ËÅÐÏ¿¤µ¤ì¤¿Â¾¤Î¥Ï¥ó¥É¥é¤ËÂФ·¤Æ¡¢¤³¤Î¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤¬¤¤¤Ä¸Æ¤Ð¤ì ¤ë¤«¤ò»ØÄꤹ¤ë¡£
¥Ç¥£¥¹¥×¥ì¥¤¤ò»ØÄꤹ¤ë¡£
¤³¤Î³ÈÄ¥¤ËÂФ¹¤ë¥¤¥Ù¥ó¥È·¿¤ÎÈϰϤò»ØÄꤹ¤ë¡£
ÇÛÁ÷¤¹¤ë¥¤¥Ù¥ó¥È¤Ø¤Î¥Ý¥¤¥ó¥¿¤ò»ØÄꤹ¤ë¡£

ÀâÌÀ

´Ø¿ô XtInsertEventTypeHandler ¤Ï¡¢¼ê³¤­¤òÇÛÁ÷µ¡¹½¤ËÅÐÏ¿¤¹¤ë¡£¤³¤Î¼ê³¤­¤Ï¡¢»ØÄꤵ¤ì¤¿ event_type ¤Ë¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬»ØÄꤵ¤ì¤¿ widget ¤ËÂФ· ¤ÆÇÛÁ÷¤µ¤ì¤¿¤È¤­¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¡£

event_type ¤¬¥³¥¢ X ¥×¥í¥È¥³¥ë¥¤¥Ù¥ó¥È¤Î1¤Ä¤Ê¤é¤Ð¡¢ select_data ¤Ï EventMask ·¿¤ÎÃͤؤΥݥ¤¥ó¥¿¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£¤³¤ÎÃͤϵá¤á¤ë¥¤¥Ù¥ó¥È¤òÁªÂò¤¹¤ë ¤¿¤á¤Ë»È¤¦¥¤¥Ù¥ó¥È¥Þ¥¹¥¯¤ò¼¨¤¹¡£ ¤³¤Î¥¤¥Ù¥ó¥È¥Þ¥¹¥¯¤Ï¡¢ XtBuildEventMask ¤¬ÊÖ¤¹Ãͤ˴ޤޤì¤ë¡£ ¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤¬¥ê¥¢¥é¥¤¥º¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ XtInsertEventTypeHandler ¤ÏɬÍפ˱þ¤¸¤Æ XSelectInput ¤ò¸Æ¤Ó½Ð¤¹¡£select_data ¤Ë NULL ¤ò»ØÄꤹ¤ë¤³¤È¤Ï¡¢Ãͤ¬0¤Ç¤¢¤ë¥¤ ¥Ù¥ó¥È¥Þ¥¹¥¯¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤ò»ØÄꤹ¤ë¤³¤È¤ÈÅù²Á¤Ç¤¢¤ë¡£¤³¤ÎÆ°ºî¤Ï¡¢´Ø¿ô XtInsertRawEventHandler ¤ÈƱÍͤǤ¢¤ë¡£

event_type ¤¬³ÈÄ¥¥¤¥Ù¥ó¥È·¿¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ select_data ¤¬»Ø¤¹¥Ç¡¼¥¿¤Î°ÕÌ£¤Ï¡¢»ØÄꤷ¤¿¥¤¥Ù¥ó¥È·¿¤ËÂФ·¤Æ ÅÐÏ¿¤µ¤ì¤¿³ÈÄ¥¥»¥ì¥¯¥¿¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë¡£

¤É¤Á¤é¤Î¾ì¹ç¤Ç¤â¡¢¥¤¥ó¥È¥ê¥ó¥·¥¯¥¹¤Ï select_data ¤¬»Ø¤¹¥Ç¡¼¥¿¤ò ¥³¥Ô¡¼¤¹¤ë¤³¤È¤Ïµá¤á¤é¤ì¤Ê¤¤¡£¤·¤¿¤¬¤Ã¤Æ¡¢¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤¬¤³¤Î select_data ¤ÎÃͤÇÅÐÏ¿¤µ¤ì¤Æ¤¤¤ë¸Â¤ê¤Ï¡¢¸Æ¤Ó½Ð¤·Â¦¤Ï¤³¤Î¥Ç¡¼¥¿¤¬ ¤º¤Ã¤ÈÍ­¸ú¤Ç¤¢¤ë¤³¤È¤òÊݾڤ·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£

°ú¤­¿ô position ¤ò»È¤Ã¤Æ¡¢¥¯¥é¥¤¥¢¥ó¥È¤ÏƱ¤¸¥¤¥Ù¥ó¥È·¿¤ËÅÐÏ¿¤µ ¤ì¤¿¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤¬¸Æ¤Ó½Ð¤µ¤ì¤ë½ç½øÀ©¸æ¤¹¤ë¤³¤È¤¬¤Ç¤­¤ë¡£¸Æ¤Ó½Ð¤¹½ç ½ø¤òÌäÂê¤Ë¤·¤Ê¤¤¾ì¹ç¤Ï¡¢Ä̾ï XtListTail ¤ò»ØÄꤹ¤Ù¤­¤Ç¤¢¤ë¡£¤³¤Î»ØÄê¤Ë¤è¤ê¡¢¤³¤Î¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤Ï¤³¤Î¥¤¥Ù¥ó¥È ¥¿¥¤¥×¤Ë°ÊÁ°¤ËÅÐÏ¿¤µ¤ì¤¿¤É¤Î¥Ï¥ó¥É¥é¤è¤ê¤â¸å¤ËÅÐÏ¿¤µ¤ì¤ë¡£

´Ø¿ô XtRemoveEventTypeHandler ¤Ï¡¢ XtInsertEventTypeHandler ¤ò»È¤Ã¤Æ»ØÄꤷ¤¿¥¤¥Ù¥ó¥È·¿¤ËÅÐÏ¿¤µ¤ì¤¿¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤ÎÅÐÏ¿¤òËõ¾Ã ¤¹¤ë¡£client_data ¤¬¥Ï¥ó¥É¥é¤¬ÅÐÏ¿¤µ¤ì¤¿¤È¤­¤ËÍ¿¤¨¤é¤ì¤¿ÃͤȰìÃ× ¤·¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¤³¤Î¥ê¥¯¥¨¥¹¥È¤Ï̵»ë¤µ¤ì¤ë¡£

event_type ¤¬¥³¥¢ X ¥×¥í¥È¥³¥ë¥¤¥Ù¥ó¥È¤Î1¤Ä¤Ê¤é¤Ð¡¢ select_data ¤Ï EventMask ·¿¤ÎÃͤؤΥݥ¤¥ó¥¿¤Ç¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£¤³¤ÎÃͤÏŬÀڤʥ¤¥Ù¥ó¥È¤ÎÁªÂò¤ò²ò ½ü¤¹¤ë¤¿¤á¤Ë»È¤¦¥¤¥Ù¥ó¥È¥Þ¥¹¥¯¤ò¼¨¤¹¡£ ¤³¤Î¥¦¥£¥¸¥§¥Ã¥È¤¬¥ê¥¢¥é¥¤¥º¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢ XtRemoveEventTypeHandler ¤ÏɬÍפ˱þ¤¸¤Æ XSelectInput ¤ò¸Æ¤Ó½Ð¤¹¡£select_data ¤Ë NULL ¤ò»ØÄꤹ¤ë¤³¤È¤Ï¡¢Ãͤ¬0¤Ç¤¢¤ë¥¤ ¥Ù¥ó¥È¥Þ¥¹¥¯¤ò»Ø¤¹¥Ý¥¤¥ó¥¿¤ò»ØÄꤹ¤ë¤³¤È¤ÈÅù²Á¤Ç¤¢¤ë¡£¤³¤ì¤Ï¡¢´Ø¿ô XtRemoveRawEventHandler ¤È»÷¤Æ¤¤¤ë¡£

event_type ¤¬³ÈÄ¥¥¤¥Ù¥ó¥È·¿¤ò»ØÄꤷ¤Æ¤¤¤ë¾ì¹ç¤Ë¤Ï¡¢ select_data ¤¬»Ø¤¹¥Ç¡¼¥¿¤Î°ÕÌ£¤Ï¡¢»ØÄꤷ¤¿¥¤¥Ù¥ó¥È·¿¤ËÂФ·¤Æ ÅÐÏ¿¤µ¤ì¤¿³ÈÄ¥¥»¥ì¥¯¥¿¤Ë¤è¤Ã¤ÆÄêµÁ¤µ¤ì¤ë¡£

´Ø¿ô XtRegisterExtensionSelector ¤Ï¡¢³ÈÄ¥¥¤¥Ù¥ó¥È¤Î¥¦¥£¥¸¥§¥Ã¥È¤Ø¤ÎÄÌÃΤˤĤ¤¤ÆÄ´À°¤ò¹Ô¤¦¼ê³¤­¤òÅÐÏ¿¤¹ ¤ë¡£

min_event_type ¤È max_event_type ¤¬¡¢Æ±¤¸¥Ç¥£¥¹¥×¥ì¥¤¤ËÂÐ ¤¹¤ë°ÊÁ°¤Î XtRegisterExtensionSelector ¤Î¸Æ¤Ó½Ð¤·¤ËÅϤ·¤¿¥Ñ¥é¥á¡¼¥¿¤È°ìÃפ¹¤ë¾ì¹ç¡¢proc ¤È client_data ¤ÏÁ°¤ËÅÐÏ¿¤·¤¿ÃͤòÃÖ¤­´¹¤¨¤ë¡£ min_event_type ¤È max_event_type ¤Ç»ØÄꤷ¤¿ÈϰϤ¬¡¢°ÊÁ°¤Ë Ʊ¤¸¥Ç¥£¥¹¥×¥ì¥¤¤ËÂФ·¤ÆÊ̤ÎÊýË¡¤Ç¸Æ¤Ó½Ð¤·¤¿¤È¤­¤Î¥Ñ¥é¥á¡¼¥¿¤È½Å¤Ê¤ë¾ì ¹ç¤Ë¤Ï¥¨¥é¡¼¤¬µ¯¤³¤ë¡£

´Ø¿ô.ZN XtSetEventDispatcher ¤Ï¡¢»ØÄꤵ¤ì¤¿ event_type ·¿¤Î¥¤¥Ù¥ó¥È¤ËÂФ·¤Æ¡¢proc ¤Ç»Ø Äꤵ¤ì¤¿¥¤¥Ù¥ó¥È¥Ç¥£¥¹¥Ñ¥Ã¥Á¥ã¼ê³¤­¤òÅÐÏ¿¤¹¤ë¡£¤³¤Î´Ø¿ô¤Ï¡¢Á°¤ËÅÐÏ¿¤· ¤¿¥Ç¥£¥¹¥Ñ¥Ã¥Á¥ã¤òÊÖ¤¹(Á°¤ËÅÐÏ¿¤µ¤ì¤Æ¤Ê¤¤¾ì¹ç¤Ë¤Ï¡¢¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥£¥¹ ¥Ñ¥Ã¥Á¥ã¤¬ÊÖ¤µ¤ì¤ë)¡£proc ¤¬ NULL ¤Ê¤é¤Ð¡¢»ØÄꤷ¤¿¥¿¥¤¥×¤ËÂФ·¤Æ ¥Ç¥Õ¥©¥ë¥È¤Î¼ê³¤­¤¬³ÊǼ¤µ¤ì¤ë¡£

¸å¤Ç XtDispatchEvent ¤¬ ¥¤¥Ù¥ó¥È event_type ¤ò»È¤Ã¤Æ¸Æ¤Ó½Ð¤µ¤ì¤¿¤È¤­¡¢¥¤¥Ù¥ó¥È¤òÇÛÁ÷¤¹¤ë¥¦¥£¥¸¥§¥Ã¥È¤ò·è¤á ¤ë¤¿¤á¤Ë¡¢»ØÄꤵ¤ì¤¿ proc (¤Þ¤¿¤Ï¥Ç¥Õ¥©¥ë¥È¤Î¥Ç¥£¥¹¥Ñ¥Ã¥Á¥ã)¤¬¸Æ ¤Ó½Ð¤µ¤ì¤ë¡£

´Ø¿ô XtDispatchEventToWidget ¤Ï¡¢»ØÄꤵ¤ì¤¿¥¦¥£¥¸¥§¥Ã¥È¤ËÂФ·¤ÆÅÐÏ¿¤µ¤ì¤¿¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤Î¥ê¥¹¥È¤ò Áöºº¤·¡¢¤½¤ì¤¾¤ì¤Î¥Ï¥ó¥É¥é¤¬ÊÖ¤·¤¿ continue_to_dispatch Ãͤ˽¾¤Ã ¤Æ¡¢»ØÄꤷ¤¿¥¤¥Ù¥ó¥È·¿¤ËÂФ·¤ÆÅÐÏ¿¤µ¤ì¤¿¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤ò¸Æ¤Ó½Ð¤¹¡£ Expose, NoExpose, GraphicsExpose, VisibilityNotify ¤Î³Æ¥¤¥Ù¥ó¥È¤Ë¤Ä¤¤¤Æ¤Ï¡¢ ¥¤¥ó¥È¥ê¥ó¥·¥¯¥¹¤Ï¡¢¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤¬¥ê¥¹¥È¤ÎÀèƬ¤ËÅÐÏ¿¤µ¤ì¤¿¤«¤Î¤è¤¦ ¤Ë¿¶Éñ¤¦¡£ ¤³¤ì¤ÏϪ½Ð¤Î°µ½Ìµ¬Â§¤Ë½¾¤Ã¤Æ¥¦¥£¥¸¥§¥Ã¥È¤ÎϪ½Ð¼ê³¤­¤ò¸Æ¤Ó¡¢ visible_interest ¤¬ True ¤Ê¤é¤Ð¥¦¥£¥¸¥§¥Ã¥È¤Î visible ¥Õ¥£¡¼¥ë¥É¤ò¹¹¿·¤¹¤ë¤¿¤á¤Ë¹Ô¤ï¤ì¤ë¡£ ¤³¤ì¤é¤ÎÆâÉô¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤Ï¡¢·è¤·¤Æ continue_to_dispatch ¤Ë False ¤òÀßÄꤷ¤Ê¤¤¡£

XtDispatchEventToWidget ¤Ï¡¢¥¤¥Ù¥ó¥È¥Ï¥ó¥É¥é¤Î¤¤¤º¤ì¤«¤¬¸Æ¤Ó½Ð¤µ¤ì¤¿¾ì¹ç¤Ë¤Ï True ¤òÊÖ¤·¡¢¤¤¤º¤ì¤â¸Æ¤Ó½Ð¤µ¤ì¤Ê¤«¤Ã¤¿¾ì¹ç¤Ë¤Ï False ¤òÊÖ¤¹¡£

´ØÏ¢¹àÌÜ

XtGetKeyboardFocusWidget(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface

Release 6.5 X Version 11