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