- gtkGestureDrag
GtkGestureDrag* gtkGestureDrag;
- getGestureDragStruct
GtkGestureDrag* getGestureDragStruct()
- getStruct
void* getStruct()
the main Gtk struct as a void*
- setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.
- getType
GType getType()
- getOffset
bool getOffset(double x, double y)
If the @gesture is active, this function returns %TRUE and
fills in @x and @y with the coordinates of the current point,
as an offset to the starting drag point.
- getStartPoint
bool getStartPoint(double x, double y)
If the @gesture is active, this function returns %TRUE
and fills in @x and @y with the drag start coordinates,
in window-relative coordinates.
- connectedSignals
int[string] connectedSignals;
Undocumented in source.
- onDragBeginListeners
void delegate(double, double, GestureDrag)[] onDragBeginListeners;
Undocumented in source.
- addOnDragBegin
void addOnDragBegin(void delegate(double, double, GestureDrag) dlg, ConnectFlags connectFlags)
This signal is emitted whenever dragging starts.
- callBackDragBegin
void callBackDragBegin(GtkGestureDrag* gesturedragStruct, double startX, double startY, GestureDrag _gesturedrag)
Undocumented in source. Be warned that the author may not have intended to support it.
- onDragEndListeners
void delegate(double, double, GestureDrag)[] onDragEndListeners;
Undocumented in source.
- addOnDragEnd
void addOnDragEnd(void delegate(double, double, GestureDrag) dlg, ConnectFlags connectFlags)
This signal is emitted whenever the dragging is finished.
- callBackDragEnd
void callBackDragEnd(GtkGestureDrag* gesturedragStruct, double offsetX, double offsetY, GestureDrag _gesturedrag)
Undocumented in source. Be warned that the author may not have intended to support it.
- onDragUpdateListeners
void delegate(double, double, GestureDrag)[] onDragUpdateListeners;
Undocumented in source.
- addOnDragUpdate
void addOnDragUpdate(void delegate(double, double, GestureDrag) dlg, ConnectFlags connectFlags)
This signal is emitted whenever the dragging point moves.
- callBackDragUpdate
void callBackDragUpdate(GtkGestureDrag* gesturedragStruct, double offsetX, double offsetY, GestureDrag _gesturedrag)
Undocumented in source. Be warned that the author may not have intended to support it.
#GtkGesturePan is a #GtkGesture implementation able to recognize pan gestures, those are drags that are locked to happen along one axis. The axis that a #GtkGesturePan handles is defined at construct time, and can be changed through gtk_gesture_pan_set_orientation().
When the gesture starts to be recognized, #GtkGesturePan will attempt to determine as early as possible whether the sequence is moving in the expected direction, and denying the sequence if this does not happen.
Once a panning gesture along the expected axis is recognized, the #GtkGesturePan::pan signal will be emitted as input events are received, containing the offset in the given axis.