Class: Gtk::BoxLayout

Inherits:
LayoutManager show all
Defined in:
(unknown)

Instance Method Summary collapse

Methods inherited from LayoutManager

#allocate, #get_layout_child, #layout_changed, #measure, #request_mode, #widget

Constructor Details

#initialize(orientation) ⇒ Gtk::LayoutManager

Creates a new GtkBoxLayout.

Parameters:

Instance Method Details

#baseline_childInteger

The child that determines the baseline of the box in vertical layout.

If the child does baseline positioning, then its baseline is lined up with the baseline of the box. If it doesn't, then the bottom edge of the child is used.

Returns:

  • (Integer)

    baseline-child

#baseline_child=(baseline_child) ⇒ Integer

The child that determines the baseline of the box in vertical layout.

If the child does baseline positioning, then its baseline is lined up with the baseline of the box. If it doesn't, then the bottom edge of the child is used.

Parameters:

  • baseline_child (Integer)

Returns:

  • (Integer)

    baseline-child

  • (Integer)

    baseline-child

#baseline_positionGtk::BaselinePosition

The position of the allocated baseline within the extra space allocated to each child.

This property is only relevant for horizontal layouts containing at least one child with a baseline alignment.

Returns:

#baseline_position=(baseline_position) ⇒ Gtk::BaselinePosition

The position of the allocated baseline within the extra space allocated to each child.

This property is only relevant for horizontal layouts containing at least one child with a baseline alignment.

Parameters:

Returns:

#homogeneousBoolean

Returns whether the layout is set to be homogeneous.

Returns:

  • (Boolean)

    true if the layout is homogeneous

#homogeneous=(homogeneous) ⇒ Boolean

Whether the box layout should distribute the available space equally among the children.

Parameters:

  • homogeneous (Boolean)

Returns:

  • (Boolean)

    homogeneous

  • (Boolean)

    homogeneous

#homogeneous?Boolean

Whether the box layout should distribute the available space equally among the children.

Returns:

  • (Boolean)

    homogeneous

#spacingInteger

The space to put between the children.

Returns:

  • (Integer)

    spacing

#spacing=(spacing) ⇒ Integer

The space to put between the children.

Parameters:

  • spacing (Integer)

Returns:

  • (Integer)

    spacing

  • (Integer)

    spacing