Interface
HandySwipeable
Description [src]
interface Handy.Swipeable : Gtk.WidgetAn 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 from
        GtkWidget.
Instance methods
hdy_swipeable_get_cancel_progress
Gets the progress self will snap back to after the gesture is canceled.
Available since: 1.0
hdy_swipeable_get_swipe_area
Gets the area self can start a swipe from for the given direction and
gesture type.
Available since: 1.0
hdy_swipeable_get_swipe_tracker
Gets the HdySwipeTracker used by this swipeable widget.
Available since: 1.0
Signals
Handy.Swipeable::child-switched
Emitted when the widget’s visible child is changed.
Available 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.
Handy.Swipeable.get_distance
Gets the swipe distance of self.
Handy.Swipeable.get_progress
Gets the current progress of self.
Handy.Swipeable.get_snap_points
Gets the snap points of self.
Handy.Swipeable.get_swipe_area
Gets the area self can start a swipe from for the given direction and
gesture type.
Handy.Swipeable.get_swipe_tracker
Gets the HdySwipeTracker used by this swipeable widget.
Handy.Swipeable.switch_child
Switches to child with index index.