#[non_exhaustive]pub enum PointerKind {
Down(PointerButton),
Up(PointerButton),
Move,
Scroll(ScrollDelta),
Enter,
Leave,
Cancel,
}Expand description
What a pointer did.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Down(PointerButton)
A button was pressed.
Up(PointerButton)
A button was released.
Move
The pointer moved.
Scroll(ScrollDelta)
A wheel or touchpad scrolled.
Enter
The pointer came over the widget. Widgets receive it from the Ui, which
ignores it as input.
Leave
The pointer left the widget. Widgets receive it from the Ui, which
ignores it as input.
Cancel
The press the widget was holding the pointer for was cancelled (the window lost
focus): forget any drag. Widgets receive it from Ui::cancel_pointer.
Trait Implementations§
Source§impl Clone for PointerKind
impl Clone for PointerKind
impl Copy for PointerKind
Source§impl Debug for PointerKind
impl Debug for PointerKind
Source§impl PartialEq for PointerKind
impl PartialEq for PointerKind
impl StructuralPartialEq for PointerKind
Auto Trait Implementations§
impl Freeze for PointerKind
impl RefUnwindSafe for PointerKind
impl Send for PointerKind
impl Sync for PointerKind
impl Unpin for PointerKind
impl UnsafeUnpin for PointerKind
impl UnwindSafe for PointerKind
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