(mut self, child: C)
| 39 | } |
| 40 | |
| 41 | pub fn child<C: Component + 'static>(mut self, child: C) -> Self { |
| 42 | self.children.push(Box::new(child)); |
| 43 | self.recalculate_layout(); |
| 44 | self |
| 45 | } |
| 46 | |
| 47 | fn recalculate_layout(&mut self) { |
| 48 | let mut width: f32 = 0.0; |
nothing calls this directly
no test coverage detected