Scroll to navigation

XNextEvent(3X11) XLIB FUNCTIONS XNextEvent(3X11)

̾Á°

XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent, XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckTypedWindowEvent - ¥¤¥Ù¥ó¥È¤ò·¿¤Ë¤è¤Ã¤ÆÁªÂò¤¹¤ë

½ñ¼°

XNextEvent(display, event_return)
Display *display;
XEvent *event_return;

XPeekEvent(display, event_return)
Display *display;
XEvent *event_return;

XWindowEvent(display, w, event_mask, event_return)
Display *display;
Window w;
long event_mask;
XEvent *event_return;

Bool XCheckWindowEvent(display, w, event_mask, event_return)
Display *display;
Window w;
long event_mask;
XEvent *event_return;

XMaskEvent(display, event_mask, event_return)
Display *display;
long event_mask;
XEvent *event_return;

Bool XCheckMaskEvent(display, event_mask, event_return)
Display *display;
long event_mask;
XEvent *event_return;

Bool XCheckTypedEvent(display, event_type, event_return)
Display *display;
int event_type;
XEvent *event_return;

Bool XCheckTypedWindowEvent(display, w, event_type, event_return)
Display *display;
Window w;
int event_type;
XEvent *event_return;

°ú¤­¿ô

X ¥µ¡¼¥Ð¤Ø¤ÎÀܳ¤ò»ØÄꤹ¤ë¡£
¥¤¥Ù¥ó¥È¥Þ¥¹¥¯¤ò»ØÄꤹ¤ë¡£
°ìÃפ·¤¿¥¤¥Ù¥ó¥È¤ËÂбþ¤¹¤ë¹½Â¤ÂΤ¬ÊÖ¤µ¤ì¤ë¡£
¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¼¡¤Î¥¤¥Ù¥ó¥È¤¬ÊÖ¤µ¤ì¤ë¡£
°ìÃפ·¤¿¥¤¥Ù¥ó¥È¤ËÂбþ¤¹¤ë¹½Â¤ÂΤΥ³¥Ô¡¼¤¬ÊÖ¤µ¤ì¤ë¡£
Èæ³Ó¤¹¤ë¥¤¥Ù¥ó¥È¤Î·¿¤ò»ØÄꤹ¤ë¡£
ÃíÌܤ·¤Æ¤¤¤ë¥¤¥Ù¥ó¥È¤ò½êÍ­¤·¤Æ¤¤¤ë¥¦¥£¥ó¥É¥¦¤ò»ØÄꤹ¤ë¡£

ÀâÌÀ

´Ø¿ô XNextEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤ÎºÇ½é¤Î¥¤¥Ù¥ó¥È¤ò»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤·¡¢¤³¤Î¥¤¥Ù¥ó¥È¤ò¥­¥å¡¼¤«¤éºï½ü¤¹¤ë¡£ ¥¤¥Ù¥ó¥È¥­¥å¡¼¤¬¶õ¤Î¾ì¹ç¡¢ XNextEvent ¤Ï½ÐÎϥХåե¡¤ÎÆâÍƤò¥Õ¥é¥Ã¥·¥å¤·¡¢¥¤¥Ù¥ó¥È¤ò¼õ¤±¼è¤ë¤Þ¤Ç½èÍý¤ò¥Ö¥í¥Ã ¥¯¤¹¤ë¡£

´Ø¿ô XPeekEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤ÎºÇ½é¤Î¥¤¥Ù¥ó¥È¤òÊÖ¤¹¤¬¡¢¤½¤Î¥¤¥Ù¥ó¥È¤ò¥­¥å¡¼¤«¤éºï½ü ¤·¤Ê¤¤¡£ ¥¤¥Ù¥ó¥È¥­¥å¡¼¤¬¶õ¤Î¾ì¹ç¡¢ XPeekEvent ¤Ï½ÐÎϥХåե¡¤ÎÆâÍƤò¥Õ¥é¥Ã¥·¥å¤·¡¢¥¤¥Ù¥ó¥È¤ò¼õ¤±¼è¤ë¤Þ¤Ç½èÍý¤ò¥Ö¥í¥Ã ¥¯¤¹¤ë¡£ ¤½¤·¤Æ¡¢¤½¤Î¥¤¥Ù¥ó¥È¤ò¥¯¥é¥¤¥¢¥ó¥È¤¬Í¿¤¨¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤¹¤ë¤¬¡¢¥¤¥Ù¥ó¥È¥­¥å¡¼¤«¤é¤Îºï½ü¤Ï¹Ô¤ï¤Ê¤¤¡£

