Interface

AdapSwipeable

Description [src]

interface Adap.Swipeable : Gtk.Widget

An interface for swipeable widgets.

The AdapSwipeable interface is implemented by all swipeable widgets.

See AdapSwipeTracker for details about implementing it.

Prerequisite

In order to implement Swipeable, your type must inherit fromGtkWidget.

Instance methods

adap_swipeable_get_cancel_progress

Gets the progress self will snap back to after the gesture is canceled.

adap_swipeable_get_distance

Gets the swipe distance of self.

adap_swipeable_get_progress

Gets the current progress of self.

adap_swipeable_get_snap_points

Gets the snap points of self.

adap_swipeable_get_swipe_area

Gets the area self can start a swipe from for the given direction and gesture type.

Interface structure

struct AdapSwipeableInterface {
  GTypeInterface parent;
  double (* get_distance) (
    AdapSwipeable* self
  );
  double* (* get_snap_points) (
    AdapSwipeable* self,
    int* n_snap_points
  );
  double (* get_progress) (
    AdapSwipeable* self
  );
  double (* get_cancel_progress) (
    AdapSwipeable* self
  );
  void (* get_swipe_area) (
    AdapSwipeable* self,
    AdapNavigationDirection navigation_direction,
    gboolean is_drag,
    GdkRectangle* rect
  );
  
}

An interface for swipeable widgets.

Interface members
parent
GTypeInterface
 

The parent interface.

get_distance
double (* get_distance) (
    AdapSwipeable* self
  )
 

Gets the swipe distance.

get_snap_points
double* (* get_snap_points) (
    AdapSwipeable* self,
    int* n_snap_points
  )
 

Gets the snap points.

get_progress
double (* get_progress) (
    AdapSwipeable* self
  )
 

Gets the current progress.

get_cancel_progress
double (* get_cancel_progress) (
    AdapSwipeable* self
  )
 

Gets the cancel progress.

get_swipe_area
void (* get_swipe_area) (
    AdapSwipeable* self,
    AdapNavigationDirection navigation_direction,
    gboolean is_drag,
    GdkRectangle* rect
  )
 

Gets the swipeable rectangle.

Virtual methods

Adap.Swipeable.get_cancel_progress

Gets the progress self will snap back to after the gesture is canceled.

Adap.Swipeable.get_distance

Gets the swipe distance of self.

Adap.Swipeable.get_progress

Gets the current progress of self.

Adap.Swipeable.get_snap_points

Gets the snap points of self.

Adap.Swipeable.get_swipe_area

Gets the area self can start a swipe from for the given direction and gesture type.