Align

enum Align : Enum<Align>

Controls how a widget deals with extra space in a single dimension.

Alignment only matters if the widget receives a “too large” allocation, for example if you packed the widget with the property@Gtk.Widget:hexpand property inside a class@Box, then the widget might get extra space. If you have for example a 16x16 icon inside a 32x32 space, the icon could be scaled and stretched, it could be centered, or it could be positioned to one side of the space.

Note that in horizontal context %GTK_ALIGN_START and %GTK_ALIGN_END are interpreted relative to text direction.

%GTK_ALIGN_BASELINE support is optional for containers and widgets, and it is only supported for vertical alignment. When it's not supported by a child or a container it is treated as %GTK_ALIGN_FILL.

Entries

Link copied to clipboard

stretch to fill all space if possible, center if no meaningful way to stretch

Link copied to clipboard

snap to left or top side, leaving space on right or bottom

Link copied to clipboard

snap to right or bottom side, leaving space on left or top

Link copied to clipboard

center natural width of widget inside the allocation

Link copied to clipboard

align the widget according to the baseline. See class@Gtk.Widget.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val nativeValue: <Error class: unknown class>
Link copied to clipboard

Functions

Link copied to clipboard
fun valueOf(value: String): Align

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.