(&self, control: &dyn Element)
| 266 | } |
| 267 | |
| 268 | pub fn bring_to_front(&self, control: &dyn Element) { |
| 269 | //re-add it to the canvas will put it above |
| 270 | let component = self.component.borrow(); |
| 271 | if let Some(canvas) = component.canvas.as_ref() { |
| 272 | canvas.add(control); |
| 273 | self.sync_depth(); |
| 274 | } |
| 275 | } |
| 276 | |
| 277 | /// Get the top most control under the given point, or None if there is none (or is the canvas itself) |
| 278 | pub fn topmost_at_point(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
nothing calls this directly
no test coverage detected