EventControllerMotion#

class EventControllerMotion(**properties: Any)#

Superclasses: EventController, Object

GtkEventControllerMotion is an event controller tracking the pointer position.

The event controller offers enter and leave signals, as well as is_pointer and contains_pointer properties which are updated to reflect changes in the pointer position as it moves over the widget.

Constructors#

class EventControllerMotion
classmethod new() EventController#

Creates a new event controller that will handle motion events.

Methods#

class EventControllerMotion
contains_pointer() bool#

Returns if a pointer is within self or one of its children.

is_pointer() bool#

Returns if a pointer is within self, but not one of its children.

Properties#

class EventControllerMotion
props.contains_pointer: bool#

The type of the None singleton.

props.is_pointer: bool#

The type of the None singleton.

Signals#

class EventControllerMotion.signals
enter(x: float, y: float) None#

The type of the None singleton.

Parameters:
  • x – coordinates of pointer location

  • y – coordinates of pointer location

leave() None#

The type of the None singleton.

motion(x: float, y: float) None#

The type of the None singleton.

Parameters:
  • x – the x coordinate

  • y – the y coordinate