Re: utility of GtkTextIter ?



On Tue, Mar 25, 2003 at 12:26:11PM +0100, Axel wrote:
Text Widget Overview in API doesn' t talk about it and its API isn' t 
very explainative...
so, what is the utility of GtkTextIter ?


Hogwash.

Goto the text widget overview and grep for:
Most text manipulation is accomplished with iterators....

It covers the essentials:
1) logically, an iter is a position between to characters in a buffer
2) the underlying data structure is designed for stack allocation and
   copying.
3) its short lived, modifying the buffer could make it invalid.

As for the utility of an Iter, you will notice that they are used to a
great extent in the API of TextBuffer and View for communicating a
specific location in a TextBuffer.


--jkl



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]