(&self, x: f32, y: f32)
| 244 | } |
| 245 | |
| 246 | fn get_focusable(&self, x: f32, y: f32) -> Option<&Box<dyn Element>> { |
| 247 | if let Some(captured) = self.canvas.captured() { |
| 248 | Some(captured) |
| 249 | } else { |
| 250 | self.canvas.topmost_at_point(x, y) |
| 251 | } |
| 252 | } |
| 253 | |
| 254 | fn find_marked(&self, e: &mut MouseEvent) -> Option<&Box<dyn Element>> { |
| 255 | match self.get_focusable(e.x as f32, e.y as f32) { |
no test coverage detected