TreeIterProtocol
public protocol TreeIterProtocol
The GtkTreeIter is the primary structure
for accessing a GtkTreeModel. Models are expected to put a unique
integer in the stamp member, and put
model-specific data in the three user_data
members.
The TreeIterProtocol protocol exposes the methods and properties of an underlying GtkTreeIter 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 TreeIter.
Alternatively, use TreeIterRef as a lighweight, unowned reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
GtkTreeIterinstance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get } -
tree_iter_ptrDefault implementationTyped pointer to the underlying
GtkTreeIterinstance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeIterinstance.Declaration
Swift
var tree_iter_ptr: UnsafeMutablePointer<GtkTreeIter>! { get } -
Required Initialiser for types conforming to
TreeIterProtocolDeclaration
Swift
init(raw: UnsafeMutableRawPointer)
-
copy()Extension methodCreates a dynamically allocated tree iterator as a copy of
iter.This function is not intended for use in applications, because you can just copy the structs by value (
GtkTreeIter new_iter = iter;). You must free this iter withgtk_tree_iter_free().Declaration
Swift
@inlinable func copy() -> TreeIterRef! -
free()Extension methodFrees an iterator that has been allocated by
gtk_tree_iter_copy().This function is mainly used for language bindings.
Declaration
Swift
@inlinable func free() -
treeRowReferenceReordered(proxy:Extension methodpath: newOrder: ) Lets a set of row reference created by
gtk_tree_row_reference_new_proxy()know that the model emitted therows-reorderedsignal.Declaration
Swift
@inlinable func treeRowReferenceReordered<ObjectT, TreePathT>(proxy: ObjectT, path: TreePathT, newOrder: UnsafeMutablePointer<CInt>!) where ObjectT : ObjectProtocol, TreePathT : TreePathProtocol -
stampExtension methoda unique stamp to catch invalid iterators
Declaration
Swift
@inlinable var stamp: gint { get set } -
userDataExtension methodmodel-specific data
Declaration
Swift
@inlinable var userData: gpointer! { get set } -
userData2Extension methodmodel-specific data
Declaration
Swift
@inlinable var userData2: gpointer! { get set } -
userData3Extension methodmodel-specific data
Declaration
Swift
@inlinable var userData3: gpointer! { get set }
View on GitHub
Install in Dash
TreeIterProtocol Protocol Reference