pub struct HandleScrollOptions {
pub enabled: bool,
pub mouse_wheel: bool,
pub pressed_mouse_move: bool,
pub horz_touch_drag: bool,
pub vert_touch_drag: bool,
}Expand description
Handle Scroll Options Controls how scrolling/panning interactions work
Fields§
§enabled: boolEnable scroll gestures and their momentum without changing individual options. Default: true
mouse_wheel: boolScroll with mouse wheel (horizontal) Default: true
pressed_mouse_move: boolDrag with left mouse button to pan Default: true
horz_touch_drag: boolHorizontal drag on touch devices Default: true
vert_touch_drag: boolVertical drag on touch devices Default: true
Trait Implementations§
Source§impl Clone for HandleScrollOptions
impl Clone for HandleScrollOptions
Source§fn clone(&self) -> HandleScrollOptions
fn clone(&self) -> HandleScrollOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for HandleScrollOptions
Source§impl Debug for HandleScrollOptions
impl Debug for HandleScrollOptions
Source§impl Default for HandleScrollOptions
impl Default for HandleScrollOptions
Source§impl<'de> Deserialize<'de> for HandleScrollOptionswhere
HandleScrollOptions: Default,
impl<'de> Deserialize<'de> for HandleScrollOptionswhere
HandleScrollOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HandleScrollOptions
impl PartialEq for HandleScrollOptions
Source§impl Serialize for HandleScrollOptions
impl Serialize for HandleScrollOptions
impl StructuralPartialEq for HandleScrollOptions
Auto Trait Implementations§
impl Freeze for HandleScrollOptions
impl RefUnwindSafe for HandleScrollOptions
impl Send for HandleScrollOptions
impl Sync for HandleScrollOptions
impl Unpin for HandleScrollOptions
impl UnsafeUnpin for HandleScrollOptions
impl UnwindSafe for HandleScrollOptions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more