pub trait FocusManagerQuery {
// Required method
fn get_focused_node_id(&self) -> Option<DomNodeId>;
// Provided method
fn get_focused_node_for_seat(&self, seat_id: u64) -> Option<DomNodeId> { ... }
}Expand description
Trait for querying focus manager state.
This allows pre_callback_filter_internal_events to query manager state
without depending on the concrete FocusManager type from layout crate.
Required Methods§
Sourcefn get_focused_node_id(&self) -> Option<DomNodeId>
fn get_focused_node_id(&self) -> Option<DomNodeId>
Get the currently focused node ID
Provided Methods§
Sourcefn get_focused_node_for_seat(&self, seat_id: u64) -> Option<DomNodeId>
fn get_focused_node_for_seat(&self, seat_id: u64) -> Option<DomNodeId>
The node seat seat_id focuses (9b-ii-a-i-d). A manager without
per-seat focus answers the shared one for every seat.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".