(&self, control: &dyn Element)
| 156 | } |
| 157 | |
| 158 | pub fn bring_to_front(&self, control: &dyn Element) { |
| 159 | //re-add it to the canvas will put it above |
| 160 | let component = self.component.borrow(); |
| 161 | if let Some(canvas) = component.canvas.as_ref() { |
| 162 | canvas.add(control); |
| 163 | self.sync_depth(); |
| 164 | } |
| 165 | } |
| 166 | |
| 167 | /// Get the top most control under the given point, or None if there is none (or is the canvas itself) |
| 168 | pub fn topmost_at_point(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
no test coverage detected