GesturePan

#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.

Constructors

this
this(GtkGesturePan* gtkGesturePan, bool ownedRef)

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

this
this(Widget widget, GtkOrientation orientation)

Returns a newly created #GtkGesture that recognizes pan gestures.

Members

Classes

OnPanDelegateWrapper
class OnPanDelegateWrapper
Undocumented in source.

Functions

addOnPan
gulong addOnPan(void delegate(GtkPanDirection, double, GesturePan) dlg, ConnectFlags connectFlags)

This signal is emitted once a panning gesture along the expected axis is detected.

getGesturePanStruct
GtkGesturePan* getGesturePanStruct()

Get the main Gtk struct

getOrientation
GtkOrientation getOrientation()

Returns the orientation of the pan gestures that this @gesture expects.

getStruct
void* getStruct()

the main Gtk struct as a void*

internalRemoveOnPan
void internalRemoveOnPan(OnPanDelegateWrapper source)
Undocumented in source. Be warned that the author may not have intended to support it.
setOrientation
void setOrientation(GtkOrientation orientation)

Sets the orientation to be expected on pan gestures.

setStruct
void setStruct(GObject* obj)
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

callBackPan
void callBackPan(GtkGesturePan* gesturepanStruct, GtkPanDirection direction, double offset, OnPanDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackPanDestroy
void callBackPanDestroy(OnPanDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
getType
GType getType()

Variables

gtkGesturePan
GtkGesturePan* gtkGesturePan;

the main Gtk struct

onPanListeners
OnPanDelegateWrapper[] onPanListeners;
Undocumented in source.

Inherited Members

From GestureDrag

gtkGestureDrag
GtkGestureDrag* gtkGestureDrag;

the main Gtk struct

getGestureDragStruct
GtkGestureDrag* getGestureDragStruct()

Get the main Gtk struct

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.

OnDragBeginDelegateWrapper
class OnDragBeginDelegateWrapper
Undocumented in source.
onDragBeginListeners
OnDragBeginDelegateWrapper[] onDragBeginListeners;
Undocumented in source.
addOnDragBegin
gulong 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, OnDragBeginDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragBeginDestroy
void callBackDragBeginDestroy(OnDragBeginDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
internalRemoveOnDragBegin
void internalRemoveOnDragBegin(OnDragBeginDelegateWrapper source)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragEndDelegateWrapper
class OnDragEndDelegateWrapper
Undocumented in source.
onDragEndListeners
OnDragEndDelegateWrapper[] onDragEndListeners;
Undocumented in source.
addOnDragEnd
gulong 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, OnDragEndDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragEndDestroy
void callBackDragEndDestroy(OnDragEndDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
internalRemoveOnDragEnd
void internalRemoveOnDragEnd(OnDragEndDelegateWrapper source)
Undocumented in source. Be warned that the author may not have intended to support it.
OnDragUpdateDelegateWrapper
class OnDragUpdateDelegateWrapper
Undocumented in source.
onDragUpdateListeners
OnDragUpdateDelegateWrapper[] onDragUpdateListeners;
Undocumented in source.
addOnDragUpdate
gulong 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, OnDragUpdateDelegateWrapper wrapper)
Undocumented in source. Be warned that the author may not have intended to support it.
callBackDragUpdateDestroy
void callBackDragUpdateDestroy(OnDragUpdateDelegateWrapper wrapper, GClosure* closure)
Undocumented in source. Be warned that the author may not have intended to support it.
internalRemoveOnDragUpdate
void internalRemoveOnDragUpdate(OnDragUpdateDelegateWrapper source)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta