pub enum PreCallbackSystemEvent {
TextClick {
target: DomNodeId,
position: LogicalPosition,
click_count: u8,
timestamp: Instant,
},
TextDragSelection {
target: DomNodeId,
start_position: LogicalPosition,
current_position: LogicalPosition,
is_dragging: bool,
},
ArrowKeyNavigation {
target: DomNodeId,
direction: ArrowDirection,
extend_selection: bool,
word_jump: bool,
},
KeyboardShortcut {
target: DomNodeId,
shortcut: KeyboardShortcut,
},
DeleteSelection {
target: DomNodeId,
forward: bool,
},
}Expand description
Internal system event for pre-callback processing
Variants§
TextClick
Single/double/triple click for text selection
TextDragSelection
Mouse drag for selection extension
Arrow key navigation with optional selection extension
KeyboardShortcut
Keyboard shortcut (Ctrl+C/X/A)
DeleteSelection
Delete currently selected text (Backspace/Delete key)
Trait Implementations§
Source§impl Clone for PreCallbackSystemEvent
impl Clone for PreCallbackSystemEvent
Source§fn clone(&self) -> PreCallbackSystemEvent
fn clone(&self) -> PreCallbackSystemEvent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PreCallbackSystemEvent
impl Debug for PreCallbackSystemEvent
Source§impl PartialEq for PreCallbackSystemEvent
impl PartialEq for PreCallbackSystemEvent
impl StructuralPartialEq for PreCallbackSystemEvent
Auto Trait Implementations§
impl Freeze for PreCallbackSystemEvent
impl RefUnwindSafe for PreCallbackSystemEvent
impl Send for PreCallbackSystemEvent
impl Sync for PreCallbackSystemEvent
impl Unpin for PreCallbackSystemEvent
impl UnwindSafe for PreCallbackSystemEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more