Struct libbismuth::builders::SwipeTrackerBuilder
source · pub struct SwipeTrackerBuilder { /* private fields */ }Expand description
A builder-pattern type to construct SwipeTracker objects.
Implementations§
source§impl SwipeTrackerBuilder
impl SwipeTrackerBuilder
sourcepub fn allow_long_swipes(self, allow_long_swipes: bool) -> Self
pub fn allow_long_swipes(self, allow_long_swipes: bool) -> Self
Whether to allow swiping for more than one snap point at a time.
If the value is FALSE, each swipe can only move to the adjacent snap
points.
sourcepub fn allow_mouse_drag(self, allow_mouse_drag: bool) -> Self
pub fn allow_mouse_drag(self, allow_mouse_drag: bool) -> Self
Whether to allow dragging with mouse pointer.
sourcepub fn enabled(self, enabled: bool) -> Self
pub fn enabled(self, enabled: bool) -> Self
Whether the swipe tracker is enabled.
When it’s not enabled, no events will be processed. Usually widgets will want to expose this via a property.
sourcepub fn reversed(self, reversed: bool) -> Self
pub fn reversed(self, reversed: bool) -> Self
Whether to reverse the swipe direction.
If the swipe tracker is horizontal, it can be used for supporting RTL text direction.
sourcepub fn swipeable(self, swipeable: &impl IsA<Swipeable>) -> Self
pub fn swipeable(self, swipeable: &impl IsA<Swipeable>) -> Self
The widget the swipe tracker is attached to.
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