Scroll to navigation

XtAppAddInput(3Xt) XT FUNCTIONS XtAppAddInput(3Xt)

̾Á°

XtAppAddInput, XtRemoveInput - ÆþÎÏ¥½¡¼¥¹¤ÎÅÐÏ¿¤Èºï½ü¤ò¹Ô¤¦

½ñ¼°

XtInputId XtAppAddInput(app_context, source, condition, proc, client_data)
XtAppContext app_context;
int source;
XtPointer condition;
XtInputCallbackProc proc;
XtPointer client_data;

void XtRemoveInput(id)
XtInputId id;

°ú¤­¿ô

¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤ò¼±Ê̤¹¤ë¤¿¤á¤Î¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¥³¥ó¥Æ¥¯¥¹¥È¤ò»ØÄꤹ¤ë¡£
ÆþÎϤ¬²Äǽ¤Ë¤Ê¤Ã¤¿¤È¤­¤Ë»ØÄꤷ¤¿¼ê³¤­¤ËÅϤ¹°ú¤­¿ô¤ò»ØÄꤹ¤ë¡£
Æɤ߽ñ¤­¤äÎã³°¾ò·ï¡¢¤Þ¤¿¤Ï OS °Í¸¤Î¾ò·ï¤ò¼¨¤¹¥Þ¥¹¥¯¤ò»ØÄꤹ¤ë¡£
ÅÐÏ¿»þ¤Ë XtAppAddInput ¤¬ÊÖ¤·¤¿ ID ¤ò»ØÄꤹ¤ë¡£
ÆþÎϤ¬²Äǽ¤Ë¤Ê¤Ã¤¿¤È¤­¤Ë¸Æ¤Ó½Ð¤µ¤ì¤ë¼ê³¤­¤ò»ØÄꤹ¤ë¡£
UNIX ¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à¤Ç¤Ï¡¢ÆþÎÏ¥½¡¼¥¹¤Î¥Õ¥¡¥¤¥ë¥Ç¥¹¥¯¥ê¥×¥¿¤ò»ØÄꤹ¤ë¡£ ¤¢¤ë¤¤¤Ï OS °Í¸¤Î¾¤Î¾ò·ï¤ò»ØÄꤹ¤ë¡£

ÀâÌÀ

´Ø¿ô XtAppAddInput ¤Ï¡¢¥¤¥ó¥È¥ê¥ó¥·¥¯¥¹¤ÎÆɤ߹þ¤ß¥ë¡¼¥Á¥ó¤Ë¥¤¥Ù¥ó¥È¤Î¿·¤·¤¤¥½¡¼¥¹¤òÅÐÏ¿¤¹ ¤ë¡£¤³¤ì¤ÏÉáÄ̤ϥե¡¥¤¥ëÆþÎϤǤ¢¤ë¤¬¡¢¥Õ¥¡¥¤¥ë½ÐÎϤòÅÐÏ¿¤¹¤ë¤³¤È¤â¤Ç¤­ ¤ë¡£ ¥Õ¥¡¥¤¥ë¤È¤¤¤¦¸ÀÍդϴˤ¯²ò¼á¤µ¤ì¤ë¤Ù¤­¤Ç¤¢¤ëÅÀ¤ËÃí°Õ¤¹¤ë¤³¤È¡£ ¤Ä¤Þ¤ê¡¢¥Õ¥¡¥¤¥ë¤ÏǤ°Õ¤Î¥·¥ó¥¯¤ä¥Ç¡¼¥¿¤ÎÆþÎϤâ°ÕÌ£¤¹¤ë¡£ XtAppAddInput ¤Ï¡¢¥½¡¼¥¹¤¬¥¤¥Ù¥ó¥È¤òÀ¸À®¤Ç¤­¤ë¾ò·ï¤â»ØÄꤹ¤ë¡£ ¤³¤Î¥½¡¼¥¹¤ÇÆþÎϤ¬¥Ú¥ó¥Ç¥£¥ó¥°¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï¡¢¥³¡¼¥ë¥Ð¥Ã¥¯¼ê³¤­¤¬¸Æ ¤Ó½Ð¤µ¤ì¤ë¡£

°ú¤­¿ô condition ¤ËÂФ·¤ÆÍ­¸ú¤ÊÃÍ¤Ï OS ¤Ë°Í¸¤¹¤ë¡£ UNIX ¥Ù¡¼¥¹¤Î¥·¥¹¥Æ¥à¤Î¾ì¹ç¤Ï¡¢¾ò·ï¤Ï XtInputReadMask, XtInputWriteMask, XtInputExceptMask ¤ÎÏÀÍýϤò¼è¤Ã¤¿ÃͤǤ¢¤ë¡£ ´Ø¿ô XtRemoveInput ¤Ï¡¢¥¤¥ó¥È¥ê¥ó¥·¥¯¥¹¤ÎÆɤ߹þ¤ß¥ë¡¼¥Á¥ó¤ËÂФ·¤Æ¡¢ÆþÎÏ¥½¡¼¥¹¤ËÂФ¹¤ëÆþÎÏ ÂÔ¤Á¤ò»ß¤á¤µ¤»¤ë¡£

´ØÏ¢¹àÌÜ

XtAppAddTimeOut(3Xt),XtAppAddSignal(3Xt)
X Toolkit Intrinsics - C Language Interface
Xlib - C Language X Interface

¥Ð¥°

ANSI C ¤Ë¤ª¤¤¤Æ¤Ï¡¢¼¡¤ÎÎã¤Î¤è¤¦¤Ë°ú¤­¿ô condition ¤ò XtPointer ¤Ë¥­¥ã¥¹¥È ¤·¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡£


XtAppAddInput(app_context,

source,
(XtPointer) XtInputReadMask | XtInputWriteMask,
proc,
client_data);
Release 6.5 X Version 11