|
Server : Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8e-fips-rhel5 DAV/2 PHP/5.2.17 System : Linux localhost 2.6.18-419.el5 #1 SMP Fri Feb 24 22:47:42 UTC 2017 x86_64 User : nobody ( 99) PHP Version : 5.2.17 Disable Function : NONE Directory : /usr/share/gtk-doc/html/gtk/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=US-ASCII">
<title>GtkTextBuffer</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.69.1">
<link rel="start" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="prev" href="GtkTextMark.html" title="GtkTextMark">
<link rel="next" href="GtkTextTag.html" title="GtkTextTag">
<meta name="generator" content="GTK-Doc V1.6 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
<link rel="part" href="gtk.html" title="Part I. GTK+ Overview">
<link rel="part" href="gtkbase.html" title="Part II. GTK+ Core Reference">
<link rel="part" href="gtkobjects.html" title="Part III. GTK+ Widgets and Objects">
<link rel="chapter" href="ch01.html" title="Object Hierarchy">
<link rel="chapter" href="ch02.html" title="Widget Gallery">
<link rel="chapter" href="WindowWidgets.html" title="Windows">
<link rel="chapter" href="DisplayWidgets.html" title="Display Widgets">
<link rel="chapter" href="ButtonWidgets.html" title="Buttons and Toggles">
<link rel="chapter" href="NumericEntry.html" title="Numeric/Text Data Entry">
<link rel="chapter" href="TextWidgetObjects.html" title="Multiline Text Editor">
<link rel="chapter" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<link rel="chapter" href="MenusAndCombos.html" title="Menus, Combo Box, Toolbar">
<link rel="chapter" href="Actions.html" title="Action-based menus and toolbars">
<link rel="chapter" href="SelectorWidgets.html" title="Selectors (File/Font/Color/Input Devices)">
<link rel="chapter" href="LayoutContainers.html" title="Layout Containers">
<link rel="chapter" href="Ornaments.html" title="Ornaments">
<link rel="chapter" href="ScrollingWidgets.html" title="Scrolling">
<link rel="chapter" href="Printing.html" title="Printing">
<link rel="chapter" href="MiscObjects.html" title="Miscellaneous">
<link rel="chapter" href="AbstractObjects.html" title="Abstract Base Classes">
<link rel="chapter" href="PlugSocket.html" title="Cross-process Embedding">
<link rel="chapter" href="SpecialObjects.html" title="Special-purpose features">
<link rel="chapter" href="RecentDocuments.html" title="Recently Used Documents">
<link rel="chapter" href="DeprecatedObjects.html" title="Deprecated">
<link rel="part" href="migrating.html" title="Part IV. Migrating from Previous Versions of GTK+">
<link rel="chapter" href="gtk-migrating-checklist.html" title="Migration Checklist">
<link rel="chapter" href="gtk-migrating-GtkFileChooser.html" title="Migrating from GtkFileSelection to GtkFileChooser">
<link rel="chapter" href="gtk-migrating-GtkAction.html" title="Migrating from old menu and toolbar systems to GtkAction">
<link rel="chapter" href="gtk-migrating-GtkComboBox.html" title="Migrating from GtkOptionMenu and GtkCombo to GtkComboBox and
GtkComboBoxEntry">
<link rel="chapter" href="gtk-migrating-GtkIconView.html" title="Migrating from GnomeIconList to GtkIconView">
<link rel="chapter" href="gtk-migrating-GtkAboutDialog.html" title="Migrating from GnomeAbout to GtkAboutDialog">
<link rel="chapter" href="gtk-migrating-GtkColorButton.html" title="Migrating from GnomeColorPicker to GtkColorButton">
<link rel="chapter" href="gtk-migrating-GtkAssistant.html" title="Migrating from GnomeDruid to GtkAssistant">
<link rel="chapter" href="gtk-migrating-GtkRecentChooser.html" title="Migrating from EggRecent to GtkRecentChooser">
<link rel="chapter" href="gtk-migrating-GtkLinkButton.html" title="Migrating from GnomeHRef to GtkLinkButton">
<link rel="part" href="pt05.html" title="Part V. GTK+ Tools">
<link rel="glossary" href="glossary.html" title="Glossary">
<link rel="index" href="ix01.html" title="Index">
<link rel="index" href="ix02.html" title="Index of deprecated symbols">
<link rel="index" href="ix03.html" title="Index of new symbols in 2.2">
<link rel="index" href="ix04.html" title="Index of new symbols in 2.4">
<link rel="index" href="ix05.html" title="Index of new symbols in 2.6">
<link rel="index" href="ix06.html" title="Index of new symbols in 2.8">
<link rel="index" href="ix07.html" title="Index of new symbols in 2.10">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="GtkTextMark.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="TextWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">GTK+ Reference Manual</th>
<td><a accesskey="n" href="GtkTextTag.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts"><nobr><a href="#id2998911" class="shortcut">Top</a>
 | 
<a href="#id3002551" class="shortcut">Description</a>
 | 
<a href="#id3001860" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3001884" class="shortcut">Properties</a>
 | 
