pub enum ScrollMethod {
NoScroll,
TwoFinger,
Edge,
OnButtonDown,
}
Expand description
The scroll method of a device selects when to generate scroll axis events instead of pointer motion events.
Variants§
NoScroll
Never send scroll events instead of pointer motion events.
This has no effect on events generated by scroll wheels.
TwoFinger
Send scroll events when two fingers are logically down on the device.
Edge
Send scroll events when a finger moves along the bottom or right edge of a device.
OnButtonDown
Send scroll events when a button is down and the device moves along a scroll-capable axis.
Trait Implementations§
Source§impl Clone for ScrollMethod
impl Clone for ScrollMethod
Source§fn clone(&self) -> ScrollMethod
fn clone(&self) -> ScrollMethod
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 ScrollMethod
impl Debug for ScrollMethod
Source§impl From<ScrollMethod> for ScrollMethod
impl From<ScrollMethod> for ScrollMethod
Source§fn from(value: ScrollMethod) -> Self
fn from(value: ScrollMethod) -> Self
Converts to this type from the input type.
Source§impl Hash for ScrollMethod
impl Hash for ScrollMethod
Source§impl PartialEq for ScrollMethod
impl PartialEq for ScrollMethod
impl Copy for ScrollMethod
impl Eq for ScrollMethod
impl StructuralPartialEq for ScrollMethod
Auto Trait Implementations§
impl Freeze for ScrollMethod
impl RefUnwindSafe for ScrollMethod
impl Send for ScrollMethod
impl Sync for ScrollMethod
impl Unpin for ScrollMethod
impl UnwindSafe for ScrollMethod
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered
].