(&self, control: &dyn Element)
| 289 | //Internal |
| 290 | |
| 291 | pub fn apply_depth(&self, control: &dyn Element) { |
| 292 | let mut state = self.state.borrow_mut(); |
| 293 | control.set_depth(state.depth_idx + control.depth_offset()); |
| 294 | state.depth_idx += 1.0; |
| 295 | |
| 296 | // for child in control.as_ref().borrow().children.iter() { |
| 297 | // if let Some(widget) = child.widget() { |
| 298 | // self.apply_depth(widget.as_ref()); |
| 299 | // } |
| 300 | // } |
| 301 | } |
| 302 | |
| 303 | pub fn sync_depth(&self) { |
| 304 | self.state.borrow_mut().depth_idx = 0.0; |
no test coverage detected