ColumnViewColumnRef
public struct ColumnViewColumnRef : ColumnViewColumnProtocol, GWeakCapturing
GtkColumnViewColumn
represents the columns being added to GtkColumnView
.
The main ingredient for a GtkColumnViewColumn
is the GtkListItemFactory
that tells the columnview how to create cells for this column from items in
the model.
Columns have a title, and can optionally have a header menu set
with [methodGtk.ColumnViewColumn.set_header_menu
].
A sorter can be associated with a column using
[methodGtk.ColumnViewColumn.set_sorter
], to let users influence sorting
by clicking on the column header.
The ColumnViewColumnRef
type acts as a lightweight Swift reference to an underlying GtkColumnViewColumn
instance.
It exposes methods that can operate on this data type through ColumnViewColumnProtocol
conformance.
Use ColumnViewColumnRef
only as an unowned
reference to an existing GtkColumnViewColumn
instance.
-
Untyped pointer to the underlying `GtkColumnViewColumn` instance.
For type-safe access, use the generated, typed pointer
column_view_column_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkColumnViewColumn>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkColumnViewColumn>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkColumnViewColumn>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkColumnViewColumn>?)
-
Conditional initialiser from an optional
gpointer
Declaration
Swift
@inlinable init!(gpointer g: gpointer?)
-
Conditional initialiser from an optional, non-mutable
gconstpointer
Declaration
Swift
@inlinable init!(gconstpointer g: gconstpointer?)
-
Reference intialiser for a related type that implements
ColumnViewColumnProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : ColumnViewColumnProtocol
-
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>
Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> ColumnViewColumnRef where T : ColumnViewColumnProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ColumnViewColumnProtocol
.Declaration
Swift
@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
ColumnViewColumnProtocol
.Declaration
Swift
@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
ColumnViewColumnProtocol
.Declaration
Swift
@inlinable init(mutating raw: UnsafeRawPointer)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ColumnViewColumnProtocol
.Declaration
Swift
@inlinable init(raw: UnsafeMutableRawPointer)
-
Unsafe untyped initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
ColumnViewColumnProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)
-
Creates a new `GtkColumnViewColumn` that uses the given `factory` for
mapping items to widgets.
You most likely want to call [method
Gtk.ColumnView.append_column
] next.The function takes ownership of the argument, so you can write code like:
column = gtk_column_view_column_new (`_("Name")`, gtk_builder_list_item_factory_new_from_resource ("/name.ui"));
Declaration
Swift
@inlinable init<ListItemFactoryT>(title: UnsafePointer<CChar>? = nil, factory: ListItemFactoryT?) where ListItemFactoryT : ListItemFactoryProtocol