Gtk.EventControllerMotion

g GObject.Object GObject.Object Gtk.EventController Gtk.EventController GObject.Object->Gtk.EventController Gtk.EventControllerMotion Gtk.EventControllerMotion Gtk.EventController->Gtk.EventControllerMotion

Subclasses:None

Methods

Inherited:Gtk.EventController (5), GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (widget)

Virtual Methods

Inherited:GObject.Object (7)

Properties

Inherited:Gtk.EventController (2)

Signals

Inherited:GObject.Object (1)
Name Short Description
enter Signals that the pointer has entered the widget.
leave Signals that pointer has left the widget.
motion Emitted when the pointer moves inside the widget.

Fields

Inherited:GObject.Object (1)

Class Details

class Gtk.EventControllerMotion(**kwargs)
Bases:Gtk.EventController
Abstract:No
Structure:Gtk.EventControllerMotionClass

Gtk.EventControllerMotion is an event controller meant for situations where you need to track the position of the pointer.

This object was added in 3.24.

classmethod new(widget)[source]
Parameters:widget (Gtk.Widget) – a Gtk.Widget
Returns:a new Gtk.EventControllerMotion
Return type:Gtk.EventController

Creates a new event controller that will handle motion events for the given widget.

New in version 3.24.

Signal Details

Gtk.EventControllerMotion.signals.enter(event_controller_motion, x, y)
Signal Name:

enter

Flags:

RUN_FIRST

Parameters:

Signals that the pointer has entered the widget.

Gtk.EventControllerMotion.signals.leave(event_controller_motion)
Signal Name:leave
Flags:RUN_FIRST
Parameters:event_controller_motion (Gtk.EventControllerMotion) – The object which received the signal

Signals that pointer has left the widget.

Gtk.EventControllerMotion.signals.motion(event_controller_motion, x, y)
Signal Name:

motion

Flags:

RUN_FIRST

Parameters:

Emitted when the pointer moves inside the widget.