(&self, control: &dyn Element)
| 179 | //Internal |
| 180 | |
| 181 | pub fn apply_depth(&self, control: &dyn Element) { |
| 182 | let mut state = self.state.borrow_mut(); |
| 183 | control.set_depth(state.depth_idx + control.depth_offset()); |
| 184 | state.depth_idx += 1.0; |
| 185 | |
| 186 | // for child in control.as_ref().borrow().children.iter() { |
| 187 | // if let Some(widget) = child.widget() { |
| 188 | // self.apply_depth(widget.as_ref()); |
| 189 | // } |
| 190 | // } |
| 191 | } |
| 192 | |
| 193 | pub fn sync_depth(&self) { |
| 194 | self.state.borrow_mut().depth_idx = 0.0; |
no test coverage detected