(&self, control: &dyn Element)
| 127 | } |
| 128 | |
| 129 | pub fn bring_to_front(&self, control: &dyn Element) { |
| 130 | //re-add it to the canvas will put it above |
| 131 | let component = self.component.borrow(); |
| 132 | if let Some(canvas) = component.canvas.as_ref() { |
| 133 | canvas.add(control); |
| 134 | self.sync_depth(); |
| 135 | } |
| 136 | } |
| 137 | |
| 138 | /// Get the top most control under the given point, or None if there is none (or is the canvas itself) |
| 139 | pub fn topmost_at_point(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
nothing calls this directly
no test coverage detected