BoxLayout

gtk.box_layout.BoxLayout is a layout manager that arranges children in a single row or column.

Whether it is a row or column depends on the value of its gtk.orientable.Orientable.Orientation property. Within the other dimension all children all allocated the same size. The gtk.box_layout.BoxLayout will respect the gtk.widget.Widget.Align and gtk.widget.Widget.Align properties of each child widget.

If you want all children to be assigned the same size, you can use the gtk.box_layout.BoxLayout.gboolean property.

If you want to specify the amount of space placed between each child, you can use the gtk.box_layout.BoxLayout.gint property.

Constructors

this
this(gtk.types.Orientation orientation)

Creates a new gtk.box_layout.BoxLayout.

Members

Functions

getBaselineChild
int getBaselineChild()

Gets the value set by gtk.box_layout.BoxLayout.setBaselineChild.

getBaselinePosition
gtk.types.BaselinePosition getBaselinePosition()

Gets the value set by gtk.box_layout.BoxLayout.setBaselinePosition.

getHomogeneous
bool getHomogeneous()

Returns whether the layout is set to be homogeneous.

getSpacing
uint getSpacing()

Returns the space that box_layout puts between children.

setBaselineChild
void setBaselineChild(int child)

Sets the index of the child that determines the baseline in vertical layout.

setBaselinePosition
void setBaselinePosition(gtk.types.BaselinePosition position)

Sets the baseline position of a box layout.

setHomogeneous
void setHomogeneous(bool homogeneous)

Sets whether the box layout will allocate the same size to all children.

setSpacing
void setSpacing(uint spacing)

Sets how much spacing to put between children.

Mixed In Members

From mixin OrientableT!()

getOrientation
gtk.types.Orientation getOrientation()

Retrieves the orientation of the orientable.

setOrientation
void setOrientation(gtk.types.Orientation orientation)

Sets the orientation of the orientable.

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.

From Orientable

getOrientation
gtk.types.Orientation getOrientation()

Retrieves the orientation of the orientable.

setOrientation
void setOrientation(gtk.types.Orientation orientation)

Sets the orientation of the orientable.