GestureClick#

class GestureClick(**properties: Any)#

Superclasses: GestureSingle, Gesture, EventController, Object

GtkGestureClick is a GtkGesture implementation for clicks.

It is able to recognize multiple clicks on a nearby zone, which can be listened for through the pressed signal. Whenever time or distance between clicks exceed the GTK defaults, stopped is emitted, and the click counter is reset.

Constructors#

class GestureClick
classmethod new() Gesture#

Returns a newly created GtkGesture that recognizes single and multiple presses.

Signals#

class GestureClick.signals
pressed(n_press: int, x: float, y: float) None#

The type of the None singleton.

Parameters:
  • n_press – how many touch/button presses happened with this one

  • x – The X coordinate, in widget allocation coordinates

  • y – The Y coordinate, in widget allocation coordinates

released(n_press: int, x: float, y: float) None#

The type of the None singleton.

Parameters:
  • n_press – number of press that is paired with this release

  • x – The X coordinate, in widget allocation coordinates

  • y – The Y coordinate, in widget allocation coordinates

stopped() None#

The type of the None singleton.

unpaired_release(x: float, y: float, button: int, sequence: EventSequence | None = None) None#

The type of the None singleton.

Parameters:
  • x – X coordinate of the event

  • y – Y coordinate of the event

  • button – Button being released

  • sequence – Sequence being released