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

Module Wrappers.Tree_row_reference

type t = [ `tree_row_reference ] Gobject.obj

A GtkTreeRowReference tracks model changes so that it always refers to the same row (a `GtkTreePath` refers to a position, not a fixed row). Create a new GtkTreeRowReference with gtk_tree_row_reference_new().

val new_ : [ `tree_model ] Gobject.obj -> [ `tree_path ] Gobject.obj -> t

Create a new TreeRowReference

val new_proxy : [ `object_ ] Gobject.obj -> [ `tree_model ] Gobject.obj -> [ `tree_path ] Gobject.obj -> t

Create a new TreeRowReference

val valid : t -> bool

Returns %TRUE if the @reference is non-%NULL and refers to a current valid path.

val get_path : t -> [ `tree_path ] Gobject.obj option

Returns a path that the row reference currently points to, or %NULL if the path pointed to is no longer valid.

val get_model : t -> [ `tree_model ] Gobject.obj

Returns the model that the row reference is monitoring.

val get_type : unit -> Gobject.Type.t