gtkWindowSetDefaultSize        package:RGtk2        R Documentation

_g_t_k_W_i_n_d_o_w_S_e_t_D_e_f_a_u_l_t_S_i_z_e

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

     Sets the default size of a window. If the window's "natural" size
     (its size request) is larger than the default, the default will be
     ignored. More generally, if the default size does not obey the
     geometry hints for the window ('gtkWindowSetGeometryHints' can be
     used to set these explicitly), the default size will be clamped to
     the nearest permitted size.

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

     gtkWindowSetDefaultSize(object, width, height)

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

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

 'width': [integer]  width in pixels, or -1 to unset the default width

'height': [integer]  height in pixels, or -1 to unset the default
          height

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

     Unlike 'gtkWidgetSetSizeRequest', which sets a size request for a
     widget and thus would keep users from shrinking the window, this
     function only sets the initial size, just as if the user had
     resized the window themselves. Users can still shrink the window
     again as they normally would. Setting a default size of -1 means
     to use the "natural" default size (the size request of the
     window).

     For more control over a window's initial size and how resizing
     works, investigate 'gtkWindowSetGeometryHints'.

     For some uses, 'gtkWindowResize' is a more appropriate function.
     'gtkWindowResize' changes the current size of the window, rather
     than the size to be used on initial display. 'gtkWindowResize'
     always affects the window itself, not the geometry widget.

     The default size of a window only affects the first time a window
     is shown; if a window is hidden and re-shown, it will remember the
     size it had prior to hiding, rather than using the default size.

     Windows can't actually be 0x0 in size, they must be at least 1x1,
     but passing 0 for 'width' and 'height' is OK, resulting in a 1x1
     default size.

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

     Derived by RGtkGen from GTK+ documentation

