Skip to main content

Crate rosace_layout

Crate rosace_layout 

Source
Expand description

rosace-layout — Phase 1 layout engine and widgets for ROSACE.

This crate provides:

Re-exports§

pub use alignment::CrossAxisAlignment;
pub use alignment::MainAxisAlignment;
pub use flexure::Flexure;
pub use layout_result::LayoutResult;
pub use sizing::Height;
pub use sizing::Width;
pub use widgets::flex::layout_column;
pub use widgets::flex::layout_row;
pub use widgets::aspect_ratio::AspectRatio;
pub use widgets::flex::Flex;
pub use widgets::flex::FlexDirection;
pub use widgets::grid::Grid;
pub use widgets::wrap::Wrap;

Modules§

alignment
Alignment enumerations for flex-style layout axes.
constraints
Re-exports of Constraints and AxisBound from rosace-core.
flexure
Flexure — ROSACE’s constraint-based layout engine.
layout_result
The LayoutResult type returned by every widget’s layout method.
sizing
Width and Height sizing enumerations for declarative widget sizing.
widgets
Layout math for ROSACE (D095).

Structs§

Constraints
Layout constraints passed down the render tree during the measure pass.

Enums§

AxisBound
An axis bound used inside Constraints. Describes a bound along a single layout axis.