Interface
BisSwipeable
Description [src]
interface Bis.Swipeable : Gtk.Widget
An interface for swipeable widgets.
The BisSwipeable
interface is implemented by all swipeable widgets.
See BisSwipeTracker
for details about implementing it.
Available since: | 1.0 |
Prerequisite
In order to implement Swipeable, your type must inherit from
GtkWidget
.
Instance methods
bis_swipeable_get_cancel_progress
Gets the progress self
will snap back to after the gesture is canceled.
Available since: 1.0
bis_swipeable_get_swipe_area
Gets the area self
can start a swipe from for the given direction and
gesture type.
Available since: 1.0
Interface structure
struct BisSwipeableInterface {
GTypeInterface parent;
double (* get_distance) (
BisSwipeable* self
);
double* (* get_snap_points) (
BisSwipeable* self,
int* n_snap_points
);
double (* get_progress) (
BisSwipeable* self
);
double (* get_cancel_progress) (
BisSwipeable* self
);
void (* get_swipe_area) (
BisSwipeable* self,
BisNavigationDirection navigation_direction,
gboolean is_drag,
GdkRectangle* rect
);
}
Interface members
parent |
|
The parent interface. |
|
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
Bis.Swipeable.get_cancel_progress
Gets the progress self
will snap back to after the gesture is canceled.
Bis.Swipeable.get_distance
Gets the swipe distance of self
.
Bis.Swipeable.get_progress
Gets the current progress of self
.
Bis.Swipeable.get_snap_points
Gets the snap points of self
.
Bis.Swipeable.get_swipe_area
Gets the area self
can start a swipe from for the given direction and
gesture type.