rosace-layout 0.1.0

Flex layout engine for ROSACE: Column, Row, Stack, Flex, Grid, Wrap
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! Re-exports of [`Constraints`] and [`AxisBound`] from `rosace-core`.
//!
//! Helper methods (`max_width_f32`, `max_height_f32`, `constrain`, `is_tight`)
//! are defined directly on `Constraints` inside `rosace-core` so that they are
//! available across the whole workspace without orphan-rule issues.

/// An axis bound used inside [`Constraints`].
pub use rosace_core::render_object::AxisBound;

/// Layout constraints passed down the render tree during the measure pass.
///
/// See also the helper methods added in `rosace-core`:
/// - [`Constraints::max_width_f32`]
/// - [`Constraints::max_height_f32`]
/// - [`Constraints::constrain`]
/// - [`Constraints::is_tight`]
pub use rosace_core::render_object::Constraints;