package ocgtk

  1. Overview
  2. Docs
OCaml bindings for GTK 4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

v0.1-preview2.tar.gz
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054

doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Scroll_info/index.html

Module Wrappers.Scroll_info

type t = [ `scroll_info ] Gobject.obj

The `GtkScrollInfo` can be used to provide more accurate data on how a scroll operation should be performed.

Scrolling functions usually allow passing a %NULL scroll info which will cause the default values to be used and just scroll the element into view.

val new_ : unit -> t

Create a new ScrollInfo

val set_enable_vertical : t -> bool -> unit

Turns vertical scrolling on or off.

val set_enable_horizontal : t -> bool -> unit

Turns horizontal scrolling on or off.

val ref : t -> t

Increases the reference count of a `GtkScrollInfo` by one.

val get_enable_vertical : t -> bool

Checks if vertical scrolling is enabled.

val get_enable_horizontal : t -> bool

Checks if horizontal scrolling is enabled.

val get_type : unit -> Gobject.Type.t