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

Required Methods§

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

Implementations on Foreign Types§

source§

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

source§

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

Implementors§