GtkGestureStylus — Gesture for stylus input
| GtkGesture * | gtk_gesture_stylus_new () |
| gboolean | gtk_gesture_stylus_get_axis () |
| gboolean | gtk_gesture_stylus_get_axes () |
| GdkDeviceTool * | gtk_gesture_stylus_get_device_tool () |
GObject
╰── GtkEventController
╰── GtkGesture
╰── GtkGestureSingle
╰── GtkGestureStylus
#include <gtk/gtk.h>
GtkGestureStylus is a GtkGesture implementation specific to stylus input. The provided signals just provide the basic information
GtkGesture *
gtk_gesture_stylus_new (GtkWidget *widget); Creates a new GtkGestureStylus.
widget |
a newly created stylus gesture
Since: 3.24
gboolean gtk_gesture_stylus_get_axis (GtkGestureStylus *gesture,GdkAxisUse axis,gdouble *value);
Returns the current value for the requested axis . This function must be called from either the “down”, “motion”, “up” or “proximity” signals.
gesture | ||
axis | requested device axis | |
value | return location for the axis value. | [out] |
TRUE if there is a current value for the axis
Since: 3.24
gboolean gtk_gesture_stylus_get_axes (GtkGestureStylus *gesture,GdkAxisUse axes[],gdouble **values);
Returns the current values for the requested axes . This function must be called from either the “down”, “motion”, “up” or “proximity” signals.
gesture | a GtkGestureStylus | |
axes | array of requested axes, terminated with GDK_AXIS_IGNORE. | [array] |
values | return location for the axis values. | [out][array] |
TRUE if there is a current value for the axes
Since: 3.24
GdkDeviceTool *
gtk_gesture_stylus_get_device_tool (GtkGestureStylus *gesture); Returns the GdkDeviceTool currently driving input through this gesture. This function must be called from either the “down”, “motion”, “up” or “proximity” signal handlers.
gesture |
The current stylus tool.
[nullable][transfer none]
Since: 3.24
typedef struct _GtkGestureStylus GtkGestureStylus;
“down” signalvoid user_function (GtkGestureStylus *gesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
“motion” signalvoid user_function (GtkGestureStylus *gesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
“proximity” signalvoid user_function (GtkGestureStylus *gesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
“up” signalvoid user_function (GtkGestureStylus *gesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
© 2005–2020 The GNOME Project
Licensed under the GNU Lesser General Public License version 2.1 or later.
https://developer.gnome.org/gtk3/3.24/GtkGestureStylus.html