Expand description
This module contains the basic building blocks of Bevy’s UI
Structs
- Marker struct for buttons
- Used to calculate the size of UI image nodes
- Marker struct for labels
- Text system flags
- The size of the image’s texture
Functions
- Creates a
Measure
for text nodes that allows the UI to determine the appropriate amount of space to provide for the text given the fonts, the text itself and the constraints of the layout. - Updates the layout and size information whenever the text or style is changed. This information is computed by the
TextPipeline
on insertion, then stored. - Updates content size of the node based on the texture atlas sprite
- Updates content size of the node based on the image provided