Enum wayland_server::protocol::wl_pointer::AxisSource
source · [−]#[repr(u32)]
#[non_exhaustive]
pub enum AxisSource {
Wheel,
Finger,
Continuous,
WheelTilt,
}
Expand description
axis source types
Describes the source types for axis events. This indicates to the client how an axis event was physically generated; a client may adjust the user interface accordingly. For example, scroll events from a “finger” source may be in a smooth coordinate space with kinetic scrolling whereas a “wheel” source may be in discrete steps of a number of lines.
The “continuous” axis source is a device generating events in a continuous coordinate space, but using something other than a finger. One example for this source is button-based scrolling where the vertical motion of a device is converted to scroll events while a button is held down.
The “wheel tilt” axis source indicates that the actual device is a wheel but the scroll event is not caused by a rotation but a (usually sideways) tilt of the wheel.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Wheel
a physical wheel rotation
Finger
finger on a touch surface
Continuous
continuous coordinate space
WheelTilt
a physical wheel tilt
Implementations
sourceimpl AxisSource
impl AxisSource
Trait Implementations
sourceimpl Clone for AxisSource
impl Clone for AxisSource
sourcefn clone(&self) -> AxisSource
fn clone(&self) -> AxisSource
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AxisSource
impl Debug for AxisSource
sourceimpl PartialEq<AxisSource> for AxisSource
impl PartialEq<AxisSource> for AxisSource
sourcefn eq(&self, other: &AxisSource) -> bool
fn eq(&self, other: &AxisSource) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Copy for AxisSource
impl StructuralPartialEq for AxisSource
Auto Trait Implementations
impl RefUnwindSafe for AxisSource
impl Send for AxisSource
impl Sync for AxisSource
impl Unpin for AxisSource
impl UnwindSafe for AxisSource
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Downcast for T where
T: Any,
impl<T> Downcast for T where
T: Any,
sourcefn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
. Read more
sourcefn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert &Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s. Read more
sourcefn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert &mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s. Read more