Gtk.EventControllerMotion¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Signals that the pointer has entered the widget. |
|
Signals that pointer has left the widget. |
|
Emitted when the pointer moves inside the widget. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.EventControllerMotion(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
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
) – aGtk.Widget
- Returns:
- Return type:
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:
- Parameters:
event_controller_motion (
Gtk.EventControllerMotion
) – The object which received the signalx (
float
) – the x coordinatey (
float
) – the y coordinate
Signals that the pointer has entered the widget.
- Gtk.EventControllerMotion.signals.leave(event_controller_motion)¶
- Signal Name:
leave
- Flags:
- 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:
- Parameters:
event_controller_motion (
Gtk.EventControllerMotion
) – The object which received the signalx (
float
) – the x coordinatey (
float
) – the y coordinate
Emitted when the pointer moves inside the widget.