SwipeTracker
A swipe tracker used in class@Carousel, class@NavigationView and class@OverlaySplitView.
The AdwSwipeTracker
object can be used for implementing widgets with swipe gestures. It supports touch-based swipes, pointer dragging, and touchpad scrolling.
The widgets will probably want to expose the property@SwipeTracker:enabled property. If they expect to use horizontal orientation, property@SwipeTracker:reversed can be used for supporting RTL text direction.
Constructors
Properties
Whether to allow swiping for more than one snap point at a time.
Whether to allow dragging with mouse pointer.
Whether to allow touchscreen swiping from GtkWindowHandle
.
Whether to allow swiping past the first available snap point.
Whether to allow swiping past the last available snap point.
Functions
This signal is emitted right before a swipe will be started, after the drag threshold has been passed.
This signal is emitted as soon as the gesture has stopped.
This signal is emitted when a possible swipe is detected.
This signal is emitted every time the progress value changes.
Gets whether to allow swiping for more than one snap point at a time.
Gets whether @self can be dragged with mouse pointer.
Gets whether to allow touchscreen swiping from GtkWindowHandle
.
Gets whether @self is enabled.
Gets whether to allow swiping past the first available snap point.
Gets whether @self is reversing the swipe direction.
Get the widget @self is attached to.
Gets whether to allow swiping past the last available snap point.
Sets whether to allow swiping for more than one snap point at a time.
Sets whether @self can be dragged with mouse pointer.
Sets whether to allow touchscreen swiping from GtkWindowHandle
.
Sets whether @self is enabled.
Sets whether to allow swiping past the first available snap point.
Sets whether to reverse the swipe direction.
Sets whether to allow swiping past the last available snap point.
Moves the current progress value by @delta.