layout
A collection of layout helper functions for placing widgets Helper to layout widgets stacked vertically or horizontally.
If there is a widget expanded in that direction, it takes up the remaining space and it is an error to have any widget after.
Widgets with .gravity_y (.gravity_x) not zero might overlap other widgets.
Types
- BasicLayout
Helper to layout widgets stacked vertically or horizontally.
- Alignment
Help left-align widgets by adding horizontal spacers.
- PlaceOnScreenAvoid
Controls how
placeOnScreenwill move start to avoid spawner.
Functions
- placeOnScreen
Adjust start rect based on screen and spawner (like a context menu).