summaryrefslogtreecommitdiff
path: root/gtk/gtktextiter.h
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2003-01-14 01:07:58 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2003-01-14 01:07:58 +0000
commit740f871a15b5bf0282bd6bbf1f4fc3423d04ce1b (patch)
tree15efbf79c7756cc1a3b51f1840935c055a8e3055 /gtk/gtktextiter.h
parent53d79aa119769c5174a57cd68548c665acac0ea8 (diff)
downloadgtk+-740f871a15b5bf0282bd6bbf1f4fc3423d04ce1b.tar.gz
Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and
* gtk/gtktextview.c (gtk_text_view_move_cursor_internal): Skip invisible chars for GTK_MOVEMENT_LOGICAL_POSITIONS and GTK_MOVEMENT_WORDS. * gtk/gtktextiter.c, gtk/gtktextiter.h: Add some variant movement functions which skip invisible chars, and do some cleanups. * gtk/gtk-sections.txt: Add new GtkTextIter functions.
Diffstat (limited to 'gtk/gtktextiter.h')
-rw-r--r--gtk/gtktextiter.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/gtk/gtktextiter.h b/gtk/gtktextiter.h
index 0c8c56cc95..0b6f245174 100644
--- a/gtk/gtktextiter.h
+++ b/gtk/gtktextiter.h
@@ -191,6 +191,13 @@ gboolean gtk_text_iter_forward_word_ends (GtkTextIter *iter,
gboolean gtk_text_iter_backward_word_starts (GtkTextIter *iter,
gint count);
+gboolean gtk_text_iter_forward_visible_word_end (GtkTextIter *iter);
+gboolean gtk_text_iter_backward_visible_word_start (GtkTextIter *iter);
+gboolean gtk_text_iter_forward_visible_word_ends (GtkTextIter *iter,
+ gint count);
+gboolean gtk_text_iter_backward_visible_word_starts (GtkTextIter *iter,
+ gint count);
+
gboolean gtk_text_iter_forward_sentence_end (GtkTextIter *iter);
gboolean gtk_text_iter_backward_sentence_start (GtkTextIter *iter);
gboolean gtk_text_iter_forward_sentence_ends (GtkTextIter *iter,
@@ -209,6 +216,13 @@ gboolean gtk_text_iter_forward_cursor_positions (GtkTextIter *iter,
gboolean gtk_text_iter_backward_cursor_positions (GtkTextIter *iter,
gint count);
+gboolean gtk_text_iter_forward_visible_cursor_position (GtkTextIter *iter);
+gboolean gtk_text_iter_backward_visible_cursor_position (GtkTextIter *iter);
+gboolean gtk_text_iter_forward_visible_cursor_positions (GtkTextIter *iter,
+ gint count);
+gboolean gtk_text_iter_backward_visible_cursor_positions (GtkTextIter *iter,
+ gint count);
+
void gtk_text_iter_set_offset (GtkTextIter *iter,
gint char_offset);