package ocgtk
Install
dune-project
Dependency
Authors
Maintainers
Sources
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.objval new_ : unit -> tCreate a new TreeExpander
val set_list_row :
t ->
[ `tree_list_row | `object_ ] Gobject.obj option ->
unitSets the tree list row that this expander should manage.
val set_indent_for_icon : t -> bool -> unitSets 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 -> unitSets if the TreeExpander should indent the child according to its depth.
val set_hide_expander : t -> bool -> unitSets whether the expander icon should be visible in a GtkTreeListRow.
val set_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj option ->
unitSets the content widget to display.
val get_list_row : t -> [ `tree_list_row | `object_ ] Gobject.obj optionGets the list row managed by @self.
val get_item : t -> [ `object_ ] Gobject.obj optionForwards 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 -> boolTreeExpander indents the child by the width of an expander-icon if it is not expandable.
val get_indent_for_depth : t -> boolTreeExpander indents each level of depth with an additional indent.
val get_hide_expander : t -> boolGets whether the TreeExpander should be hidden in a GtkTreeListRow.
val get_child :
t ->
[ `widget | `initially_unowned | `object_ ] Gobject.obj optionGets the child widget displayed by @self.