Re: GtkTextIter and GtkTextBuffer question
- From: Havoc Pennington <hp redhat com>
- To: Boris <villazob ucbcba edu bo>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: GtkTextIter and GtkTextBuffer question
- Date: Thu, 23 Jan 2003 15:10:52 -0500
On Thu, Jan 23, 2003 at 08:52:24PM +0100, Boris wrote:
Is there any function to translate GtkTextIter to an integer?
Hmm, maybe #define TEXT_ITER_AS_INT(iter) ((long)&(iter))
;-)
What integer do you want? There are various functions, look through
them here:
http://developer.gnome.org/doc/API/2.0/gtk/gtk-GtkTextIter.html
gint gtk_text_iter_get_offset (const GtkTextIter *iter);
gint gtk_text_iter_get_line (const GtkTextIter *iter);
gint gtk_text_iter_get_line_offset (const GtkTextIter *iter);
gint gtk_text_iter_get_line_index (const GtkTextIter *iter);
gint gtk_text_iter_get_visible_line_index
(const GtkTextIter *iter);
gint gtk_text_iter_get_visible_line_offset
(const GtkTextIter *iter);
Havoc
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]