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
GtkTreeRowReferenceinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
tree_row_reference_ptrDefault implementationTyped pointer to the underlying
GtkTreeRowReferenceinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeRowReferenceinstance.Declaration
Swift
var tree_row_reference_ptr: UnsafeMutablePointer<GtkTreeRowReference>! { get } -
Required Initialiser for types conforming to
TreeRowReferenceProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCopies a
GtkTreeRowReference.Declaration
Swift
@inlinable func copy() -> TreeRowReferenceRef! -
free()Extension methodFree’s
reference.referencemay benilDeclaration
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
nilif the path pointed to is no longer valid.Declaration
Swift
@inlinable func getPath() -> TreePathRef! -
valid()Extension methodReturns
trueif thereferenceis non-niland refers to a current valid path.Declaration
Swift
@inlinable func valid() -> Bool -
modelExtension methodReturns the model that the row reference is monitoring.
Declaration
Swift
@inlinable var model: TreeModelRef! { get } -
pathExtension methodReturns a path that the row reference currently points to, or
nilif the path pointed to is no longer valid.Declaration
Swift
@inlinable var path: TreePathRef! { get }
View on GitHub
Install in Dash
TreeRowReferenceProtocol Protocol Reference