|  | 
| 
 Public Types | 
| typedef TextIter | iterator | 
| typedef TextTag | Tag | 
| typedef TextTagTable | TagTable | 
| typedef TextMark | Mark | 
| 
 Public Member Functions | 
| virtual | ~TextBuffer () | 
| GtkTextBuffer* | gobj () | 
|  | Provides access to the underlying C GObject. 
 
 | 
| const  GtkTextBuffer* | gobj () const | 
|  | Provides access to the underlying C GObject. 
 
 | 
| GtkTextBuffer* | gobj_copy () | 
| int | get_line_count () const | 
|  | Obtains the number of lines in the buffer. 
 
 | 
| int | get_char_count () const | 
|  | Gets the number of characters in the buffer; note that characters and bytes are not the same, you can't e.g. expect the contents of the buffer in string form to be this many bytes long. 
 
 | 
| int | size () const | 
| Glib::RefPtr<TextBuffer::TagTable> | get_tag_table () | 
|  | Get the Gtk::TextTagTable associated with this buffer. 
 
 | 
| Glib::RefPtr<const  TextBuffer::TagTable> | get_tag_table () const | 
|  | Get the Gtk::TextTagTable associated with this buffer. 
 
 | 
| void | set_text (const  Glib::ustring& text) | 
| void | set_text (const  char* text_begin, const  char* text_end) | 
| void | assign (const  Glib::ustring& text) | 
|  | Alias for set_text(). 
 
 | 
| void | assign (const  char* text_begin, const  char* text_end) | 
|  | Alias for set_text(). 
 
 | 
| iterator | insert (const  iterator& pos, const  Glib::ustring& text) | 
| iterator | insert (const  iterator& pos, const  char* text_begin, const  char* text_end) | 
| void | insert_at_cursor (const  Glib::ustring& text) | 
| void | insert_at_cursor (const  char* text_begin, const  char* text_end) | 
| std::pair<iterator, bool> | insert_interactive (const  iterator& pos, const  Glib::ustring& text, bool default_editable=true) | 
| std::pair<iterator, bool> | insert_interactive (const  iterator& pos, const  char* text_begin, const  char* text_end, bool default_editable=true) | 
| bool | insert_interactive_at_cursor (const  Glib::ustring& text, bool default_editable=true) | 
| bool | insert_interactive_at_cursor (const  char* text_begin, const  char* text_end, bool default_editable=true) | 
| iterator | insert (const  iterator& pos, const  iterator& range_begin, const  iterator& range_end) | 
| std::pair<iterator, bool> | insert_interactive (const  iterator& pos, const  iterator& range_begin, const  iterator& range_end, bool default_editable=true) | 
| iterator | insert_with_tag (const  iterator& pos, const  Glib::ustring& text, const  Glib::RefPtr<Tag>& tag) | 
| iterator | insert_with_tag (const  iterator& pos, const  char* text_begin, const  char* text_end, const  Glib::RefPtr<Tag>& tag) | 
| iterator | insert_with_tag (const  iterator& pos, const  Glib::ustring& text, const  Glib::ustring& tag_name) | 
| iterator | insert_with_tag (const  iterator& pos, const  char* text_begin, const  char* text_end, const  Glib::ustring& tag_name) | 
| iterator | insert_with_tags (const  iterator& pos, const  Glib::ustring& text, const  Glib::ArrayHandle<Glib::RefPtr<Tag>>& tags) | 
| iterator | insert_with_tags (const  iterator& pos, const  char* text_begin, const  char* text_end, const  Glib::ArrayHandle<Glib::RefPtr<Tag>>& tags) | 
| iterator | insert_with_tags_by_name (const  iterator& pos, const  Glib::ustring& text, const  Glib::StringArrayHandle& tag_names) | 
| iterator | insert_with_tags_by_name (const  iterator& pos, const  char* text_begin, const  char* text_end, const  Glib::StringArrayHandle& tag_names) | 
| iterator | erase (const  iterator& range_begin, const  iterator& range_end) | 
|  | Returns the iterator where the deletion occured. 
 
 | 
| std::pair<iterator, bool> | erase_interactive (const  iterator& range_begin, const  iterator& range_end, bool default_editable=true) | 
|  | Returns the iterator where the deletion occured or end() if no text was deleted. 
 
 | 
| Glib::ustring | get_text (const  iterator& range_begin, const  iterator& range_end, bool include_hidden_chars=true) | 
|  | Returns the text in the range [ start , end ). 
 
 | 
| Glib::ustring | get_text (bool include_hidden_chars=true) | 
| Glib::ustring | get_slice (const  iterator& range_begin, const  iterator& range_end, bool include_hidden_chars=true) | 
|  | Returns the text in the range [ start , end ). 
 
 | 
