Struct libadwaita::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 allow_window_handle(self, allow_window_handle: bool) -> Self
Available on crate feature v1_5
only.
pub fn allow_window_handle(self, allow_window_handle: bool) -> Self
v1_5
only.Whether to allow touchscreen swiping from GtkWindowHandle
.
This will make dragging the window impossible.
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 lower_overshoot(self, lower_overshoot: bool) -> Self
Available on crate feature v1_4
only.
pub fn lower_overshoot(self, lower_overshoot: bool) -> Self
v1_4
only.Whether to allow swiping past the first available snap point.
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 upper_overshoot(self, upper_overshoot: bool) -> Self
Available on crate feature v1_4
only.
pub fn upper_overshoot(self, upper_overshoot: bool) -> Self
v1_4
only.Whether to allow swiping past the last available snap point.
sourcepub fn orientation(self, orientation: Orientation) -> Self
pub fn orientation(self, orientation: Orientation) -> Self
The orientation of the orientable.
sourcepub fn build(self) -> SwipeTracker
pub fn build(self) -> SwipeTracker
Build the SwipeTracker
.