Module layout

Module layout 

Source
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§

BoundsLayout
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.
LayoutInfo
Dimension info of a layout parent.
LayoutObject
Type erased Layout.
LayoutOutput
Output of a layout, containing anchors of entities, and the computed dimension of the layout.
ParagraphLayout
A multiline version of the span layout, similar to the layout of a paragraph.
Rev
Reverse a direction.
SpanLayout
A fix-sized mono-directional container.
StackLayout
A size agnostic mono-directional container.

Enums§

LayoutControl
Cause special behaviors when inserted into a Container.
LayoutRange
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.
DirectionPair
A pair of orthogonal direction.
Layout
A layout that accepts a one dimensional sequence of widgets.
StretchDir
Direction and stretch of a layout.