gdkWindowGetGeometry          package:RGtk2          R Documentation

_g_d_k_W_i_n_d_o_w_G_e_t_G_e_o_m_e_t_r_y

_D_e_s_c_r_i_p_t_i_o_n:

     Any of the return location arguments to this function may be
     'NULL', if you aren't interested in getting the value of that
     field.

_U_s_a_g_e:

     gdkWindowGetGeometry(object)

_A_r_g_u_m_e_n_t_s:

'object': ['GdkWindow']  a 'GdkWindow'

_D_e_t_a_i_l_s:

     The X and Y coordinates returned are relative to the parent window
     of 'window', which for toplevels usually means relative to the
     window decorations (titlebar, etc.) rather than relative to the
     root window (screen-size background window).

     On the X11 platform, the geometry is obtained from the X server,
     so reflects the latest position of 'window'; this may be
     out-of-sync with the position of 'window' delivered in the
     most-recently-processed 'GdkEventConfigure'.
     'gdkWindowGetPosition' in contrast gets the position from the most
     recent configure event. *PLEASE NOTE:* If   'window'   is not a
     toplevel, it is   _much_   better  to call  
     'gdkWindowGetPosition'   and   'gdkDrawableGetSize'   instead, 
     because it avoids the roundtrip to the X server and because 
     'gdkDrawableGetSize'   supports the full 32-bit coordinate space,
     whereas   'gdkWindowGetGeometry'   is restricted to the 16-bit
     coordinates of X11.

_V_a_l_u_e:

     A list containing the following elements: 

     'x': [integer]  return location for X coordinate of window
          (relative to its parent)

     'y': [integer]  return location for Y coordinate of window
          (relative to its parent)

 'width': [integer]  return location for width of window

'height': [integer]  return location for height of window

 'depth': [integer]  return location for bit depth of window

_A_u_t_h_o_r(_s):

     Derived by RGtkGen from GTK+ documentation

