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

Method child_size_on_axis

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

Source from the content-addressed store, hash-verified

2338 }
2339
2340 fn child_size_on_axis(&self, child_index: usize, x_axis: bool) -> f32 {
2341 if x_axis {
2342 self.layout_elements[child_index].dimensions.width
2343 } else {
2344 self.layout_elements[child_index].dimensions.height
2345 }
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;

Callers 2

build_wrapped_lineMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected