| Top |
| CtkGesture * | ctk_gesture_stylus_new () |
| gboolean | ctk_gesture_stylus_get_axis () |
| gboolean | ctk_gesture_stylus_get_axes () |
| CdkDeviceTool * | ctk_gesture_stylus_get_device_tool () |
GObject
╰── CtkEventController
╰── CtkGesture
╰── CtkGestureSingle
╰── CtkGestureStylus
CtkGestureStylus is a CtkGesture implementation specific to stylus input. The provided signals just provide the basic information
CtkGesture *
ctk_gesture_stylus_new (CtkWidget *widget);
Creates a new CtkGestureStylus.
Since: 3.24
gboolean ctk_gesture_stylus_get_axis (CtkGestureStylus *gesture,CdkAxisUse 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
gboolean ctk_gesture_stylus_get_axes (CtkGestureStylus *gesture,CdkAxisUse 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 CtkGestureStylus |
|
axes |
array of requested axes, terminated with CDK_AXIS_IGNORE. |
[array] |
values |
return location for the axis values. |
[out][array] |
Since: 3.24
CdkDeviceTool *
ctk_gesture_stylus_get_device_tool (CtkGestureStylus *gesture);
Returns the CdkDeviceTool currently driving input through this gesture. This function must be called from either the “down”, “motion”, “up” or “proximity” signal handlers.
Since: 3.24
“down” signalvoid user_function (CtkGestureStylus *ctkgesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
“motion” signalvoid user_function (CtkGestureStylus *ctkgesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
“proximity” signalvoid user_function (CtkGestureStylus *ctkgesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last
“up” signalvoid user_function (CtkGestureStylus *ctkgesturestylus, double arg1, double arg2, gpointer user_data)
Flags: Run Last