Gtk.GestureStylus¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.GestureSingle (8), Gtk.Gesture (19), Gtk.EventController (5), GObject.Object (37)
- Structs:
class |
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Gtk.GestureSingle (3), Gtk.Gesture (2), Gtk.EventController (2)
Signals¶
- Inherited:
Name |
Short Description |
|---|---|
Fields¶
- Inherited:
Class Details¶
- class Gtk.GestureStylus(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gtk.GestureStylusis aGtk.Gestureimplementation specific to stylus input. The provided signals just provide the basic information- classmethod new(widget)[source]¶
- Parameters:
widget (
Gtk.Widget) – aGtk.Widget- Returns:
a newly created stylus gesture
- Return type:
Creates a new
Gtk.GestureStylus.New in version 3.24.
- get_axes(axes)[source]¶
- Parameters:
axes ([
Gdk.AxisUse]) – array of requested axes, terminated withGdk.AxisUse.IGNORE- Returns:
Trueif there is a current value for the axes- values:
return location for the axis values
- Return type:
Returns the current values for the requested axes. This function must be called from either the
Gtk.GestureStylus:down,Gtk.GestureStylus:motion,Gtk.GestureStylus:uporGtk.GestureStylus:proximitysignals.New in version 3.24.
- get_axis(axis)[source]¶
- Parameters:
axis (
Gdk.AxisUse) – requested device axis- Returns:
Trueif there is a current value for the axis- value:
return location for the axis value
- Return type:
Returns the current value for the requested axis. This function must be called from either the
Gtk.GestureStylus:down,Gtk.GestureStylus:motion,Gtk.GestureStylus:uporGtk.GestureStylus:proximitysignals.New in version 3.24.
- get_device_tool()[source]¶
- Returns:
The current stylus tool
- Return type:
Returns the
Gdk.DeviceToolcurrently driving input through this gesture. This function must be called from either theGtk.GestureStylus::down,Gtk.GestureStylus::motion,Gtk.GestureStylus::uporGtk.GestureStylus::proximitysignal handlers.New in version 3.24.
Signal Details¶
- Gtk.GestureStylus.signals.down(gesture_stylus, object, p0)¶
- Signal Name:
down- Flags:
- Parameters:
gesture_stylus (
Gtk.GestureStylus) – The object which received the signalobject (
float) –p0 (
float) –
- Gtk.GestureStylus.signals.motion(gesture_stylus, object, p0)¶
- Signal Name:
motion- Flags:
- Parameters:
gesture_stylus (
Gtk.GestureStylus) – The object which received the signalobject (
float) –p0 (
float) –
- Gtk.GestureStylus.signals.proximity(gesture_stylus, object, p0)¶
- Signal Name:
proximity- Flags:
- Parameters:
gesture_stylus (
Gtk.GestureStylus) – The object which received the signalobject (
float) –p0 (
float) –
- Gtk.GestureStylus.signals.up(gesture_stylus, object, p0)¶
- Signal Name:
up- Flags:
- Parameters:
gesture_stylus (
Gtk.GestureStylus) – The object which received the signalobject (
float) –p0 (
float) –