Interface
HandySwipeable
since: 1.0
Description [src]
interface Handy.Swipeable : Gtk.Widget
An interface for swipeable widgets.
The HdySwipeable
interface is implemented by all swipeable widgets. They
can be synced using HdySwipeGroup
.
See HdySwipeTracker
for details about implementing it.
Available since: 1.0
Prerequisite
In order to implement Swipeable, your type must inherit fromGtkWidget
.
Instance methods
hdy_swipeable_get_cancel_progress
Gets the progress self
will snap back to after the gesture is canceled.
since: 1.0
hdy_swipeable_get_swipe_area
Gets the area self
can start a swipe from for the given direction and
gesture type.
since: 1.0
Interface structure
struct HandySwipeableInterface {
GTypeInterface parent;
void (* switch_child) (
HdySwipeable* self,
guint index,
gint64 duration
);
HdySwipeTracker* (* get_swipe_tracker) (
HdySwipeable* self
);
gdouble (* get_distance) (
HdySwipeable* self
);
gdouble* (* get_snap_points) (
HdySwipeable* self,
gint* n_snap_points
);
gdouble (* get_progress) (
HdySwipeable* self
);
gdouble (* get_cancel_progress) (
HdySwipeable* self
);
void (* get_swipe_area) (
HdySwipeable* self,
HdyNavigationDirection navigation_direction,
gboolean is_drag,
GdkRectangle* rect
);
}
An interface for swipeable widgets.
Interface members
parent |
|
The parent interface. |
|
switch_child |
|
No description available. |
|
get_swipe_tracker |
|
No description available. |
|
get_distance |
|
No description available. |
|
get_snap_points |
|
No description available. |
|
get_progress |
|
No description available. |
|
get_cancel_progress |
|
No description available. |
|
get_swipe_area |
|
No description available. |
Virtual methods
Handy.Swipeable.get_cancel_progress
Gets the progress self
will snap back to after the gesture is canceled.
since: 1.0
Handy.Swipeable.get_swipe_area
Gets the area self
can start a swipe from for the given direction and
gesture type.
since: 1.0
Handy.Swipeable.get_swipe_tracker
Gets the HdySwipeTracker
used by this swipeable widget.
since: 1.0