Module bevy_ui::widget

source ·
Expand description

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

Structs

Functions

  • Generates a new Measure for a text node on changes to its Text component. A Measure is used by the UI’s layout algorithm 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 for a UI text node on changes to the size value of its Node component, or when the needs_recompute field of TextFlags is set to true. This information is computed by the TextPipeline and then stored in TextLayoutInfo.
  • Updates content size of the node based on the image provided