| iterator | insert_pixbuf (const  iterator& pos, const  Glib::RefPtr<Gdk::Pixbuf>& pixbuf) | 
| iterator | insert_child_anchor (const  iterator& pos, const  Glib::RefPtr<TextChildAnchor>& anchor) | 
| Glib::RefPtr<TextChildAnchor> | create_child_anchor (const  iterator& pos) | 
| Glib::RefPtr<TextBuffer::Mark> | create_mark (const  Glib::ustring& mark_name, const  iterator& where, bool left_gravity=true) | 
|  | Creates a mark at position where . 
 
 | 
| Glib::RefPtr<Mark> | create_mark (const  iterator& where, bool left_gravity=true) | 
|  | Create an anonymous mark. 
 
 | 
| void | move_mark (const  Glib::RefPtr<Mark>& mark, const  iterator& where) | 
|  | Moves mark to the new location where . 
 
 | 
| void | delete_mark (const  Glib::RefPtr<Mark>& mark) | 
|  | Deletes mark , so that it's no longer located anywhere in the buffer. 
 
 | 
| Glib::RefPtr<TextBuffer::Mark> | get_mark (const  Glib::ustring& name) | 
|  | Returns the mark named name in buffer buffer , or 0if no such mark exists in the buffer.
 
 | 
| Glib::RefPtr<const  TextBuffer::Mark> | get_mark (const  Glib::ustring& name) const | 
|  | Returns the mark named name in buffer buffer , or 0if no such mark exists in the buffer.
 
 | 
| void | move_mark_by_name (const  Glib::ustring& name, const  iterator& where) | 
|  | Moves the mark named name (which must exist) to location where . 
 
 | 
| void | delete_mark_by_name (const  Glib::ustring& name) | 
|  | Deletes the mark named name ; the mark must exist. 
 
 | 
| Glib::RefPtr<TextBuffer::Mark> | get_insert () | 
|  | Returns the mark that represents the cursor (insertion point). 
 
 | 
| Glib::RefPtr<TextBuffer::Mark> | get_selection_bound () | 
|  | Returns the mark that represents the selection bound. 
 
 | 
| void | place_cursor (const  iterator& where) | 
|  | This function moves the "insert" and "selection_bound" marks simultaneously. 
 
 | 
| void | apply_tag (const  Glib::RefPtr<Tag>& tag, const  iterator& range_begin, const  iterator& range_end) | 
|  | Emits the "apply_tag" signal on buffer . 
 
 | 
| void | remove_tag (const  Glib::RefPtr<Tag>& tag, const  iterator& range_begin, const  iterator& range_end) | 
|  | Emits the "remove_tag" signal. 
 
 | 
| void | apply_tag_by_name (const  Glib::ustring& name, const  iterator& range_begin, const  iterator& range_end) | 
|  | Calls Gtk::TextTagTable::lookup() on the buffer's tag table to get a Gtk::TextTag, then calls apply_tag(). 
 
 | 
| void | remove_tag_by_name (const  Glib::ustring& name, const  iterator& range_begin, const  iterator& range_end) | 
|  | Calls Gtk::TextTagTable::lookup() on the buffer's tag table to get a Gtk::TextTag, then calls remove_tag(). 
 
 | 
| void | remove_all_tags (const  iterator& range_begin, const  iterator& range_end) | 
|  | Removes all tags in the range between start and end . 
 
 | 
| Glib::RefPtr<Tag> | create_tag (const  Glib::ustring& tag_name) | 
| iterator | get_iter_at_line_offset (int line_number, int char_offset) | 
| iterator | get_iter_at_line_index (int line_number, int byte_index) | 
| iterator | get_iter_at_offset (int char_offset) | 
| iterator | get_iter_at_line (int line_number) | 
| iterator | begin () | 
| iterator | end () | 
| void | get_bounds (iterator& range_begin, iterator& range_end) | 
| iterator | get_iter_at_mark (const  Glib::RefPtr<Mark>& mark) | 
| iterator | get_iter_at_child_anchor (const  Glib::RefPtr<TextChildAnchor>& anchor) | 
| bool | get_modified () const | 
|  | Indicates whether the buffer has been modified since the last call to set_modified() set the modification flag to false.
 
 | 
| void | set_modified (bool setting=true) | 
|  | Used to keep track of whether the buffer has been modified since the last time it was saved. 
 
 | 
| void | add_selection_clipboard (const  Glib::RefPtr<Clipboard>& clipboard) | 
|  | Adds clipboard to the list of clipboards in which the selection contents of buffer are available. 
 
 | 
| void | remove_selection_clipboard (const  Glib::RefPtr<Clipboard>& clipboard) | 
|  | Removes a Gtk::Clipboard added with add_selection_clipboard(). 
 
 | 
