GestureStylus

GtkGestureStylus is a GtkGesture specific to stylus input.

The provided signals just relay the basic information of the stylus events.

Constructors

this
this(GtkGestureStylus* gtkGestureStylus, bool ownedRef)

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

this
this()

Creates a new GtkGestureStylus.

Members

Functions

addOnDown
gulong addOnDown(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)

Emitted when the stylus touches the device.

addOnMotion
gulong addOnMotion(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)

Emitted when the stylus moves while touching the device.

addOnProximity
gulong addOnProximity(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)

Emitted when the stylus is in proximity of the device.

addOnUp
gulong addOnUp(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)

Emitted when the stylus no longer touches the device.

getAxes
bool getAxes(GdkAxisUse[] axes, double[] values)

Returns the current values for the requested @axes.

getAxis
bool getAxis(GdkAxisUse axis, double value)

Returns the current value for the requested @axis.

getBacklog
bool getBacklog(GdkTimeCoord[] backlog)

Returns the accumulated backlog of tracking information.

getDeviceTool
DeviceTool getDeviceTool()

Returns the GdkDeviceTool currently driving input through this gesture.

getGestureStylusStruct
GtkGestureStylus* getGestureStylusStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkGestureStylus
GtkGestureStylus* gtkGestureStylus;

the main Gtk struct

Inherited Members

From GestureSingle

gtkGestureSingle
GtkGestureSingle* gtkGestureSingle;

the main Gtk struct

getGestureSingleStruct
GtkGestureSingle* getGestureSingleStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
getButton
uint getButton()

Returns the button number @gesture listens for.

getCurrentButton
uint getCurrentButton()

Returns the button number currently interacting with @gesture, or 0 if there is none.

getCurrentSequence
GdkEventSequence* getCurrentSequence()

Returns the event sequence currently interacting with @gesture.

getExclusive
bool getExclusive()

Gets whether a gesture is exclusive.

getTouchOnly
bool getTouchOnly()

Returns %TRUE if the gesture is only triggered by touch events.

setButton
void setButton(uint button)

Sets the button number @gesture listens to.

setExclusive
void setExclusive(bool exclusive)

Sets whether @gesture is exclusive.

setTouchOnly
void setTouchOnly(bool touchOnly)

Sets whether to handle only touch events.

Meta