package ocgtk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Wrappers.Event_controller_scroll

type t = [ `event_controller_scroll | `event_controller | `object_ ] Gobject.obj

Create a new EventControllerScroll

val set_flags : t -> Gtk_enums.eventcontrollerscrollflags -> unit

Sets the flags conditioning scroll controller behavior.

val get_unit : t -> Ocgtk_gdk.Gdk.scrollunit

Gets the scroll unit of the last signal@Gtk.EventControllerScroll::scroll signal received.

Always returns %GDK_SCROLL_UNIT_WHEEL if the %GTK_EVENT_CONTROLLER_SCROLL_DISCRETE flag is set.

Gets the flags conditioning the scroll controller behavior.

val on_decelerate : ?after:bool -> t -> callback:(vel_x:float -> vel_y:float -> unit) -> Gobject.Signal.handler_id
val on_scroll : ?after:bool -> t -> callback:(dx:float -> dy:float -> bool) -> Gobject.Signal.handler_id
val on_scroll_begin : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id
val on_scroll_end : ?after:bool -> t -> callback:(unit -> unit) -> Gobject.Signal.handler_id