GestureStylus

#GtkGestureStylus is a #GtkGesture implementation specific to stylus input. The provided signals just provide the basic information

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this(gtk.widget.Widget widget)

Creates a new #GtkGestureStylus.

Members

Functions

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

Connect to Down signal.

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

Connect to Motion signal.

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

Connect to Proximity signal.

connectUp
gulong 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. This function must be called from either the #GtkGestureStylus:down, #GtkGestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity signals.

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

Returns the current value for the requested axis. This function must be called from either the #GtkGestureStylus:down, #GtkGestureStylus:motion, #GtkGestureStylus:up or #GtkGestureStylus:proximity signals.

getDeviceTool
gdk.device_tool.DeviceTool getDeviceTool()

Returns the #GdkDeviceTool currently driving input through this gesture. This function must be called from either the #GtkGestureStylus::down, #GtkGestureStylus::motion, #GtkGestureStylus::up or #GtkGestureStylus::proximity signal handlers.

self
GestureStylus self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]

Static functions

_getGType
GType _getGType()
builder
GestureStylusGidBuilder builder()

Get builder for gtk.gesture_stylus.GestureStylus

Inherited Members

From GestureSingle

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
GestureSingle self()

Returns this, for use in with statements.

builder
GestureSingleGidBuilder builder()

Get builder for gtk.gesture_single.GestureSingle

button
uint button [@property getter]

Get button property.

button
uint button [@property setter]

Set button property.

exclusive
bool exclusive [@property getter]

Get exclusive property.

exclusive
bool exclusive [@property setter]

Set exclusive property.

touchOnly
bool touchOnly [@property getter]

Get touchOnly property.

touchOnly
bool touchOnly [@property setter]

Set touchOnly property.

getButton
uint getButton()

Returns the button number gesture listens for, or 0 if gesture reacts to any button press.

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. This is only meaningful if gtk.gesture.Gesture.isActive returns true.

getExclusive
bool getExclusive()

Gets whether a gesture is exclusive. For more information, see gtk.gesture_single.GestureSingle.setExclusive.

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. If non-0, every button press from a different button number will be ignored. Touch events implicitly match with button 1.

setExclusive
void setExclusive(bool exclusive)

Sets whether gesture is exclusive. An exclusive gesture will only handle pointer and "pointer emulated" touch events, so at any given time, there is only one sequence able to interact with those.

setTouchOnly
void setTouchOnly(bool touchOnly)

If touch_only is true, gesture will only handle events of type #GDK_TOUCH_BEGIN, #GDK_TOUCH_UPDATE or #GDK_TOUCH_END. If false, mouse events will be handled too.