Skip to main content

SelectionManagerQuery

Trait SelectionManagerQuery 

Source
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§

Source

fn get_click_count(&self) -> u8

Get the current click count (1 = single, 2 = double, 3 = triple)

Source

fn get_drag_start_position(&self) -> Option<LogicalPosition>

Get the drag start position if a drag is in progress

Source

fn has_selection(&self) -> bool

Check if any selection exists (click selection or drag selection)

Implementors§