TreePathRef
public struct TreePathRef : TreePathProtocol
An opaque structure representing a path to a row in a model.
The TreePathRef
type acts as a lightweight Swift reference to an underlying GtkTreePath
instance.
It exposes methods that can operate on this data type through TreePathProtocol
conformance.
Use TreePathRef
only as an unowned
reference to an existing GtkTreePath
instance.
-
Untyped pointer to the underlying `GtkTreePath` instance.
For type-safe access, use the generated, typed pointer
tree_path_ptr
property instead.Declaration
Swift
public let ptr: UnsafeMutableRawPointer!
-
Designated initialiser from the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafeMutablePointer<GtkTreePath>)
-
Designated initialiser from a constant pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init(_ p: UnsafePointer<GtkTreePath>)
-
Conditional initialiser from an optional pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafeMutablePointer<GtkTreePath>?)
-
Conditional initialiser from an optional, non-mutable pointer to the underlying
C
data typeDeclaration
Swift
@inlinable init!(_ maybePointer: UnsafePointer<GtkTreePath>?)
-
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
TreePathProtocol
Declaration
Swift
@inlinable init<T>(_ other: T) where T : TreePathProtocol
-
Unsafe typed initialiser. Do not use unless you know the underlying data type the pointer points to conforms to
TreePathProtocol
.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
TreePathProtocol
.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
TreePathProtocol
.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
TreePathProtocol
.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
TreePathProtocol
.Declaration
Swift
@inlinable init(opaquePointer: OpaquePointer)
-
Creates a new `GtkTreePath`
This refers to a row.
Declaration
Swift
@inlinable init()
-
Creates a new path with the given
indices
array oflength
.Declaration
Swift
@inlinable init(indicesv indices: UnsafeMutablePointer<CInt>!, length: Int)
-
Creates a new
GtkTreePath
initialized topath
.path
is expected to be a colon separated list of numbers. For example, the string “10:4:0” would create a path of depth 3 pointing to the 11th child of the root node, the 5th child of that 11th child, and the 1st child of that 5th child. If an invalid path string is passed in,nil
is returned.Declaration
Swift
@inlinable init(string path: UnsafePointer<CChar>!)
-
Creates a new
GtkTreePath
.The string representation of this path is “0”.
Declaration
Swift
@inlinable static func newFirst() -> TreePathRef!
-
Creates a new path with the given
indices
array oflength
.Declaration
Swift
@inlinable static func newFrom(indicesv indices: UnsafeMutablePointer<CInt>!, length: Int) -> TreePathRef!
-
Creates a new
GtkTreePath
initialized topath
.path
is expected to be a colon separated list of numbers. For example, the string “10:4:0” would create a path of depth 3 pointing to the 11th child of the root node, the 5th child of that 11th child, and the 1st child of that 5th child. If an invalid path string is passed in,nil
is returned.Declaration
Swift
@inlinable static func newFrom(string path: UnsafePointer<CChar>!) -> TreePathRef!