gtkWindowMove             package:RGtk2             R Documentation

_g_t_k_W_i_n_d_o_w_M_o_v_e

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

     Asks the window manager to move 'window' to the given position. 
     Window managers are free to ignore this; most window managers
     ignore requests for initial window positions (instead using a
     user-defined placement algorithm) and honor requests after the
     window has already been shown.

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

     gtkWindowMove(object, x, y)

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

'object': ['GtkWindow']  a 'GtkWindow'

     'x': [integer]  X coordinate to move window to

     'y': [integer]  Y coordinate to move window to

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

     Note: the position is the position of the gravity-determined
     reference point for the window. The gravity determines two things:
     first, the location of the reference point in root window
     coordinates; and second, which point on the window is positioned
     at the reference point.

     By default the gravity is 'GDK_GRAVITY_NORTH_WEST', so the
     reference point is simply the 'x', 'y' supplied to
     'gtkWindowMove'. The top-left corner of the window decorations
     (aka window frame or border) will be placed at 'x', 'y'. 
     Therefore, to position a window at the top left of the screen, you
     want to use the default gravity (which is
     'GDK_GRAVITY_NORTH_WEST') and move the window to 0,0.

     To position a window at the bottom right corner of the screen, you
     would set 'GDK_GRAVITY_SOUTH_EAST', which means that the reference
     point is at 'x' + the window width and 'y' + the window height,
     and the bottom-right corner of the window border will be placed at
     that reference point. So, to place a window in the bottom right
     corner you would first set gravity to south east, then write:
     'gtk_window_move (window, ' (note that this example does not take
     multi-head scenarios into account).

     The Extended Window Manager Hints specification at 
     http://www.org/Standards/wm-spec (<URL:
     http://www.org/Standards/wm-spec>) has a  nice table of gravities
     in the "implementation notes" section.

     The 'gtkWindowGetPosition' documentation may also be relevant.

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

     Derived by RGtkGen from GTK+ documentation

