Basics
Guides
API Reference
Basics
Guides
API Reference
[281:14] static extends: object
Generated metadata helpers for BoxLayout class surfaces.
properties ()
Returns property metadata for
BoxLayout.
A list.[21:7] extends: object
Arranges children in a single row or column. Whether it is a row or column
depends on the value of its [property@Gtk.Orientable:orientation] property.
Within the other dimension all children all allocated the same size. The
GtkBoxLayout will respect the [property@Gtk.Widget:halign] and
[property@Gtk.Widget:valign] properties of each child widget. If you want all
children to be assigned the same size, you can use the
[property@Gtk.BoxLayout:homogeneous] property. If you want to specify the
amount of space placed between each child, you can use the
[property@Gtk.BoxLayout:spacing] property.
BoxLayout (orientation = null)
Creates a new
GtkBoxLayout.
orientation is the orientation for the new layout.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asLayoutManager ()
Wraps this handle as
LayoutManager.
A LayoutManager object.asOrientable ()
Wraps this handle as
Orientable.
A Orientable object.getProperty (string Name)
Reads one generated property by name.
setProperty (string Name, Value)
Writes one generated property by name.
setBaselinechild (int Value)
The child that determines the baseline of the box in vertical layout. If the child does baseline positioning, then its baseline is lined up with the baseline of the box. If it doesn't, then the bottom edge of the child is used.
Value is the new property value.None.setBaselineposition (string Value)
The position of the allocated baseline within the extra space allocated to each child. This property is only relevant for horizontal layouts containing at least one child with a baseline alignment.
Value is the new property value.None.setHomogeneous (bool Value)
Whether the box layout should distribute the available space equally among the children.
Value is the new property value.None.setSpacing (int Value)
The space to put between the children.
Value is the new property value.None.get_baseline_child ()
Gets the value set by gtk_box_layout_set_baseline_child().
get_baseline_position ()
Gets the value set by gtk_box_layout_set_baseline_position().
get_homogeneous ()
Returns whether the layout is set to be homogeneous.
get_spacing ()
Returns the space that @box_layout puts between children.
set_baseline_child (int child)
Sets the index of the child that determines the baseline in vertical layout.
child is the child position, or -1.None.set_baseline_position (string position)
Sets the baseline position of a box layout. The baseline position affects only horizontal boxes with at least one baseline aligned child. If there is more vertical space available than requested, and the baseline is not allocated by the parent then the given @position is used to allocate the baseline within the extra space available.
position is a GtkBaselinePosition.None.set_homogeneous (bool homogeneous)
Sets whether the box layout will allocate the same size to all children.
homogeneous is %TRUE to set the box layout as homogeneous.None.set_spacing (int spacing)
Sets how much spacing to put between children.
spacing is the spacing to apply between children.None.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.