SwipeTracker
Object Hierarchy:
Description:
[
CCode ( type_id =
"adap_swipe_tracker_get_type ()" ) ]
public sealed class SwipeTracker :
Object,
Orientable
A swipe tracker used in [class@Carousel], [class@NavigationView] and [class@OverlaySplitView].
The `AdapSwipeTracker` 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.
Content:
Properties:
- public bool allow_long_swipes { get; set; }
Whether to allow swiping for more than one snap point at a time.
- public bool allow_mouse_drag { get; set; }
Whether to allow dragging with mouse pointer.
- public bool allow_window_handle { get; set; }
Whether to allow touchscreen swiping from `GtkWindowHandle`.
- public bool enabled { get; set; }
Whether the swipe tracker is enabled.
- public bool lower_overshoot { get; set; }
Whether to allow swiping past the first available snap point.
- public bool reversed { get; set; }
Whether to reverse the swipe direction.
- public Swipeable swipeable { get; construct; }
The widget the swipe tracker is attached to.
- public bool upper_overshoot { get; set; }
Whether to allow swiping past the last available snap point.
Creation methods:
Methods:
Signals:
- public signal void begin_swipe ()
This signal is emitted right before a swipe will be started, after the
drag threshold has been passed.
- public signal void end_swipe (double velocity, double to)
This signal is emitted as soon as the gesture has stopped.
- public signal void prepare (NavigationDirection direction)
This signal is emitted when a possible swipe is detected.
- public signal void update_swipe (double progress)
This signal is emitted every time the progress value changes.
Inherited Members:
All known members inherited from class GLib.Object
All known members inherited from interface Gtk.Orientable