package ocgtk
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
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/Viewport/index.html
Module Wrappers.Viewport
type t = [ `viewport | `widget | `initially_unowned | `object_ ] Gobject.objval new_ :
[ `adjustment | `initially_unowned | `object_ ] Gobject.obj option ->
[ `adjustment | `initially_unowned | `object_ ] Gobject.obj option ->
tCreate a new Viewport
val set_scroll_to_focus : t -> bool -> unitSets whether the viewport should automatically scroll to keep the focused child in view.
val set_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitSets the child widget of @viewport.
val scroll_to :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj ->
[ `scroll_info ] Gobject.obj option ->
unitScrolls a descendant of the viewport into view.
The viewport and the descendant must be visible and mapped for this function to work, otherwise no scrolling will be performed.
val get_scroll_to_focus : t -> boolGets whether the viewport is scrolling to keep the focused child in view.
val get_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionGets the child widget of @viewport.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>