Expand description
This module contains the basic building blocks of Bevy’s UI
Structs§
- Button
- Marker struct for buttons
- Image
Measure - Used to calculate the size of UI image nodes
- Image
Node - A UI Node that renders an image.
- Image
Node Size - The size of the image’s texture
- Label
- Marker struct for labels
- Text
- The top-level UI text component.
- Text
Measure - Text measurement for UI layout. See
NodeMeasure
. - Text
Node Flags - UI text system flags.
- Text
Shadow - Adds a shadow behind text
- Viewport
Node - Component used to render a
Camera::target
to a node.
Enums§
- Node
Image Mode - Controls how the image is altered to fit within the layout and how the layout algorithm determines the space in the layout for the image
Functions§
- measure_
text_ system - Generates a new
Measure
for a text node on changes to itsText
component. - text_
system - Updates the layout and size information for a UI text node on changes to the size value of its
Node
component, or when theneeds_recompute
field ofTextNodeFlags
is set to true. This information is computed by theTextPipeline
and then stored inTextLayoutInfo
. - update_
image_ content_ size_ system - Updates content size of the node based on the image provided
- update_
viewport_ render_ target_ size - Updates the size of the associated render target for viewports when the node size changes.
Type Aliases§
- Text
UiReader - UI alias for
TextReader
. - Text
UiWriter - UI alias for
TextWriter
.