SetAlignment
This function is used to control how a widget scales when its parent is resized.
Syntax
- void SetAlignment(const bool left, const bool right, const bool top, const bool bottom)
Parameters
- left: if set to true the left edge moves with the parent, otherwise it stays in place.
- right: if set to true the right edge moves with the parent, otherwise it stays in place.
- top: if set to true the top edge moves with the parent, otherwise it stays in place.
- bottom: if set to true the bottom edge moves with the parent, otherwise it stays in place.