CenterLayout

gtk.center_layout.CenterLayout is a layout manager that manages up to three children.

The start widget is allocated at the start of the layout (left in left-to-right locales and right in right-to-left ones), and the end widget at the end.

The center widget is centered regarding the full width of the layout's.

Constructors

this
this()

Creates a new gtk.center_layout.CenterLayout.

Members

Functions

getBaselinePosition
gtk.types.BaselinePosition getBaselinePosition()

Returns the baseline position of the layout.

getCenterWidget
gtk.widget.Widget getCenterWidget()

Returns the center widget of the layout.

getEndWidget
gtk.widget.Widget getEndWidget()

Returns the end widget of the layout.

getOrientation
gtk.types.Orientation getOrientation()

Gets the current orienration of the layout manager.

getShrinkCenterLast
bool getShrinkCenterLast()

Gets whether self shrinks the center widget after other children.

getStartWidget
gtk.widget.Widget getStartWidget()

Returns the start widget of the layout.

setBaselinePosition
void setBaselinePosition(gtk.types.BaselinePosition baselinePosition)

Sets the new baseline position of self

setCenterWidget
void setCenterWidget(gtk.widget.Widget widget)

Sets the new center widget of self.

setEndWidget
void setEndWidget(gtk.widget.Widget widget)

Sets the new end widget of self.

setOrientation
void setOrientation(gtk.types.Orientation orientation)

Sets the orientation of self.

setShrinkCenterLast
void setShrinkCenterLast(bool shrinkCenterLast)

Sets whether to shrink the center widget after other children.

setStartWidget
void setStartWidget(gtk.widget.Widget widget)

Sets the new start widget of self.

Inherited Members

From LayoutManager

allocate
void allocate(gtk.widget.Widget widget, int width, int height, int baseline)

Assigns the given width, height, and baseline to a widget, and computes the position and sizes of the children of the widget using the layout management policy of manager.

getLayoutChild
gtk.layout_child.LayoutChild getLayoutChild(gtk.widget.Widget child)

Retrieves a gtk.layout_child.LayoutChild instance for the gtk.layout_manager.LayoutManager, creating one if necessary.

getRequestMode
gtk.types.SizeRequestMode getRequestMode()

Retrieves the request mode of manager.

getWidget
gtk.widget.Widget getWidget()

Retrieves the gtk.widget.Widget using the given gtk.layout_manager.LayoutManager.

layoutChanged
void layoutChanged()

Queues a resize on the gtk.widget.Widget using manager, if any.

measure
void measure(gtk.widget.Widget widget, gtk.types.Orientation orientation, int forSize, int minimum, int natural, int minimumBaseline, int naturalBaseline)

Measures the size of the widget using manager, for the given orientation and size.