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.

  • ptr

    Untyped pointer to the underlying GtkTreeIter instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer! { get }
  • tree_iter_ptr Default implementation

    Typed 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)

TreeIter Record: TreeIterProtocol extension (methods and fields)

  • copy() Extension method

    Creates 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 with gtk_tree_iter_free().

    Declaration

    Swift

    @inlinable
    func copy() -> TreeIterRef!
  • free() Extension method

    Frees an iterator that has been allocated by gtk_tree_iter_copy().

    This function is mainly used for language bindings.

    Declaration

    Swift

    @inlinable
    func free()
  • Lets a set of row reference created by gtk_tree_row_reference_new_proxy() know that the model emitted the rows-reordered signal.

    Declaration

    Swift

    @inlinable
    func treeRowReferenceReordered<ObjectT, TreePathT>(proxy: ObjectT, path: TreePathT, newOrder: UnsafeMutablePointer<CInt>!) where ObjectT : ObjectProtocol, TreePathT : TreePathProtocol
  • stamp Extension method

    a unique stamp to catch invalid iterators

    Declaration

    Swift

    @inlinable
    var stamp: gint { get set }
  • userData Extension method

    model-specific data

    Declaration

    Swift

    @inlinable
    var userData: gpointer! { get set }
  • userData2 Extension method

    model-specific data

    Declaration

    Swift

    @inlinable
    var userData2: gpointer! { get set }
  • userData3 Extension method

    model-specific data

    Declaration

    Swift

    @inlinable
    var userData3: gpointer! { get set }