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

  1.  
  2.  
  3.  
  4. XQueryPointer(3X11)      XLIB FUNCTIONS      XQueryPointer(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XQueryPointer - get pointer coordinates
  9.  
  10. SSYYNNTTAAXX
  11.        Bool XQueryPointer(_d_i_s_p_l_a_y, _w, _r_o_o_t___r_e_t_u_r_n, _c_h_i_l_d___r_e_t_u_r_n,
  12.        _r_o_o_t___x___r_e_t_u_r_n, _r_o_o_t___y___r_e_t_u_r_n,
  13.                 _w_i_n___x___r_e_t_u_r_n, _w_i_n___y___r_e_t_u_r_n,
  14.        _m_a_s_k___r_e_t_u_r_n)
  15.          Display *_d_i_s_p_l_a_y;
  16.          Window _w;
  17.          Window *_r_o_o_t___r_e_t_u_r_n, *_c_h_i_l_d___r_e_t_u_r_n;
  18.          int *_r_o_o_t___x___r_e_t_u_r_n, *_r_o_o_t___y___r_e_t_u_r_n;
  19.          int *_w_i_n___x___r_e_t_u_r_n, *_w_i_n___y___r_e_t_u_r_n;
  20.          unsigned int *_m_a_s_k___r_e_t_u_r_n;
  21.  
  22. AARRGGUUMMEENNTTSS
  23.        _c_h_i_l_d___r_e_t_u_r_n
  24.          Returns the child window that the pointer is
  25.          located in, if any.
  26.  
  27.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  28.  
  29.        _m_a_s_k___r_e_t_u_r_n
  30.          Returns the current state of the modifier keys
  31.          and pointer buttons.
  32.  
  33.        _r_o_o_t___r_e_t_u_r_n
  34.          Returns the root window that the pointer is in.
  35.  
  36.        _r_o_o_t___x___r_e_t_u_r_n
  37.        _r_o_o_t___y___r_e_t_u_r_n
  38.          Return the pointer coordinates relative to the
  39.          root window's origin.
  40.  
  41.        _w     Specifies the window.
  42.  
  43.        _w_i_n___x___r_e_t_u_r_n
  44.        _w_i_n___y___r_e_t_u_r_n
  45.          Return the pointer coordinates relative to the
  46.          specified window.
  47.  
  48. DDEESSCCRRIIPPTTIIOONN
  49.        The _X_Q_u_e_r_y_P_o_i_n_t_e_r function returns the root window the
  50.        pointer is logically on and the pointer coordinates rela-
  51.        tive to the root window's origin.  If _X_Q_u_e_r_y_P_o_i_n_t_e_r
  52.        returns _F_a_l_s_e, the pointer is not on the same screen as
  53.        the specified window, and _X_Q_u_e_r_y_P_o_i_n_t_e_r returns _N_o_n_e to
  54.        child_return and zero to win_x_return and win_y_return.
  55.        If _X_Q_u_e_r_y_P_o_i_n_t_e_r returns _T_r_u_e, the pointer coordinates
  56.        returned to win_x_return and win_y_return are relative to
  57.        the origin of the specified window.  In this case, _X_Q_u_e_r_y_-
  58.        _P_o_i_n_t_e_r returns the child that contains the pointer, if
  59.        any, or else _N_o_n_e to child_return.
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.  
  68.  
  69.  
  70. XQueryPointer(3X11)      XLIB FUNCTIONS      XQueryPointer(3X11)
  71.  
  72.  
  73.        _X_Q_u_e_r_y_P_o_i_n_t_e_r returns the current logical state of the
  74.        keyboard buttons and the modifier keys in mask_return.  It
  75.        sets mask_return to the bitwise inclusive OR of one or
  76.        more of the button or modifier key bitmasks to match the
  77.        current state of the mouse buttons and the modifier keys.
  78.  
  79.        _X_Q_u_e_r_y_P_o_i_n_t_e_r can generate a _B_a_d_W_i_n_d_o_w error.
  80.  
  81. DDIIAAGGNNOOSSTTIICCSS
  82.        _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a
  83.          defined Window.
  84.  
  85. SSEEEE AALLSSOO
  86.        XGetWindowAttributes(3X11), XQueryTree(3X11)
  87.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  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.