Class
AdwSwipeTracker
Description [src]
final class Adw.SwipeTracker : GObject.Object {
/* No available fields */
}
A swipe tracker used in AdwCarousel
, AdwFlap
and AdwLeaflet
.
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 AdwSwipeTracker:enabled
property. If they expect to use horizontal orientation,
AdwSwipeTracker:reversed
can be used for supporting RTL text direction.
Available since: | 1.0 |
Instance methods
adw_swipe_tracker_get_allow_long_swipes
Gets whether to allow swiping for more than one snap point at a time.
Available since: 1.0
adw_swipe_tracker_get_allow_mouse_drag
Gets whether self
can be dragged with mouse pointer.
Available since: 1.0
adw_swipe_tracker_get_reversed
Gets whether self
is reversing the swipe direction.
Available since: 1.0
adw_swipe_tracker_set_allow_long_swipes
Sets whether to allow swiping for more than one snap point at a time.
Available since: 1.0
adw_swipe_tracker_set_allow_mouse_drag
Sets whether self
can be dragged with mouse pointer.
Available since: 1.0
Methods inherited from GtkOrientable (2)
gtk_orientable_get_orientation
Retrieves the orientation of the orientable
.
gtk_orientable_set_orientation
Sets the orientation of the orientable
.
Properties
Adw.SwipeTracker:allow-long-swipes
Whether to allow swiping for more than one snap point at a time.
Available since: 1.0
Adw.SwipeTracker:allow-mouse-drag
Whether to allow dragging with mouse pointer.
Available since: 1.0
Properties inherited from GtkOrientable (1)
Gtk.Orientable:orientation
The orientation of the orientable.
Signals
Adw.SwipeTracker::begin-swipe
This signal is emitted right before a swipe will be started, after the drag threshold has been passed.
Available since: 1.0
Adw.SwipeTracker::end-swipe
This signal is emitted as soon as the gesture has stopped.
Available since: 1.0
Adw.SwipeTracker::prepare
This signal is emitted when a possible swipe is detected.
Available since: 1.0
Adw.SwipeTracker::update-swipe
This signal is emitted every time the progress value changes.
Available since: 1.0
Signals inherited from GObject (1)
GObject.Object::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.