´Ø¿ô XWindowEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤ò¸¡º÷¤·¡¢»ØÄꤷ¤¿¥¦¥£¥ó¥É¥¦¤È¥¤¥Ù¥ó¥È¥Þ¥¹¥¯¤ÎξÊý¤Ë¥Þ¥Ã ¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤òõ¤¹¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬¤¢¤Ã¤¿¾ì¹ç¡¢ XWindowEvent ¤Ï¤½¤Î¥¤¥Ù¥ó¥È¤ò¥­¥å¡¼¤«¤é¼è¤ê½ü¤­¡¢¤³¤ì¤ò»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤¹¤ë¡£ ¥¤¥Ù¥ó¥È¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¾¤Î¥¤¥Ù¥ó¥È¤ÏÇË´þ¤µ¤ì¤Ê¤¤¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ XWindowEvent ¤Ï½ÐÎϥХåե¡¤ÎÆâÍƤò¥Õ¥é¥Ã¥·¥å¤·¡¢¥¤¥Ù¥ó¥È¤ò¼õ¤±¼è¤ë¤Þ¤Ç½èÍý¤ò¥Ö¥í¥Ã ¥¯¤¹¤ë¡£

´Ø¿ô XCheckWindowEvent ¤Ï¤Þ¤º¥¤¥Ù¥ó¥È¥­¥å¡¼¤ò¡¢¼¡¤Ë¥µ¡¼¥Ð¤È¤ÎÀܳ¾å¤Ç²Äǽ¤Ê¥¤¥Ù¥ó¥È¤ò¸¡º÷¤·¡¢ »ØÄꤷ¤¿¥¦¥£¥ó¥É¥¦¤È¥¤¥Ù¥ó¥È¥Þ¥¹¥¯¤Ë¥Þ¥Ã¥Á¤¹¤ëºÇ½é¤Î¥¤¥Ù¥ó¥È¤òÊÖ¤¹¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬¤¢¤Ã¤¿¾ì¹ç¡¢ XCheckWindowEvent ¤Ï¤½¤Î¥¤¥Ù¥ó¥È¤òºï½ü¤·¡¢¤³¤ì¤ò»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤·¡¢ True ¤òÊÖ¤¹¡£ ¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¾¤Î¥¤¥Ù¥ó¥È¤ÏÇË´þ¤µ¤ì¤Ê¤¤¡£ Í׵ᤷ¤¿¥¤¥Ù¥ó¥È¤¬ÍøÍѤǤ­¤Ê¤¤¾ì¹ç¡¢ XCheckWindowEvent ¤Ï False ¤òÊÖ¤·¡¢½ÐÎϥХåե¡¤Ï¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£

´Ø¿ô XMaskEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤ò¸¡º÷¤·¡¢»ØÄꤷ¤¿¥Þ¥¹¥¯¤ËÂбþ¤¹¤ë¥¤¥Ù¥ó¥È¤ò¸«¤Ä¤±¤ë¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢ XMaskEvent ¤Ï¤½¤Î¥¤¥Ù¥ó¥È¤ò¥­¥å¡¼¤«¤éºï½ü¤·¡¢»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤¹¤ë¡£ ¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¾¤Î¥¤¥Ù¥ó¥È¤ÏÇË´þ¤µ¤ì¤Ê¤¤¡£ Í׵ᤷ¤¿¥¤¥Ù¥ó¥È¤¬¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¡¢ XMaskEvent ¤Ï½ÐÎϥХåե¡¤ÎÆâÍƤò¥Õ¥é¥Ã¥·¥å¤·¡¢¥¤¥Ù¥ó¥È¤ò¼õ¤±¼è¤ë¤Þ¤Ç½èÍý¤ò¥Ö¥í¥Ã ¥¯¤¹¤ë¡£

