Gjsify LogoGjsify Logo

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 [propertyGtk.Widget:hexpand] property inside a [classBox], 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.

Index

Enumeration Members

Enumeration Members

BASELINE: number

align the widget according to the baseline. See [classGtk.Widget].

CENTER: number

center natural width of widget inside the allocation

END: number

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

FILL: number

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

START: number

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

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method