| void | cut_clipboard (const  Glib::RefPtr<Clipboard>& clipboard, bool default_editable=true) | 
|  | Copies the currently-selected text to a clipboard, then deletes said text if it's editable. 
 
 | 
| void | copy_clipboard (const  Glib::RefPtr<Clipboard>& clipboard) | 
|  | Copies the currently-selected text to a clipboard. 
 
 | 
| void | paste_clipboard (const  Glib::RefPtr<Clipboard>& clipboard, const  iterator& override_location, bool default_editable=true) | 
| void | paste_clipboard (const  Glib::RefPtr<Clipboard>& clipboard, bool default_editable=true) | 
| void | get_selection_bounds (iterator& range_begin, iterator& range_end) | 
| bool | erase_selection (bool interactive=true, bool default_editable=true) | 
|  | Deletes the range between the "insert" and "selection_bound" marks, that is, the currently-selected text. 
 
 | 
| void | begin_user_action () | 
|  | Called to indicate that the buffer operations between here and a call to end_user_action() are part of a single user-visible operation. 
 
 | 
| void | end_user_action () | 
|  | Should be paired with a call to begin_user_action(). 
 
 | 
| Glib::SignalProxy3< void, const  TextBuffer::iterator&,
 const  Glib::ustring&, int >
 | signal_insert () | 
| Glib::SignalProxy2< void, const  TextBuffer::iterator&,
 const  Glib::RefPtr<Gdk::Pixbuf >&>
 | signal_insert_pixbuf () | 
| Glib::SignalProxy2< void, const  TextBuffer::iterator&,
 const  Glib::RefPtr<TextChildAnchor >&>
 | signal_insert_child_anchor () | 
| Glib::SignalProxy2< void, const  TextBuffer::iterator&,
 const  TextBuffer::iterator& >
 | signal_erase () | 
| Glib::SignalProxy0<void> | signal_changed () | 
| Glib::SignalProxy0<void> | signal_modified_changed () | 
| Glib::SignalProxy2< void, const  TextBuffer::iterator&,
 const  Glib::RefPtr<TextBuffer::Mark >&>
 | signal_mark_set () | 
| Glib::SignalProxy1< void, const  Glib::RefPtr<TextBuffer::Mark >&>
 | signal_mark_deleted () | 
| Glib::SignalProxy3< void, const  Glib::RefPtr<TextBuffer::Tag>&,
 const  TextBuffer::iterator&,
 const  TextBuffer::iterator& >
 | signal_apply_tag () | 
| Glib::SignalProxy3< void, const  Glib::RefPtr<TextBuffer::Tag>&,
 const  TextBuffer::iterator&,
 const  TextBuffer::iterator& >
 | signal_remove_tag () | 
| Glib::SignalProxy0<void> | signal_begin_user_action () | 
| Glib::SignalProxy0<void> | signal_end_user_action () | 
| 
 Static Public Member Functions | 
| Glib::RefPtr<TextBuffer> | create () | 
| Glib::RefPtr<TextBuffer> | create (const  Glib::RefPtr<TagTable>& tag_table) | 
| 
 Protected Member Functions | 
|  | TextBuffer () | 
|  | TextBuffer (const  Glib::RefPtr<TagTable>& tag_table) | 
| virtual void | on_insert (const  TextBuffer::iterator& pos, const  Glib::ustring& text, int bytes) | 
| virtual void | on_insert_pixbuf (const  TextBuffer::iterator& pos, const  Glib::RefPtr<Gdk::Pixbuf>& pixbuf) | 
| virtual void | on_insert_child_anchor (const  TextBuffer::iterator& pos, const  Glib::RefPtr<TextChildAnchor>& anchor) | 
| virtual void | on_erase (const  TextBuffer::iterator& range_begin, const  TextBuffer::iterator& range_end) | 
| virtual void | on_changed () | 
| virtual void | on_modified_changed () | 
| virtual void | on_mark_set (const  TextBuffer::iterator& location, const  Glib::RefPtr<TextBuffer::Mark>& mark) | 
| virtual void | on_mark_deleted (const  Glib::RefPtr<TextBuffer::Mark>& mark) | 
| virtual void | on_apply_tag (const  Glib::RefPtr<TextBuffer::Tag>& tag, const  TextBuffer::iterator& range_begin, const  TextBuffer::iterator& range_end) | 
| virtual void | on_remove_tag (const  Glib::RefPtr<TextBuffer::Tag>& tag, const  TextBuffer::iterator& range_begin, const  TextBuffer::iterator& range_end) | 
| virtual void | on_begin_user_action () | 
| virtual void | on_end_user_action () | 
| 
 Related Functions | 
| (Note that these are not member functions.) 
 
 | 
| Glib::RefPtr<Gtk::TextBuffer> | wrap (GtkTextBuffer* object, bool take_copy=false) |