Class: Gtk::CenterLayout

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

#initializeGtk::LayoutManager

Creates a new GtkCenterLayout.

Instance Method Details

#baseline_positionGtk::BaselinePosition

Returns the baseline position of the layout.

Returns:

#baseline_position=(baseline_position) ⇒ nil

Sets the new baseline position of self

Parameters:

Returns:

  • (nil)

#center_widgetGtk::Widget

Returns the center widget of the layout.

Returns:

#center_widget=(widget) ⇒ nil

Sets the new center widget of self.

To remove the existing center widget, pass nil.

Parameters:

Returns:

  • (nil)

#end_widgetGtk::Widget

Returns the end widget of the layout.

Returns:

#end_widget=(widget) ⇒ nil

Sets the new end widget of self.

To remove the existing center widget, pass nil.

Parameters:

Returns:

  • (nil)

#orientationGtk::Orientation

Gets the current orienration of the layout manager.

Returns:

#orientation=(orientation) ⇒ nil

Sets the orientation of self.

Parameters:

Returns:

  • (nil)

#shrink_center_lastBoolean

Gets whether self shrinks the center widget after other children.

Returns:

  • (Boolean)

    whether to shrink the center widget after others

#shrink_center_last=(shrink_center_last) ⇒ Boolean

Whether to shrink the center widget after other children.

By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.

If set to FALSE, start and end widgets keep natural width and the center widget starts shrinking instead.

Parameters:

  • shrink_center_last (Boolean)

Returns:

  • (Boolean)

    shrink-center-last

  • (Boolean)

    shrink-center-last

#shrink_center_last?Boolean

Whether to shrink the center widget after other children.

By default, when there's no space to give all three children their natural widths, the start and end widgets start shrinking and the center child keeps natural width until they reach minimum width.

If set to FALSE, start and end widgets keep natural width and the center widget starts shrinking instead.

Returns:

  • (Boolean)

    shrink-center-last

#start_widgetGtk::Widget

Returns the start widget of the layout.

Returns:

#start_widget=(widget) ⇒ nil

Sets the new start widget of self.

To remove the existing start widget, pass nil.

Parameters:

Returns:

  • (nil)