the depth of this control
(&self, depth: f32)
| 1550 | |
| 1551 | //the depth of this control |
| 1552 | fn set_depth(&self, depth: f32) { |
| 1553 | let mut comp = self.as_ref().borrow_mut(); |
| 1554 | |
| 1555 | assert!( |
| 1556 | !comp.destroyed, |
| 1557 | "Widget was already destroyed but is being interacted with" |
| 1558 | ); |
| 1559 | |
| 1560 | comp.depth = depth; |
| 1561 | |
| 1562 | if comp.ondepth.is_some() { |
| 1563 | let depth = comp.depth; |
| 1564 | let _ = comp.ondepth.get().try_send(depth); |
| 1565 | } |
| 1566 | } |
| 1567 | |
| 1568 | #[inline] |
| 1569 | fn mouse_input(&self) -> bool { |
no test coverage detected