GtkAlign

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 gtk.widget.Widget.gboolean 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.types.Align.Start and gtk.types.Align.End are interpreted relative to text direction.

Baseline support is optional for containers and widgets, and is only available for vertical alignment. `GTK_ALIGN_BASELINE_CENTER and gtk.types.Align.BaselineFill are treated similar to gtk.types.Align.Center and gtk.types.Align.Fill, except that it positions the widget to line up the baselines, where that is supported.

Values

ValueMeaning
Fill0

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

Start1

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

End2

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

Center3

center natural width of widget inside the allocation

BaselineFill4

a different name for gtk.types.Align.Baseline.

Baseline4

align the widget according to the baseline.

Deprecated: Use gtk.types.Align.BaselineFill instead

BaselineCenter5

stretch to fill all space, but align the baseline.