pub struct SelectMouseUpSelectionGateState { /* private fields */ }Expand description
Timer-driven mouse-up commit gate for select item rows.
Mirrors Base UI’s delayed onMouseUp selection policy:
- unselected rows are blocked for ~200ms after opening when a selected row exists
- selected rows are blocked for ~400ms after opening
- if no selected row exists in the list, both paths are blocked for ~400ms
Implementations§
Source§impl SelectMouseUpSelectionGateState
impl SelectMouseUpSelectionGateState
pub fn arm_on_open( &mut self, host: &mut dyn UiActionHost, window: AppWindowId, has_selected_item_in_list: bool, )
pub fn arm_on_open_with_policy( &mut self, host: &mut dyn UiActionHost, window: AppWindowId, has_selected_item_in_list: bool, policy: SelectMouseUpSelectionGatePolicy, )
pub fn reset_without_cancel(&mut self)
pub fn clear_and_cancel(&mut self, host: &mut dyn UiActionHost)
pub fn on_timer(&mut self, token: TimerToken) -> bool
pub fn should_allow_item_mouse_up(&self, item_is_selected: bool) -> bool
Trait Implementations§
Source§impl Default for SelectMouseUpSelectionGateState
impl Default for SelectMouseUpSelectionGateState
Source§fn default() -> SelectMouseUpSelectionGateState
fn default() -> SelectMouseUpSelectionGateState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SelectMouseUpSelectionGateState
impl RefUnwindSafe for SelectMouseUpSelectionGateState
impl Send for SelectMouseUpSelectionGateState
impl Sync for SelectMouseUpSelectionGateState
impl Unpin for SelectMouseUpSelectionGateState
impl UnsafeUnpin for SelectMouseUpSelectionGateState
impl UnwindSafe for SelectMouseUpSelectionGateState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more