Constructor

GtkEventControllerScrollnew

since: 3.24

Declaration [src]

GtkEventController*
gtk_event_controller_scroll_new (
  GtkWidget* widget,
  GtkEventControllerScrollFlags flags
)

Description [src]

Creates a new event controller that will handle scroll 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.
flags

Type: GtkEventControllerScrollFlags

Behavior flags.

Return value

Type: GtkEventController

A new GtkEventControllerScroll.

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