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

Method child_sizing_on_axis

src/engine.rs:2348–2355  ·  view source on GitHub ↗
(&self, child_index: usize, x_axis: bool)

Source from the content-addressed store, hash-verified

2346 }
2347
2348 fn child_sizing_on_axis(&self, child_index: usize, x_axis: bool) -> SizingAxis {
2349 let child_layout_idx = self.layout_elements[child_index].layout_config_index;
2350 if x_axis {
2351 self.layout_configs[child_layout_idx].sizing.width
2352 } else {
2353 self.layout_configs[child_layout_idx].sizing.height
2354 }
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);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected