Syntax
AlignFlag = WidgetGetAlign(Widget)
Description
Retrieves the current alignment setting for the specified widget within its parent layout container. Alignment determines how the widget is positioned along the cross-axis of the layout (e.g., vertically in a horizontal Flexbox row, or horizontally in a vertical Flexbox column).
Parameters
Widget
The handle of the ProGUI widget whose alignment setting is to be retrieved.
Return Value
Returns one of the following alignment flags, or #False if the widget handle is invalid:
#PG_Widget_Align_Start : Aligns the widget to the start of the cross-axis.
#PG_Widget_Align_Center : Centers the widget along the cross-axis.
#PG_Widget_Align_End : Aligns the widget to the end of the cross-axis.
If no specific alignment has been set using WidgetSetAlign(), the effective alignment might depend on the parent layout's `AlignItems` or `AlignGridItems` property, but this function only returns flags explicitly set on the widget itself. If no flag is explicitly set, it might implicitly return #False (representing the default behavior, which could be 'stretch' or 'start' depending on the layout).
Remarks
Widget alignment is primarily relevant for Flexbox and Grid layouts. The specific effect depends on the layout type and its direction/flow. This property corresponds to the `align-self` property in CSS Flexbox/Grid.
See Also
WidgetSetAlign, WidgetSetJustify, LayoutFlexSetAlignItems, LayoutGridSetAlignItems
Supported OS
Windows, Linux