| Top |
Functions
| GtkGesture * | gtk_gesture_stylus_new () |
| gboolean | gtk_gesture_stylus_get_axis () |
| gboolean | gtk_gesture_stylus_get_axes () |
| GdkDeviceTool * | gtk_gesture_stylus_get_device_tool () |
Object Hierarchy
GObject
╰── GtkEventController
╰── GtkGesture
╰── GtkGestureSingle
╰── GtkGestureStylus
Description
GtkGestureStylus is a GtkGesture implementation specific to stylus input. The provided signals just provide the basic information
Functions
gtk_gesture_stylus_new ()
GtkGesture *
gtk_gesture_stylus_new (GtkWidget *widget);
Creates a new GtkGestureStylus.
Since: 3.24
gtk_gesture_stylus_get_axis ()
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.
Since: 3.24
gtk_gesture_stylus_get_axes ()
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.
Parameters
gesture |
a GtkGestureStylus |
|
axes |
array of requested axes, terminated with GDK_AXIS_IGNORE. |
[array] |
values |
return location for the axis values. |
[out][array] |
Since: 3.24
gtk_gesture_stylus_get_device_tool ()
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.
Since: 3.24
Signal Details
The “down” signal
void user_function (GtkGestureStylus *gesturestylus, gdouble arg1, gdouble arg2, gpointer user_data)
Flags: Run Last
The “motion” signal
void user_function (GtkGestureStylus *gesturestylus, gdouble arg1, gdouble arg2, gpointer user_data)
Flags: Run Last
The “proximity” signal
void user_function (GtkGestureStylus *gesturestylus, gdouble arg1, gdouble arg2, gpointer user_data)
Flags: Run Last
The “up” signal
void user_function (GtkGestureStylus *gesturestylus, gdouble arg1, gdouble arg2, gpointer user_data)
Flags: Run Last
