Skip to main content

ChildBaselineGetter

Type Alias ChildBaselineGetter 

Source
pub type ChildBaselineGetter = fn(&mut App, AnyRenderBox, BoxConstraints, TextBaseline) -> Option<f64>;
Expand description

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

ChildLayoutHelper::get_dry_baseline and ChildLayoutHelper::get_baseline adhere to this signature.