Package: gtk
Class gtk:tree-view
Superclassesgtk:widget, gobject:initially-unowned, gtk:accessible, gtk:buildable, gtk:constraint-target, gobject:object, common-lisp:standard-object, common-lisp:t Documented Subclasses
None
Direct SlotsDetails Widget that displays any object that implements the gtk:tree-model
interface. ![]() Figure: GtkTreeView Please refer to the tree widget conceptual overview for an overview of all the objects and data types related to the tree widget and how they work together. Several different coordinate systems are exposed in the gtk:tree-view API. These are: ![]() Figure: Tree view coordinates Coordinate systems in the gtk:tree-view API:
GtkTreeView as GtkBuildableExample: A UI definition fragment with the gtk:tree-view widget <object class="GtkTreeView" id="treeview"> <property name="model">liststore1</property> <child> <object class="GtkTreeViewColumn" id="test-column"> <property name="title">Test</property> <child> <object class="GtkCellRendererText" id="test-renderer"/> <attributes> <attribute name="text">1</attribute> </attributes> </child> </object> </child> <child internal-child="selection"> <object class="GtkTreeSelection" id="selection"> <signal name="changed" handler="on_treeview_selection_changed"/> </object> </child> </object> CSS nodestreeview.view ├── header │ ├── <column header> ┊ ┊ │ ╰── <column header> │ ╰── [rubberband]The gtk:tree-view implementation has a main CSS node with name treeview and .view style class. It has a subnode with name header, which is the parent for all the column header widgets' CSS nodes. For rubberband selection, a subnode with name rubberband is used. WarningSignal DetailsThe "columns-changed" signallambda (view) :run-last
The "cursor-changed" signallambda (view) :run-last
The "expand-collapse-cursor-row" signallambda (view arg1 arg2) :run-last
The "move-cursor" signallambda (view step direction) :action
The "row-activated" signallambda (view path column) :action
The "row-collapsed" signallambda (view iter path) :run-last
The "row-expanded" signallambda (view iter path) :run-last
The "select-all" signallambda (view) :action
The "select-cursor-parent" signallambda (view) :action
The "select-cursor-row" signallambda (view arg) :action
The "start-interactive-search" signallambda (view) :action
The "test-collapse-row" signallambda (view iter path) :run-last
The "test-expand-row" signallambda (view iter path) :run-last
The "toggle-cursor-row" signallambda (view) :action
The "unselect-all" signallambda (view) :action
| Returned bySlot Access FunctionsInherited Slot Access FunctionsSee also |
2025-07-22