SwipeableT

Members

Functions

addOnChildSwitched
gulong addOnChildSwitched(void delegate(uint, long, SwipeableIF) dlg, ConnectFlags connectFlags)

This signal should be emitted when the widget's visible child is changed.

emitChildSwitched
void emitChildSwitched(uint index, long duration)

Emits HdySwipeable::child-switched signal. This should be called when the widget switches visible child widget.

getCancelProgress
double getCancelProgress()

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

getDistance
double getDistance()

Gets the swipe distance of @self. This corresponds to how many pixels 1 unit represents.

getProgress
double getProgress()

Gets the current progress of @self

getSnapPoints
double[] getSnapPoints()

Gets the snap points of @self. Each snap point represents a progress value that is considered acceptable to end the swipe on.

getSwipeArea
void getSwipeArea(HdyNavigationDirection navigationDirection, bool isDrag, GdkRectangle rect)

Gets the area @self can start a swipe from for the given direction and gesture type. This can be used to restrict swipes to only be possible from a certain area, for example, to only allow edge swipes, or to have a draggable element and ignore swipes elsewhere.

getSwipeTracker
SwipeTracker getSwipeTracker()

Gets the #HdySwipeTracker used by this swipeable widget.

getSwipeableStruct
HdySwipeable* getSwipeableStruct(bool transferOwnership)

Get the main Gtk struct

switchChild
void switchChild(uint index, long duration)

See HdySwipeable::child-switched.

Meta