Constructor

GtkEventControllerMotionnew

Declaration [src]

GtkEventController*
gtk_event_controller_motion_new (
  GtkWidget* widget
)

Description [src]

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

Available since:3.24

Parameters

widget

Type: GtkWidget

A GtkWidget.

The data is owned by the caller of the function.

Return value

Type: GtkEventController

A new GtkEventControllerMotion.

The caller of the function takes ownership of the data, and is responsible for freeing it.