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.
Methods
BoxLayoutGidBuilder builder()Get builder for [gtk.box_layout.BoxLayout] Returns: New builder objectint baselineChild() @propertyGet `baselineChild` property. Returns: The child that determines the baseline of the box in vertical layout.void baselineChild(int propval) @propertySet `baselineChild` property. Params: propval = The child that determines the baseline of the box in vertical layout.gtk.types.BaselinePosition baselinePosition() @propertyGet `baselinePosition` property. Returns: The position of the allocated baseline within the extra space allocated to each child.void baselinePosition(gtk.types.BaselinePosition propval) @propertySet `baselinePosition` property. Params: propval = The position of the allocated baseline within the extra space allocated to each child.bool homogeneous() @propertyGet `homogeneous` property. Returns: Whether the box layout should distribute the available space equally among the children.void homogeneous(bool propval) @propertySet `homogeneous` property. Params: propval = Whether the box layout should distribute the available space equally among the children.void spacing(int propval) @propertySet `spacing` property. Params: propval = The space to put between the children.int getBaselineChild()Gets 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()Gets the value set by [gtk.box_layout.BoxLayout.setBaselinePosition]. Returns: the baseline positionbool getHomogeneous()Returns whether the layout is set to be homogeneous. Returns: true if the layout is homogeneousuint getSpacing()Returns the space that box_layout puts between children. Returns: the spacing of the layoutvoid setBaselineChild(int child)Sets the index of the child that determines the baseline in vertical layout.void setBaselinePosition(gtk.types.BaselinePosition position)Sets the baseline position of a box layout.void setHomogeneous(bool homogeneous)Sets whether the box layout will allocate the same size to all children.void setSpacing(uint spacing)Sets how much spacing to put between children.Constructors
this(gtk.types.Orientation orientation)Creates a new [gtk.box_layout.BoxLayout].classBoxLayoutGidBuilderImpl(T) : gtk.layout_manager.LayoutManagerGidBuilderImpl!T, gtk.orientable.OrientableGidBuilderImpl!T
Methods
T baselineChild(int propval)Set `baselineChild` property. Params: propval = The child that determines the baseline of the box in vertical layout.T baselinePosition(gtk.types.BaselinePosition propval)Set `baselinePosition` property. Params: propval = The position of the allocated baseline within the extra space allocated to each child.T homogeneous(bool propval)Set `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)Set `spacing` property. Params: propval = The space to put between the children. Returns: Builder instance for fluent chaining