Module widget

Module widget 

Source
Expand description

This module contains the basic building blocks of Bevy’s UI

Structs§

Button
Marker struct for buttons
ImageMeasure
Used to calculate the size of UI image nodes
ImageNode
A UI Node that renders an image.
ImageNodeSize
The size of the image’s texture
Label
Marker struct for labels
Text
The top-level UI text component.
TextMeasure
Text measurement for UI layout. See NodeMeasure.
TextNodeFlags
UI text system flags.
TextShadow
Adds a shadow behind text
ViewportNode
Component used to render a Camera::target to a node.

Enums§

NodeImageMode
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 its Text 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 the needs_recompute field of TextNodeFlags is set to true. This information is computed by the TextPipeline and then stored in TextLayoutInfo.
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§

TextUiReader
UI alias for TextReader.
TextUiWriter
UI alias for TextWriter.