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/Slice_list_model/index.html
Module Wrappers.Slice_list_model
type t = [ `slice_list_model | `object_ ] Gobject.objval new_ : Ocgtk_gio.Gio.Wrappers.List_model.t option -> int -> int -> tCreate a new SliceListModel
val set_size : t -> int -> unitSets the maximum size. @self will never have more items than @size.
It can however have fewer items if the offset is too large or the model sliced from doesn't have enough items.
val set_offset : t -> int -> unitSets the offset into the original model for this slice.
If the offset is too large for the sliced model, @self will end up empty.
val set_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.t option -> unitSets the model to show a slice of.
The model's item type must conform to @self's item type.
val get_size : t -> intGets the size set via gtk_slice_list_model_set_size().
val get_offset : t -> intGets the offset set via gtk_slice_list_model_set_offset().
val get_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.t optionGets the model that is currently being used or %NULL if none.
val get_item_type : t -> Gobject.Type.tGet property: item-type
val get_n_items : t -> intGet property: n-items
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>