GtkSizeGroup              package:RGtk2              R Documentation

_G_t_k_S_i_z_e_G_r_o_u_p

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

     Grouping widgets so they request the same size

_M_e_t_h_o_d_s _a_n_d _F_u_n_c_t_i_o_n_s:

     'gtkSizeGroupNew(mode = NULL)'
      'gtkSizeGroupSetMode(object, mode)'
      'gtkSizeGroupGetMode(object)'
      'gtkSizeGroupSetIgnoreHidden(object, ignore.hidden)'
      'gtkSizeGroupGetIgnoreHidden(object)'
      'gtkSizeGroupAddWidget(object, widget)'
      'gtkSizeGroupRemoveWidget(object, widget)'
      'gtkSizeGroup(mode = NULL)'

_H_i_e_r_a_r_c_h_y:

     GObject
        +----GtkSizeGroup 

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

     'GtkSizeGroup' provides a mechanism for grouping a number of
     widgets together so they all request the same amount of space. 
     This is typically useful when you want a column of widgets to have
     the same size, but you can't use a 'GtkTable' widget.

     In detail, the size requested for each widget in a 'GtkSizeGroup'
     is the maximum of the sizes that would have been requested for
     each widget in the size group if they were not in the size group.
     The mode of the size group (see 'gtkSizeGroupSetMode') determines
     whether this applies to the horizontal size, the vertical size, or
     both sizes.

     Note that size groups only affect the amount of space requested,
     not the size that the widgets finally receive. If you want the
     widgets in a 'GtkSizeGroup' to actually be the same size, you need
     to pack them in such a way that they get the size they request and
     not more. For example, if you are packing your widgets into a
     table, you would not include the 'GTK_FILL' flag.

     'GtkSizeGroup' objects are referenced by each widget in the size
     group, so once you have added all widgets to a 'GtkSizeGroup', you
     can drop the initial reference to the size group with
     'g\Object\Unref()'. If the widgets in the size group are
     subsequently destroyed, then they will be removed from the size
     group and drop their references on the size group; when all
     widgets have been removed, the size group will be freed.

     Widgets can be part of multiple size groups; GTK+ will compute the
     horizontal size of a widget from the horizontal requisition of all
     widgets that can be reached from the widget by a chain of size
     groups of type 'GTK_SIZE_GROUP_HORIZONTAL' or
     'GTK_SIZE_GROUP_BOTH', and the vertical size from the vertical
     requisition of all widgets that can be reached from the widget by
     a chain of size groups of type 'GTK_SIZE_GROUP_VERTICAL' or
     'GTK_SIZE_GROUP_BOTH'.

_S_t_r_u_c_t_u_r_e_s:

     '_G_t_k_S_i_z_e_G_r_o_u_p' _undocumented _ .in -5 

_C_o_n_v_e_n_i_e_n_t _C_o_n_s_t_r_u_c_t_i_o_n:

     'gtkSizeGroup' is the equivalent of 'gtkSizeGroupNew'.

_E_n_u_m_s _a_n_d _F_l_a_g_s:

     '_G_t_k_S_i_z_e_G_r_o_u_p_M_o_d_e' The mode of the size group determines the
          directions in which the size group affects the requested
          sizes of its component widgets.  

          '_n_o_n_e' group has no effect  

          '_h_o_r_i_z_o_n_t_a_l' group affects horizontal requisition

          '_v_e_r_t_i_c_a_l' group affects vertical requisition

          '_b_o_t_h' group affects both horizontal and vertical requisition

_P_r_o_p_e_r_t_i_e_s:

     '_i_g_n_o_r_e-_h_i_d_d_e_n' [_l_o_g_i_c_a_l : _R_e_a_d / _W_r_i_t_e] If 'TRUE', hidden widgets
          are ignored when determining  the size of the group.  

          Default value: FALSE  Since  2.8


     '_m_o_d_e' ['_G_t_k_S_i_z_e_G_r_o_u_p_M_o_d_e' : _R_e_a_d / _W_r_i_t_e] The directions in which
          the size group affects the requested sizes of its component
          widgets.  Default value: GTK_SIZE_GROUP_HORIZONTAL


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

     Derived by RGtkGen from GTK+ documentation

_R_e_f_e_r_e_n_c_e_s:

     <URL:
     http://developer.gnome.org/doc/API/2.0/gtk/GtkSizeGroup.html>

