Class: Gtk::Box
- Inherits:
-
Object
- Object
- Gtk::Box
- Defined in:
- (unknown)
Instance Method Summary collapse
-
#baseline_position ⇒ Gtk::BaselinePosition
Baseline-position.
- #baseline_position=(baseline_position) ⇒ Gtk::BaselinePosition
-
#center_widget ⇒ Gtk::Widget
Retrieves the center widget of the box.
-
#center_widget=(widget) ⇒ nil
Sets a center widget; that is a child widget that will be centered with respect to the full width of the box, even if the children at either side take up different amounts of space.
-
#homogeneous ⇒ TrueClass
Returns whether the box is homogeneous (all children are the same size).
- #homogeneous=(homogeneous) ⇒ TrueClass
-
#homogeneous? ⇒ TrueClass
Homogeneous.
-
#new(orientation, spacing) ⇒ Gtk::Widget
Creates a new Gtk::Box.
-
#pack_end(child, expand, fill, padding) ⇒ nil
Adds child to box, packed with reference to the end of box.
-
#pack_start(child, expand, fill, padding) ⇒ nil
Adds child to box, packed with reference to the start of box.
-
#query_child_packing(child, expand, fill, padding, pack_type) ⇒ nil
Obtains information about how child is packed into box.
-
#reorder_child(child, position) ⇒ nil
Moves child to a new position in the list of box children.
-
#set_child_packing(child, expand, fill, padding, pack_type) ⇒ nil
Sets the way child is packed into box.
-
#spacing ⇒ Integer
Spacing.
- #spacing=(spacing) ⇒ Integer
Instance Method Details
#baseline_position ⇒ Gtk::BaselinePosition
Returns baseline-position.
#baseline_position=(baseline_position) ⇒ Gtk::BaselinePosition
#center_widget ⇒ Gtk::Widget
Retrieves the center widget of the box.
#center_widget=(widget) ⇒ nil
Sets a center widget; that is a child widget that will be centered with respect to the full width of the box, even if the children at either side take up different amounts of space.
#homogeneous ⇒ TrueClass
Returns whether the box is homogeneous (all children are the same size). See gtk_box_set_homogeneous().
#homogeneous=(homogeneous) ⇒ TrueClass
#homogeneous? ⇒ TrueClass
Returns homogeneous.
#new(orientation, spacing) ⇒ Gtk::Widget
Creates a new Gtk::Box.
#pack_end(child, expand, fill, padding) ⇒ nil
Adds child to box, packed with reference to the end of box. The child is packed after (away from end of) any other child packed with reference to the end of box.
#pack_start(child, expand, fill, padding) ⇒ nil
Adds child to box, packed with reference to the start of box. The child is packed after any other child packed with reference to the start of box.
#query_child_packing(child, expand, fill, padding, pack_type) ⇒ nil
Obtains information about how child is packed into box.
#reorder_child(child, position) ⇒ nil
Moves child to a new position in the list of box children. The list contains widgets packed #GTK_PACK_START as well as widgets packed #GTK_PACK_END, in the order that these widgets were added to box.
A widget’s position in the box children list determines where the widget is packed into box. A child widget at some position in the list will be packed just after all other widgets of the same packing type that appear earlier in the list.
#set_child_packing(child, expand, fill, padding, pack_type) ⇒ nil
Sets the way child is packed into box.
#spacing ⇒ Integer
Returns spacing.