Expand description
Container and Layouts for bevy_rectray
This module provides a simple layout system where parents provide layout type, direction, margin and padding from Container
and dimension from Dimension
while children provide Anchor to influence where they are placed.
§StackLayout
A dynamic sized mono-directional layout.
§SpanLayout
A fixed sized mono-directional layout.
§ParagraphLayout
A line-wrapping mono-directional layout.
Structs§
- Bounds
Layout - A dynamic dimensioned layout with size equal to the maximum of its children and no additional behaviors.
- Container
- A configurable container that lays out a sequence of Entities.
- Layout
Info - Dimension info of a layout parent.
- Layout
Object - Type erased
Layout. - Layout
Output - Output of a layout, containing anchors of entities, and the computed dimension of the layout.
- Paragraph
Layout - A multiline version of the
spanlayout, similar to the layout of a paragraph. - Rev
- Reverse a direction.
- Span
Layout - A fix-sized mono-directional container.
- Stack
Layout - A size agnostic mono-directional container.
Enums§
- Layout
Control - Cause special behaviors when inserted into a
Container. - Layout
Range - Range of content displayed in the layout, default is
All. - Stretch
- A direction that also signifies stretch.
- X
- The direction +X, left to right.
- Y
- The direction +Y, bottom to top.
Traits§
- Direction
- Direction of a layout.
- Direction
Pair - A pair of orthogonal direction.
- Layout
- A layout that accepts a one dimensional sequence of widgets.
- Stretch
Dir - Direction and stretch of a layout.