Trait torin::custom_measurer::LayoutMeasurer
source · pub trait LayoutMeasurer<Key: NodeKey> {
// Required methods
fn measure(
&mut self,
node_id: Key,
node: &Node,
size: &Size2D
) -> Option<(Size2D, Arc<SendAnyMap>)>;
fn should_measure_inner_children(&mut self, node_id: Key) -> bool;
// Provided method
fn notify_layout_references(&self, _node_id: Key, _layout_node: &LayoutNode) { ... }
}