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/Scrollable/index.html

Module Wrappers.Scrollable

type t = [ `scrollable ] Gobject.obj
val from_gobject : 'a Gobject.obj -> t
val set_vscroll_policy : t -> Gtk_enums.scrollablepolicy -> unit

Sets the `GtkScrollablePolicy`.

The policy determines whether vertical scrolling should start below the minimum height or below the natural height.

val set_vadjustment : t -> [ `adjustment | `initially_unowned | `object_ ] Gobject.obj option -> unit

Sets the vertical adjustment of the `GtkScrollable`.

val set_hscroll_policy : t -> Gtk_enums.scrollablepolicy -> unit

Sets the `GtkScrollablePolicy`.

The policy determines whether horizontal scrolling should start below the minimum width or below the natural width.

val set_hadjustment : t -> [ `adjustment | `initially_unowned | `object_ ] Gobject.obj option -> unit

Sets the horizontal adjustment of the `GtkScrollable`.

val get_vscroll_policy : t -> Gtk_enums.scrollablepolicy

Gets the vertical `GtkScrollablePolicy`.

val get_vadjustment : t -> [ `adjustment | `initially_unowned | `object_ ] Gobject.obj option

Retrieves the `GtkAdjustment` used for vertical scrolling.

val get_hscroll_policy : t -> Gtk_enums.scrollablepolicy

Gets the horizontal `GtkScrollablePolicy`.

val get_hadjustment : t -> [ `adjustment | `initially_unowned | `object_ ] Gobject.obj option

Retrieves the `GtkAdjustment` used for horizontal scrolling.

val get_border : t -> bool * [ `border ] Gobject.obj

Returns the size of a non-scrolling border around the outside of the scrollable.

An example for this would be treeview headers. GTK can use this information to display overlaid graphics, like the overshoot indication, at the right position.