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

Module Wrappers.Map_list_model

type t = [ `map_list_model | `object_ ] Gobject.obj
val set_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.t option -> unit

Sets the model to be mapped.

GTK makes no effort to ensure that @model conforms to the item type expected by the map function. It assumes that the caller knows what they are doing and have set up an appropriate map function.

val has_map : t -> bool

Checks if a map function is currently set on @self.

val get_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.t option

Gets the model that is currently being mapped or %NULL if none.

val get_item_type : t -> Gobject.Type.t

Get property: item-type

val get_n_items : t -> int

Get property: n-items