pub struct SwipeTrackerBuilder { /* private fields */ }Expand description
A builder-pattern type to construct SwipeTracker objects.
Implementations§
Source§impl SwipeTrackerBuilder
impl SwipeTrackerBuilder
pub fn allow_long_swipes(self, allow_long_swipes: bool) -> Self
pub fn allow_mouse_drag(self, allow_mouse_drag: bool) -> Self
pub fn allow_window_handle(self, allow_window_handle: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
pub fn lower_overshoot(self, lower_overshoot: bool) -> Self
pub fn reversed(self, reversed: bool) -> Self
pub fn swipeable(self, swipeable: &impl IsA<Swipeable>) -> Self
pub fn upper_overshoot(self, upper_overshoot: bool) -> Self
pub fn orientation(self, orientation: Orientation) -> Self
Sourcepub fn build(self) -> SwipeTracker
pub fn build(self) -> SwipeTracker
Build the SwipeTracker.
Auto Trait Implementations§
impl Freeze for SwipeTrackerBuilder
impl RefUnwindSafe for SwipeTrackerBuilder
impl !Send for SwipeTrackerBuilder
impl !Sync for SwipeTrackerBuilder
impl Unpin for SwipeTrackerBuilder
impl UnwindSafe for SwipeTrackerBuilder
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