Enum PointerState
#[repr(i32)]pub enum PointerState {
Pressed = 0,
Moved = 1,
Dragged = 2,
Released = 3,
Scrolled = 4,
}Expand description
Indicates the states of a pointing device.
Variants§
Pressed = 0
The pointer is pressed.
Moved = 1
The pointer moved. Not all platforms support this state. For example, many touch screens do not support this state.
Dragged = 2
The pointer dragged.
Released = 3
The pointer is released.
Scrolled = 4
The pointer scrolled. For example, you can use this for tracking the scrolling of the mouse wheel. Not all platforms support this state.
Implementations§
§impl PointerState
impl PointerState
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> PointerState
Trait Implementations§
§impl Clone for PointerState
impl Clone for PointerState
§fn clone(&self) -> PointerState
fn clone(&self) -> PointerState
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 more§impl Debug for PointerState
impl Debug for PointerState
§impl Display for PointerState
impl Display for PointerState
§impl PartialEq for PointerState
impl PartialEq for PointerState
§impl VariantConstraint for PointerState
impl VariantConstraint for PointerState
§type DataArg<'a> = PointerState
type DataArg<'a> = PointerState
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = PointerState
type RetArg = PointerState
§fn as_arg(&self) -> <PointerState as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <PointerState as VariantConstraint>::DataArg<'_>
impl Copy for PointerState
impl Eq for PointerState
impl PropertyTypeConstraint for PointerState
impl StructuralPartialEq for PointerState
Auto Trait Implementations§
impl Freeze for PointerState
impl RefUnwindSafe for PointerState
impl Send for PointerState
impl Sync for PointerState
impl Unpin for PointerState
impl UnwindSafe for PointerState
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