MCPcopy Create free account
hub / github.com/TheRedDeveloper/ply-engine / child_wrap_break_main_size

Method child_wrap_break_main_size

src/engine.rs:2357–2365  ·  view source on GitHub ↗
(&self, child_index: usize, main_axis_x: bool)

Source from the content-addressed store, hash-verified

2355 }
2356
2357 fn child_wrap_break_main_size(&self, child_index: usize, main_axis_x: bool) -> f32 {
2358 let child_sizing = self.child_sizing_on_axis(child_index, main_axis_x);
2359 match child_sizing.type_ {
2360 SizingType::Grow => child_sizing.min_max.min,
2361 SizingType::Percent | SizingType::Fixed | SizingType::Fit => {
2362 self.child_size_on_axis(child_index, main_axis_x)
2363 }
2364 }
2365 }
2366
2367 fn build_wrapped_line(
2368 &self,

Callers 1

compute_wrapped_linesMethod · 0.80

Calls 2

child_sizing_on_axisMethod · 0.80
child_size_on_axisMethod · 0.80

Tested by

no test coverage detected