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
TreeViewColumn
instance.Declaration
Swift
@inlinable public init(_ op: UnsafeMutablePointer<GtkTreeViewColumn>)
Parameters
op
pointer to the underlying object
-
Designated initialiser from a constant pointer to the underlying
C
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumn
instance.Declaration
Swift
@inlinable public init(_ op: UnsafePointer<GtkTreeViewColumn>)
Parameters
op
pointer to the underlying object
-
Optional initialiser from a non-mutating
gpointer
to the underlyingC
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumn
instance.Declaration
Swift
@inlinable override public init!(gpointer op: gpointer?)
Parameters
op
gpointer to the underlying object
-
Optional initialiser from a non-mutating
gconstpointer
to the underlyingC
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumn
instance.Declaration
Swift
@inlinable override public init!(gconstpointer op: gconstpointer?)
Parameters
op
pointer to the underlying object
-
Optional initialiser from a constant pointer to the underlying
C
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumn
instance.Declaration
Swift
@inlinable public init!(_ op: UnsafePointer<GtkTreeViewColumn>?)
Parameters
op
pointer to the underlying object
-
Optional initialiser from the underlying
C
data type. This creates an instance without performing an unbalanced retain i.e., ownership is transferred to theTreeViewColumn
instance.Declaration
Swift
@inlinable public init!(_ op: UnsafeMutablePointer<GtkTreeViewColumn>?)
Parameters
op
pointer to the underlying object
-
Designated initialiser from the underlying
C
data type. Will retainGtkTreeViewColumn
. i.e., ownership is transferred to theTreeViewColumn
instance.Declaration
Swift
@inlinable public init(retaining op: UnsafeMutablePointer<GtkTreeViewColumn>)
Parameters
op
pointer to the underlying object
-
Reference intialiser for a related type that implements
TreeViewColumnProtocol
Will retainGtkTreeViewColumn
.Declaration
Swift
@inlinable public init<T>(treeViewColumn other: T) where T : TreeViewColumnProtocol
Parameters
other
an 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
cPointer
pointer 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
cPointer
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(raw p: UnsafeRawPointer)
Parameters
p
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 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
p
mutable 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
raw
mutable 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
p
opaque 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
p
opaque pointer to the underlying object
-
Creates a new
GtkTreeViewColumn
.Declaration
Swift
@inlinable public init()
-
Creates a new
GtkTreeViewColumn
usingarea
to render its cells.Declaration
Swift
@inlinable public init<CellAreaT>(area: CellAreaT) where CellAreaT : CellAreaProtocol
-
Creates a new
GtkTreeViewColumn
usingarea
to 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
column
number of the column starting at zero
title
column title
renderer
cell renderer to use
attribute
model attribute to use
expand
set to
false
to prevent cell from allocating more space than it needsrendererAttributes
array 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
column
number of the column starting at zero
title
column title
renderer
cell renderer to use
attribute
model attribute to use
expand
set to
false
to prevent cell from allocating more space than it needsrendererAttributes
array of attribute name/value pairs to set on the renderer