pub struct Flexure;Expand description
ROSACE’s constraint-based layout engine.
Runs a three-pass layout:
- Measure — top-down constraint propagation (driven by this struct)
- Place — bottom-up size resolution (driven by this struct)
- Paint — handled by
rosace-render
In Phase 1 the engine is invoked manually per-widget; automatic tree traversal is wired up in a later step.
Implementations§
Source§impl Flexure
impl Flexure
Sourcepub fn layout_leaf(constraints: Constraints, natural_size: Size) -> LayoutResult
pub fn layout_leaf(constraints: Constraints, natural_size: Size) -> LayoutResult
Run a layout pass for a leaf node that has no children.
The natural_size is clamped to constraints and returned inside a
LayoutResult with an empty child_positions list.
Auto Trait Implementations§
impl Freeze for Flexure
impl RefUnwindSafe for Flexure
impl Send for Flexure
impl Sync for Flexure
impl Unpin for Flexure
impl UnsafeUnpin for Flexure
impl UnwindSafe for Flexure
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more