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

  1.  
  2.  
  3.  
  4. XTranslateCoordinates(3X11)XLIB FUNCTIONXSTranslateCoordinates(3X11)
  5.  
  6.  
  7. NNAAMMEE
  8.        XTranslateCoordinates - translate window coordinates
  9.  
  10. SSYYNNTTAAXX
  11.        Bool XTranslateCoordinates(_d_i_s_p_l_a_y, _s_r_c___w, _d_e_s_t___w, _s_r_c___x,
  12.        _s_r_c___y, _d_e_s_t___x___r_e_t_u_r_n,
  13.                    _d_e_s_t___y___r_e_t_u_r_n, _c_h_i_l_d___r_e_t_u_r_n)
  14.          Display *_d_i_s_p_l_a_y;
  15.          Window _s_r_c___w, _d_e_s_t___w;
  16.          int _s_r_c___x, _s_r_c___y;
  17.          int *_d_e_s_t___x___r_e_t_u_r_n, *_d_e_s_t___y___r_e_t_u_r_n;
  18.          Window *_c_h_i_l_d___r_e_t_u_r_n;
  19.  
  20. AARRGGUUMMEENNTTSS
  21.        _c_h_i_l_d___r_e_t_u_r_n
  22.          Returns the child if the coordinates are con-
  23.          tained in a mapped child of the destination win-
  24.          dow.
  25.  
  26.        _d_e_s_t___w     Specifies the destination window.
  27.  
  28.        _d_e_s_t___x___r_e_t_u_r_n
  29.        _d_e_s_t___y___r_e_t_u_r_n
  30.          Return the x and y coordinates within the desti-
  31.          nation window.
  32.  
  33.        _d_i_s_p_l_a_y     Specifies the connection to the X server.
  34.  
  35.        _s_r_c___w     Specifies the source window.
  36.  
  37.        _s_r_c___x
  38.        _s_r_c___y     Specify the x and y coordinates within the
  39.          source window.
  40.  
  41. DDEESSCCRRIIPPTTIIOONN
  42.        If _X_T_r_a_n_s_l_a_t_e_C_o_o_r_d_i_n_a_t_e_s returns _T_r_u_e, it takes the src_x
  43.        and src_y coordinates relative to the source window's ori-
  44.        gin and returns these coordinates to dest_x_return and
  45.        dest_y_return relative to the destination window's origin.
  46.        If _X_T_r_a_n_s_l_a_t_e_C_o_o_r_d_i_n_a_t_e_s returns _F_a_l_s_e, src_w and dest_w
  47.        are on different screens, and dest_x_return and
  48.        dest_y_return are zero.    If the coordinates are contained
  49.        in a mapped child of dest_w, that child is returned to
  50.        child_return.  Otherwise, child_return is set to _N_o_n_e.
  51.  
  52.        _X_T_r_a_n_s_l_a_t_e_C_o_o_r_d_i_n_a_t_e_s can generate a _B_a_d_W_i_n_d_o_w error.
  53.  
  54. DDIIAAGGNNOOSSTTIICCSS
  55.        _B_a_d_W_i_n_d_o_w A value for a Window argument does not name a
  56.          defined Window.
  57.  
  58. SSEEEE AALLSSOO
  59.        _X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e
  60.  
  61.  
  62.  
  63.  
  64. X Version 11           Release 6.1                1
  65.  
  66.  
  67.