|
Public Types |
| typedef std::bidirectional_iterator_tag | iterator_category |
| typedef gunichar | value_type |
| typedef int | difference_type |
| typedef value_type | reference |
| typedef void | pointer |
Public Member Functions |
| | TextIter () |
| | TextIter (const GtkTextIter* gobject) |
| GtkTextIter* | gobj () |
| | Provides access to the underlying C instance.
|
| const GtkTextIter* | gobj () const |
| | Provides access to the underlying C instance.
|
| TextIter& | operator++ () |
| | Alias for forward_char().
|
| const TextIter | operator++ (int) |
| TextIter& | operator-- () |
| | Alias for backward_char().
|
| const TextIter | operator-- (int) |
| value_type | operator* () const |
| | Alias for get_char().
|
| | operator bool () const |
| | Alias for !is_end().
|
| Glib::RefPtr<TextBuffer> | get_buffer () const |
| int | get_offset () const |
| int | get_line () const |
| int | get_line_offset () const |
| int | get_line_index () const |
| int | get_visible_line_offset () const |
| int | get_visible_line_index () const |
| gunichar | get_char () const |
| Glib::ustring | get_slice (const TextIter& end) const |
| Glib::ustring | get_text (const TextIter& end) const |
| Glib::ustring | get_visible_slice (const TextIter& end) const |
| Glib::ustring | get_visible_text (const TextIter& end) const |
| Glib::RefPtr<Gdk::Pixbuf> | get_pixbuf () const |
Glib::SListHandle< Glib::RefPtr<
TextMark > > | get_marks () const |
| Glib::RefPtr<TextChildAnchor> | get_child_anchor () const |
Glib::SListHandle< Glib::RefPtr<
TextTag > > | get_toggled_tags (bool toggled_on=true) const |
| bool | begins_tag (const Glib::RefPtr<TextTag>& tag) const |
| bool | ends_tag (const Glib::RefPtr<TextTag>& tag) const |
| bool | toggles_tag (const Glib::RefPtr<TextTag>& tag) const |
| bool | has_tag (const Glib::RefPtr<TextTag>& tag) const |
Glib::SListHandle< Glib::RefPtr<
TextTag > > | get_tags () const |
| bool | editable (bool default_setting=true) const |
| bool | can_insert (bool default_editability=true) const |
| bool | starts_word () const |
| bool | ends_word () const |
| bool | inside_word () const |
| bool | starts_sentence () const |
| bool | ends_sentence () const |
| bool | inside_sentence () const |
| bool | starts_line () const |
| bool | ends_line () const |
| bool | is_cursor_position () const |
| int | get_chars_in_line () const |
| int | get_bytes_in_line () const |
| bool | get_attributes (TextAttributes& values) const |
| Pango::Language | get_language () const |
| bool | is_end () const |
| bool | is_start () const |
| bool | forward_char () |
| bool | backward_char () |
| bool | forward_chars (int count) |
| bool | backward_chars (int count) |
| bool | forward_line () |
| bool | backward_line () |
| bool | forward_lines (int count) |
| bool | backward_lines (int count) |
| bool | forward_word_end () |
| bool | backward_word_start () |
| bool | forward_word_ends (int count) |
| bool | backward_word_starts (int count) |
| bool | forward_visible_word_end () |
| bool | backward_visible_word_start () |
| bool | forward_visible_word_ends (int count) |
| bool | backward_visible_word_starts (int count) |
| bool | forward_sentence_end () |
| bool | backward_sentence_start () |
| bool | forward_sentence_ends (int count) |
| bool | backward_sentence_starts (int count) |
| bool | forward_cursor_position () |
| bool | backward_cursor_position () |
| bool | forward_cursor_positions (int count) |
| bool | backward_cursor_positions (int count) |
| bool | forward_visible_cursor_position () |
| bool | backward_visible_cursor_position () |
| bool | forward_visible_cursor_positions (int count) |
| bool | backward_visible_cursor_positions (int count) |
| void | set_offset (int char_offset) |
| void | set_line (int line_number) |
| void | set_line_offset (int char_on_line) |
| void | set_line_index (int byte_on_line) |
| void | forward_to_end () |
| bool | forward_to_line_end () |
| void | set_visible_line_offset (int char_on_line) |
| void | set_visible_line_index (int byte_on_line) |
| bool | forward_to_tag_toggle (const Glib::RefPtr<TextTag>& tag) |
| bool | backward_to_tag_toggle (const Glib::RefPtr<TextTag>& tag) |
| template <class Predicate> bool | forward_find_char (const Predicate& predicate, const TextIter& limit) |
| template <class Predicate> bool | forward_find_char (const Predicate& predicate) |
| template <class Predicate> bool | backward_find_char (const Predicate& predicate, const TextIter& limit) |
| template <class Predicate> bool | backward_find_char (const Predicate& predicate) |
| bool | forward_search (const Glib::ustring& str, TextSearchFlags flags, TextIter& match_start, TextIter& match_end, const TextIter& limit) const |
| bool | backward_search (const Glib::ustring& str, TextSearchFlags flags, TextIter& match_start, TextIter& match_end, const TextIter& limit) const |
| int | compare (const TextIter& rhs) const |
| bool | in_range (const TextIter& start, const TextIter& end) const |
| void | order (TextIter& second) |
Protected Attributes |
| GtkTextIter | gobject_ |
Related Functions |
(Note that these are not member functions.)
|
| bool | operator== (const TextIter& lhs, const TextIter& rhs) |
| bool | operator!= (const TextIter& lhs, const TextIter& rhs) |
| bool | operator< (const TextIter& lhs, const TextIter& rhs) |
| bool | operator> (const TextIter& lhs, const TextIter& rhs) |
| bool | operator<= (const TextIter& lhs, const TextIter& rhs) |
| bool | operator>= (const TextIter& lhs, const TextIter& rhs) |
| Gtk::TextIter& | wrap (GtkTextIter* object) |
| const Gtk::TextIter& | wrap (const GtkTextIter* object) |
TODO: Maybe we should have separate iterators for words, lines, and sentences.