Gtk.GestureStylus

g GObject.Object GObject.Object Gtk.EventController Gtk.EventController GObject.Object->Gtk.EventController Gtk.Gesture Gtk.Gesture Gtk.EventController->Gtk.Gesture Gtk.GestureSingle Gtk.GestureSingle Gtk.Gesture->Gtk.GestureSingle Gtk.GestureStylus Gtk.GestureStylus Gtk.GestureSingle->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.GestureStylus is a Gtk.Gesture implementation 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:

True if 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 :up or Gtk.GestureStylus :proximity signals.

New in version 3.24.

get_axis(axis)[source]
Parameters:

axis (Gdk.AxisUse) – requested device axis

Returns:

True if 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 :up or Gtk.GestureStylus :proximity signals.

New in version 3.24.

get_device_tool()[source]
Returns:

The current stylus tool

Return type:

Gdk.DeviceTool or None

Returns the Gdk.DeviceTool currently driving input through this gesture. This function must be called from either the Gtk.GestureStylus ::down, Gtk.GestureStylus ::motion, Gtk.GestureStylus ::up or Gtk.GestureStylus ::proximity signal handlers.

New in version 3.24.

Signal Details

Gtk.GestureStylus.signals.down(gesture_stylus, object, p0)
Signal Name:

down

Flags:

RUN_LAST

Parameters:
Gtk.GestureStylus.signals.motion(gesture_stylus, object, p0)
Signal Name:

motion

Flags:

RUN_LAST

Parameters:
Gtk.GestureStylus.signals.proximity(gesture_stylus, object, p0)
Signal Name:

proximity

Flags:

RUN_LAST

Parameters:
Gtk.GestureStylus.signals.up(gesture_stylus, object, p0)
Signal Name:

up

Flags:

RUN_LAST

Parameters: