TreeViewColumn
open class TreeViewColumn : GLibObject.InitiallyUnowned, TreeViewColumnProtocol
A visible column in a GtkTreeView widget
The GtkTreeViewColumn object represents a visible column in a GtkTreeView widget.
It allows to set properties of the column header, and functions as a holding pen
for the cell renderers which determine how the data in the column is displayed.
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, and to the GtkTreeView documentation for specifics about
the CSS node structure for treeviews and their headers.
The TreeViewColumn type acts as a reference-counted owner of an underlying GtkTreeViewColumn instance.
It provides the methods that can operate on this data type through TreeViewColumnProtocol conformance.
Use TreeViewColumn as a strong reference or owner of a GtkTreeViewColumn instance.
-
Designated initialiser from the underlying `C` data type.This creates an instance without performing an unbalanced retain i.e., ownership is transferred to the
TreeViewColumninstance.Declaration
Swift
@inlinable public init(_ op: UnsafeMutablePointer<GtkTreeViewColumn>)Parameters
oppointer to the underlying object
-
Designated initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumninstance.Declaration
Swift
@inlinable public init(_ op: UnsafePointer<GtkTreeViewColumn>)Parameters
oppointer to the underlying object
-
Optional initialiser from a non-mutating
gpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumninstance.Declaration
Swift
@inlinable override public init!(gpointer op: gpointer?)Parameters
opgpointer to the underlying object
-
Optional initialiser from a non-mutating
gconstpointerto the underlyingCdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumninstance.Declaration
Swift
@inlinable override public init!(gconstpointer op: gconstpointer?)Parameters
oppointer to the underlying object
-
Optional initialiser from a constant pointer to the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumninstance.Declaration
Swift
@inlinable public init!(_ op: UnsafePointer<GtkTreeViewColumn>?)Parameters
oppointer to the underlying object
-
Optional initialiser from the underlying
Cdata type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumninstance.Declaration
Swift
@inlinable public init!(_ op: UnsafeMutablePointer<GtkTreeViewColumn>?)Parameters
oppointer to the underlying object
-
Designated initialiser from the underlying
Cdata type. Will retainGtkTreeViewColumn. i.e., ownership is transferred to theTreeViewColumninstance.Declaration
Swift
@inlinable public init(retaining op: UnsafeMutablePointer<GtkTreeViewColumn>)Parameters
oppointer to the underlying object
-
Reference intialiser for a related type that implements
TreeViewColumnProtocolWill retainGtkTreeViewColumn.Declaration
Swift
@inlinable public init<T>(treeViewColumn other: T) where T : TreeViewColumnProtocolParameters
otheran instance of a related type that implements
TreeViewColumnProtocol -
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable override public init<T>(cPointer p: UnsafeMutablePointer<T>)Parameters
cPointerpointer to the underlying object
-
Unsafe typed, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable override public init<T>(retainingCPointer cPointer: UnsafeMutablePointer<T>)Parameters
cPointerpointer to the underlying object
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable override public init(raw p: UnsafeRawPointer)Parameters
praw pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable override public init(retainingRaw raw: UnsafeRawPointer) -
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable public required init(raw p: UnsafeMutableRawPointer)Parameters
pmutable raw pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable required public init(retainingRaw raw: UnsafeMutableRawPointer)Parameters
rawmutable raw pointer to the underlying object
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable override public init(opaquePointer p: OpaquePointer)Parameters
popaque pointer to the underlying object
-
Unsafe untyped, retaining initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeViewColumnProtocol.Declaration
Swift
@inlinable override public init(retainingOpaquePointer p: OpaquePointer)Parameters
popaque pointer to the underlying object
-
Creates a new
GtkTreeViewColumn.Declaration
Swift
@inlinable public init() -
Creates a new
GtkTreeViewColumnusingareato render its cells.Declaration
Swift
@inlinable public init<CellAreaT>(area: CellAreaT) where CellAreaT : CellAreaProtocol -
Creates a new
GtkTreeViewColumnusingareato render its cells.Declaration
Swift
@inlinable public static func newWith<CellAreaT>(area: CellAreaT) -> TreeViewColumn! where CellAreaT : CellAreaProtocol -
Convenience constructor for setting up a tree or list view column
Declaration
Swift
@inlinable convenience init(_ column: Int, title: String? = nil, renderer: CellRenderer = CellRendererText(), attribute: PropertyName = "text", expand e: Bool = true, rendererAttributes: [(PropertyName, Value)] = [])Parameters
columnnumber of the column starting at zero
titlecolumn title
renderercell renderer to use
attributemodel attribute to use
expandset to
falseto prevent cell from allocating more space than it needsrendererAttributesarray of attribute name/value pairs to set on the renderer
-
Convenience constructor for setting up a tree or list view column
Declaration
Swift
@inlinable convenience init(_ column: Int, title t: String? = nil, renderer r: CellRenderer = CellRendererText(), attribute a: PropertyName = "text", expand e: Bool = true, rendererAttributes ras: (PropertyName, Value)...)Parameters
columnnumber of the column starting at zero
titlecolumn title
renderercell renderer to use
attributemodel attribute to use
expandset to
falseto prevent cell from allocating more space than it needsrendererAttributesarray of attribute name/value pairs to set on the renderer
View on GitHub
Install in Dash
TreeViewColumn Class Reference