´Ø¿ô XCheckMaskEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤È¥µ¡¼¥ÐÀܳ¾å¤ÇÍøÍѲÄǽ¤ÊÁ´¤Æ¤Î¥¤¥Ù¥ó¥È¤ò¸¡º÷¤·¡¢»ØÄê ¤·¤¿¥Þ¥¹¥¯¤Ë¥Þ¥Ã¥Á¤¹¤ëºÇ½é¤Î¥¤¥Ù¥ó¥È¤ò¸«¤Ä¤±¤ë¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤ò¸«¤Ä¤±¤¿¾ì¹ç¡¢ XCheckMaskEvent ¤Ï¤½¤Î¥¤¥Ù¥ó¥È¤òºï½ü¤·¡¢¤³¤ì¤ò»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤·¡¢ True. ¤òÊÖ¤¹¡£ ¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¾¤Î¥¤¥Ù¥ó¥È¤ÏÇË´þ¤µ¤ì¤Ê¤¤¡£ Í׵ᤷ¤¿¥¤¥Ù¥ó¥È¤¬ÍøÍѤǤ­¤Ê¤¤¾ì¹ç¡¢ XCheckMaskEvent ¤Ï False ¤òÊÖ¤·¡¢½ÐÎϥХåե¡¤Ï¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£

´Ø¿ô XCheckTypedEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤È¥µ¡¼¥ÐÀܳ¾å¤ÇÍøÍѲÄǽ¤ÊÁ´¤Æ¤Î¥¤¥Ù¥ó¥È¤ò¸¡º÷¤·¡¢»ØÄê ¤·¤¿·¿¤Ë¥Þ¥Ã¥Á¤¹¤ëºÇ½é¤Î¥¤¥Ù¥ó¥È¤ò¸«¤Ä¤±¤ë¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢ XCheckTypedEvent ¤Ï¤½¤Î¥¤¥Ù¥ó¥È¤òºï½ü¤·¡¢¤³¤ì¤ò»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤·¡¢ True ¤òÊÖ¤¹¡£ ¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¾¤Î¥¤¥Ù¥ó¥È¤ÏÇË´þ¤µ¤ì¤Ê¤¤¡£ ¥¤¥Ù¥ó¥È¤¬ÍøÍѤǤ­¤Ê¤¤¾ì¹ç¡¢ XCheckTypedEvent ¤Ï False ¤òÊÖ¤·¡¢½ÐÎϥХåե¡¤Ï¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£

´Ø¿ô XCheckTypedWindowEvent ¤Ï¥¤¥Ù¥ó¥È¥­¥å¡¼¤È¥µ¡¼¥ÐÀܳ¾å¤ÇÍøÍѲÄǽ¤ÊÁ´¤Æ¤Î¥¤¥Ù¥ó¥È¤ò¸¡º÷¤·¡¢»ØÄê ¤·¤¿·¿¤È¥¦¥£¥ó¥É¥¦¤Ë¥Þ¥Ã¥Á¤¹¤ëºÇ½é¤Î¥¦¥£¥ó¥É¥¦¤ò¸«¤Ä¤±¤ë¡£ ¥Þ¥Ã¥Á¤¹¤ë¥¤¥Ù¥ó¥È¤¬¸«¤Ä¤«¤Ã¤¿¾ì¹ç¡¢ XCheckTypedWindowEvent ¤Ï¤³¤Î¥¤¥Ù¥ó¥È¤ò¥­¥å¡¼¤«¤éºï½ü¤·¡¢¤³¤ì¤ò»ØÄꤷ¤¿ XEvent ¹½Â¤ÂΤ˥³¥Ô¡¼¤·¡¢ True ¤òÊÖ¤¹¡£ ¥­¥å¡¼¤ËÆþ¤Ã¤Æ¤¤¤ë¾¤Î¥¤¥Ù¥ó¥È¤ÏÇË´þ¤µ¤ì¤Ê¤¤¡£ ¥¤¥Ù¥ó¥È¤¬ÍøÍѤǤ­¤Ê¤¤¾ì¹ç¡¢ XCheckTypedWindowEvent ¤Ï False ¤òÊÖ¤·¡¢½ÐÎϥХåե¡¤Ï¥Õ¥é¥Ã¥·¥å¤µ¤ì¤ë¡£

´ØÏ¢¹àÌÜ

XAnyEvent(3X11), XIfEvent(3X11), XPutBackEvent(3X11), XSendEvent(3X11)
Xlib - C Language X Interface

Release 6.5 X Version 11