gi-gtk-3.0.17: Gtk bindings

CopyrightWill Thompson Iñaki García Etxebarria and Jonas Platte
LicenseLGPL-2.1
MaintainerIñaki García Etxebarria (garetxe@gmail.com)
Safe HaskellNone
LanguageHaskell2010

GI.Gtk.Structs.TreeIter

Contents

Description

The TreeIter is the primary structure for accessing a TreeModel. Models are expected to put a unique integer in the stamp member, and put model-specific data in the three userData members.

Synopsis

Exported types

newZeroTreeIter :: MonadIO m => m TreeIter Source #

Construct a TreeIter struct initialized to zero.

Methods

copy

treeIterCopy Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeIter

iter: a TreeIter-struct

-> m TreeIter

Returns: a newly-allocated copy of iter

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 treeIterFree.

free

treeIterFree Source #

Arguments

:: (HasCallStack, MonadIO m) 
=> TreeIter

iter: a dynamically allocated tree iterator

-> m () 

Frees an iterator that has been allocated by treeIterCopy.

This function is mainly used for language bindings.

Properties

stamp

userData

userData2

userData3