pub struct InnerCoordinator<'a> { /* private fields */ }Expand description
Inner coordinator that wraps the layout node’s intrinsic content (MeasurePolicy).
This is analogous to Jetpack Compose’s InnerNodeCoordinator.
Implementations§
Source§impl<'a> InnerCoordinator<'a>
impl<'a> InnerCoordinator<'a>
Sourcepub fn new(
measure_policy: Rc<dyn MeasurePolicy>,
measurables: &'a [Box<dyn Measurable>],
result_holder: Rc<RefCell<Option<MeasureResult>>>,
) -> Self
pub fn new( measure_policy: Rc<dyn MeasurePolicy>, measurables: &'a [Box<dyn Measurable>], result_holder: Rc<RefCell<Option<MeasureResult>>>, ) -> Self
Creates a new inner coordinator with the given measure policy and children.
Trait Implementations§
Source§impl<'a> Measurable for InnerCoordinator<'a>
impl<'a> Measurable for InnerCoordinator<'a>
Source§fn measure(&self, constraints: Constraints) -> Box<dyn Placeable>
fn measure(&self, constraints: Constraints) -> Box<dyn Placeable>
Measures the child with the provided constraints, returning a
Placeable.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 InnerCoordinator<'a>
impl<'a> NodeCoordinator for InnerCoordinator<'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 InnerCoordinator<'a>
impl<'a> !RefUnwindSafe for InnerCoordinator<'a>
impl<'a> !Send for InnerCoordinator<'a>
impl<'a> !Sync for InnerCoordinator<'a>
impl<'a> Unpin for InnerCoordinator<'a>
impl<'a> !UnwindSafe for InnerCoordinator<'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