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

Module Wrappers.Tree_expander

type t = [ `tree_expander | `widget | `initially_unowned | `object_ ] Gobject.obj
val new_ : unit -> t

Create a new TreeExpander

val set_list_row : t -> [ `tree_list_row | `object_ ] Gobject.obj option -> unit

Sets the tree list row that this expander should manage.

val set_indent_for_icon : t -> bool -> unit

Sets if the TreeExpander should indent the child by the width of an expander-icon when it is not expandable.

val set_indent_for_depth : t -> bool -> unit

Sets if the TreeExpander should indent the child according to its depth.

val set_hide_expander : t -> bool -> unit

Sets whether the expander icon should be visible in a GtkTreeListRow.

val set_child : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj option -> unit

Sets the content widget to display.

val get_list_row : t -> [ `tree_list_row | `object_ ] Gobject.obj option

Gets the list row managed by @self.

val get_item : t -> [ `object_ ] Gobject.obj option

Forwards the item set on the `GtkTreeListRow` that @self is managing.

This call is essentially equivalent to calling:

```c gtk_tree_list_row_get_item (gtk_tree_expander_get_list_row (@self)); ```

val get_indent_for_icon : t -> bool

TreeExpander indents the child by the width of an expander-icon if it is not expandable.

val get_indent_for_depth : t -> bool

TreeExpander indents each level of depth with an additional indent.

val get_hide_expander : t -> bool

Gets whether the TreeExpander should be hidden in a GtkTreeListRow.

val get_child : t -> [ `widget | `initially_unowned | `object_ ] Gobject.obj option

Gets the child widget displayed by @self.