GestureStylus

gtk.gesture_stylus.GestureStylus is a gtk.gesture.Gesture specific to stylus input.

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

Constructors

this
this()

Creates a new gtk.gesture_stylus.GestureStylus.

Members

Functions

connectDown
ulong connectDown(T callback, Flag!"After" after)

Connect to Down signal.

connectMotion
ulong connectMotion(T callback, Flag!"After" after)

Connect to Motion signal.

connectProximity
ulong connectProximity(T callback, Flag!"After" after)

Connect to Proximity signal.

connectUp
ulong connectUp(T callback, Flag!"After" after)

Connect to Up signal.

getAxes
bool getAxes(gdk.types.AxisUse[] axes, double[] values)

Returns the current values for the requested axes.

getAxis
bool getAxis(gdk.types.AxisUse axis, double value)

Returns the current value for the requested axis.

getBacklog
bool getBacklog(gdk.types.TimeCoord[] backlog)

Returns the accumulated backlog of tracking information.

getDeviceTool
gdk.device_tool.DeviceTool getDeviceTool()

Returns the gdk.device_tool.DeviceTool currently driving input through this gesture.

getStylusOnly
bool getStylusOnly()

Checks whether the gesture is for styluses only.

setStylusOnly
void setStylusOnly(bool stylusOnly)

Sets the state of stylus-only

Inherited Members

From GestureSingle

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
gdk.event_sequence.EventSequence 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.