BoxLayout

open class BoxLayout(pointer: <Error class: unknown class><<Error class: unknown class>>) : LayoutManager, Orientable

GtkBoxLayout 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 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.

Constructors

Link copied to clipboard
constructor(orientation: Orientation)

Creates a new GtkBoxLayout.

constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open var baselineChild: Int

The child that determines the baseline of the box in vertical layout.

Link copied to clipboard

The position of the allocated baseline within the extra space allocated to each child.

Link copied to clipboard
val gtkBoxLayoutPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
val gtkLayoutManagerPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val gtkOrientablePointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard

Whether the box layout should distribute the available space equally among the children.

Link copied to clipboard

The orientation of the orientable.

Link copied to clipboard
open var spacing: <Error class: unknown class>

The space to put between the children.

Functions

Link copied to clipboard
open fun allocate(widget: Widget, width: Int, height: Int, baseline: Int)

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.

Link copied to clipboard
open fun getBaselineChild(): Int

Gets the value set by gtk_box_layout_set_baseline_child().

Link copied to clipboard

Gets the value set by gtk_box_layout_set_baseline_position().

Link copied to clipboard

Returns whether the layout is set to be homogeneous.

Link copied to clipboard

Retrieves a GtkLayoutChild instance for the GtkLayoutManager, creating one if necessary.

Link copied to clipboard

Retrieves the orientation of the @orientable.

Link copied to clipboard

Retrieves the request mode of @manager.

Link copied to clipboard
open fun getSpacing(): <Error class: unknown class>

Returns the space that @box_layout puts between children.

Link copied to clipboard
open fun getWidget(): Widget?

Retrieves the GtkWidget using the given GtkLayoutManager.

Link copied to clipboard
open fun layoutChanged()

Queues a resize on the GtkWidget using @manager, if any.

Link copied to clipboard
open fun setBaselineChild(child: Int)

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

Link copied to clipboard

Sets the baseline position of a box layout.

Link copied to clipboard
open fun setHomogeneous(homogeneous: Boolean)

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

Link copied to clipboard
open fun setOrientation(orientation: Orientation)

Sets the orientation of the @orientable.

Link copied to clipboard
open fun setSpacing(spacing: <Error class: unknown class>)

Sets how much spacing to put between children.