Gtk.EventControllerMotion¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
|||
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Signals that the pointer has entered the widget. |
|
Signals that the 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:
GtkEventControllerMotion
is an event controller tracking the pointer position.The event controller offers [signal`Gtk`.EventControllerMotion::enter] and [signal`Gtk`.EventControllerMotion::leave] signals, as well as [property`Gtk`.EventControllerMotion:is-pointer] and [property`Gtk`.EventControllerMotion:contains-pointer] properties which are updated to reflect changes in the pointer position as it moves over the widget.
- classmethod new()[source]¶
- Returns:
a new
GtkEventControllerMotion
- Return type:
Creates a new event controller that will handle motion events.
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
) – coordinates of pointer locationy (
float
) – coordinates of pointer location
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 the 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.
Property Details¶
- Gtk.EventControllerMotion.props.contains_pointer¶
-
Whether the pointer is in the controllers widget or a descendant.
See also [property`Gtk`.EventControllerMotion:is-pointer].
When handling crossing events, this property is updated before [signal`Gtk`.EventControllerMotion::enter], but after [signal`Gtk`.EventControllerMotion::leave] is emitted.
- Gtk.EventControllerMotion.props.is_pointer¶
-
Whether the pointer is in the controllers widget itself, as opposed to in a descendent widget.
See also [property`Gtk`.EventControllerMotion:contains-pointer].
When handling crossing events, this property is updated before [signal`Gtk`.EventControllerMotion::enter], but after [signal`Gtk`.EventControllerMotion::leave] is emitted.