Enum neko::prelude::Code
[−]
#[repr(u32)]pub enum Code { Left, Right, Wheel, WheelUp, WheelDown, LeftDrag, WheelDrag, RightDrag, ShiftLeft, ShiftWheel, ShiftRight, ShiftLeftDrag, ShiftWheelDrag, ShiftRightDrag, CtrlLeft, CtrlWheel, CtrlRight, CtrlWheelUp, CtrlWheelDown, CtrlLeftDrag, CtrlWheelDrag, CtrlRightDrag, ShiftCtrlLeft, ShiftCtrlWheel, ShiftCtrlRight, ShiftCtrlLeftDrag, ShiftCtrlWheelDrag, ShiftCtrlRightDrag, CmdLeft, CmdWheel, CmdRight, CmdWheelUp, CmdWheelDown, CmdLeftDrag, CmdWheelDrag, CmdRightDrag, CmdShiftLeft, CmdShiftWheel, CmdShiftRight, CmdShiftLeftDrag, CmdShiftWheelDrag, CmdShiftRightDrag, CmdCtrlLeft, CmdCtrlWheel, CmdCtrlRight, CmdCtrlWheelUp, CmdCtrlWheelDown, CmdCtrlLeftDrag, CmdCtrlWheelDrag, CmdCtrlRightDrag, CmdShiftCtrlLeft, CmdShiftCtrlWheel, CmdShiftCtrlRight, CmdShiftCtrlLeftDrag, CmdShiftCtrlWheelDrag, CmdShiftCtrlRightDrag, }
Variants
LeftThe left mouse button is pressed.
RightThe right mouse button is pressed.
WheelThe mouse wheel button is pressed.
WheelUpThe mouse wheel is going up.
WheelDownThe mouse wheel is going down.
LeftDragThe left mouse button is held while moving pointer.
WheelDragThe wheel mouse button is held while moving pointer.
RightDragThe right mouse button is held while moving pointer.
ShiftLeftThe left mouse button is pressed while helding Shift.
ShiftWheelThe wheel mouse button is pressed while helding Shift.
ShiftRightThe right mouse button is pressed while helding Shift.
ShiftLeftDragThe left mouse button and Shift are held while moving pointer.
ShiftWheelDragThe wheel mouse button and Shift are held while moving pointer.
ShiftRightDragThe right mouse button and Shift are held while moving pointer.
CtrlLeftThe left mouse button is pressed while helding Ctrl
CtrlWheelThe wheel mouse button is pressed while helding Ctrl
CtrlRightThe right mouse button is pressed while helding Ctrl
CtrlWheelUpThe mouse wheel is going up while helding Ctrl
CtrlWheelDownThe mouse wheel is going down while helding Ctrl
CtrlLeftDragThe left mouse button and Ctrl are held while moving pointer
CtrlWheelDragThe wheel mouse button and Ctrl are held while moving pointer
CtrlRightDragThe right mouse button and Ctrl are held while moving pointer
ShiftCtrlLeftThe left mouse button is pressed while Ctrl and Shift are held
ShiftCtrlWheelThe wheel mouse button is pressed while Ctrl and Shift are held
ShiftCtrlRightThe right mouse button is pressed while Ctrl and Shift are held
ShiftCtrlLeftDragThe left mouse button, Ctrl and Shift are held while moving pointer
ShiftCtrlWheelDragThe wheel mouse button, Ctrl and Shift are held while moving pointer
ShiftCtrlRightDragThe right mouse button, Ctrl and Shift are held while moving pointer
CmdLeftThe left mouse button is pressed while helding Command
CmdWheelThe wheel mouse button is pressed while helding Command
CmdRightThe right mouse button is pressed while helding Command
CmdWheelUpThe mouse wheel is going up while helding Command
CmdWheelDownThe mouse wheel is going down while helding Command
CmdLeftDragThe left mouse button and Command are held while moving pointer
CmdWheelDragThe wheel mouse button and Command are held while moving pointer
CmdRightDragThe right mouse button and Command are held while moving pointer
CmdShiftLeftThe left mouse button is pressed while helding Command and Shift
CmdShiftWheelThe wheel mouse button is pressed while helding Command and Shift
CmdShiftRightThe right mouse button is pressed while helding Command and Shift
CmdShiftLeftDragThe left mouse button, Shift and Command are held while moving pointer
CmdShiftWheelDragThe wheel mouse button, Shift and Command are held while moving pointer
CmdShiftRightDragThe right mouse button, Shift and Command are held while moving pointer
CmdCtrlLeftThe left mouse button is pressed while helding Command and Ctrl
CmdCtrlWheelThe wheel mouse button is pressed while helding Command and Ctrl
CmdCtrlRightThe right mouse button is pressed while helding Command and Ctrl
CmdCtrlWheelUpThe mouse wheel is going up while helding Command and Ctrl
CmdCtrlWheelDownThe mouse wheel is going down while helding Command and Ctrl
CmdCtrlLeftDragThe left mouse button, Ctrl and Command are held while moving pointer
CmdCtrlWheelDragThe wheel mouse button, Ctrl and Command are held while moving pointer
CmdCtrlRightDragThe right mouse button, Ctrl and Command are held while moving pointer
CmdShiftCtrlLeftThe left mouse button is pressed while helding Command, Shift and Ctrl
CmdShiftCtrlWheelThe wheel mouse button is pressed while helding Command, Shift and Ctrl
CmdShiftCtrlRightThe right mouse button is pressed while helding Command, Shift and Ctrl
CmdShiftCtrlLeftDragThe left mouse button, Ctrl, Shift and Command are held while moving pointer
CmdShiftCtrlWheelDragThe wheel mouse button, Ctrl, Shift and Command are held while moving pointer
CmdShiftCtrlRightDragThe right mouse button, Ctrl, Shift and Command are held while moving pointer
Methods
impl Code
Trait Implementations
impl Copy for Code
impl Debug for Code
fn fmt(&self, __arg_0: &mut Formatter) -> Result<(), Error>
Formats the value using the given formatter.
impl Eq for Code
impl PartialEq<Code> for Code
fn eq(&self, __arg_0: &Code) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0
This method tests for !=.
impl Default for Code
impl Clone for Code
fn clone(&self) -> Code
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Hash for Code
fn hash<__H>(&self, __arg_0: &mut __H) where
__H: Hasher,
__H: Hasher,
Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher]. Read more