pub trait LayoutMeasurer<Key>
where Key: NodeKey,
{ // Required method fn measure( &mut self, node_id: Key, node: &Node, parent_area: &Rect<f32, Measure>, available_parent_area: &Rect<f32, Measure> ) -> Option<Size2D<f32, Measure>>; }

Required Methods§

source

fn measure( &mut self, node_id: Key, node: &Node, parent_area: &Rect<f32, Measure>, available_parent_area: &Rect<f32, Measure> ) -> Option<Size2D<f32, Measure>>

Implementations on Foreign Types§

source§

impl<'a> LayoutMeasurer<EntityId> for SkiaMeasurer<'a>

source§

fn measure( &mut self, node_id: EntityId, _node: &Node, _parent_area: &Rect<f32, Measure>, available_parent_area: &Rect<f32, Measure> ) -> Option<Size2D<f32, Measure>>

Implementors§