TreeRowReferenceProtocol
public protocol TreeRowReferenceProtocol
A GtkTreeRowReference tracks model changes so that it always refers to the
same row (a GtkTreePath
refers to a position, not a fixed row). Create a
new GtkTreeRowReference with gtk_tree_row_reference_new()
.
The TreeRowReferenceProtocol
protocol exposes the methods and properties of an underlying GtkTreeRowReference
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see TreeRowReference
.
Alternatively, use TreeRowReferenceRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTreeRowReference
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
tree_row_reference_ptr
Default implementationTyped pointer to the underlying
GtkTreeRowReference
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeRowReference
instance.Declaration
Swift
var tree_row_reference_ptr: UnsafeMutablePointer<GtkTreeRowReference>! { get }
-
Required Initialiser for types conforming to
TreeRowReferenceProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()
Extension methodCopies a
GtkTreeRowReference
.Declaration
Swift
@inlinable func copy() -> TreeRowReferenceRef!
-
free()
Extension methodFree’s
reference
.reference
may benil
Declaration
Swift
@inlinable func free()
-
getModel()
Extension methodReturns the model that the row reference is monitoring.
Declaration
Swift
@inlinable func getModel() -> TreeModelRef!
-
getPath()
Extension methodReturns a path that the row reference currently points to, or
nil
if the path pointed to is no longer valid.Declaration
Swift
@inlinable func getPath() -> TreePathRef!
-
valid()
Extension methodReturns
true
if thereference
is non-nil
and refers to a current valid path.Declaration
Swift
@inlinable func valid() -> Bool
-
model
Extension methodReturns the model that the row reference is monitoring.
Declaration
Swift
@inlinable var model: TreeModelRef! { get }
-
path
Extension methodReturns a path that the row reference currently points to, or
nil
if the path pointed to is no longer valid.Declaration
Swift
@inlinable var path: TreePathRef! { get }