Class

GtkEventControllerMotion

Description [src]

final class Gtk.EventControllerMotion : Gtk.EventController {
  /* No available fields */
}

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

This object was added in 3.24.

Hierarchy

hierarchy this GtkEventControllerMotion ancestor_0 GtkEventController ancestor_0--this ancestor_1 GObject ancestor_1--ancestor_0

Constructors

gtk_event_controller_motion_new

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

Available since: 3.24

Instance methods

Methods inherited from GtkEventController (5)
gtk_event_controller_get_propagation_phase

Gets the propagation phase at which controller handles events.

Available since: 3.14

gtk_event_controller_get_widget

Returns the GtkWidget this controller relates to.

Available since: 3.14

gtk_event_controller_handle_event

Feeds an events into controller, so it can be interpreted and the controller actions triggered.

Available since: 3.14

gtk_event_controller_reset

Resets the controller to a clean state. Every interaction the controller did through GtkEventController::handle-event will be dropped at this point.

Available since: 3.14

gtk_event_controller_set_propagation_phase

Sets the propagation phase at which a controller handles events.

Available since: 3.14

Methods inherited from GObject (42)

Properties

Properties inherited from GtkEventController (2)
Gtk.EventController:propagation-phase

The propagation phase at which this controller will handle events.

Available since: 3.14

Gtk.EventController:widget

The widget receiving the GdkEvents that the controller will handle.

Available since: 3.14

Signals

Gtk.EventControllerMotion::enter

Signals that the pointer has entered the widget.

Gtk.EventControllerMotion::leave

Signals that pointer has left the widget.

Gtk.EventControllerMotion::motion

Emitted when the pointer moves inside the widget.

Signals inherited from GObject (1)

Class structure

struct GtkEventControllerMotionClass {
  /* no available fields */
}