It derives from <GtkGestureSingle>.
Recognizes tablet stylus input.
The provided signals just relay the basic information of the stylus events.
If this gesture should exclusively react to stylus input devices.
Its value is a boolean.
Set it with (set! (gesture-stylus:stylus-only self) value).
Returns the current values for the requested axes.
This function must be called from the handler of one of the
gesture-stylus:down,
gesture-stylus:motion,
gesture-stylus:up or
gesture-stylus:proximity
signals.
Passed: a <GtkGestureStylus>.
Passed: a foreign pointer, or a bytevector.
array of requested axes, terminated with
ignore
Returned: a boolean.
#t if there is a current value for the axes
Returned: a foreign pointer.
return location for the axis values
Returns the current value for the requested axis.
This function must be called from the handler of one of the
gesture-stylus:down,
gesture-stylus:motion,
gesture-stylus:up or
gesture-stylus:proximity
signals.
Passed: a <GtkGestureStylus>.
Passed: a <GdkAxisUse>, or one of its symbols.
requested device axis
Returned: a boolean.
#t if there is a current value for the axis
Returned: a real number.
return location for the axis value
Returns the accumulated backlog of tracking information.
By default, GTK will limit rate of input events. On stylus input where accuracy of strokes is paramount, this function returns the accumulated coordinate/timing state before the emission of the current [Gtk.GestureStylus::motion] signal.
This function may only be called within a gesture-stylus:motion signal handler, the state given
in this signal and obtainable through gesture-stylus:get-axis express the latest (most up-to-date)
state in motion history.
The backlog is provided in chronological order.
Passed: a <GtkGestureStylus>.
Returned: a boolean.
#t if there is a backlog to unfold in the current state.
Returned: a vector, each a <GdkTimeCoord>.
coordinates and times for the backlog events
Not returned: it is the length of backlog.
return location for the number of elements
Returns the <GdkDeviceTool> currently
driving input through this gesture.
This function must be called from the handler of one of the
gesture-stylus:down,
gesture-stylus:motion,
gesture-stylus:up or
gesture-stylus:proximity
signals.
Passed: a <GtkGestureStylus>.
Returned: a <GdkDeviceTool>, or #f.
The current stylus tool
Checks whether the gesture is for styluses only.
Stylus-only gestures will signal events exclusively from stylus input devices.
Passed: a <GtkGestureStylus>.
the gesture
Returned: a boolean.
#t if the gesture is only for stylus events
Creates a new <GtkGestureStylus>.
Returned: a <GtkGesture>.
a newly created stylus gesture
Sets the state of stylus-only
If true, the gesture will exclusively handle events from stylus input devices, otherwise it’ll handle events from any pointing device.
Passed: a <GtkGestureStylus>.
the gesture
Passed: a boolean.
whether the gesture is used exclusively for stylus events
Connect a handler with (connect object gesture-stylus:down
handler). It is called as (handler self x y).
Emitted when the stylus touches the device.
Passed: a <GtkGestureStylus>.
Passed: a real number.
the X coordinate of the stylus event
Passed: a real number.
the Y coordinate of the stylus event
Connect a handler with (connect object gesture-stylus:motion
handler). It is called as (handler self x y).
Emitted when the stylus moves while touching the device.
Passed: a <GtkGestureStylus>.
Passed: a real number.
the X coordinate of the stylus event
Passed: a real number.
the Y coordinate of the stylus event
Connect a handler with (connect object gesture-stylus:proximity
handler). It is called as (handler self x y).
Emitted when the stylus is in proximity of the device.
Passed: a <GtkGestureStylus>.
Passed: a real number.
the X coordinate of the stylus event
Passed: a real number.
the Y coordinate of the stylus event
Connect a handler with (connect object gesture-stylus:up
handler). It is called as (handler self x y).
Emitted when the stylus no longer touches the device.
Passed: a <GtkGestureStylus>.
Passed: a real number.
the X coordinate of the stylus event
Passed: a real number.
the Y coordinate of the stylus event