get_unit


Description:

[ Version ( since = "4.8" ) ]
public ScrollUnit get_unit ()

Gets the scroll unit of the last [signal@Gtk.

EventControllerScroll:GtkEventControllerScroll:scroll] signal received.

Always returns gdk_scroll_unit_wheel if the gtk_event_controller_scroll_discrete flag is set.

Parameters:

this

a `GtkEventControllerScroll`.

Returns:

the scroll unit.