Enum flo_draw::PointerAction
source · pub enum PointerAction {
Enter,
Leave,
Move,
ButtonDown,
Drag,
ButtonUp,
Cancel,
}
Expand description
The action associated with a pointer event
Variants§
Enter
The pointer has entered the window
Leave
The pointer has left the window
Move
Moving a pointer with no buttons pressed
ButtonDown
A new button has been pressed
Drag
Moving the pointer with a button pressed (drag events can move outside the bounds of the window)
ButtonUp
A button has been released
Cancel
A button has been released in a cancellation gesture (eg, due to palm rejection), invalidating a previous drag action
Trait Implementations§
source§impl Clone for PointerAction
impl Clone for PointerAction
source§fn clone(&self) -> PointerAction
fn clone(&self) -> PointerAction
Returns a copy 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 PointerAction
impl Debug for PointerAction
source§impl Hash for PointerAction
impl Hash for PointerAction
source§impl PartialEq<PointerAction> for PointerAction
impl PartialEq<PointerAction> for PointerAction
source§fn eq(&self, other: &PointerAction) -> bool
fn eq(&self, other: &PointerAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.