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

  1.  
  2.  
  3.  
  4. XIfEvent(3X11)          XLIB FUNCTIONS       XIfEvent(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XIfEvent, XCheckIfEvent, XPeekIfEvent - check the event
  9.        queue with a predicate procedure
  10.  
  11. SSYYNNTTAAXX
  12.        XIfEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___r_e_t_u_r_n, _p_r_e_d_i_c_a_t_e, _a_r_g)
  13.          Display *_d_i_s_p_l_a_y;
  14.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  15.          Bool (*_p_r_e_d_i_c_a_t_e)();
  16.          XPointer _a_r_g;
  17.  
  18.        Bool XCheckIfEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___r_e_t_u_r_n, _p_r_e_d_i_c_a_t_e, _a_r_g)
  19.          Display *_d_i_s_p_l_a_y;
  20.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  21.          Bool (*_p_r_e_d_i_c_a_t_e)();
  22.          XPointer _a_r_g;
  23.  
  24.        XPeekIfEvent(_d_i_s_p_l_a_y, _e_v_e_n_t___r_e_t_u_r_n, _p_r_e_d_i_c_a_t_e, _a_r_g)
  25.          Display *_d_i_s_p_l_a_y;
  26.          XEvent *_e_v_e_n_t___r_e_t_u_r_n;
  27.          Bool (*_p_r_e_d_i_c_a_t_e)();
  28.          XPointer _a_r_g;
  29.  
  30. AARRGGUUMMEENNTTSS
  31.        _a_r_g     Specifies the user-supplied argument that will
  32.          be passed to the predicate procedure.
  33.  
  34.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  35.  
  36.        _e_v_e_n_t___r_e_t_u_r_n
  37.          Returns either a copy of or  the matched event's
  38.          associated structure.
  39.  
  40.        _p_r_e_d_i_c_a_t_e Specifies the procedure that is to be called to
  41.          determine if the next event in the queue matches
  42.          what you want.
  43.  
  44. DDEESSCCRRIIPPTTIIOONN
  45.        The _X_I_f_E_v_e_n_t function completes only when the specified
  46.        predicate procedure returns _T_r_u_e for an event, which indi-
  47.        cates an event in the queue matches.  _X_I_f_E_v_e_n_t flushes the
  48.        output buffer if it blocks waiting for additional events.
  49.        _X_I_f_E_v_e_n_t removes the matching event from the queue and
  50.        copies the structure into the client-supplied _X_E_v_e_n_t
  51.        structure.
  52.  
  53.        When the predicate procedure finds a match, _X_C_h_e_c_k_I_f_E_v_e_n_t
  54.        copies the matched event into the client-supplied _X_E_v_e_n_t
  55.        structure and returns _T_r_u_e.  (This event is removed from
  56.        the queue.)  If the predicate procedure finds no match,
  57.        _X_C_h_e_c_k_I_f_E_v_e_n_t returns _F_a_l_s_e, and the output buffer will
  58.        have been flushed.  All earlier events stored in the queue
  59.        are not discarded.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XIfEvent(3X11)          XLIB FUNCTIONS       XIfEvent(3X11)
  71.  
  72.  
  73.        The _X_P_e_e_k_I_f_E_v_e_n_t function returns only when the specified
  74.        predicate procedure returns _T_r_u_e for an event.  After the
  75.        predicate procedure finds a match, _X_P_e_e_k_I_f_E_v_e_n_t copies the
  76.        matched event into the client-supplied _X_E_v_e_n_t structure
  77.        without removing the event from the queue.  _X_P_e_e_k_I_f_E_v_e_n_t
  78.        flushes the output buffer if it blocks waiting for addi-
  79.        tional events.
  80.  
  81. SSEEEE AALLSSOO
  82.        XAnyEvent(3X11), XNextEvent(3X11), XPutBackEvent(3X11)
  83.        XSendEvent(3X11)
  84.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  85.  
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130. X Version 11           Release 6.1                2
  131.  
  132.  
  133.