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: <Error class: unknown class>

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: <Error class: unknown class>, height: <Error class: unknown class>, baseline: <Error class: unknown class>)

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

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 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 setOrientation(orientation: Orientation)

Sets the orientation of the @orientable.