Trait taffy::tree::traits::LayoutPartialTreeExt

source ·
pub(crate) trait LayoutPartialTreeExt: LayoutPartialTree {
    // Provided methods
    fn measure_child_size(
        &mut self,
        node_id: NodeId,
        known_dimensions: Size<Option<f32>>,
        parent_size: Size<Option<f32>>,
        available_space: Size<AvailableSpace>,
        sizing_mode: SizingMode,
        axis: AbsoluteAxis,
        vertical_margins_are_collapsible: Line<bool>,
    ) -> f32 { ... }
    fn perform_child_layout(
        &mut self,
        node_id: NodeId,
        known_dimensions: Size<Option<f32>>,
        parent_size: Size<Option<f32>>,
        available_space: Size<AvailableSpace>,
        sizing_mode: SizingMode,
        vertical_margins_are_collapsible: Line<bool>,
    ) -> LayoutOutput { ... }
}
Expand description

A private trait which allows us to add extra convenience methods to types which implement LayoutTree without making those methods public.

Provided Methods§

source

fn measure_child_size( &mut self, node_id: NodeId, known_dimensions: Size<Option<f32>>, parent_size: Size<Option<f32>>, available_space: Size<AvailableSpace>, sizing_mode: SizingMode, axis: AbsoluteAxis, vertical_margins_are_collapsible: Line<bool>, ) -> f32

Compute the size of the node given the specified constraints

source

fn perform_child_layout( &mut self, node_id: NodeId, known_dimensions: Size<Option<f32>>, parent_size: Size<Option<f32>>, available_space: Size<AvailableSpace>, sizing_mode: SizingMode, vertical_margins_are_collapsible: Line<bool>, ) -> LayoutOutput

Perform a full layout on the node given the specified constraints

Object Safety§

This trait is not object safe.

Implementors§