MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / spacing

Method spacing

src/components/stack.rs:35–39  ·  view source on GitHub ↗
(mut self, spacing: f32)

Source from the content-addressed store, hash-verified

33 }
34
35 pub fn spacing(mut self, spacing: f32) -> Self {
36 self.spacing = spacing;
37 self.recalculate_layout();
38 self
39 }
40
41 pub fn child<C: Component + 'static>(mut self, child: C) -> Self {
42 self.children.push(Box::new(child));

Callers 1

mainFunction · 0.80

Calls 1

recalculate_layoutMethod · 0.80

Tested by

no test coverage detected