<a href="#id3002003" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkTextBuffer"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id2998911"></a><span class="refentrytitle">GtkTextBuffer</span>
</h2>
<p>GtkTextBuffer —
Stores attributed text for display in a <a href="GtkTextView.html" title="GtkTextView">GtkTextView</a></p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkTextBuffer.html#GtkTextBuffer-struct">GtkTextBuffer</a>;
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-new">gtk_text_buffer_new</a> (<a href="GtkTextTagTable.html" title="GtkTextTagTable">GtkTextTagTable</a> *table);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextBuffer.html#gtk-text-buffer-get-line-count">gtk_text_buffer_get_line_count</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextBuffer.html#gtk-text-buffer-get-char-count">gtk_text_buffer_get_char_count</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a href="GtkTextTagTable.html" title="GtkTextTagTable">GtkTextTagTable</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-tag-table">gtk_text_buffer_get_tag_table</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert">gtk_text_buffer_insert</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert-at-cursor">gtk_text_buffer_insert_at_cursor</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-insert-interactive">gtk_text_buffer_insert_interactive</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-insert-interactive-at-cursor">gtk_text_buffer_insert_interactive_at_cursor</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert-range">gtk_text_buffer_insert_range</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-insert-range-interactive">gtk_text_buffer_insert_range_interactive</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert-with-tags">gtk_text_buffer_insert_with_tags</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *first_tag,
...);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert-with-tags-by-name">gtk_text_buffer_insert_with_tags_by_name</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_tag_name,
...);
void <a href="GtkTextBuffer.html#gtk-text-buffer-delete">gtk_text_buffer_delete</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-delete-interactive">gtk_text_buffer_delete_interactive</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start_iter,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end_iter,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-backspace">gtk_text_buffer_backspace</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> interactive,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
void <a href="GtkTextBuffer.html#gtk-text-buffer-set-text">gtk_text_buffer_set_text</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-text">gtk_text_buffer_get_text</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> include_hidden_chars);
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-slice">gtk_text_buffer_get_slice</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> include_hidden_chars);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert-pixbuf">gtk_text_buffer_insert_pixbuf</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *pixbuf);
void <a href="GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor">gtk_text_buffer_insert_child_anchor</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-create-child-anchor">gtk_text_buffer_create_child_anchor</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-create-mark">gtk_text_buffer_create_mark</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *mark_name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> left_gravity);
void <a href="GtkTextBuffer.html#gtk-text-buffer-move-mark">gtk_text_buffer_move_mark</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where);
void <a href="GtkTextBuffer.html#gtk-text-buffer-move-mark-by-name">gtk_text_buffer_move_mark_by_name</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where);
void <a href="GtkTextBuffer.html#gtk-text-buffer-delete-mark">gtk_text_buffer_delete_mark</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);
void <a href="GtkTextBuffer.html#gtk-text-buffer-delete-mark-by-name">gtk_text_buffer_delete_mark_by_name</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-mark">gtk_text_buffer_get_mark</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-insert">gtk_text_buffer_get_insert</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-selection-bound">gtk_text_buffer_get_selection_bound</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-get-has-selection">gtk_text_buffer_get_has_selection</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
void <a href="GtkTextBuffer.html#gtk-text-buffer-place-cursor">gtk_text_buffer_place_cursor</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where);
void <a href="GtkTextBuffer.html#gtk-text-buffer-select-range">gtk_text_buffer_select_range</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *ins,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *bound);
void <a href="GtkTextBuffer.html#gtk-text-buffer-apply-tag">gtk_text_buffer_apply_tag</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
void <a href="GtkTextBuffer.html#gtk-text-buffer-remove-tag">gtk_text_buffer_remove_tag</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
void <a href="GtkTextBuffer.html#gtk-text-buffer-apply-tag-by-name">gtk_text_buffer_apply_tag_by_name</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
void <a href="GtkTextBuffer.html#gtk-text-buffer-remove-tag-by-name">gtk_text_buffer_remove_tag_by_name</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
void <a href="GtkTextBuffer.html#gtk-text-buffer-remove-all-tags">gtk_text_buffer_remove_all_tags</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-create-tag">gtk_text_buffer_create_tag</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tag_name,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
...);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-line-offset">gtk_text_buffer_get_iter_at_line_offset</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> line_number,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> char_offset);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-offset">gtk_text_buffer_get_iter_at_offset</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> char_offset);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-line">gtk_text_buffer_get_iter_at_line</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> line_number);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-line-index">gtk_text_buffer_get_iter_at_line_index</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> line_number,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> byte_index);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-mark">gtk_text_buffer_get_iter_at_mark</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-child-anchor">gtk_text_buffer_get_iter_at_child_anchor</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-start-iter">gtk_text_buffer_get_start_iter</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-end-iter">gtk_text_buffer_get_end_iter</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
void <a href="GtkTextBuffer.html#gtk-text-buffer-get-bounds">gtk_text_buffer_get_bounds</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-get-modified">gtk_text_buffer_get_modified</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
void <a href="GtkTextBuffer.html#gtk-text-buffer-set-modified">gtk_text_buffer_set_modified</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-delete-selection">gtk_text_buffer_delete_selection</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> interactive,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
void <a href="GtkTextBuffer.html#gtk-text-buffer-paste-clipboard">gtk_text_buffer_paste_clipboard</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *override_location,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
void <a href="GtkTextBuffer.html#gtk-text-buffer-copy-clipboard">gtk_text_buffer_copy_clipboard</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard);
void <a href="GtkTextBuffer.html#gtk-text-buffer-cut-clipboard">gtk_text_buffer_cut_clipboard</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-get-selection-bounds">gtk_text_buffer_get_selection_bounds</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);
void <a href="GtkTextBuffer.html#gtk-text-buffer-begin-user-action">gtk_text_buffer_begin_user_action</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
void <a href="GtkTextBuffer.html#gtk-text-buffer-end-user-action">gtk_text_buffer_end_user_action</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
void <a href="GtkTextBuffer.html#gtk-text-buffer-add-selection-clipboard">gtk_text_buffer_add_selection_clipboard</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard);
void <a href="GtkTextBuffer.html#gtk-text-buffer-remove-selection-clipboard">gtk_text_buffer_remove_selection_clipboard</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard);
enum <a href="GtkTextBuffer.html#GtkTextBufferTargetInfo">GtkTextBufferTargetInfo</a>;
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (<a href="GtkTextBuffer.html#GtkTextBufferDeserializeFunc">*GtkTextBufferDeserializeFunc</a>) (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a> *data,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> length,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> create_tags,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-deserialize">gtk_text_buffer_deserialize</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a> *data,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> length,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextBuffer.html#gtk-text-buffer-deserialize-get-can-create-tags">gtk_text_buffer_deserialize_get_can_create_tags</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format);
void <a href="GtkTextBuffer.html#gtk-text-buffer-deserialize-set-can-create-tags">gtk_text_buffer_deserialize_set_can_create_tags</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> can_create_tags);
<a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-copy-target-list">gtk_text_buffer_get_copy_target_list</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-deserialize-formats">gtk_text_buffer_get_deserialize_formats</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_formats);
<a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-paste-target-list">gtk_text_buffer_get_paste_target_list</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-get-serialize-formats">gtk_text_buffer_get_serialize_formats</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_formats);
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> <a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-format">gtk_text_buffer_register_deserialize_format</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *mime_type,
<a href="GtkTextBuffer.html#GtkTextBufferDeserializeFunc">GtkTextBufferDeserializeFunc</a> function,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data,
<a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> user_data_destroy);
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> <a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-tagset">gtk_text_buffer_register_deserialize_tagset</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tagset_name);
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> <a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-format">gtk_text_buffer_register_serialize_format</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *mime_type,
<a href="GtkTextBuffer.html#GtkTextBufferSerializeFunc">GtkTextBufferSerializeFunc</a> function,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data,
<a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> user_data_destroy);
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> <a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-tagset">gtk_text_buffer_register_serialize_tagset</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tagset_name);
<a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a>* (<a href="GtkTextBuffer.html#GtkTextBufferSerializeFunc">*GtkTextBufferSerializeFunc</a>) (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> *length,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);
<a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a>* <a href="GtkTextBuffer.html#gtk-text-buffer-serialize">gtk_text_buffer_serialize</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> *length);
void <a href="GtkTextBuffer.html#gtk-text-buffer-unregister-deserialize-format">gtk_text_buffer_unregister_deserialize_format</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format);
void <a href="GtkTextBuffer.html#gtk-text-buffer-unregister-serialize-format">gtk_text_buffer_unregister_serialize_format</a>
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format);
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3001860"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----GtkTextBuffer
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3001884"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkTextBuffer.html#GtkTextBuffer--copy-target-list">copy-target-list</a>" <a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a> : Read
"<a href="GtkTextBuffer.html#GtkTextBuffer--cursor-position">cursor-position</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read
"<a href="GtkTextBuffer.html#GtkTextBuffer--has-selection">has-selection</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read
"<a href="GtkTextBuffer.html#GtkTextBuffer--paste-target-list">paste-target-list</a>" <a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a> : Read
"<a href="GtkTextBuffer.html#GtkTextBuffer--tag-table">tag-table</a>" <a href="GtkTextTagTable.html" title="GtkTextTagTable">GtkTextTagTable</a> : Read / Write / Construct Only
"<a href="GtkTextBuffer.html#GtkTextBuffer--text">text</a>" <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3002003"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkTextBuffer.html#GtkTextBuffer-apply-tag">apply-tag</a>" void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *arg1,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg2,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg3,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-begin-user-action">begin-user-action</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-changed">changed</a>" void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-delete-range">delete-range</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-end-user-action">end-user-action</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-insert-child-anchor">insert-child-anchor</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-insert-pixbuf">insert-pixbuf</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-insert-text">insert-text</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg3,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-mark-deleted">mark-deleted</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-mark-set">mark-set</a>" void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-modified-changed">modified-changed</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextBuffer.html#GtkTextBuffer-remove-tag">remove-tag</a>"
void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *arg1,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg2,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg3,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3002551"></a><h2>Description</h2>
<p>
You may wish to begin by reading the <a href="TextWidget.html" title="Text Widget Overview">text widget
conceptual overview</a> which gives an overview of all the objects and data
types related to the text widget and how they work together.
</p>
<p>
</p>
</div>
<div class="refsect1" lang="en">
<a name="id3002579"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3002589"></a><h3>
<a name="GtkTextBuffer-struct"></a>GtkTextBuffer</h3>
<a class="indexterm" name="id3002601"></a><pre class="programlisting">typedef struct _GtkTextBuffer GtkTextBuffer;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3002617"></a><h3>
<a name="gtk-text-buffer-new"></a>gtk_text_buffer_new ()</h3>
<a class="indexterm" name="id3002629"></a><pre class="programlisting"><a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a>* gtk_text_buffer_new (<a href="GtkTextTagTable.html" title="GtkTextTagTable">GtkTextTagTable</a> *table);</pre>
<p>
Creates a new text buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>table</code></em> :</span></td>
<td> a tag table, or NULL to create a new one
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new text buffer
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3002691"></a><h3>
<a name="gtk-text-buffer-get-line-count"></a>gtk_text_buffer_get_line_count ()</h3>
<a class="indexterm" name="id3002704"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_buffer_get_line_count (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Obtains the number of lines in the buffer. This value is cached, so
the function is very fast.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> number of lines in the buffer
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3002775"></a><h3>
<a name="gtk-text-buffer-get-char-count"></a>gtk_text_buffer_get_char_count ()</h3>
<a class="indexterm" name="id3002788"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_buffer_get_char_count (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
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. The character
count is cached, so this function is very fast.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> number of characters in the buffer
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3002862"></a><h3>
<a name="gtk-text-buffer-get-tag-table"></a>gtk_text_buffer_get_tag_table ()</h3>
<a class="indexterm" name="id3002875"></a><pre class="programlisting"><a href="GtkTextTagTable.html" title="GtkTextTagTable">GtkTextTagTable</a>* gtk_text_buffer_get_tag_table
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Get the <a href="GtkTextTagTable.html" title="GtkTextTagTable"><span class="type">GtkTextTagTable</span></a> associated with this buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the buffer's tag table
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3002954"></a><h3>
<a name="gtk-text-buffer-insert"></a>gtk_text_buffer_insert ()</h3>
<a class="indexterm" name="id3002967"></a><pre class="programlisting">void gtk_text_buffer_insert (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Inserts <em class="parameter"><code>len</code></em> bytes of <em class="parameter"><code>text</code></em> at position <em class="parameter"><code>iter</code></em>. If <em class="parameter"><code>len</code></em> is -1,
<em class="parameter"><code>text</code></em> must be nul-terminated and will be inserted in its
entirety. Emits the "insert_text" signal; insertion actually occurs
in the default handler for the signal. <em class="parameter"><code>iter</code></em> is invalidated when
insertion occurs (because the buffer contents change), but the
default signal handler revalidates it to point to the end of the
inserted text.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a position in the buffer
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> UTF-8 format text to insert
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of text in bytes, or -1
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3003131"></a><h3>
<a name="gtk-text-buffer-insert-at-cursor"></a>gtk_text_buffer_insert_at_cursor ()</h3>
<a class="indexterm" name="id3003144"></a><pre class="programlisting">void gtk_text_buffer_insert_at_cursor
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Simply calls <a href="GtkTextBuffer.html#gtk-text-buffer-insert"><code class="function">gtk_text_buffer_insert()</code></a>, using the current
cursor position as the insertion point.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> some text in UTF-8 format
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of text, in bytes
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3003259"></a><h3>
<a name="gtk-text-buffer-insert-interactive"></a>gtk_text_buffer_insert_interactive ()</h3>
<a class="indexterm" name="id3003273"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_insert_interactive
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Like <a href="GtkTextBuffer.html#gtk-text-buffer-insert"><code class="function">gtk_text_buffer_insert()</code></a>, but the insertion will not occur if
<em class="parameter"><code>iter</code></em> is at a non-editable location in the buffer. Usually you
want to prevent insertions at ineditable locations if the insertion
results from a user action (is interactive).
</p>
<p>
<em class="parameter"><code>default_editable</code></em> indicates the editability of text that doesn't
have a tag affecting editability applied to it. Typically the
result of <a href="GtkTextView.html#gtk-text-view-get-editable"><code class="function">gtk_text_view_get_editable()</code></a> is appropriate here.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> some UTF-8 text
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of text in bytes, or -1
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> default editability of buffer
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether text was actually inserted
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3003479"></a><h3>
<a name="gtk-text-buffer-insert-interactive-at-cursor"></a>gtk_text_buffer_insert_interactive_at_cursor ()</h3>
<a class="indexterm" name="id3003493"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_insert_interactive_at_cursor
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Calls <a href="GtkTextBuffer.html#gtk-text-buffer-insert-interactive"><code class="function">gtk_text_buffer_insert_interactive()</code></a> at the cursor
position.
</p>
<p>
<em class="parameter"><code>default_editable</code></em> indicates the editability of text that doesn't
have a tag affecting editability applied to it. Typically the
result of <a href="GtkTextView.html#gtk-text-view-get-editable"><code class="function">gtk_text_view_get_editable()</code></a> is appropriate here.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> text in UTF-8 format
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of text in bytes, or -1
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> default editability of buffer
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether text was actually inserted
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3003664"></a><h3>
<a name="gtk-text-buffer-insert-range"></a>gtk_text_buffer_insert_range ()</h3>
<a class="indexterm" name="id3003677"></a><pre class="programlisting">void gtk_text_buffer_insert_range (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Copies text, tags, and pixbufs between <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> (the order
of <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> doesn't matter) and inserts the copy at <em class="parameter"><code>iter</code></em>.
Used instead of simply getting/inserting text because it preserves
images and tags. If <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> are in a different buffer from
<em class="parameter"><code>buffer</code></em>, the two buffers must share the same tag table.
</p>
<p>
Implemented via emissions of the insert_text and apply_tag signals,
so expect those.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> a position in a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> another position in the same buffer as <em class="parameter"><code>start</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3003875"></a><h3>
<a name="gtk-text-buffer-insert-range-interactive"></a>gtk_text_buffer_insert_range_interactive ()</h3>
<a class="indexterm" name="id3003889"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_insert_range_interactive
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Same as <a href="GtkTextBuffer.html#gtk-text-buffer-insert-range"><code class="function">gtk_text_buffer_insert_range()</code></a>, but does nothing if the
insertion point isn't editable. The <em class="parameter"><code>default_editable</code></em> parameter
indicates whether the text is editable at <em class="parameter"><code>iter</code></em> if no tags
enclosing <em class="parameter"><code>iter</code></em> affect editability. Typically the result of
<a href="GtkTextView.html#gtk-text-view-get-editable"><code class="function">gtk_text_view_get_editable()</code></a> is appropriate here.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> a position in a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> another position in the same buffer as <em class="parameter"><code>start</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> default editability of the buffer
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether an insertion was possible at <em class="parameter"><code>iter</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3004116"></a><h3>
<a name="gtk-text-buffer-insert-with-tags"></a>gtk_text_buffer_insert_with_tags ()</h3>
<a class="indexterm" name="id3004129"></a><pre class="programlisting">void gtk_text_buffer_insert_with_tags
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *first_tag,
...);</pre>
<p>
Inserts <em class="parameter"><code>text</code></em> into <em class="parameter"><code>buffer</code></em> at <em class="parameter"><code>iter</code></em>, applying the list of tags to
the newly-inserted text. The last tag specified must be NULL to
terminate the list. Equivalent to calling <a href="GtkTextBuffer.html#gtk-text-buffer-insert"><code class="function">gtk_text_buffer_insert()</code></a>,
then <a href="GtkTextBuffer.html#gtk-text-buffer-apply-tag"><code class="function">gtk_text_buffer_apply_tag()</code></a> on the inserted text;
<a href="GtkTextBuffer.html#gtk-text-buffer-insert-with-tags"><code class="function">gtk_text_buffer_insert_with_tags()</code></a> is just a convenience function.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> an iterator in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> UTF-8 text
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of <em class="parameter"><code>text</code></em>, or -1
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_tag</code></em> :</span></td>
<td> first tag to apply to <em class="parameter"><code>text</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> NULL-terminated list of tags to apply
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3004361"></a><h3>
<a name="gtk-text-buffer-insert-with-tags-by-name"></a>gtk_text_buffer_insert_with_tags_by_name ()</h3>
<a class="indexterm" name="id3004375"></a><pre class="programlisting">void gtk_text_buffer_insert_with_tags_by_name
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_tag_name,
...);</pre>
<p>
Same as <a href="GtkTextBuffer.html#gtk-text-buffer-insert-with-tags"><code class="function">gtk_text_buffer_insert_with_tags()</code></a>, but allows you
to pass in tag names instead of tag objects.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> UTF-8 text
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of <em class="parameter"><code>text</code></em>, or -1
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_tag_name</code></em> :</span></td>
<td> name of a tag to apply to <em class="parameter"><code>text</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> more tag names
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3004565"></a><h3>
<a name="gtk-text-buffer-delete"></a>gtk_text_buffer_delete ()</h3>
<a class="indexterm" name="id3004578"></a><pre class="programlisting">void gtk_text_buffer_delete (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Deletes text between <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em>. The order of <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em>
is not actually relevant; <a href="GtkTextBuffer.html#gtk-text-buffer-delete"><code class="function">gtk_text_buffer_delete()</code></a> will reorder
them. This function actually emits the "delete_range" signal, and
the default handler of that signal deletes the text. Because the
buffer is modified, all outstanding iterators become invalid after
calling this function; however, the <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> will be
re-initialized to point to the location where text was deleted.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> a position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> another position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3004742"></a><h3>
<a name="gtk-text-buffer-delete-interactive"></a>gtk_text_buffer_delete_interactive ()</h3>
<a class="indexterm" name="id3004757"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_delete_interactive
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start_iter,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end_iter,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Deletes all <span class="emphasis"><em>editable</em></span> text in the given range.
Calls <a href="GtkTextBuffer.html#gtk-text-buffer-delete"><code class="function">gtk_text_buffer_delete()</code></a> for each editable sub-range of
[<em class="parameter"><code>start</code></em>,<em class="parameter"><code>end</code></em>). <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> are revalidated to point to
the location of the last deleted range, or left untouched if
no text was deleted.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start_iter</code></em> :</span></td>
<td> start of range to delete
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end_iter</code></em> :</span></td>
<td> end of range
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> whether the buffer is editable by default
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether some text was actually deleted
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3004932"></a><h3>
<a name="gtk-text-buffer-backspace"></a>gtk_text_buffer_backspace ()</h3>
<a class="indexterm" name="id3004948"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_backspace (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> interactive,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Performs the appropriate action as if the user hit the delete
key with the cursor at the position specified by <em class="parameter"><code>iter</code></em>. In the
normal case a single character will be deleted, but when
combining accents are involved, more than one character can
be deleted, and when precomposed character and accent combinations
are involved, less than one character will be deleted.
</p>
<p>
Because the buffer is modified, all outstanding iterators become
invalid after calling this function; however, the <em class="parameter"><code>iter</code></em> will be
re-initialized to point to the location where text was deleted.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a position in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>interactive</code></em> :</span></td>
<td> whether the deletion is caused by user interaction
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> whether the buffer is editable by default
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the buffer was modified
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3005127"></a><h3>
<a name="gtk-text-buffer-set-text"></a>gtk_text_buffer_set_text ()</h3>
<a class="indexterm" name="id3005140"></a><pre class="programlisting">void gtk_text_buffer_set_text (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *text,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> len);</pre>
<p>
Deletes current contents of <em class="parameter"><code>buffer</code></em>, and inserts <em class="parameter"><code>text</code></em> instead. If
<em class="parameter"><code>len</code></em> is -1, <em class="parameter"><code>text</code></em> must be nul-terminated. <em class="parameter"><code>text</code></em> must be valid UTF-8.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>text</code></em> :</span></td>
<td> UTF-8 text to insert
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>len</code></em> :</span></td>
<td> length of <em class="parameter"><code>text</code></em> in bytes
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3005278"></a><h3>
<a name="gtk-text-buffer-get-text"></a>gtk_text_buffer_get_text ()</h3>
<a class="indexterm" name="id3005291"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gtk_text_buffer_get_text (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> include_hidden_chars);</pre>
<p>
Returns the text in the range [<em class="parameter"><code>start</code></em>,<em class="parameter"><code>end</code></em>). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if
<em class="parameter"><code>include_hidden_chars</code></em> is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>. Does not include characters
representing embedded images, so byte and character indexes into
the returned string do <span class="emphasis"><em>not</em></span> correspond to byte
and character indexes into the buffer. Contrast with
<a href="GtkTextBuffer.html#gtk-text-buffer-get-slice"><code class="function">gtk_text_buffer_get_slice()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> start of a range
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> end of a range
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>include_hidden_chars</code></em> :</span></td>
<td> whether to include invisible text
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> an allocated UTF-8 string
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3005472"></a><h3>
<a name="gtk-text-buffer-get-slice"></a>gtk_text_buffer_get_slice ()</h3>
<a class="indexterm" name="id3005486"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a>* gtk_text_buffer_get_slice (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> include_hidden_chars);</pre>
<p>
Returns the text in the range [<em class="parameter"><code>start</code></em>,<em class="parameter"><code>end</code></em>). Excludes undisplayed
text (text marked with tags that set the invisibility attribute) if
<em class="parameter"><code>include_hidden_chars</code></em> is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>. The returned string includes a
0xFFFC character whenever the buffer contains
embedded images, so byte and character indexes into
the returned string <span class="emphasis"><em>do</em></span> correspond to byte
and character indexes into the buffer. Contrast with
<a href="GtkTextBuffer.html#gtk-text-buffer-get-text"><code class="function">gtk_text_buffer_get_text()</code></a>. Note that 0xFFFC can occur in normal
text as well, so it is not a reliable indicator that a pixbuf or
widget is in the buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> start of a range
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> end of a range
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>include_hidden_chars</code></em> :</span></td>
<td> whether to include invisible text
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> an allocated UTF-8 string
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3005670"></a><h3>
<a name="gtk-text-buffer-insert-pixbuf"></a>gtk_text_buffer_insert_pixbuf ()</h3>
<a class="indexterm" name="id3005683"></a><pre class="programlisting">void gtk_text_buffer_insert_pixbuf (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *pixbuf);</pre>
<p>
Inserts an image into the text buffer at <em class="parameter"><code>iter</code></em>. The image will be
counted as one character in character counts, and when obtaining
the buffer contents as a string, will be represented by the Unicode
"object replacement character" 0xFFFC. Note that the "slice"
variants for obtaining portions of the buffer as a string include
this character for pixbufs, but the "text" variants do
not. e.g. see <a href="GtkTextBuffer.html#gtk-text-buffer-get-slice"><code class="function">gtk_text_buffer_get_slice()</code></a> and
<a href="GtkTextBuffer.html#gtk-text-buffer-get-text"><code class="function">gtk_text_buffer_get_text()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> location to insert the pixbuf
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></td>
<td> a <a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
><span class="type">GdkPixbuf</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3005826"></a><h3>
<a name="gtk-text-buffer-insert-child-anchor"></a>gtk_text_buffer_insert_child_anchor ()</h3>
<a class="indexterm" name="id3005841"></a><pre class="programlisting">void gtk_text_buffer_insert_child_anchor
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);</pre>
<p>
Inserts a child widget anchor into the text buffer at <em class="parameter"><code>iter</code></em>. The
anchor will be counted as one character in character counts, and
when obtaining the buffer contents as a string, will be represented
by the Unicode "object replacement character" 0xFFFC. Note that the
"slice" variants for obtaining portions of the buffer as a string
include this character for child anchors, but the "text" variants do
not. e.g. see <a href="GtkTextBuffer.html#gtk-text-buffer-get-slice"><code class="function">gtk_text_buffer_get_slice()</code></a> and
<a href="GtkTextBuffer.html#gtk-text-buffer-get-text"><code class="function">gtk_text_buffer_get_text()</code></a>. Consider
<a href="GtkTextBuffer.html#gtk-text-buffer-create-child-anchor"><code class="function">gtk_text_buffer_create_child_anchor()</code></a> as a more convenient
alternative to this function. The buffer will add a reference to
the anchor, so you can unref it after insertion.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> location to insert the anchor
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>anchor</code></em> :</span></td>
<td> a <a href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3005999"></a><h3>
<a name="gtk-text-buffer-create-child-anchor"></a>gtk_text_buffer_create_child_anchor ()</h3>
<a class="indexterm" name="id3006013"></a><pre class="programlisting"><a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a>* gtk_text_buffer_create_child_anchor
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
This is a convenience function which simply creates a child anchor
with <a href="GtkTextView.html#gtk-text-child-anchor-new"><code class="function">gtk_text_child_anchor_new()</code></a> and inserts it into the buffer
with <a href="GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor"><code class="function">gtk_text_buffer_insert_child_anchor()</code></a>. The new anchor is
owned by the buffer; no reference count is returned to
the caller of <a href="GtkTextBuffer.html#gtk-text-buffer-create-child-anchor"><code class="function">gtk_text_buffer_create_child_anchor()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> location in the buffer
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the created child anchor
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3006143"></a><h3>
<a name="gtk-text-buffer-create-mark"></a>gtk_text_buffer_create_mark ()</h3>
<a class="indexterm" name="id3006156"></a><pre class="programlisting"><a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* gtk_text_buffer_create_mark (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *mark_name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> left_gravity);</pre>
<p>
Creates a mark at position <em class="parameter"><code>where</code></em>. If <em class="parameter"><code>mark_name</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, the mark
is anonymous; otherwise, the mark can be retrieved by name using
<a href="GtkTextBuffer.html#gtk-text-buffer-get-mark"><code class="function">gtk_text_buffer_get_mark()</code></a>. If a mark has left gravity, and text is
inserted at the mark's current location, the mark will be moved to
the left of the newly-inserted text. If the mark has right gravity
(<em class="parameter"><code>left_gravity</code></em> = <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>), the mark will end up on the right of
newly-inserted text. The standard left-to-right cursor is a mark
with right gravity (when you type, the cursor stays on the right
side of the text you're typing).
</p>
<p>
The caller of this function does <span class="emphasis"><em>not</em></span> own a reference
to the returned <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>, so you can ignore the return value
if you like. Marks are owned by the buffer and go away when the
buffer does.
</p>
<p>
Emits the "mark_set" signal as notification of the mark's initial
placement.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mark_name</code></em> :</span></td>
<td> name for mark, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>where</code></em> :</span></td>
<td> location to place mark
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>left_gravity</code></em> :</span></td>
<td> whether the mark has left gravity
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the new <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> object
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3006387"></a><h3>
<a name="gtk-text-buffer-move-mark"></a>gtk_text_buffer_move_mark ()</h3>
<a class="indexterm" name="id3006401"></a><pre class="programlisting">void gtk_text_buffer_move_mark (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where);</pre>
<p>
Moves <em class="parameter"><code>mark</code></em> to the new location <em class="parameter"><code>where</code></em>. Emits the "mark_set" signal
as notification of the move.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mark</code></em> :</span></td>
<td> a <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>where</code></em> :</span></td>
<td> new location for <em class="parameter"><code>mark</code></em> in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3006534"></a><h3>
<a name="gtk-text-buffer-move-mark-by-name"></a>gtk_text_buffer_move_mark_by_name ()</h3>
<a class="indexterm" name="id3006548"></a><pre class="programlisting">void gtk_text_buffer_move_mark_by_name
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where);</pre>
<p>
Moves the mark named <em class="parameter"><code>name</code></em> (which must exist) to location <em class="parameter"><code>where</code></em>.
See <a href="GtkTextBuffer.html#gtk-text-buffer-move-mark"><code class="function">gtk_text_buffer_move_mark()</code></a> for details.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
<td> name of a mark
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>where</code></em> :</span></td>
<td> new location for mark
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3006674"></a><h3>
<a name="gtk-text-buffer-delete-mark"></a>gtk_text_buffer_delete_mark ()</h3>
<a class="indexterm" name="id3006688"></a><pre class="programlisting">void gtk_text_buffer_delete_mark (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);</pre>
<p>
Deletes <em class="parameter"><code>mark</code></em>, so that it's no longer located anywhere in the
buffer. Removes the reference the buffer holds to the mark, so if
you haven't called <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"
><code class="function">g_object_ref()</code></a> on the mark, it will be freed. Even
if the mark isn't freed, most operations on <em class="parameter"><code>mark</code></em> become
invalid. There is no way to undelete a
mark. <a href="GtkTextMark.html#gtk-text-mark-get-deleted"><code class="function">gtk_text_mark_get_deleted()</code></a> will return TRUE after this
function has been called on a mark; <a href="GtkTextMark.html#gtk-text-mark-get-deleted"><code class="function">gtk_text_mark_get_deleted()</code></a>
indicates that a mark no longer belongs to a buffer. The "mark_deleted"
signal will be emitted as notification after the mark is deleted.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mark</code></em> :</span></td>
<td> a <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3006832"></a><h3>
<a name="gtk-text-buffer-delete-mark-by-name"></a>gtk_text_buffer_delete_mark_by_name ()</h3>
<a class="indexterm" name="id3006847"></a><pre class="programlisting">void gtk_text_buffer_delete_mark_by_name
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Deletes the mark named <em class="parameter"><code>name</code></em>; the mark must exist. See
<a href="GtkTextBuffer.html#gtk-text-buffer-delete-mark"><code class="function">gtk_text_buffer_delete_mark()</code></a> for details.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
<td> name of a mark in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3006951"></a><h3>
<a name="gtk-text-buffer-get-mark"></a>gtk_text_buffer_get_mark ()</h3>
<a class="indexterm" name="id3006964"></a><pre class="programlisting"><a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* gtk_text_buffer_get_mark (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name);</pre>
<p>
Returns the mark named <em class="parameter"><code>name</code></em> in buffer <em class="parameter"><code>buffer</code></em>, or NULL if no such
mark exists in the buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
<td> a mark name
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>, or NULL
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007074"></a><h3>
<a name="gtk-text-buffer-get-insert"></a>gtk_text_buffer_get_insert ()</h3>
<a class="indexterm" name="id3007088"></a><pre class="programlisting"><a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* gtk_text_buffer_get_insert (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Returns the mark that represents the cursor (insertion point).
Equivalent to calling <a href="GtkTextBuffer.html#gtk-text-buffer-get-mark"><code class="function">gtk_text_buffer_get_mark()</code></a> to get the mark
named "insert", but very slightly more efficient, and involves less
typing.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> insertion point mark
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007170"></a><h3>
<a name="gtk-text-buffer-get-selection-bound"></a>gtk_text_buffer_get_selection_bound ()</h3>
<a class="indexterm" name="id3007185"></a><pre class="programlisting"><a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a>* gtk_text_buffer_get_selection_bound
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Returns the mark that represents the selection bound. Equivalent
to calling <a href="GtkTextBuffer.html#gtk-text-buffer-get-mark"><code class="function">gtk_text_buffer_get_mark()</code></a> to get the mark named
"selection_bound", but very slightly more efficient, and involves
less typing.
</p>
<p>
The currently-selected text in <em class="parameter"><code>buffer</code></em> is the region between the
"selection_bound" and "insert" marks. If "selection_bound" and
"insert" are in the same place, then there is no current selection.
<a href="GtkTextBuffer.html#gtk-text-buffer-get-selection-bounds"><code class="function">gtk_text_buffer_get_selection_bounds()</code></a> is another convenient function
for handling the selection, if you just want to know whether there's a
selection and what its bounds are.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> selection bound mark
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007294"></a><h3>
<a name="gtk-text-buffer-get-has-selection"></a>gtk_text_buffer_get_has_selection ()</h3>
<a class="indexterm" name="id3007310"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_get_has_selection
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Indicates whether the buffer has some text currently selected.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the there is text selected
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007395"></a><h3>
<a name="gtk-text-buffer-place-cursor"></a>gtk_text_buffer_place_cursor ()</h3>
<a class="indexterm" name="id3007408"></a><pre class="programlisting">void gtk_text_buffer_place_cursor (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *where);</pre>
<p>
This function moves the "insert" and "selection_bound" marks
simultaneously. If you move them to the same place in two steps
with <a href="GtkTextBuffer.html#gtk-text-buffer-move-mark"><code class="function">gtk_text_buffer_move_mark()</code></a>, you will temporarily select a
region in between their old and new locations, which can be pretty
inefficient since the temporarily-selected region will force stuff
to be recalculated. This function moves them as a unit, which can
be optimized.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>where</code></em> :</span></td>
<td> where to put the cursor
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007505"></a><h3>
<a name="gtk-text-buffer-select-range"></a>gtk_text_buffer_select_range ()</h3>
<a class="indexterm" name="id3007521"></a><pre class="programlisting">void gtk_text_buffer_select_range (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *ins,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *bound);</pre>
<p>
This function moves the "insert" and "selection_bound" marks
simultaneously. If you move them in two steps
with <a href="GtkTextBuffer.html#gtk-text-buffer-move-mark"><code class="function">gtk_text_buffer_move_mark()</code></a>, you will temporarily select a
region in between their old and new locations, which can be pretty
inefficient since the temporarily-selected region will force stuff
to be recalculated. This function moves them as a unit, which can
be optimized.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>ins</code></em> :</span></td>
<td> where to put the "insert" mark
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>bound</code></em> :</span></td>
<td> where to put the "selection_bound" mark
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007644"></a><h3>
<a name="gtk-text-buffer-apply-tag"></a>gtk_text_buffer_apply_tag ()</h3>
<a class="indexterm" name="id3007658"></a><pre class="programlisting">void gtk_text_buffer_apply_tag (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Emits the "apply_tag" signal on <em class="parameter"><code>buffer</code></em>. The default
handler for the signal applies <em class="parameter"><code>tag</code></em> to the given range.
<em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> do not have to be in order.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tag</code></em> :</span></td>
<td> a <a href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> one bound of range to be tagged
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> other bound of range to be tagged
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007812"></a><h3>
<a name="gtk-text-buffer-remove-tag"></a>gtk_text_buffer_remove_tag ()</h3>
<a class="indexterm" name="id3007826"></a><pre class="programlisting">void gtk_text_buffer_remove_tag (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *tag,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Emits the "remove_tag" signal. The default handler for the signal
removes all occurrences of <em class="parameter"><code>tag</code></em> from the given range. <em class="parameter"><code>start</code></em> and
<em class="parameter"><code>end</code></em> don't have to be in order.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tag</code></em> :</span></td>
<td> a <a href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> one bound of range to be untagged
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> other bound of range to be untagged
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3007975"></a><h3>
<a name="gtk-text-buffer-apply-tag-by-name"></a>gtk_text_buffer_apply_tag_by_name ()</h3>
<a class="indexterm" name="id3007989"></a><pre class="programlisting">void gtk_text_buffer_apply_tag_by_name
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Calls <a href="GtkTextTagTable.html#gtk-text-tag-table-lookup"><code class="function">gtk_text_tag_table_lookup()</code></a> on the buffer's tag table to
get a <a href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>, then calls <a href="GtkTextBuffer.html#gtk-text-buffer-apply-tag"><code class="function">gtk_text_buffer_apply_tag()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
<td> name of a named <a href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> one bound of range to be tagged
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> other bound of range to be tagged
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3008153"></a><h3>
<a name="gtk-text-buffer-remove-tag-by-name"></a>gtk_text_buffer_remove_tag_by_name ()</h3>
<a class="indexterm" name="id3008167"></a><pre class="programlisting">void gtk_text_buffer_remove_tag_by_name
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *name,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Calls <a href="GtkTextTagTable.html#gtk-text-tag-table-lookup"><code class="function">gtk_text_tag_table_lookup()</code></a> on the buffer's tag table to
get a <a href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>, then calls <a href="GtkTextBuffer.html#gtk-text-buffer-remove-tag"><code class="function">gtk_text_buffer_remove_tag()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>name</code></em> :</span></td>
<td> name of a <a href="GtkTextTag.html" title="GtkTextTag"><span class="type">GtkTextTag</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> one bound of range to be untagged
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> other bound of range to be untagged
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3008329"></a><h3>
<a name="gtk-text-buffer-remove-all-tags"></a>gtk_text_buffer_remove_all_tags ()</h3>
<a class="indexterm" name="id3008342"></a><pre class="programlisting">void gtk_text_buffer_remove_all_tags (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Removes all tags in the range between <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em>. Be careful
with this function; it could remove tags added in code unrelated to
the code you're currently writing. That is, using this function is
probably a bad idea if you have two or more unrelated code sections
that add tags.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> one bound of range to be untagged
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> other bound of range to be untagged
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3008460"></a><h3>
<a name="gtk-text-buffer-create-tag"></a>gtk_text_buffer_create_tag ()</h3>
<a class="indexterm" name="id3008474"></a><pre class="programlisting"><a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a>* gtk_text_buffer_create_tag (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tag_name,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *first_property_name,
...);</pre>
<p>
Creates a tag and adds it to the tag table for <em class="parameter"><code>buffer</code></em>.
Equivalent to calling <a href="GtkTextTag.html#gtk-text-tag-new"><code class="function">gtk_text_tag_new()</code></a> and then adding the
tag to the buffer's tag table. The returned tag is owned by
the buffer's tag table, so the ref count will be equal to one.
</p>
<p>
If <em class="parameter"><code>tag_name</code></em> is <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, the tag is anonymous.
</p>
<p>
If <em class="parameter"><code>tag_name</code></em> is non-<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, a tag called <em class="parameter"><code>tag_name</code></em> must not already
exist in the tag table for this buffer.
</p>
<p>
The <em class="parameter"><code>first_property_name</code></em> argument and subsequent arguments are a list
of properties to set on the tag, as with <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-set"
><code class="function">g_object_set()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tag_name</code></em> :</span></td>
<td> name of the new tag, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>first_property_name</code></em> :</span></td>
<td> name of first property to set, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>...</code></em> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>-terminated list of property names and values
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new tag
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3008721"></a><h3>
<a name="gtk-text-buffer-get-iter-at-line-offset"></a>gtk_text_buffer_get_iter_at_line_offset ()</h3>
<a class="indexterm" name="id3008735"></a><pre class="programlisting">void gtk_text_buffer_get_iter_at_line_offset
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> line_number,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> char_offset);</pre>
<p>
Obtains an iterator pointing to <em class="parameter"><code>char_offset</code></em> within the given
line. The <em class="parameter"><code>char_offset</code></em> must exist, offsets off the end of the line
are not allowed. Note <span class="emphasis"><em>characters</em></span>, not bytes;
UTF-8 may encode one character as multiple bytes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>line_number</code></em> :</span></td>
<td> line number counting from 0
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>char_offset</code></em> :</span></td>
<td> char offset from start of line
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3008878"></a><h3>
<a name="gtk-text-buffer-get-iter-at-offset"></a>gtk_text_buffer_get_iter_at_offset ()</h3>
<a class="indexterm" name="id3008892"></a><pre class="programlisting">void gtk_text_buffer_get_iter_at_offset
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> char_offset);</pre>
<p>
Initializes <em class="parameter"><code>iter</code></em> to a position <em class="parameter"><code>char_offset</code></em> chars from the start
of the entire buffer. If <em class="parameter"><code>char_offset</code></em> is -1 or greater than the number
of characters in the buffer, <em class="parameter"><code>iter</code></em> is initialized to the end iterator,
the iterator one past the last valid character in the buffer.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>char_offset</code></em> :</span></td>
<td> char offset from start of buffer, counting from 0, or -1
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009022"></a><h3>
<a name="gtk-text-buffer-get-iter-at-line"></a>gtk_text_buffer_get_iter_at_line ()</h3>
<a class="indexterm" name="id3009035"></a><pre class="programlisting">void gtk_text_buffer_get_iter_at_line
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> line_number);</pre>
<p>
Initializes <em class="parameter"><code>iter</code></em> to the start of the given line.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>line_number</code></em> :</span></td>
<td> line number counting from 0
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009145"></a><h3>
<a name="gtk-text-buffer-get-iter-at-line-index"></a>gtk_text_buffer_get_iter_at_line_index ()</h3>
<a class="indexterm" name="id3009158"></a><pre class="programlisting">void gtk_text_buffer_get_iter_at_line_index
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> line_number,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> byte_index);</pre>
<p>
Obtains an iterator pointing to <em class="parameter"><code>byte_index</code></em> within the given line.
<em class="parameter"><code>byte_index</code></em> must be the start of a UTF-8 character, and must not be
beyond the end of the line. Note <span class="emphasis"><em>bytes</em></span>, not
characters; UTF-8 may encode one character as multiple bytes.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>line_number</code></em> :</span></td>
<td> line number counting from 0
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>byte_index</code></em> :</span></td>
<td> byte index from start of line
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009302"></a><h3>
<a name="gtk-text-buffer-get-iter-at-mark"></a>gtk_text_buffer_get_iter_at_mark ()</h3>
<a class="indexterm" name="id3009315"></a><pre class="programlisting">void gtk_text_buffer_get_iter_at_mark
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);</pre>
<p>
Initializes <em class="parameter"><code>iter</code></em> with the current position of <em class="parameter"><code>mark</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mark</code></em> :</span></td>
<td> a <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009443"></a><h3>
<a name="gtk-text-buffer-get-iter-at-child-anchor"></a>gtk_text_buffer_get_iter_at_child_anchor ()</h3>
<a class="indexterm" name="id3009457"></a><pre class="programlisting">void gtk_text_buffer_get_iter_at_child_anchor
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);</pre>
<p>
Obtains the location of <em class="parameter"><code>anchor</code></em> within <em class="parameter"><code>buffer</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> an iterator to be initialized
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>anchor</code></em> :</span></td>
<td> a child anchor that appears in <em class="parameter"><code>buffer</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009578"></a><h3>
<a name="gtk-text-buffer-get-start-iter"></a>gtk_text_buffer_get_start_iter ()</h3>
<a class="indexterm" name="id3009592"></a><pre class="programlisting">void gtk_text_buffer_get_start_iter (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Initialized <em class="parameter"><code>iter</code></em> with the first position in the text buffer. This
is the same as using <a href="GtkTextBuffer.html#gtk-text-buffer-get-iter-at-offset"><code class="function">gtk_text_buffer_get_iter_at_offset()</code></a> to get
the iter at character offset 0.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009692"></a><h3>
<a name="gtk-text-buffer-get-end-iter"></a>gtk_text_buffer_get_end_iter ()</h3>
<a class="indexterm" name="id3009705"></a><pre class="programlisting">void gtk_text_buffer_get_end_iter (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Initializes <em class="parameter"><code>iter</code></em> with the "end iterator," one past the last valid
character in the text buffer. If dereferenced with
<a href="gtk-GtkTextIter.html#gtk-text-iter-get-char"><code class="function">gtk_text_iter_get_char()</code></a>, the end iterator has a character value of
0. The entire buffer lies in the range from the first position in
the buffer (call <a href="GtkTextBuffer.html#gtk-text-buffer-get-start-iter"><code class="function">gtk_text_buffer_get_start_iter()</code></a> to get
character position 0) to the end iterator.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> iterator to initialize
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009817"></a><h3>
<a name="gtk-text-buffer-get-bounds"></a>gtk_text_buffer_get_bounds ()</h3>
<a class="indexterm" name="id3009831"></a><pre class="programlisting">void gtk_text_buffer_get_bounds (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Retrieves the first and last iterators in the buffer, i.e. the
entire buffer lies within the range [<em class="parameter"><code>start</code></em>,<em class="parameter"><code>end</code></em>).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> iterator to initialize with first position in the buffer
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> iterator to initialize with the end iterator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3009945"></a><h3>
<a name="gtk-text-buffer-get-modified"></a>gtk_text_buffer_get_modified ()</h3>
<a class="indexterm" name="id3009958"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_get_modified (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Indicates whether the buffer has been modified since the last call
to <a href="GtkTextBuffer.html#gtk-text-buffer-set-modified"><code class="function">gtk_text_buffer_set_modified()</code></a> set the modification flag to
<a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>. Used for example to enable a "save" function in a text
editor.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the buffer has been modified
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010062"></a><h3>
<a name="gtk-text-buffer-set-modified"></a>gtk_text_buffer_set_modified ()</h3>
<a class="indexterm" name="id3010075"></a><pre class="programlisting">void gtk_text_buffer_set_modified (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Used to keep track of whether the buffer has been modified since the
last time it was saved. Whenever the buffer is saved to disk, call
gtk_text_buffer_set_modified (<em class="parameter"><code>buffer</code></em>, FALSE). When the buffer is modified,
it will automatically toggled on the modified bit again. When the modified
bit flips, the buffer emits a "modified_changed" signal.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em> :</span></td>
<td> modification flag setting
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010166"></a><h3>
<a name="gtk-text-buffer-delete-selection"></a>gtk_text_buffer_delete_selection ()</h3>
<a class="indexterm" name="id3010180"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_delete_selection
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> interactive,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Deletes the range between the "insert" and "selection_bound" marks,
that is, the currently-selected text. If <em class="parameter"><code>interactive</code></em> is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a>,
the editability of the selection will be considered (users can't delete
uneditable text).</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>interactive</code></em> :</span></td>
<td> whether the deletion is caused by user interaction
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> whether the buffer is editable by default
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether there was a non-empty selection to delete
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010313"></a><h3>
<a name="gtk-text-buffer-paste-clipboard"></a>gtk_text_buffer_paste_clipboard ()</h3>
<a class="indexterm" name="id3010327"></a><pre class="programlisting">void gtk_text_buffer_paste_clipboard (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *override_location,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Pastes the contents of a clipboard at the insertion point, or at <em class="parameter"><code>override_location</code></em>.
(Note: pasting is asynchronous, that is, we'll ask for the paste data and
return, and at some point later after the main loop runs, the paste
data will be inserted.)</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>clipboard</code></em> :</span></td>
<td> the <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> to paste from
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>override_location</code></em> :</span></td>
<td> location to insert pasted text, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> for at the cursor
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> whether the buffer is editable by default
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010480"></a><h3>
<a name="gtk-text-buffer-copy-clipboard"></a>gtk_text_buffer_copy_clipboard ()</h3>
<a class="indexterm" name="id3010494"></a><pre class="programlisting">void gtk_text_buffer_copy_clipboard (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard);</pre>
<p>
Copies the currently-selected text to a clipboard.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>clipboard</code></em> :</span></td>
<td> the <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> object to copy to.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010583"></a><h3>
<a name="gtk-text-buffer-cut-clipboard"></a>gtk_text_buffer_cut_clipboard ()</h3>
<a class="indexterm" name="id3010596"></a><pre class="programlisting">void gtk_text_buffer_cut_clipboard (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> default_editable);</pre>
<p>
Copies the currently-selected text to a clipboard, then deletes
said text if it's editable.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>clipboard</code></em> :</span></td>
<td> the <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> object to cut to.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>default_editable</code></em> :</span></td>
<td> default editability of the buffer
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010708"></a><h3>
<a name="gtk-text-buffer-get-selection-bounds"></a>gtk_text_buffer_get_selection_bounds ()</h3>
<a class="indexterm" name="id3010722"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_get_selection_bounds
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end);</pre>
<p>
Returns <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if some text is selected; places the bounds
of the selection in <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> (if the selection has length 0,
then <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> are filled in with the same value).
<em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> will be in ascending order. If <em class="parameter"><code>start</code></em> and <em class="parameter"><code>end</code></em> are
NULL, then they are not filled in, but the return value still indicates
whether text is selected.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> iterator to initialize with selection start
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> iterator to initialize with selection end
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether the selection has nonzero length
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3010906"></a><h3>
<a name="gtk-text-buffer-begin-user-action"></a>gtk_text_buffer_begin_user_action ()</h3>
<a class="indexterm" name="id3010920"></a><pre class="programlisting">void gtk_text_buffer_begin_user_action
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Called to indicate that the buffer operations between here and a
call to <a href="GtkTextBuffer.html#gtk-text-buffer-end-user-action"><code class="function">gtk_text_buffer_end_user_action()</code></a> are part of a single
user-visible operation. The operations between
<a href="GtkTextBuffer.html#gtk-text-buffer-begin-user-action"><code class="function">gtk_text_buffer_begin_user_action()</code></a> and
<a href="GtkTextBuffer.html#gtk-text-buffer-end-user-action"><code class="function">gtk_text_buffer_end_user_action()</code></a> can then be grouped when creating
an undo stack. <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> maintains a count of calls to
<a href="GtkTextBuffer.html#gtk-text-buffer-begin-user-action"><code class="function">gtk_text_buffer_begin_user_action()</code></a> that have not been closed with
a call to <a href="GtkTextBuffer.html#gtk-text-buffer-end-user-action"><code class="function">gtk_text_buffer_end_user_action()</code></a>, and emits the "begin_user_action"
and "end_user_action" signals only for the outermost pair of calls.
This allows you to build user actions from other user actions.
</p>
<p>
The "interactive" buffer mutation functions, such as
<a href="GtkTextBuffer.html#gtk-text-buffer-insert-interactive"><code class="function">gtk_text_buffer_insert_interactive()</code></a>, automatically call begin/end
user action around the buffer operations they perform, so there's
no need to add extra calls if you user action consists solely of a
single call to one of those functions.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3011070"></a><h3>
<a name="gtk-text-buffer-end-user-action"></a>gtk_text_buffer_end_user_action ()</h3>
<a class="indexterm" name="id3011083"></a><pre class="programlisting">void gtk_text_buffer_end_user_action (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Should be paired with a call to <a href="GtkTextBuffer.html#gtk-text-buffer-begin-user-action"><code class="function">gtk_text_buffer_begin_user_action()</code></a>.
See that function for a full explanation.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3011153"></a><h3>
<a name="gtk-text-buffer-add-selection-clipboard"></a>gtk_text_buffer_add_selection_clipboard ()</h3>
<a class="indexterm" name="id3011168"></a><pre class="programlisting">void gtk_text_buffer_add_selection_clipboard
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard);</pre>
<p>
Adds <em class="parameter"><code>clipboard</code></em> to the list of clipboards in which the selection contents
of <em class="parameter"><code>buffer</code></em> are available. In most cases, <em class="parameter"><code>clipboard</code></em> will be the <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a>
of type <a
href="../gdk/gdk-Selections.html#GDK-SELECTION-PRIMARY:CAPS"
><code class="literal">GDK_SELECTION_PRIMARY</code></a> for a view of <em class="parameter"><code>buffer</code></em>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>clipboard</code></em> :</span></td>
<td> a <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3011301"></a><h3>
<a name="gtk-text-buffer-remove-selection-clipboard"></a>gtk_text_buffer_remove_selection_clipboard ()</h3>
<a class="indexterm" name="id3011316"></a><pre class="programlisting">void gtk_text_buffer_remove_selection_clipboard
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a href="gtk-Clipboards.html#GtkClipboard">GtkClipboard</a> *clipboard);</pre>
<p>
Removes a <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> added with <a href="GtkTextBuffer.html#gtk-text-buffer-add-selection-clipboard"><code class="function">gtk_text_buffer_add_selection_clipboard()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>clipboard</code></em> :</span></td>
<td> a <a href="gtk-Clipboards.html#GtkClipboard"><span class="type">GtkClipboard</span></a> added to <em class="parameter"><code>buffer</code></em> by <a href="GtkTextBuffer.html#gtk-text-buffer-add-selection-clipboard"><code class="function">gtk_text_buffer_add_selection_clipboard()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3011442"></a><h3>
<a name="GtkTextBufferTargetInfo"></a>enum GtkTextBufferTargetInfo</h3>
<a class="indexterm" name="id3011456"></a><pre class="programlisting">typedef enum
{
GTK_TEXT_BUFFER_TARGET_INFO_BUFFER_CONTENTS = G_MAXUINT - 0,
GTK_TEXT_BUFFER_TARGET_INFO_RICH_TEXT = G_MAXUINT - 1,
GTK_TEXT_BUFFER_TARGET_INFO_TEXT = G_MAXUINT - 2
} GtkTextBufferTargetInfo;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3011474"></a><h3>
<a name="GtkTextBufferDeserializeFunc"></a>GtkTextBufferDeserializeFunc ()</h3>
<a class="indexterm" name="id3011487"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> (*GtkTextBufferDeserializeFunc) (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a> *data,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> length,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> create_tags,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>register_buffer</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>content_buffer</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>create_tags</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>error</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3011693"></a><h3>
<a name="gtk-text-buffer-deserialize"></a>gtk_text_buffer_deserialize ()</h3>
<a class="indexterm" name="id3011709"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_deserialize (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
const <a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a> *data,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> length,
<a
href="../glib/glib-Error-Reporting.html#GError"
>GError</a> **error);</pre>
<p>
This function deserializes rich text in format <code class="literal">format</code> and inserts
it at <code class="literal">iter</code>.
</p>
<p>
<code class="literal">format</code>s to be used must be registered using
<a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-format"><code class="function">gtk_text_buffer_register_deserialize_format()</code></a> or
<a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-tagset"><code class="function">gtk_text_buffer_register_deserialize_tagset()</code></a> beforehand.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>register_buffer</code></em> :</span></td>
<td> the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> <code class="literal">format</code> is registered with
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>content_buffer</code></em> :</span></td>
<td> the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> to deserialize into
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>format</code></em> :</span></td>
<td> the rich text format to use for deserializing
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> insertion point for the deserialized text
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>data</code></em> :</span></td>
<td> data to deserialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
<td> length of <code class="literal">data</code>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>error</code></em> :</span></td>
<td> return loaction for a <a
href="../glib/glib-Error-Reporting.html#GError"
><span class="type">GError</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> on success, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> otherwise.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012036"></a><h3>
<a name="gtk-text-buffer-deserialize-get-can-create-tags"></a>gtk_text_buffer_deserialize_get_can_create_tags ()</h3>
<a class="indexterm" name="id3012052"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_buffer_deserialize_get_can_create_tags
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format);</pre>
<p>
This functions returns the value set with
<a href="GtkTextBuffer.html#gtk-text-buffer-deserialize-set-can-create-tags"><code class="function">gtk_text_buffer_deserialize_set_can_create_tags()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>format</code></em> :</span></td>
<td> a <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> representing a registered rich text format
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether deserializing this format may create tags
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012169"></a><h3>
<a name="gtk-text-buffer-deserialize-set-can-create-tags"></a>gtk_text_buffer_deserialize_set_can_create_tags ()</h3>
<a class="indexterm" name="id3012186"></a><pre class="programlisting">void gtk_text_buffer_deserialize_set_can_create_tags
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> can_create_tags);</pre>
<p>
Use this function to allow a rich text deserialization function to
create new tags in the receiving buffer. Note that using this
function is almost always a bad idea, because the rich text
functions you register should know how to map the rich text format
they handler to your text buffers set of tags.
</p>
<p>
The ability of creating new (arbitrary!) tags in the receiving buffer
is meant for special rich text formats like the internal one that
is registered using <a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-tagset"><code class="function">gtk_text_buffer_register_deserialize_tagset()</code></a>,
because that format is essentially a dump of the internal structure
of the source buffer, including its tag names.
</p>
<p>
You should allow creation of tags only if you know what you are
doing, e.g. if you defined a tagset name for your application
suite's text buffers and you know that it's fine to receive new
tags from these buffers, because you know that your application can
handle the newly created tags.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>format</code></em> :</span></td>
<td> a <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> representing a registered rich text format
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>can_create_tags</code></em> :</span></td>
<td> whether deserializing this format may create tags
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012336"></a><h3>
<a name="gtk-text-buffer-get-copy-target-list"></a>gtk_text_buffer_get_copy_target_list ()</h3>
<a class="indexterm" name="id3012351"></a><pre class="programlisting"><a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a>* gtk_text_buffer_get_copy_target_list
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
This function returns the list of targets this text buffer can
provide for copying and as DND source. The targets in the list are
added with <code class="literal">info</code> values from the <a href="GtkTextBuffer.html#GtkTextBufferTargetInfo"><span class="type">GtkTextBufferTargetInfo</span></a> enum,
using <a href="gtk-Selections.html#gtk-target-list-add-rich-text-targets"><code class="function">gtk_target_list_add_rich_text_targets()</code></a> and
<a href="gtk-Selections.html#gtk-target-list-add-text-targets"><code class="function">gtk_target_list_add_text_targets()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a href="gtk-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012479"></a><h3>
<a name="gtk-text-buffer-get-deserialize-formats"></a>gtk_text_buffer_get_deserialize_formats ()</h3>
<a class="indexterm" name="id3012495"></a><pre class="programlisting"><a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a>* gtk_text_buffer_get_deserialize_formats
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_formats);</pre>
<p>
This function returns the rich text deserialize formats registered
with <code class="literal">buffer</code> using <a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-format"><code class="function">gtk_text_buffer_register_deserialize_format()</code></a> or
<a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-tagset"><code class="function">gtk_text_buffer_register_deserialize_tagset()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_formats</code></em> :</span></td>
<td> return location for the number of formats
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> an array of <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a>s representing the registered
formats.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012636"></a><h3>
<a name="gtk-text-buffer-get-paste-target-list"></a>gtk_text_buffer_get_paste_target_list ()</h3>
<a class="indexterm" name="id3012652"></a><pre class="programlisting"><a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a>* gtk_text_buffer_get_paste_target_list
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
This function returns the list of targets this text buffer supports
for pasting and as DND destination. The targets in the list are
added with <code class="literal">info</code> values from the <a href="GtkTextBuffer.html#GtkTextBufferTargetInfo"><span class="type">GtkTextBufferTargetInfo</span></a> enum,
using <a href="gtk-Selections.html#gtk-target-list-add-rich-text-targets"><code class="function">gtk_target_list_add_rich_text_targets()</code></a> and
<a href="gtk-Selections.html#gtk-target-list-add-text-targets"><code class="function">gtk_target_list_add_text_targets()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a href="gtk-Selections.html#GtkTargetList"><span class="type">GtkTargetList</span></a>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012778"></a><h3>
<a name="gtk-text-buffer-get-serialize-formats"></a>gtk_text_buffer_get_serialize_formats ()</h3>
<a class="indexterm" name="id3012795"></a><pre class="programlisting"><a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a>* gtk_text_buffer_get_serialize_formats
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *n_formats);</pre>
<p>
This function returns the rich text serialize formats registered
with <code class="literal">buffer</code> using <a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-format"><code class="function">gtk_text_buffer_register_serialize_format()</code></a> or
<a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-tagset"><code class="function">gtk_text_buffer_register_serialize_tagset()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>n_formats</code></em> :</span></td>
<td> return location for the number of formats
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> an array of <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a>s representing the registered
formats.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3012936"></a><h3>
<a name="gtk-text-buffer-register-deserialize-format"></a>gtk_text_buffer_register_deserialize_format ()</h3>
<a class="indexterm" name="id3012952"></a><pre class="programlisting"><a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> gtk_text_buffer_register_deserialize_format
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *mime_type,
<a href="GtkTextBuffer.html#GtkTextBufferDeserializeFunc">GtkTextBufferDeserializeFunc</a> function,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data,
<a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> user_data_destroy);</pre>
<p>
This function registers a rich text deserialization <code class="literal">function</code> along with
its <code class="literal">mime_type</code> with the passed <code class="literal">buffer</code>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mime_type</code></em> :</span></td>
<td> the format's mime-type
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>function</code></em> :</span></td>
<td> the deserialize function to register
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td> <code class="literal">function</code>'s user_data
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data_destroy</code></em> :</span></td>
<td> a function to call when user_data is no longer needed
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> that corresponds to the newly registered
format's mime-type.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3013168"></a><h3>
<a name="gtk-text-buffer-register-deserialize-tagset"></a>gtk_text_buffer_register_deserialize_tagset ()</h3>
<a class="indexterm" name="id3013186"></a><pre class="programlisting"><a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> gtk_text_buffer_register_deserialize_tagset
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tagset_name);</pre>
<p>
This function registers GTK+'s internal rich text serialization
format with the passed <code class="literal">buffer</code>. See
<a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-tagset"><code class="function">gtk_text_buffer_register_serialize_tagset()</code></a> for details.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tagset_name</code></em> :</span></td>
<td> an optional tagset name, on <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> that corresponds to the newly registered
format's mime-type.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3013324"></a><h3>
<a name="gtk-text-buffer-register-serialize-format"></a>gtk_text_buffer_register_serialize_format ()</h3>
<a class="indexterm" name="id3013341"></a><pre class="programlisting"><a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> gtk_text_buffer_register_serialize_format
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *mime_type,
<a href="GtkTextBuffer.html#GtkTextBufferSerializeFunc">GtkTextBufferSerializeFunc</a> function,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data,
<a
href="../glib/glib-Datasets.html#GDestroyNotify"
>GDestroyNotify</a> user_data_destroy);</pre>
<p>
This function registers a rich text serialization <code class="literal">function</code> along with
its <code class="literal">mime_type</code> with the passed <code class="literal">buffer</code>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mime_type</code></em> :</span></td>
<td> the format's mime-type
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>function</code></em> :</span></td>
<td> the serialize function to register
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td> <code class="literal">function</code>'s user_data
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data_destroy</code></em> :</span></td>
<td> a function to call when user_data is no longer needed
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> that corresponds to the newly registered
format's mime-type.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3013555"></a><h3>
<a name="gtk-text-buffer-register-serialize-tagset"></a>gtk_text_buffer_register_serialize_tagset ()</h3>
<a class="indexterm" name="id3013572"></a><pre class="programlisting"><a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> gtk_text_buffer_register_serialize_tagset
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
const <a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *tagset_name);</pre>
<p>
This function registers GTK+'s internal rich text serialization
format with the passed <code class="literal">buffer</code>. The internal format does not comply
to any standard rich text format and only works between <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
instances. It is capable of serializing all of a text buffer's tags
and embedded pixbufs.
</p>
<p>
This function is just a wrapper around
<a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-format"><code class="function">gtk_text_buffer_register_serialize_format()</code></a>. The <code class="literal">mime_type</code> used
for registering is "application/x-gtk-text-buffer-rich-text", or
"application/x-gtk-text-buffer-rich-text;format=<code class="literal">tagset_name</code>" if a
<code class="literal">tagset_name</code> was passed.
</p>
<p>
The <code class="literal">tagset_name</code> can be used to restrict the transfer of rich text
to buffers with compatible sets of tags, in order to avoid unknown
tags from being pasted. It is probably the common case to pass an
identifier != <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> here, since the <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> tagset requires the
receiving buffer to deal with with pasting of arbitrary tags.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tagset_name</code></em> :</span></td>
<td> an optional tagset name, on <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> that corresponds to the newly registered
format's mime-type.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3013798"></a><h3>
<a name="GtkTextBufferSerializeFunc"></a>GtkTextBufferSerializeFunc ()</h3>
<a class="indexterm" name="id3013811"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a>* (*GtkTextBufferSerializeFunc) (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> *length,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data);</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>register_buffer</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>content_buffer</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3013974"></a><h3>
<a name="gtk-text-buffer-serialize"></a>gtk_text_buffer_serialize ()</h3>
<a class="indexterm" name="id3013990"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#guint8"
>guint8</a>* gtk_text_buffer_serialize (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *register_buffer,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *content_buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *start,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *end,
<a
href="../glib/glib-Basic-Types.html#gsize"
>gsize</a> *length);</pre>
<p>
This function serializes the portion of text between <code class="literal">start</code>
and <code class="literal">end</code> in the rich text format represented by <code class="literal">format</code>.
</p>
<p>
<code class="literal">format</code>s to be used must be registered using
<a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-format"><code class="function">gtk_text_buffer_register_serialize_format()</code></a> or
<a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-tagset"><code class="function">gtk_text_buffer_register_serialize_tagset()</code></a> beforehand.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>register_buffer</code></em> :</span></td>
<td> the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> <code class="literal">format</code> is registered with
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>content_buffer</code></em> :</span></td>
<td> the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> to serialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>format</code></em> :</span></td>
<td> the rich text format to use for serializing
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>start</code></em> :</span></td>
<td> start of block of text to serialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>end</code></em> :</span></td>
<td> end of block of test to serialize
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>length</code></em> :</span></td>
<td> return location for the length of the serialized data
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the serialized data, encoded as <code class="literal">format</code>
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014275"></a><h3>
<a name="gtk-text-buffer-unregister-deserialize-format"></a>gtk_text_buffer_unregister_deserialize_format ()</h3>
<a class="indexterm" name="id3014292"></a><pre class="programlisting">void gtk_text_buffer_unregister_deserialize_format
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format);</pre>
<p>
This function unregisters a rich text format that was previously
registered using <a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-format"><code class="function">gtk_text_buffer_register_deserialize_format()</code></a> or
<a href="GtkTextBuffer.html#gtk-text-buffer-register-deserialize-tagset"><code class="function">gtk_text_buffer_register_deserialize_tagset()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>format</code></em> :</span></td>
<td> a <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> representing a registered rich text format.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014411"></a><h3>
<a name="gtk-text-buffer-unregister-serialize-format"></a>gtk_text_buffer_unregister_serialize_format ()</h3>
<a class="indexterm" name="id3014427"></a><pre class="programlisting">void gtk_text_buffer_unregister_serialize_format
(<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer,
<a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
>GdkAtom</a> format);</pre>
<p>
This function unregisters a rich text format that was previously
registered using <a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-format"><code class="function">gtk_text_buffer_register_serialize_format()</code></a> or
<a href="GtkTextBuffer.html#gtk-text-buffer-register-serialize-tagset"><code class="function">gtk_text_buffer_register_serialize_tagset()</code></a></p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer</code></em> :</span></td>
<td> a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>format</code></em> :</span></td>
<td> a <a
href="../gdk/gdk-Properties-and-Atoms.html#GdkAtom"
><span class="type">GdkAtom</span></a> representing a registered rich text format.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.10
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3014545"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3014555"></a><h3>
<a name="GtkTextBuffer--copy-target-list"></a>The "<code class="literal">copy-target-list</code>" property</h3>
<a class="indexterm" name="id3014572"></a><pre class="programlisting"> "copy-target-list" <a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a> : Read</pre>
<p>
The list of targets this buffer supports for clipboard copying
and as DND source.</p>
<p>
</p>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014605"></a><h3>
<a name="GtkTextBuffer--cursor-position"></a>The "<code class="literal">cursor-position</code>" property</h3>
<a class="indexterm" name="id3014622"></a><pre class="programlisting"> "cursor-position" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read</pre>
<p>
The position of the insert mark (as offset from the beginning of the buffer).
It is useful for getting notified when the cursor moves.</p>
<p>
</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014663"></a><h3>
<a name="GtkTextBuffer--has-selection"></a>The "<code class="literal">has-selection</code>" property</h3>
<a class="indexterm" name="id3014679"></a><pre class="programlisting"> "has-selection" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read</pre>
<p>
Whether the buffer has some text currently selected.</p>
<p>
</p>
<p>Default value: FALSE</p>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014716"></a><h3>
<a name="GtkTextBuffer--paste-target-list"></a>The "<code class="literal">paste-target-list</code>" property</h3>
<a class="indexterm" name="id3014732"></a><pre class="programlisting"> "paste-target-list" <a href="gtk-Selections.html#GtkTargetList">GtkTargetList</a> : Read</pre>
<p>
The list of targets this buffer supports for clipboard pasting
and as DND destination.</p>
<p>
</p>
<p>Since 2.10
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014765"></a><h3>
<a name="GtkTextBuffer--tag-table"></a>The "<code class="literal">tag-table</code>" property</h3>
<a class="indexterm" name="id3014781"></a><pre class="programlisting"> "tag-table" <a href="GtkTextTagTable.html" title="GtkTextTagTable">GtkTextTagTable</a> : Read / Write / Construct Only</pre>
<p>Text Tag Table.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3014804"></a><h3>
<a name="GtkTextBuffer--text"></a>The "<code class="literal">text</code>" property</h3>
<a class="indexterm" name="id3014820"></a><pre class="programlisting"> "text" <a
href="../gobject/gobject-Standard-Parameter-and-Value-Types.html#gchararray"
>gchararray</a> : Read / Write</pre>
<p>
The text content of the buffer. Without child widgets and images,
see <a href="GtkTextBuffer.html#gtk-text-buffer-get-text"><code class="function">gtk_text_buffer_get_text()</code></a> for more information.</p>
<p>
</p>
<p>Default value: ""</p>
<p>Since 2.8
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3014869"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3014879"></a><h3>
<a name="GtkTextBuffer-apply-tag"></a>The "apply-tag" signal</h3>
<a class="indexterm" name="id3014890"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *arg1,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg2,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg3,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg3</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015021"></a><h3>
<a name="GtkTextBuffer-begin-user-action"></a>The "begin-user-action" signal</h3>
<a class="indexterm" name="id3015033"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015101"></a><h3>
<a name="GtkTextBuffer-changed"></a>The "changed" signal</h3>
<a class="indexterm" name="id3015111"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015180"></a><h3>
<a name="GtkTextBuffer-delete-range"></a>The "delete-range" signal</h3>
<a class="indexterm" name="id3015191"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015301"></a><h3>
<a name="GtkTextBuffer-end-user-action"></a>The "end-user-action" signal</h3>
<a class="indexterm" name="id3015313"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015381"></a><h3>
<a name="GtkTextBuffer-insert-child-anchor"></a>The "insert-child-anchor" signal</h3>
<a class="indexterm" name="id3015392"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015503"></a><h3>
<a name="GtkTextBuffer-insert-pixbuf"></a>The "insert-pixbuf" signal</h3>
<a class="indexterm" name="id3015514"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a
href="../gdk-pixbuf/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"
>GdkPixbuf</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015626"></a><h3>
<a name="GtkTextBuffer-insert-text"></a>The "insert-text" signal</h3>
<a class="indexterm" name="id3015636"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg3,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg3</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015768"></a><h3>
<a name="GtkTextBuffer-mark-deleted"></a>The "mark-deleted" signal</h3>
<a class="indexterm" name="id3015779"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015868"></a><h3>
<a name="GtkTextBuffer-mark-set"></a>The "mark-set" signal</h3>
<a class="indexterm" name="id3015878"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg1,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3015989"></a><h3>
<a name="GtkTextBuffer-modified-changed"></a>The "modified-changed" signal</h3>
<a class="indexterm" name="id3016000"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3016068"></a><h3>
<a name="GtkTextBuffer-remove-tag"></a>The "remove-tag" signal</h3>
<a class="indexterm" name="id3016079"></a><pre class="programlisting">void user_function (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *textbuffer,
<a href="GtkTextTag.html" title="GtkTextTag">GtkTextTag</a> *arg1,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg2,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *arg3,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textbuffer</code></em> :</span></td>
<td>the object which received the signal.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg1</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg2</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>arg3</code></em> :</span></td>
<td>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>user_data</code></em> :</span></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3016213"></a><h2>See Also</h2>
<p>
<a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>, <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>, <a href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>
</p>
</div>
</div>
</body>
</html>