TreeViewRef
public struct TreeViewRef : TreeViewProtocol, GWeakCapturingWidget that displays any object that implements the GtkTreeModel interface.
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 GtkTreeView API. These are:

Coordinate systems in GtkTreeView API:
- Widget coordinates: Coordinates relative to the widget (usually - widget->window).
- Bin window coordinates: Coordinates relative to the window that GtkTreeView renders to. 
- Tree coordinates: Coordinates relative to the entire scrollable area of GtkTreeView. These coordinates start at (0, 0) for row 0 of the tree. 
Several functions are available for converting between the different
coordinate systems.  The most common translations are between widget and bin
window coordinates and between bin window and tree coordinates. For the
former you can use gtk_tree_view_convert_widget_to_bin_window_coords()
(and vice versa), for the latter gtk_tree_view_convert_bin_window_to_tree_coords()
(and vice versa).
GtkTreeView as GtkBuildable
The GtkTreeView implementation of the GtkBuildable interface accepts
GtkTreeViewColumn objects as <child> elements and exposes the internal
GtkTreeSelection in UI definitions.
An example of a UI definition fragment with GtkTreeView:
<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 nodes
(plain Language Example):
treeview.view
├── header
│   ├── <column header>
┊   ┊
│   ╰── <column header>
│
╰── [rubberband]
GtkTreeView has a main CSS node with name treeview and style class .view. 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.
The TreeViewRef type acts as a lightweight Swift reference to an underlying GtkTreeView instance.
It exposes methods that can operate on this data type through TreeViewProtocol conformance.
Use TreeViewRef only as an unowned reference to an existing GtkTreeView instance.
- 
                  
                  Untyped pointer to the underlying `GtkTreeView` instance.For type-safe access, use the generated, typed pointer tree_view_ptrproperty instead.DeclarationSwift public let ptr: UnsafeMutableRawPointer!
- 
                  
                  Designated initialiser from the underlying Cdata typeDeclarationSwift @inlinable init(_ p: UnsafeMutablePointer<GtkTreeView>)
- 
                  
                  Designated initialiser from a constant pointer to the underlying Cdata typeDeclarationSwift @inlinable init(_ p: UnsafePointer<GtkTreeView>)
- 
                  
                  Conditional initialiser from an optional pointer to the underlying Cdata typeDeclarationSwift @inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkTreeView>?)
- 
                  
                  Conditional initialiser from an optional, non-mutable pointer to the underlying Cdata typeDeclarationSwift @inlinable init!(_ maybePointer: UnsafePointer<GtkTreeView>?)
- 
                  
                  Conditional initialiser from an optional gpointerDeclarationSwift @inlinable init!(gpointer g: gpointer?)
- 
                  
                  Conditional initialiser from an optional, non-mutable gconstpointerDeclarationSwift @inlinable init!(gconstpointer g: gconstpointer?)
- 
                  
                  Reference intialiser for a related type that implements TreeViewProtocolDeclarationSwift @inlinable init<T>(_ other: T) where T : TreeViewProtocol
- 
                  
                  This factory is syntactic sugar for setting weak pointers wrapped in GWeak<T>DeclarationSwift @inlinable static func unowned<T>(_ other: T) -> TreeViewRef where T : TreeViewProtocol
- 
                  
                  Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to TreeViewProtocol.DeclarationSwift @inlinable init<T>(cPointer: UnsafeMutablePointer<T>)
- 
                  
                  Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to TreeViewProtocol.DeclarationSwift @inlinable init<T>(constPointer: UnsafePointer<T>)
- 
                  
                  Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to TreeViewProtocol.DeclarationSwift @inlinable init(mutating raw: UnsafeRawPointer)
- 
                  
                  Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to TreeViewProtocol.DeclarationSwift @inlinable init(raw: UnsafeMutableRawPointer)
- 
                  
                  Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to TreeViewProtocol.DeclarationSwift @inlinable init(opaquePointer: OpaquePointer)
- 
                  
                  Creates a new GtkTreeViewwidget.DeclarationSwift @inlinable init()
- 
                  
                  Creates a new GtkTreeViewwidget with the model initialized tomodel.DeclarationSwift @inlinable init<TreeModelT>(model: TreeModelT) where TreeModelT : TreeModelProtocol
- 
                  
                  Creates a new GtkTreeViewwidget with the model initialized tomodel.DeclarationSwift @inlinable static func newWith<TreeModelT>(model: TreeModelT) -> WidgetRef! where TreeModelT : TreeModelProtocol
 View on GitHub
            View on GitHub
           Install in Dash
            Install in Dash
           TreeViewRef Structure Reference
      TreeViewRef Structure Reference