TreeListRowRef
public struct TreeListRowRef : TreeListRowProtocol, GWeakCapturing
GtkTreeListRow
is used by GtkTreeListModel
to represent items.
It allows navigating the model as a tree and modify the state of rows.
GtkTreeListRow
instances are created by a GtkTreeListModel
only
when the [propertyGtk.TreeListModel:passthrough
] property is not set.
There are various support objects that can make use of GtkTreeListRow
objects, such as the [classGtk.TreeExpander
] widget that allows displaying
an icon to expand or collapse a row or [classGtk.TreeListRowSorter
] that
makes it possible to sort trees properly.
The TreeListRowRef
type acts as a lightweight Swift reference to an underlying GtkTreeListRow
instance.
It exposes methods that can operate on this data type through TreeListRowProtocol
conformance.
Use TreeListRowRef
only as an unowned
reference to an existing GtkTreeListRow
instance.
-
Untyped pointer to the underlying `GtkTreeListRow` instance.
For type-safe access, use the generated, typed pointer
tree_list_row_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkTreeListRow>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkTreeListRow>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkTreeListRow>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkTreeListRow>?)
-
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
TreeListRowProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : TreeListRowProtocol
-
This factory is syntactic sugar for setting weak pointers wrapped in
GWeak<T>
Declaration
Swift
@inlinable static func unowned<T>(_ other: T) -> TreeListRowRef where T : TreeListRowProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreeListRowProtocol
.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
TreeListRowProtocol
.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
TreeListRowProtocol
.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
TreeListRowProtocol
.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
TreeListRowProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)