home *** CD-ROM | disk | FTP | other *** search
/ Geek Gadgets 1 / ADE-1.bin / ade-bin / x11r6.1 / man / cat3 / xchecktypedevent.0 < prev    next >
Encoding:
Text File  |  1996-10-17  |  7.6 KB  |  199 lines

  1.  
  2.  
  3.  
  4. XNextEvent(3X11)      XLIB FUNCTIONS     XNextEvent(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XNextEvent, XPeekEvent, XWindowEvent, XCheckWindowEvent,
  9.        XMaskEvent, XCheckMaskEvent, XCheckTypedEvent, XCheckType-
  10.        dWindowEvent - select events by type
  11.  
  12. SSYYNNTTAAXX
  13.        XNextEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___r_e_t_u_r_n)
  14.          Display *_d_i_s_p_l_a_y;
  15.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  16.  
  17.        XPeekEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___r_e_t_u_r_n)
  18.          Display *_d_i_s_p_l_a_y;
  19.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  20.  
  21.        XWindowEvent(_d_i_s_p_l_a_y, _w, _e_v_e_n_t___m_a_s_k, _e_v_e_n_t___r_e_t_u_r_n)
  22.          Display *_d_i_s_p_l_a_y;
  23.          Window _w;
  24.          long _e_v_e_n_t___m_a_s_k;
  25.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  26.  
  27.        Bool XCheckWindowEvent(_d_i_s_p_l_a_y, _w, _e_v_e_n_t___m_a_s_k,
  28.        _e_v_e_n_t___r_e_t_u_r_n)
  29.          Display *_d_i_s_p_l_a_y;
  30.          Window _w;
  31.          long _e_v_e_n_t___m_a_s_k;
  32.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  33.  
  34.        XMaskEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___m_a_s_k, _e_v_e_n_t___r_e_t_u_r_n)
  35.          Display *_d_i_s_p_l_a_y;
  36.          long _e_v_e_n_t___m_a_s_k;
  37.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  38.  
  39.        Bool XCheckMaskEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___m_a_s_k, _e_v_e_n_t___r_e_t_u_r_n)
  40.          Display *_d_i_s_p_l_a_y;
  41.          long _e_v_e_n_t___m_a_s_k;
  42.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  43.  
  44.        Bool XCheckTypedEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___t_y_p_e, _e_v_e_n_t___r_e_t_u_r_n)
  45.          Display *_d_i_s_p_l_a_y;
  46.          int _e_v_e_n_t___t_y_p_e;
  47.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  48.  
  49.        Bool XCheckTypedWindowEvent(_d_i_s_p_l_a_y, _w, _e_v_e_n_t___t_y_p_e,
  50.        _e_v_e_n_t___r_e_t_u_r_n)
  51.          Display *_d_i_s_p_l_a_y;
  52.          Window _w;
  53.          int _e_v_e_n_t___t_y_p_e;
  54.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  55.  
  56. AARRGGUUMMEENNTTSS
  57.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  58.  
  59.        _e_v_e_n_t___m_a_s_k
  60.          Specifies the event mask.
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XNextEvent(3X11)      XLIB FUNCTIONS     XNextEvent(3X11)
  71.  
  72.  
  73.        _e_v_e_n_t___r_e_t_u_r_n
  74.          Returns the matched event's associated struc-
  75.          ture.
  76.  
  77.        _e_v_e_n_t___r_e_t_u_r_n
  78.          Returns the next event in the queue.
  79.  
  80.        _e_v_e_n_t___r_e_t_u_r_n
  81.          Returns a copy of the matched event's associated
  82.          structure.
  83.  
  84.        _e_v_e_n_t___t_y_p_e
  85.          Specifies the event type to be compared.
  86.  
  87.  
  88.        _w     Specifies the window  whose event uou are inter-
  89.          ested in.
  90.  
  91. DDEESSCCRRIIPPTTIIOONN
  92.        The _X_N_e_x_t_E_v_e_n_t function copies the first event from the
  93.        event queue into the specified _X_E_v_e_n_t structure and then
  94.        removes it from the queue.  If the event queue is empty,
  95.        _X_N_e_x_t_E_v_e_n_t flushes the output buffer and blocks until an
  96.        event is received.
  97.  
  98.        The _X_P_e_e_k_E_v_e_n_t function returns the first event from the
  99.        event queue, but it does not remove the event from the
  100.        queue.  If the queue is empty, _X_P_e_e_k_E_v_e_n_t flushes the out-
  101.        put buffer and blocks until an event is received.  It then
  102.        copies the event into the client-supplied _X_E_v_e_n_t structure
  103.        without removing it from the event queue.
  104.  
  105.        The _X_W_i_n_d_o_w_E_v_e_n_t function searches the event queue for an
  106.        event that matches both the specified window and event
  107.        mask.  When it finds a match, _X_W_i_n_d_o_w_E_v_e_n_t removes that
  108.        event from the queue and copies it into the specified
  109.        _X_E_v_e_n_t structure.  The other events stored in the queue
  110.        are not discarded.  If a matching event is not in the
  111.        queue, _X_W_i_n_d_o_w_E_v_e_n_t flushes the output buffer and blocks
  112.        until one is received.
  113.  
  114.        The _X_C_h_e_c_k_W_i_n_d_o_w_E_v_e_n_t function searches the event queue
  115.        and then the events available on the server connection for
  116.        the first event that matches the specified window and
  117.        event mask.  If it finds a match, _X_C_h_e_c_k_W_i_n_d_o_w_E_v_e_n_t
  118.        removes that event, copies it into the specified _X_E_v_e_n_t
  119.        structure, and returns _T_r_u_e.  The other events stored in
  120.        the queue are not discarded.  If the event you requested
  121.        is not available, _X_C_h_e_c_k_W_i_n_d_o_w_E_v_e_n_t returns _F_a_l_s_e, and the
  122.        output buffer will have been flushed.
  123.  
  124.        The _X_M_a_s_k_E_v_e_n_t function searches the event queue for the
  125.        events associated with the specified mask.  When it finds
  126.        a match, _X_M_a_s_k_E_v_e_n_t removes that event and copies it into
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.  
  134.  
  135.  
  136. XNextEvent(3X11)      XLIB FUNCTIONS     XNextEvent(3X11)
  137.  
  138.  
  139.        the specified _X_E_v_e_n_t structure.    The other events stored
  140.        in the queue are not discarded.    If the event you
  141.        requested is not in the queue, _X_M_a_s_k_E_v_e_n_t flushes the out-
  142.        put buffer and blocks until one is received.
  143.  
  144.        The _X_C_h_e_c_k_M_a_s_k_E_v_e_n_t function searches the event queue and
  145.        then any events available on the server connection for the
  146.        first event that matches the specified mask.  If it finds
  147.        a match, _X_C_h_e_c_k_M_a_s_k_E_v_e_n_t removes that event, copies it
  148.        into the specified _X_E_v_e_n_t structure, and returns _T_r_u_e.
  149.        The other events stored in the queue are not discarded.
  150.        If the event you requested is not available, _X_C_h_e_c_k_-
  151.        _M_a_s_k_E_v_e_n_t returns _F_a_l_s_e, and the output buffer will have
  152.        been flushed.
  153.  
  154.        The _X_C_h_e_c_k_T_y_p_e_d_E_v_e_n_t function searches the event queue and
  155.        then any events available on the server connection for the
  156.        first event that matches the specified type.  If it finds
  157.        a match, _X_C_h_e_c_k_T_y_p_e_d_E_v_e_n_t removes that event, copies it
  158.        into the specified _X_E_v_e_n_t structure, and returns _T_r_u_e.
  159.        The other events in the queue are not discarded.     If the
  160.        event is not available, _X_C_h_e_c_k_T_y_p_e_d_E_v_e_n_t returns _F_a_l_s_e,
  161.        and the output buffer will have been flushed.
  162.  
  163.        The _X_C_h_e_c_k_T_y_p_e_d_W_i_n_d_o_w_E_v_e_n_t function searches the event
  164.        queue and then any events available on the server connec-
  165.        tion for the first event that matches the specified type
  166.        and window.  If it finds a match, _X_C_h_e_c_k_T_y_p_e_d_W_i_n_d_o_w_E_v_e_n_t
  167.        removes the event from the queue, copies it into the spec-
  168.        ified _X_E_v_e_n_t structure, and returns _T_r_u_e.  The other
  169.        events in the queue are not discarded.  If the event is
  170.        not available, _X_C_h_e_c_k_T_y_p_e_d_W_i_n_d_o_w_E_v_e_n_t returns _F_a_l_s_e, and
  171.        the output buffer will have been flushed.
  172.  
  173. SSEEEE AALLSSOO
  174.        XAnyEvent(3X11), XIfEvent(3X11), XPutBackEvent(3X11),
  175.        XSendEvent(3X11)
  176.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.  
  196. X Version 11           Release 6.1                3
  197.  
  198.  
  199.