(&self, control: &dyn Element)
| 97 | } |
| 98 | |
| 99 | pub fn bring_to_front(&self, control: &dyn Element) { |
| 100 | //re-add it to the canvas will put it above |
| 101 | let component = self.component.borrow(); |
| 102 | if let Some(canvas) = component.canvas.as_ref() { |
| 103 | canvas.add(control); |
| 104 | self.sync_depth(); |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | /// Get the top most control under the given point, or None if there is none (or is the canvas itself) |
| 109 | pub fn topmost_at_point(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
nothing calls this directly
no test coverage detected