A type alias for the layout fit policy.
The fit policy controls the computed size constraints which are applied to the parent widget by the layout.
Some layout implementations may ignore the fit policy.
A type alias for the horizontal alignment of a widget.
A type alias for the vertical alignment of a widget.
Get the horizontal alignment for a widget.
The widget of interest.
The horizontal alignment for the widget.
If the layout width allocated to a widget is larger than its max width, the horizontal alignment controls how the widget is placed within the extra horizontal space.
If the allocated width is less than the widget's max width, the horizontal alignment has no effect.
Some layout implementations may ignore horizontal alignment.
Get the vertical alignment for a widget.
The widget of interest.
The vertical alignment for the widget.
If the layout height allocated to a widget is larger than its max height, the vertical alignment controls how the widget is placed within the extra vertical space.
If the allocated height is less than the widget's max height, the vertical alignment has no effect.
Some layout implementations may ignore vertical alignment.
Set the horizontal alignment for a widget.
The widget of interest.
The value for the horizontal alignment.
If the layout width allocated to a widget is larger than its max width, the horizontal alignment controls how the widget is placed within the extra horizontal space.
If the allocated width is less than the widget's max width, the horizontal alignment has no effect.
Some layout implementations may ignore horizontal alignment.
Changing the horizontal alignment will post an update-request
message to widget's parent, provided the parent has a layout
installed.
Set the vertical alignment for a widget.
The widget of interest.
The value for the vertical alignment.
If the layout height allocated to a widget is larger than its max height, the vertical alignment controls how the widget is placed within the extra vertical space.
If the allocated height is less than the widget's max height, the vertical alignment has no effect.
Some layout implementations may ignore vertical alignment.
Changing the horizontal alignment will post an update-request
message to widget's parent, provided the parent has a layout
installed.
Generated using TypeDoc
The namespace for the
Layout
class statics.