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
GtkTreeIter
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
tree_iter_ptr
Default implementationTyped pointer to the underlying
GtkTreeIter
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
GtkTreeIter
instance.Declaration
Swift
var tree_iter_ptr: UnsafeMutablePointer<GtkTreeIter>! { get }
-
Required Initialiser for types conforming to
TreeIterProtocol
Declaration
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 theGtkTreeModel::rows-reordered
signal.Declaration
Swift
@inlinable func treeRowReferenceReordered<ObjectT, TreePathT>(proxy: ObjectT, path: TreePathT, newOrder: UnsafeMutablePointer<gint>!) where ObjectT : ObjectProtocol, TreePathT : TreePathProtocol
-
stamp
Extension methoda unique stamp to catch invalid iterators
Declaration
Swift
@inlinable var stamp: gint { get set }
-
userData
Extension methodmodel-specific data
Declaration
Swift
@inlinable var userData: gpointer! { get set }
-
userData2
Extension methodmodel-specific data
Declaration
Swift
@inlinable var userData2: gpointer! { get set }
-
userData3
Extension methodmodel-specific data
Declaration
Swift
@inlinable var userData3: gpointer! { get set }