Top | ![]() |
![]() |
![]() |
![]() |
AdwSwipeTracker * | adw_swipe_tracker_new () |
AdwSwipeable * | adw_swipe_tracker_get_swipeable () |
gboolean | adw_swipe_tracker_get_enabled () |
void | adw_swipe_tracker_set_enabled () |
gboolean | adw_swipe_tracker_get_reversed () |
void | adw_swipe_tracker_set_reversed () |
gboolean | adw_swipe_tracker_get_allow_mouse_drag () |
void | adw_swipe_tracker_set_allow_mouse_drag () |
gboolean | adw_swipe_tracker_get_allow_long_swipes () |
void | adw_swipe_tracker_set_allow_long_swipes () |
void | adw_swipe_tracker_shift_position () |
gboolean | allow-long-swipes | Read / Write |
gboolean | allow-mouse-drag | Read / Write |
gboolean | enabled | Read / Write |
gboolean | reversed | Read / Write |
AdwSwipeable * | swipeable | Read / Write / Construct Only |
AdwSwipeTracker *
adw_swipe_tracker_new (AdwSwipeable *swipeable
);
Create a new AdwSwipeTracker object on widget
.
Since: 1.0
AdwSwipeable *
adw_swipe_tracker_get_swipeable (AdwSwipeTracker *self
);
Get self
's swipeable widget.
Since: 1.0
gboolean
adw_swipe_tracker_get_enabled (AdwSwipeTracker *self
);
Get whether self
is enabled. When it's not enabled, no events will be
processed. Generally widgets will want to expose this via a property.
Since: 1.0
void adw_swipe_tracker_set_enabled (AdwSwipeTracker *self
,gboolean enabled
);
Set whether self
is enabled. When it's not enabled, no events will be
processed. Usually widgets will want to expose this via a property.
Since: 1.0
gboolean
adw_swipe_tracker_get_reversed (AdwSwipeTracker *self
);
Get whether self
is reversing the swipe direction.
Since: 1.0
void adw_swipe_tracker_set_reversed (AdwSwipeTracker *self
,gboolean reversed
);
Set whether to reverse the swipe direction. If self
is horizontal,
can be used for supporting RTL text direction.
Since: 1.0
gboolean
adw_swipe_tracker_get_allow_mouse_drag
(AdwSwipeTracker *self
);
Get whether self
can be dragged with mouse pointer.
Since: 1.0
void adw_swipe_tracker_set_allow_mouse_drag (AdwSwipeTracker *self
,gboolean allow_mouse_drag
);
Set whether self
can be dragged with mouse pointer. This should usually be
FALSE
.
Since: 1.0
gboolean
adw_swipe_tracker_get_allow_long_swipes
(AdwSwipeTracker *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.
Since: 1.0
void adw_swipe_tracker_set_allow_long_swipes (AdwSwipeTracker *self
,gboolean allow_long_swipes
);
Sets 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.
Since: 1.0
void adw_swipe_tracker_shift_position (AdwSwipeTracker *self
,double delta
);
Move the current progress value by delta
. This can be used to adjust the
current position if snap points move during the gesture.
Since: 1.0
“allow-long-swipes”
property “allow-long-swipes” gboolean
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.
Owner: AdwSwipeTracker
Flags: Read / Write
Default value: FALSE
Since: 1.0
“allow-mouse-drag”
property “allow-mouse-drag” gboolean
Whether to allow dragging with mouse pointer. This should usually be
FALSE
.
Owner: AdwSwipeTracker
Flags: Read / Write
Default value: FALSE
Since: 1.0
“enabled”
property “enabled” gboolean
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.
Owner: AdwSwipeTracker
Flags: Read / Write
Default value: TRUE
Since: 1.0
“reversed”
property “reversed” gboolean
Whether to reverse the swipe direction. If the swipe tracker is horizontal, it can be used for supporting RTL text direction.
Owner: AdwSwipeTracker
Flags: Read / Write
Default value: FALSE
Since: 1.0
“swipeable”
property“swipeable” AdwSwipeable *
The widget the swipe tracker is attached to. Must not be NULL
.
Owner: AdwSwipeTracker
Flags: Read / Write / Construct Only
Since: 1.0
“begin-swipe”
signalvoid user_function (AdwSwipeTracker *self, AdwNavigationDirection direction, gpointer user_data)
This signal is emitted when a possible swipe is detected.
The direction
value can be used to restrict the swipe to a certain
direction.
self |
The AdwSwipeTracker instance |
|
direction |
The direction of the swipe |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 1.0
“end-swipe”
signalvoid user_function (AdwSwipeTracker *self, gint64 duration, double to, gpointer user_data)
This signal is emitted as soon as the gesture has stopped.
self |
The AdwSwipeTracker instance |
|
duration |
Snap-back animation duration in milliseconds |
|
to |
The progress value to animate to |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 1.0
“update-swipe”
signalvoid user_function (AdwSwipeTracker *self, double progress, gpointer user_data)
This signal is emitted every time the progress value changes.
self |
The AdwSwipeTracker instance |
|
progress |
The current animation progress value |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run First
Since: 1.0