pub struct LayoutModifierCoordinator<'a> { /* private fields */ }Expand description
Coordinator that wraps a single LayoutModifierNode from the reconciled chain.
This is analogous to Jetpack Compose’s LayoutModifierNodeCoordinator. It delegates measurement to the wrapped node, passing the inner coordinator as the measurable.
Implementations§
Source§impl<'a> LayoutModifierCoordinator<'a>
impl<'a> LayoutModifierCoordinator<'a>
Sourcepub fn new(
node: Rc<RefCell<Box<dyn ModifierNode>>>,
wrapped: Box<dyn NodeCoordinator + 'a>,
context: Rc<RefCell<LayoutNodeContext>>,
) -> Self
pub fn new( node: Rc<RefCell<Box<dyn ModifierNode>>>, wrapped: Box<dyn NodeCoordinator + 'a>, context: Rc<RefCell<LayoutNodeContext>>, ) -> Self
Creates a new coordinator wrapping the specified node.
Trait Implementations§
Source§impl<'a> Measurable for LayoutModifierCoordinator<'a>
impl<'a> Measurable for LayoutModifierCoordinator<'a>
Source§fn measure(&self, constraints: Constraints) -> Box<dyn Placeable>
fn measure(&self, constraints: Constraints) -> Box<dyn Placeable>
Measure through this coordinator
Source§fn min_intrinsic_width(&self, height: f32) -> f32
fn min_intrinsic_width(&self, height: f32) -> f32
Returns the minimum width achievable for the given height.
Source§fn max_intrinsic_width(&self, height: f32) -> f32
fn max_intrinsic_width(&self, height: f32) -> f32
Returns the maximum width achievable for the given height.
Source§fn min_intrinsic_height(&self, width: f32) -> f32
fn min_intrinsic_height(&self, width: f32) -> f32
Returns the minimum height achievable for the given width.
Source§fn max_intrinsic_height(&self, width: f32) -> f32
fn max_intrinsic_height(&self, width: f32) -> f32
Returns the maximum height achievable for the given width.
Source§fn flex_parent_data(&self) -> Option<FlexParentData>
fn flex_parent_data(&self) -> Option<FlexParentData>
Returns flex parent data if this measurable has weight/fill properties.
Default implementation returns None (no weight).
Source§impl<'a> NodeCoordinator for LayoutModifierCoordinator<'a>
impl<'a> NodeCoordinator for LayoutModifierCoordinator<'a>
Source§fn total_content_offset(&self) -> Point
fn total_content_offset(&self) -> Point
Returns the accumulated placement offset from this coordinator
down through the wrapped chain (inner-most coordinator).
Auto Trait Implementations§
impl<'a> !Freeze for LayoutModifierCoordinator<'a>
impl<'a> !RefUnwindSafe for LayoutModifierCoordinator<'a>
impl<'a> !Send for LayoutModifierCoordinator<'a>
impl<'a> !Sync for LayoutModifierCoordinator<'a>
impl<'a> Unpin for LayoutModifierCoordinator<'a>
impl<'a> !UnwindSafe for LayoutModifierCoordinator<'a>
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