Skip to main content

ChildLayouter

Type Alias ChildLayouter 

Source
pub type ChildLayouter = fn(&mut App, AnyRenderBox, BoxConstraints) -> Size;
Expand description

Signature for a function that takes a AnyRenderBox and returns the Size that the box would have if it were laid out with the given BoxConstraints.

ChildLayoutHelper::dry_layout_child and ChildLayoutHelper::layout_child adhere to this signature.