Class: Gtk::SizeGroup

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#add_widget(widget) ⇒ nil

Adds a widget to a Gtk::SizeGroup. In the future, the requisition of the widget will be determined as the maximum of its requisition and the requisition of the other widgets in the size group. Whether this applies horizontally, vertically, or in both directions depends on the mode of the size group. See gtk_size_group_set_mode().

When the widget is destroyed or no longer referenced elsewhere, it will be removed from the size group.

Parameters:

Returns:

  • (nil)

#ignore_hiddenTrueClass

Returns if invisible widgets are ignored when calculating the size.

Returns:

  • (TrueClass)

    true if invisible widgets are ignored.

#ignore_hidden=(ignore_hidden) ⇒ TrueClass

If true, unmapped widgets are ignored when determining the size of the group.

Parameters:

  • ignore_hidden (TrueClass)

Returns:

  • (TrueClass)

    ignore-hidden

  • (TrueClass)

    ignore-hidden

#ignore_hidden?TrueClass

If true, unmapped widgets are ignored when determining the size of the group.

Returns:

  • (TrueClass)

    ignore-hidden

#modeGtk::SizeGroupMode

Returns mode.

Returns:

#mode=(mode) ⇒ Gtk::SizeGroupMode

Parameters:

Returns:

#new(mode) ⇒ Gtk::SizeGroup

Create a new Gtk::SizeGroup.

Parameters:

Returns:

#remove_widget(widget) ⇒ nil

Removes a widget from a Gtk::SizeGroup.

Parameters:

Returns:

  • (nil)

#widgetsGLib::SList

Returns the list of widgets associated with size_group.

Returns:

  • (GLib::SList)

    a #GSList of widgets. The list is owned by GTK+ and should not be modified.