Package: gtk
GEnum gtk:align
Declaration(gobject:define-genum "GtkAlign" align (:export t :type-initializer "gtk_align_get_type") (:fill 0) (:start 1) (:end 2) (:center 3) (:baseline 4)) Values
Details
Controls how a widget deals with extra space in a single x or y dimension.
Alignment only matters if the widget receives a "too large" allocation, for example if you packed the widget with the expand property inside a gtk:box widget, then the widget might get extra space. If
you have for example a 16 x 16 icon inside a 32 x 32 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 the :start and :end values are interpreted relative to text direction. The :baseline support is optional for containers and widgets, and it is only supported for vertical alignment. When it is not supported by a child widget or a container it is treated as the :fill value. | See also |
2025-1-25