(&self, control: &dyn Element)
| 168 | } |
| 169 | |
| 170 | pub fn bring_to_front(&self, control: &dyn Element) { |
| 171 | //re-add it to the canvas will put it above |
| 172 | let component = self.component.borrow(); |
| 173 | if let Some(canvas) = component.canvas.as_ref() { |
| 174 | canvas.add(control); |
| 175 | self.sync_depth(); |
| 176 | } |
| 177 | } |
| 178 | |
| 179 | /// Get the top most control under the given point, or None if there is none (or is the canvas itself) |
| 180 | pub fn topmost_at_point(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
nothing calls this directly
no test coverage detected