pub trait SelectionManagerQuery {
// Required methods
fn get_click_count(&self) -> u8;
fn get_drag_start_position(&self) -> Option<LogicalPosition>;
fn has_selection(&self) -> bool;
}Expand description
Trait for querying selection manager state.
This allows pre_callback_filter_internal_events to query manager state
without depending on the concrete SelectionManager type from layout crate.
Required Methods§
Sourcefn get_click_count(&self) -> u8
fn get_click_count(&self) -> u8
Get the current click count (1 = single, 2 = double, 3 = triple)
Sourcefn get_drag_start_position(&self) -> Option<LogicalPosition>
fn get_drag_start_position(&self) -> Option<LogicalPosition>
Get the drag start position if a drag is in progress
Sourcefn has_selection(&self) -> bool
fn has_selection(&self) -> bool
Check if any selection exists (click selection or drag selection)