gtk.box_layout
Module for [BoxLayout] class
Types 3
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.halign and gtk.widget.Widget.valign properties of each child widget.
If you want all children to be assigned the same size, you can use the gtk.box_layout.BoxLayout.homogeneous property.
If you want to specify the amount of space placed between each child, you can use the gtk.box_layout.BoxLayout.spacing property.
BoxLayoutGidBuilder builder() static nothrowGet builder for [gtk.box_layout.BoxLayout] Returns: New builder objectint baselineChild() @property nothrowGet `baselineChild` property. Returns: The child that determines the baseline of the box in vertical layout.void baselineChild(int propval) @property nothrowSet `baselineChild` property. Params: propval = The child that determines the baseline of the box in vertical layout.gtk.types.BaselinePosition baselinePosition() @property nothrowGet `baselinePosition` property. Returns: The position of the allocated baseline within the extra space allocated to each child.void baselinePosition(gtk.types.BaselinePosition propval) @property nothrowSet `baselinePosition` property. Params: propval = The position of the allocated baseline within the extra space allocated to each child.bool homogeneous() @property nothrowGet `homogeneous` property. Returns: Whether the box layout should distribute the available space equally among the children.void homogeneous(bool propval) @property nothrowSet `homogeneous` property. Params: propval = Whether the box layout should distribute the available space equally among the children.int spacing() @property nothrowGet `spacing` property. Returns: The space to put between the children.void spacing(int propval) @property nothrowSet `spacing` property. Params: propval = The space to put between the children.int getBaselineChild() nothrowGets the value set by [gtk.box_layout.BoxLayout.setBaselineChild]. Returns: the index of the child that determines the baseline in vertical layout, or -1gtk.types.BaselinePosition getBaselinePosition() nothrowGets the value set by [gtk.box_layout.BoxLayout.setBaselinePosition]. Returns: the baseline positionbool getHomogeneous() nothrowReturns whether the layout is set to be homogeneous. Returns: true if the layout is homogeneousuint getSpacing() nothrowReturns the space that box_layout puts between children. Returns: the spacing of the layoutvoid setBaselineChild(int child) nothrowSets the index of the child that determines the baseline in vertical layout.void setBaselinePosition(gtk.types.BaselinePosition position) nothrowSets the baseline position of a box layout.void setHomogeneous(bool homogeneous) nothrowSets whether the box layout will allocate the same size to all children.this(gtk.types.Orientation orientation)Creates a new [gtk.box_layout.BoxLayout].Fluent builder implementation template for gtk.box_layout.BoxLayout
T baselineChild(int propval) nothrowSet `baselineChild` property. Params: propval = The child that determines the baseline of the box in vertical layout.T baselinePosition(gtk.types.BaselinePosition propval) nothrowSet `baselinePosition` property. Params: propval = The position of the allocated baseline within the extra space allocated to each child.T homogeneous(bool propval) nothrowSet `homogeneous` property. Params: propval = Whether the box layout should distribute the available space equally among the children. Returns: Builder instance for fluent chainingT spacing(int propval) nothrowSet `spacing` property. Params: propval = The space to put between the children. Returns: Builder instance for fluent chainingFluent builder for gtk.box_layout.BoxLayout