MCPcopy Create free account
hub / github.com/angular-rust/ux-components / get_focusable

Method get_focusable

src/services/focus.rs:246–252  ·  view source on GitHub ↗
(&self, x: f32, y: f32)

Source from the content-addressed store, hash-verified

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) {

Callers 1

find_markedMethod · 0.80

Calls 2

capturedMethod · 0.45
topmost_at_pointMethod · 0.45

Tested by

no test coverage detected