package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=4e50fdb5093136a10fc8ffbe388e44cbcb70d52f8afdd48863ec7e22580ff054
doc/ocgtk.gtk/Ocgtk_gtk/Gtk/Wrappers/Tree_list_model/index.html
Module Wrappers.Tree_list_model
type t = [ `tree_list_model | `object_ ] Gobject.objval set_autoexpand : t -> bool -> unitSets whether the model should autoexpand.
If set to %TRUE, the model will recursively expand all rows that get added to the model. This can be either rows added by changes to the underlying models or via method@Gtk.TreeListRow.set_expanded.
val get_row : t -> int -> [ `tree_list_row | `object_ ] Gobject.obj optionGets the row object for the given row.
If @position is greater than the number of items in @self, %NULL is returned.
The row object can be used to expand and collapse rows as well as to inspect its position in the tree. See its documentation for details.
This row object is persistent and will refer to the current item as long as the row is present in @self, independent of other rows being added or removed.
If @self is set to not be passthrough, this function is equivalent to calling g_list_model_get_item().
Do not confuse this function with method@Gtk.TreeListModel.get_child_row.
val get_passthrough : t -> boolGets whether the model is passing through original row items.
If this function returns %FALSE, the `GListModel` functions for @self return custom `GtkTreeListRow` objects. You need to call method@Gtk.TreeListRow.get_item on these objects to get the original item.
If %TRUE, the values of the child models are passed through in their original state. You then need to call method@Gtk.TreeListModel.get_row to get the custom `GtkTreeListRow`s.
val get_model : t -> Ocgtk_gio.Gio.Wrappers.List_model.tGets the root model that @self was created with.
val get_child_row :
t ->
int ->
[ `tree_list_row | `object_ ] Gobject.obj optionGets the row item corresponding to the child at index @position for @self's root model.
If @position is greater than the number of children in the root model, %NULL is returned.
Do not confuse this function with method@Gtk.TreeListModel.get_row.
val get_autoexpand : t -> boolGets whether the model is set to automatically expand new rows that get added.
This can be either rows added by changes to the underlying models or via method@Gtk.TreeListRow.set_expanded.
val get_item_type : t -> Gobject.Type.tGet property: item-type
val get_n_items : t -> intGet property: n-items