GestureStylus

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

Constructors

this
this(GtkGestureStylus* gtkGestureStylus, bool ownedRef)

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

this
this(Widget widget)

Creates a new #GtkGestureStylus.

Members

Functions

addOnDown
gulong addOnDown(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)
addOnMotion
gulong addOnMotion(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)
addOnProximity
gulong addOnProximity(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)
addOnUp
gulong addOnUp(void delegate(double, double, GestureStylus) dlg, ConnectFlags connectFlags)
getAxes
bool getAxes(GdkAxisUse[] 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(GdkAxisUse 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
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.

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, 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
GdkEventSequence* getCurrentSequence()

Returns the event sequence currently interacting with @gesture. This is only meaningful if gtk_gesture_is_active() returns %TRUE.

getExclusive
bool getExclusive()

Gets whether a gesture is exclusive. For more information, see gtk_gesture_single_set_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. 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.

Meta