SwipeTracker

Constructors

this
this(HdySwipeTracker* hdySwipeTracker, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this(SwipeableIF swipeable)

Create a new #HdySwipeTracker object on @widget.

Members

Functions

addOnBeginSwipe
gulong addOnBeginSwipe(void delegate(HdyNavigationDirection, bool, SwipeTracker) dlg, ConnectFlags connectFlags)

This signal is emitted when a possible swipe is detected.

addOnEndSwipe
gulong addOnEndSwipe(void delegate(long, double, SwipeTracker) dlg, ConnectFlags connectFlags)

This signal is emitted as soon as the gesture has stopped.

addOnUpdateSwipe
gulong addOnUpdateSwipe(void delegate(double, SwipeTracker) dlg, ConnectFlags connectFlags)

This signal is emitted every time the progress value changes.

getAllowMouseDrag
bool getAllowMouseDrag()

Get whether @self can be dragged with mouse pointer.

getEnabled
bool getEnabled()

Get whether @self is enabled. When it's not enabled, no events will be processed. Generally widgets will want to expose this via a property.

getReversed
bool getReversed()

Get whether @self is reversing the swipe direction.

getStruct
void* getStruct()

the main Gtk struct as a void*

getSwipeTrackerStruct
HdySwipeTracker* getSwipeTrackerStruct(bool transferOwnership)

Get the main Gtk struct

getSwipeable
SwipeableIF getSwipeable()

Get @self's swipeable widget.

setAllowMouseDrag
void setAllowMouseDrag(bool allowMouseDrag)

Set whether @self can be dragged with mouse pointer. This should usually be %FALSE.

setEnabled
void setEnabled(bool enabled)

Set whether @self is enabled. When it's not enabled, no events will be processed. Usually widgets will want to expose this via a property.

setReversed
void setReversed(bool reversed)

Set whether to reverse the swipe direction. If @self is horizontal, can be used for supporting RTL text direction.

shiftPosition
void shiftPosition(double delta)

Move the current progress value by @delta. This can be used to adjust the current position if snap points move during the gesture.

Mixins

__anonymous
mixin OrientableT!(HdySwipeTracker)
Undocumented in source.

Static functions

getType
GType getType()

Variables

hdySwipeTracker
HdySwipeTracker* hdySwipeTracker;

the main Gtk struct

Meta