(&self, control: &dyn Element)
| 197 | } |
| 198 | |
| 199 | pub fn bring_to_front(&self, control: &dyn Element) { |
| 200 | //re-add it to the canvas will put it above |
| 201 | let component = self.component.borrow(); |
| 202 | if let Some(canvas) = component.canvas.as_ref() { |
| 203 | canvas.add(control); |
| 204 | self.sync_depth(); |
| 205 | } |
| 206 | } |
| 207 | |
| 208 | /// Get the top most control under the given point, or None if there is none (or is the canvas itself) |
| 209 | pub fn topmost_at_point(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
nothing calls this directly
no test coverage detected