|
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>GtkTextView</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="GtkTextTagTable.html" title="GtkTextTagTable">
<link rel="next" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
<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="GtkTextTagTable.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="TreeWidgetObjects.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="#id3047840" class="shortcut">Top</a>
 | 
<a href="#id3050856" class="shortcut">Description</a>
 | 
<a href="#id3049853" class="shortcut">Object Hierarchy</a>
 | 
<a href="#id3049920" class="shortcut">Implemented Interfaces</a>
 | 
<a href="#id3049942" class="shortcut">Properties</a>
 | 
<a href="#id3050199" class="shortcut">Style Properties</a>
 | 
<a href="#id3050233" class="shortcut">Signals</a></nobr></td></tr>
</table>
<div class="refentry" lang="en">
<a name="GtkTextView"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2>
<a name="id3047840"></a><span class="refentrytitle">GtkTextView</span>
</h2>
<p>GtkTextView — Widget that displays a <a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a></p>
</td>
<td valign="top" align="right"><img src="multiline-text.png"></td>
</tr></table></div>
<div class="refsynopsisdiv">
<h2>Synopsis</h2>
<a name="GtkTextChildAnchor"></a><pre class="synopsis">
#include <gtk/gtk.h>
<a href="GtkTextView.html#GtkTextView-struct">GtkTextView</a>;
enum <a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a>;
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkTextView.html#gtk-text-view-new">gtk_text_view_new</a> (void);
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* <a href="GtkTextView.html#gtk-text-view-new-with-buffer">gtk_text_view_new_with_buffer</a> (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
void <a href="GtkTextView.html#gtk-text-view-set-buffer">gtk_text_view_set_buffer</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a>* <a href="GtkTextView.html#gtk-text-view-get-buffer">gtk_text_view_get_buffer</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-scroll-to-mark">gtk_text_view_scroll_to_mark</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> within_margin,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> use_align,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> xalign,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yalign);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-scroll-to-iter">gtk_text_view_scroll_to_iter</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> within_margin,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> use_align,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> xalign,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yalign);
void <a href="GtkTextView.html#gtk-text-view-scroll-mark-onscreen">gtk_text_view_scroll_mark_onscreen</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-move-mark-onscreen">gtk_text_view_move_mark_onscreen</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-place-cursor-onscreen">gtk_text_view_place_cursor_onscreen</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-get-visible-rect">gtk_text_view_get_visible_rect</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *visible_rect);
void <a href="GtkTextView.html#gtk-text-view-get-iter-location">gtk_text_view_get_iter_location</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *location);
void <a href="GtkTextView.html#gtk-text-view-get-line-at-y">gtk_text_view_get_line_at_y</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *target_iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *line_top);
void <a href="GtkTextView.html#gtk-text-view-get-line-yrange">gtk_text_view_get_line_yrange</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *height);
void <a href="GtkTextView.html#gtk-text-view-get-iter-at-location">gtk_text_view_get_iter_at_location</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);
void <a href="GtkTextView.html#gtk-text-view-get-iter-at-position">gtk_text_view_get_iter_at_position</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *trailing,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);
void <a href="GtkTextView.html#gtk-text-view-buffer-to-window-coords">gtk_text_view_buffer_to_window_coords</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> win,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> buffer_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> buffer_y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *window_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *window_y);
void <a href="GtkTextView.html#gtk-text-view-window-to-buffer-coords">gtk_text_view_window_to_buffer_coords</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> win,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> window_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> window_y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *buffer_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *buffer_y);
<a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>* <a href="GtkTextView.html#gtk-text-view-get-window">gtk_text_view_get_window</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> win);
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> <a href="GtkTextView.html#gtk-text-view-get-window-type">gtk_text_view_get_window_type</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a> *window);
void <a href="GtkTextView.html#gtk-text-view-set-border-window-size">gtk_text_view_set_border_window_size</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> type,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> size);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-border-window-size">gtk_text_view_get_border_window_size</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> type);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-forward-display-line">gtk_text_view_forward_display_line</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-backward-display-line">gtk_text_view_backward_display_line</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-forward-display-line-end">gtk_text_view_forward_display_line_end</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-backward-display-line-start">gtk_text_view_backward_display_line_start</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-starts-display-line">gtk_text_view_starts_display_line</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-move-visually">gtk_text_view_move_visually</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> count);
void <a href="GtkTextView.html#gtk-text-view-add-child-at-anchor">gtk_text_view_add_child_at_anchor</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);
<a href="GtkTextView.html#GtkTextChildAnchor-struct">GtkTextChildAnchor</a>;
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a>* <a href="GtkTextView.html#gtk-text-child-anchor-new">gtk_text_child_anchor_new</a>
(void);
<a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* <a href="GtkTextView.html#gtk-text-child-anchor-get-widgets">gtk_text_child_anchor_get_widgets</a>
(<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-child-anchor-get-deleted">gtk_text_child_anchor_get_deleted</a>
(<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);
void <a href="GtkTextView.html#gtk-text-view-add-child-in-window">gtk_text_view_add_child_in_window</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> which_window,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> xpos,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> ypos);
void <a href="GtkTextView.html#gtk-text-view-move-child">gtk_text_view_move_child</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> xpos,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> ypos);
void <a href="GtkTextView.html#gtk-text-view-set-wrap-mode">gtk_text_view_set_wrap_mode</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a> wrap_mode);
<a href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a> <a href="GtkTextView.html#gtk-text-view-get-wrap-mode">gtk_text_view_get_wrap_mode</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-editable">gtk_text_view_set_editable</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-get-editable">gtk_text_view_get_editable</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-cursor-visible">gtk_text_view_set_cursor_visible</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-get-cursor-visible">gtk_text_view_get_cursor_visible</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-overwrite">gtk_text_view_set_overwrite</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> overwrite);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-get-overwrite">gtk_text_view_get_overwrite</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-pixels-above-lines">gtk_text_view_set_pixels_above_lines</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> pixels_above_lines);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-pixels-above-lines">gtk_text_view_get_pixels_above_lines</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-pixels-below-lines">gtk_text_view_set_pixels_below_lines</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> pixels_below_lines);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-pixels-below-lines">gtk_text_view_get_pixels_below_lines</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap">gtk_text_view_set_pixels_inside_wrap</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> pixels_inside_wrap);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-pixels-inside-wrap">gtk_text_view_get_pixels_inside_wrap</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-justification">gtk_text_view_set_justification</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> justification);
<a href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> <a href="GtkTextView.html#gtk-text-view-get-justification">gtk_text_view_get_justification</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-left-margin">gtk_text_view_set_left_margin</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> left_margin);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-left-margin">gtk_text_view_get_left_margin</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-right-margin">gtk_text_view_set_right_margin</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> right_margin);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-right-margin">gtk_text_view_get_right_margin</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-indent">gtk_text_view_set_indent</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> indent);
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> <a href="GtkTextView.html#gtk-text-view-get-indent">gtk_text_view_get_indent</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-tabs">gtk_text_view_set_tabs</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
>PangoTabArray</a> *tabs);
<a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
>PangoTabArray</a>* <a href="GtkTextView.html#gtk-text-view-get-tabs">gtk_text_view_get_tabs</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
void <a href="GtkTextView.html#gtk-text-view-set-accepts-tab">gtk_text_view_set_accepts_tab</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> accepts_tab);
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> <a href="GtkTextView.html#gtk-text-view-get-accepts-tab">gtk_text_view_get_accepts_tab</a> (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
<a href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a>* <a href="GtkTextView.html#gtk-text-view-get-default-attributes">gtk_text_view_get_default_attributes</a>
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);
#define <a href="GtkTextView.html#GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS">GTK_TEXT_VIEW_PRIORITY_VALIDATE</a>
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3049853"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----<a
href="../gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned"
>GInitiallyUnowned</a>
+----<a href="GtkObject.html" title="GtkObject">GtkObject</a>
+----<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
+----<a href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
+----GtkTextView
</pre>
<pre class="synopsis">
<a
href="../gobject/gobject-The-Base-Object-Type.html#GObject"
>GObject</a>
+----GtkTextChildAnchor
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3049920"></a><h2>Implemented Interfaces</h2>
<p>
GtkTextView implements
AtkImplementorIface.</p>
</div>
<div class="refsect1" lang="en">
<a name="id3049942"></a><h2>Properties</h2>
<pre class="synopsis">
"<a href="GtkTextView.html#GtkTextView--accepts-tab">accepts-tab</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--buffer">buffer</a>" <a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--cursor-visible">cursor-visible</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--editable">editable</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--indent">indent</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--justification">justification</a>" <a href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--left-margin">left-margin</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--overwrite">overwrite</a>" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--pixels-above-lines">pixels-above-lines</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--pixels-below-lines">pixels-below-lines</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--pixels-inside-wrap">pixels-inside-wrap</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--right-margin">right-margin</a>" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--tabs">tabs</a>" <a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
>PangoTabArray</a> : Read / Write
"<a href="GtkTextView.html#GtkTextView--wrap-mode">wrap-mode</a>" <a href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a> : Read / Write
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3050199"></a><h2>Style Properties</h2>
<pre class="synopsis">
"<a href="GtkTextView.html#GtkTextView--error-underline-color">error-underline-color</a>" <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> : Read
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3050233"></a><h2>Signals</h2>
<pre class="synopsis">
"<a href="GtkTextView.html#GtkTextView-backspace">backspace</a>" void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-copy-clipboard">copy-clipboard</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-cut-clipboard">cut-clipboard</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-delete-from-cursor">delete-from-cursor</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="gtk-Standard-Enumerations.html#GtkDeleteType">GtkDeleteType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-insert-at-cursor">insert-at-cursor</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-move-cursor">move-cursor</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *widget,
<a href="gtk-Standard-Enumerations.html#GtkMovementStep">GtkMovementStep</a> *step,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> count,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> extend_selection,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-move-focus">move-focus</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-move-viewport">move-viewport</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="gtk-Standard-Enumerations.html#GtkScrollStep">GtkScrollStep</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-page-horizontally">page-horizontally</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg1,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-paste-clipboard">paste-clipboard</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-populate-popup">populate-popup</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="GtkMenu.html" title="GtkMenu">GtkMenu</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last
"<a href="GtkTextView.html#GtkTextView-select-all">select-all</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-set-anchor">set-anchor</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-set-scroll-adjustments">set-scroll-adjustments</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg1,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
"<a href="GtkTextView.html#GtkTextView-toggle-overwrite">toggle-overwrite</a>"
void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action
</pre>
</div>
<div class="refsect1" lang="en">
<a name="id3050856"></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="id3050883"></a><h2>Details</h2>
<div class="refsect2" lang="en">
<a name="id3050893"></a><h3>
<a name="GtkTextView-struct"></a>GtkTextView</h3>
<a class="indexterm" name="id3050906"></a><pre class="programlisting">typedef struct _GtkTextView GtkTextView;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3050921"></a><h3>
<a name="GtkTextWindowType"></a>enum GtkTextWindowType</h3>
<a class="indexterm" name="id3050935"></a><pre class="programlisting">typedef enum
{
GTK_TEXT_WINDOW_PRIVATE,
GTK_TEXT_WINDOW_WIDGET,
GTK_TEXT_WINDOW_TEXT,
GTK_TEXT_WINDOW_LEFT,
GTK_TEXT_WINDOW_RIGHT,
GTK_TEXT_WINDOW_TOP,
GTK_TEXT_WINDOW_BOTTOM
} GtkTextWindowType;
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3050953"></a><h3>
<a name="gtk-text-view-new"></a>gtk_text_view_new ()</h3>
<a class="indexterm" name="id3050966"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_text_view_new (void);</pre>
<p>
Creates a new <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. If you don't call <a href="GtkTextView.html#gtk-text-view-set-buffer"><code class="function">gtk_text_view_set_buffer()</code></a>
before using the text view, an empty default buffer will be created
for you. Get the buffer with <a href="GtkTextView.html#gtk-text-view-get-buffer"><code class="function">gtk_text_view_get_buffer()</code></a>. If you want
to specify your own buffer, consider <a href="GtkTextView.html#gtk-text-view-new-with-buffer"><code class="function">gtk_text_view_new_with_buffer()</code></a>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3051057"></a><h3>
<a name="gtk-text-view-new-with-buffer"></a>gtk_text_view_new_with_buffer ()</h3>
<a class="indexterm" name="id3051070"></a><pre class="programlisting"><a href="GtkWidget.html" title="GtkWidget">GtkWidget</a>* gtk_text_view_new_with_buffer (<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Creates a new <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> widget displaying the buffer
<em class="parameter"><code>buffer</code></em>. One buffer can be shared among many widgets.
<em class="parameter"><code>buffer</code></em> may be NULL to create a default buffer, in which case
this function is equivalent to <a href="GtkTextView.html#gtk-text-view-new"><code class="function">gtk_text_view_new()</code></a>. The
text view adds its own reference count to the buffer; it does not
take over an existing reference.</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 new <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3051182"></a><h3>
<a name="gtk-text-view-set-buffer"></a>gtk_text_view_set_buffer ()</h3>
<a class="indexterm" name="id3051195"></a><pre class="programlisting">void gtk_text_view_set_buffer (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> *buffer);</pre>
<p>
Sets <em class="parameter"><code>buffer</code></em> as the buffer being displayed by <em class="parameter"><code>text_view</code></em>. The previous
buffer displayed by the text view is unreferenced, and a reference is
added to <em class="parameter"><code>buffer</code></em>. If you owned a reference to <em class="parameter"><code>buffer</code></em> before passing it
to this function, you must remove that reference yourself; <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
will not "adopt" it.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<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="id3051318"></a><h3>
<a name="gtk-text-view-get-buffer"></a>gtk_text_view_get_buffer ()</h3>
<a class="indexterm" name="id3051330"></a><pre class="programlisting"><a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a>* gtk_text_view_get_buffer (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Returns the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> being displayed by this text view.
The reference count on the buffer is not incremented; the caller
of this function won't own a new reference.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</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="id3051417"></a><h3>
<a name="gtk-text-view-scroll-to-mark"></a>gtk_text_view_scroll_to_mark ()</h3>
<a class="indexterm" name="id3051430"></a><pre class="programlisting">void gtk_text_view_scroll_to_mark (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> within_margin,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> use_align,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> xalign,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yalign);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> so that <em class="parameter"><code>mark</code></em> is on the screen in the position
indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center. If <em class="parameter"><code>use_align</code></em>
is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to get the mark onscreen,
possibly not scrolling at all. The effective screen for purposes
of this function is reduced by a margin of size <em class="parameter"><code>within_margin</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</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>within_margin</code></em> :</span></td>
<td> margin as a [0.0,0.5) fraction of screen size
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>use_align</code></em> :</span></td>
<td> whether to use alignment arguments (if <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, just get the mark onscreen)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>xalign</code></em> :</span></td>
<td> horizontal alignment of mark within visible area.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>yalign</code></em> :</span></td>
<td> vertical alignment of mark within visible area
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3051667"></a><h3>
<a name="gtk-text-view-scroll-to-iter"></a>gtk_text_view_scroll_to_iter ()</h3>
<a class="indexterm" name="id3051681"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_scroll_to_iter (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> within_margin,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> use_align,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> xalign,
<a
href="../glib/glib-Basic-Types.html#gdouble"
>gdouble</a> yalign);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> so that <em class="parameter"><code>iter</code></em> is on the screen in the position
indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
left or top, 1.0 indicates right or bottom, 0.5 means center. If <em class="parameter"><code>use_align</code></em>
is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to get the mark onscreen,
possibly not scrolling at all. The effective screen for purposes
of this function is reduced by a margin of size <em class="parameter"><code>within_margin</code></em>.
NOTE: This function uses the currently-computed height of the
lines in the text buffer. Note that line heights are computed
in an idle handler; so this function may not have the desired effect
if it's called before the height computations. To avoid oddness,
consider using <a href="GtkTextView.html#gtk-text-view-scroll-to-mark"><code class="function">gtk_text_view_scroll_to_mark()</code></a> which saves a point
to be scrolled to after line validation.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>within_margin</code></em> :</span></td>
<td> margin as a [0.0,0.5) fraction of screen size
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>use_align</code></em> :</span></td>
<td> whether to use alignment arguments (if <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, just get the mark onscreen)
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>xalign</code></em> :</span></td>
<td> horizontal alignment of mark within visible area.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>yalign</code></em> :</span></td>
<td> vertical alignment of mark within visible area
</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 scrolling occurred
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3051955"></a><h3>
<a name="gtk-text-view-scroll-mark-onscreen"></a>gtk_text_view_scroll_mark_onscreen ()</h3>
<a class="indexterm" name="id3051970"></a><pre class="programlisting">void gtk_text_view_scroll_mark_onscreen
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);</pre>
<p>
Scrolls <em class="parameter"><code>text_view</code></em> the minimum distance such that <em class="parameter"><code>mark</code></em> is contained
within the visible area of the widget.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>mark</code></em> :</span></td>
<td> a mark in the buffer for <em class="parameter"><code>text_view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052068"></a><h3>
<a name="gtk-text-view-move-mark-onscreen"></a>gtk_text_view_move_mark_onscreen ()</h3>
<a class="indexterm" name="id3052081"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_move_mark_onscreen
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextMark.html" title="GtkTextMark">GtkTextMark</a> *mark);</pre>
<p>
Moves a mark within the buffer so that it's
located within the currently-visible text area.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</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"><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 mark moved (wasn't already onscreen)
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052190"></a><h3>
<a name="gtk-text-view-place-cursor-onscreen"></a>gtk_text_view_place_cursor_onscreen ()</h3>
<a class="indexterm" name="id3052205"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_place_cursor_onscreen
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Moves the cursor to the currently visible region of the
buffer, it it isn't there already.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> TRUE if the cursor had to be moved.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052275"></a><h3>
<a name="gtk-text-view-get-visible-rect"></a>gtk_text_view_get_visible_rect ()</h3>
<a class="indexterm" name="id3052288"></a><pre class="programlisting">void gtk_text_view_get_visible_rect (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *visible_rect);</pre>
<p>
Fills <em class="parameter"><code>visible_rect</code></em> with the currently-visible
region of the buffer, in buffer coordinates. Convert to window coordinates
with <a href="GtkTextView.html#gtk-text-view-buffer-to-window-coords"><code class="function">gtk_text_view_buffer_to_window_coords()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>visible_rect</code></em> :</span></td>
<td> rectangle to fill
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052388"></a><h3>
<a name="gtk-text-view-get-iter-location"></a>gtk_text_view_get_iter_location ()</h3>
<a class="indexterm" name="id3052401"></a><pre class="programlisting">void gtk_text_view_get_iter_location (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../gdk/gdk-Points-Rectangles-and-Regions.html#GdkRectangle"
>GdkRectangle</a> *location);</pre>
<p>
Gets a rectangle which roughly contains the character at <em class="parameter"><code>iter</code></em>.
The rectangle position is in buffer coordinates; use
<a href="GtkTextView.html#gtk-text-view-buffer-to-window-coords"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
coordinates to coordinates for one of the windows in the text view.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>location</code></em> :</span></td>
<td> bounds of the character at <em class="parameter"><code>iter</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052537"></a><h3>
<a name="gtk-text-view-get-line-at-y"></a>gtk_text_view_get_line_at_y ()</h3>
<a class="indexterm" name="id3052550"></a><pre class="programlisting">void gtk_text_view_get_line_at_y (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *target_iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *line_top);</pre>
<p>
Gets the <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a> at the start of the line containing
the coordinate <em class="parameter"><code>y</code></em>. <em class="parameter"><code>y</code></em> is in buffer coordinates, convert from
window coordinates with <a href="GtkTextView.html#gtk-text-view-window-to-buffer-coords"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
If non-<a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>, <em class="parameter"><code>line_top</code></em> will be filled with the coordinate of the top
edge of the 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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>target_iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> a y coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>line_top</code></em> :</span></td>
<td> return location for top coordinate of the line
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052729"></a><h3>
<a name="gtk-text-view-get-line-yrange"></a>gtk_text_view_get_line_yrange ()</h3>
<a class="indexterm" name="id3052743"></a><pre class="programlisting">void gtk_text_view_get_line_yrange (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *height);</pre>
<p>
Gets the y coordinate of the top of the line containing <em class="parameter"><code>iter</code></em>,
and the height of the line. The coordinate is a buffer coordinate;
convert to window coordinates with <a href="GtkTextView.html#gtk-text-view-buffer-to-window-coords"><code class="function">gtk_text_view_buffer_to_window_coords()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> return location for a y coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>height</code></em> :</span></td>
<td> return location for a height
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3052893"></a><h3>
<a name="gtk-text-view-get-iter-at-location"></a>gtk_text_view_get_iter_at_location ()</h3>
<a class="indexterm" name="id3052907"></a><pre class="programlisting">void gtk_text_view_get_iter_at_location
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<p>
Retrieves the iterator at buffer coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer
coordinates are coordinates for the entire buffer, not just the
currently-displayed portion. If you have coordinates from an
event, you have to convert those to buffer coordinates with
<a href="GtkTextView.html#gtk-text-view-window-to-buffer-coords"><code class="function">gtk_text_view_window_to_buffer_coords()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> x position, in buffer coordinates
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> y position, in buffer coordinates
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3053063"></a><h3>
<a name="gtk-text-view-get-iter-at-position"></a>gtk_text_view_get_iter_at_position ()</h3>
<a class="indexterm" name="id3053080"></a><pre class="programlisting">void gtk_text_view_get_iter_at_position
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *trailing,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> y);</pre>
<p>
Retrieves the iterator pointing to the character at buffer
coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer coordinates are coordinates for
the entire buffer, not just the currently-displayed portion.
If you have coordinates from an event, you have to convert
those to buffer coordinates with
<a href="GtkTextView.html#gtk-text-view-window-to-buffer-coords"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
</p>
<p>
Note that this is different from <a href="GtkTextView.html#gtk-text-view-get-iter-at-location"><code class="function">gtk_text_view_get_iter_at_location()</code></a>,
which returns cursor locations, i.e. positions <span class="emphasis"><em>between</em></span>
characters.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>trailing</code></em> :</span></td>
<td> location to store an integer indicating where
in the grapheme the user clicked. It will either be
zero, or the number of characters in the grapheme.
0 represents the trailing edge of the grapheme.
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>x</code></em> :</span></td>
<td> x position, in buffer coordinates
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>y</code></em> :</span></td>
<td> y position, in buffer coordinates
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.6
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3053286"></a><h3>
<a name="gtk-text-view-buffer-to-window-coords"></a>gtk_text_view_buffer_to_window_coords ()</h3>
<a class="indexterm" name="id3053300"></a><pre class="programlisting">void gtk_text_view_buffer_to_window_coords
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> win,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> buffer_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> buffer_y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *window_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *window_y);</pre>
<p>
Converts coordinate (<em class="parameter"><code>buffer_x</code></em>, <em class="parameter"><code>buffer_y</code></em>) to coordinates for the window
<em class="parameter"><code>win</code></em>, and stores the result in (<em class="parameter"><code>window_x</code></em>, <em class="parameter"><code>window_y</code></em>).
</p>
<p>
Note that you can't convert coordinates for a nonexisting window (see
<a href="GtkTextView.html#gtk-text-view-set-border-window-size"><code class="function">gtk_text_view_set_border_window_size()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>win</code></em> :</span></td>
<td> a <a href="GtkTextView.html#GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></td>
<td> buffer x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></td>
<td> buffer y coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>window_x</code></em> :</span></td>
<td> window x coordinate return location
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>window_y</code></em> :</span></td>
<td> window y coordinate return location
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3053534"></a><h3>
<a name="gtk-text-view-window-to-buffer-coords"></a>gtk_text_view_window_to_buffer_coords ()</h3>
<a class="indexterm" name="id3053547"></a><pre class="programlisting">void gtk_text_view_window_to_buffer_coords
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> win,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> window_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> window_y,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *buffer_x,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> *buffer_y);</pre>
<p>
Converts coordinates on the window identified by <em class="parameter"><code>win</code></em> to buffer
coordinates, storing the result in (<em class="parameter"><code>buffer_x</code></em>,<em class="parameter"><code>buffer_y</code></em>).
</p>
<p>
Note that you can't convert coordinates for a nonexisting window (see
<a href="GtkTextView.html#gtk-text-view-set-border-window-size"><code class="function">gtk_text_view_set_border_window_size()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>win</code></em> :</span></td>
<td> a <a href="GtkTextView.html#GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>window_x</code></em> :</span></td>
<td> window x coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>window_y</code></em> :</span></td>
<td> window y coordinate
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></td>
<td> buffer x coordinate return location
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></td>
<td> buffer y coordinate return location
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3053766"></a><h3>
<a name="gtk-text-view-get-window"></a>gtk_text_view_get_window ()</h3>
<a class="indexterm" name="id3053779"></a><pre class="programlisting"><a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a>* gtk_text_view_get_window (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> win);</pre>
<p>
Retrieves the <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a> corresponding to an area of the text view;
possible windows include the overall widget window, child windows
on the left, right, top, bottom, and the window that displays the
text buffer. Windows are <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> and nonexistent if their width or
height is 0, and are nonexistent before the widget has been
realized.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>win</code></em> :</span></td>
<td> window to get
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a>, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3053910"></a><h3>
<a name="gtk-text-view-get-window-type"></a>gtk_text_view_get_window_type ()</h3>
<a class="indexterm" name="id3053922"></a><pre class="programlisting"><a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> gtk_text_view_get_window_type
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../gdk/gdk-Windows.html#GdkWindow"
>GdkWindow</a> *window);</pre>
<p>
Usually used to find out which window an event corresponds to.
If you connect to an event signal on <em class="parameter"><code>text_view</code></em>, this function
should be called on <code class="literal">event->window</code> to
see which window it was.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>window</code></em> :</span></td>
<td> a window type
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the window type.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054027"></a><h3>
<a name="gtk-text-view-set-border-window-size"></a>gtk_text_view_set_border_window_size ()</h3>
<a class="indexterm" name="id3054042"></a><pre class="programlisting">void gtk_text_view_set_border_window_size
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> type,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> size);</pre>
<p>
Sets the width of <code class="literal">GTK_TEXT_WINDOW_LEFT</code> or <code class="literal">GTK_TEXT_WINDOW_RIGHT</code>,
or the height of <code class="literal">GTK_TEXT_WINDOW_TOP</code> or <code class="literal">GTK_TEXT_WINDOW_BOTTOM</code>.
Automatically destroys the corresponding window if the size is set
to 0, and creates the window if the size is set to non-zero. This
function can only be used for the "border windows," it doesn't work
with <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, <span class="type">GTK_TEXT_WINDOW_TEXT</span>, or
<span class="type">GTK_TEXT_WINDOW_PRIVATE</span>.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>type</code></em> :</span></td>
<td> window to affect
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>size</code></em> :</span></td>
<td> width or height of the window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054225"></a><h3>
<a name="gtk-text-view-get-border-window-size"></a>gtk_text_view_get_border_window_size ()</h3>
<a class="indexterm" name="id3054238"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_border_window_size
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> type);</pre>
<p>
Gets the width of the specified border window. See
<a href="GtkTextView.html#gtk-text-view-set-border-window-size"><code class="function">gtk_text_view_set_border_window_size()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>type</code></em> :</span></td>
<td> window to return size from
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> width of window
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054342"></a><h3>
<a name="gtk-text-view-forward-display-line"></a>gtk_text_view_forward_display_line ()</h3>
<a class="indexterm" name="id3054356"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_forward_display_line
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> forward by one display (wrapped) line. A
display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</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 <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054491"></a><h3>
<a name="gtk-text-view-backward-display-line"></a>gtk_text_view_backward_display_line ()</h3>
<a class="indexterm" name="id3054505"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_backward_display_line
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> backward by one display (wrapped) line. A
display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</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 <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054640"></a><h3>
<a name="gtk-text-view-forward-display-line-end"></a>gtk_text_view_forward_display_line_end ()</h3>
<a class="indexterm" name="id3054654"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_forward_display_line_end
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> forward to the next display line end. A
display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</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 <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054798"></a><h3>
<a name="gtk-text-view-backward-display-line-start"></a>gtk_text_view_backward_display_line_start ()</h3>
<a class="indexterm" name="id3054813"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_backward_display_line_start
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Moves the given <em class="parameter"><code>iter</code></em> backward to the next display line start. A
display line is different from a paragraph. Paragraphs are
separated by newlines or other paragraph separator characters.
Display lines are created by line-wrapping a paragraph. If
wrapping is turned off, display lines and paragraphs will be the
same. Display lines are divided differently for each view, since
they depend on the view's width; paragraphs are the same in all
views, since they depend on the contents of the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</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 <em class="parameter"><code>iter</code></em> was moved and is not on the end iterator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3054949"></a><h3>
<a name="gtk-text-view-starts-display-line"></a>gtk_text_view_starts_display_line ()</h3>
<a class="indexterm" name="id3054963"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_starts_display_line
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
const <a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter);</pre>
<p>
Determines whether <em class="parameter"><code>iter</code></em> is at the start of a display line.
See <a href="GtkTextView.html#gtk-text-view-forward-display-line"><code class="function">gtk_text_view_forward_display_line()</code></a> for an explanation of
display lines vs. paragraphs.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</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 <em class="parameter"><code>iter</code></em> begins a wrapped line
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3055096"></a><h3>
<a name="gtk-text-view-move-visually"></a>gtk_text_view_move_visually ()</h3>
<a class="indexterm" name="id3055109"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_move_visually (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-GtkTextIter.html#GtkTextIter">GtkTextIter</a> *iter,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> count);</pre>
<p>
Move the iterator a given number of characters visually, treating
it as the strong cursor position. If <em class="parameter"><code>count</code></em> is positive, then the
new strong cursor position will be <em class="parameter"><code>count</code></em> positions to the right of
the old cursor position. If <em class="parameter"><code>count</code></em> is negative then the new strong
cursor position will be <em class="parameter"><code>count</code></em> positions to the left of the old
cursor position.
</p>
<p>
In the presence of bidirection text, the correspondence
between logical and visual order will depend on the direction
of the current run, and there may be jumps when the cursor
is moved off of the end of a run.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>iter</code></em> :</span></td>
<td> a <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>count</code></em> :</span></td>
<td> number of characters to move (negative moves left, positive moves right)
</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 <em class="parameter"><code>iter</code></em> moved and is not on the end iterator
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3055280"></a><h3>
<a name="gtk-text-view-add-child-at-anchor"></a>gtk_text_view_add_child_at_anchor ()</h3>
<a class="indexterm" name="id3055294"></a><pre class="programlisting">void gtk_text_view_add_child_at_anchor
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);</pre>
<p>
Adds a child widget in the text buffer, at the given <em class="parameter"><code>anchor</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</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> in the <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> for <em class="parameter"><code>text_view</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3055431"></a><h3>
<a name="GtkTextChildAnchor-struct"></a>GtkTextChildAnchor</h3>
<a class="indexterm" name="id3055444"></a><pre class="programlisting">typedef struct _GtkTextChildAnchor GtkTextChildAnchor;</pre>
<p>
A <span class="structname">GtkTextChildAnchor</span> is a spot in the buffer
where child widgets can be "anchored" (inserted inline, as if they were
characters). The anchor can have multiple widgets anchored, to allow for
multiple views.
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3055467"></a><h3>
<a name="gtk-text-child-anchor-new"></a>gtk_text_child_anchor_new ()</h3>
<a class="indexterm" name="id3055481"></a><pre class="programlisting"><a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a>* gtk_text_child_anchor_new
(void);</pre>
<p>
Creates a new <a href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>. Usually you would then insert
it into a <a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> with <a href="GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor"><code class="function">gtk_text_buffer_insert_child_anchor()</code></a>.
To perform the creation and insertion in one step, use the
convenience function <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"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <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="id3055571"></a><h3>
<a name="gtk-text-child-anchor-get-widgets"></a>gtk_text_child_anchor_get_widgets ()</h3>
<a class="indexterm" name="id3055584"></a><pre class="programlisting"><a
href="../glib/glib-Doubly-Linked-Lists.html#GList"
>GList</a>* gtk_text_child_anchor_get_widgets
(<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);</pre>
<p>
Gets a list of all widgets anchored at this child anchor.
The returned list should be freed with <a
href="../glib/glib-Doubly-Linked-Lists.html#g-list-free"
><code class="function">g_list_free()</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>anchor</code></em> :</span></td>
<td> a <a href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> list of widgets anchored at <em class="parameter"><code>anchor</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3055671"></a><h3>
<a name="gtk-text-child-anchor-get-deleted"></a>gtk_text_child_anchor_get_deleted ()</h3>
<a class="indexterm" name="id3055685"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_child_anchor_get_deleted
(<a href="GtkTextView.html#GtkTextChildAnchor">GtkTextChildAnchor</a> *anchor);</pre>
<p>
Determines whether a child anchor has been deleted from
the buffer. Keep in mind that the child anchor will be
unreferenced when removed from the buffer, so you need to
hold your own reference (with <a
href="../gobject/gobject-The-Base-Object-Type.html#g-object-ref"
><code class="function">g_object_ref()</code></a>) if you plan
to use this function — otherwise all deleted child anchors
will also be finalized.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<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>
<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 child anchor has been deleted from its buffer
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3055781"></a><h3>
<a name="gtk-text-view-add-child-in-window"></a>gtk_text_view_add_child_in_window ()</h3>
<a class="indexterm" name="id3055794"></a><pre class="programlisting">void gtk_text_view_add_child_in_window
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a href="GtkTextView.html#GtkTextWindowType">GtkTextWindowType</a> which_window,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> xpos,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> ypos);</pre>
<p>
Adds a child at fixed coordinates in one of the text widget's
windows. The window must have nonzero size (see
<a href="GtkTextView.html#gtk-text-view-set-border-window-size"><code class="function">gtk_text_view_set_border_window_size()</code></a>). Note that the child
coordinates are given relative to the <a
href="../gdk/gdk-Windows.html#GdkWindow"
><span class="type">GdkWindow</span></a> in question, and
that these coordinates have no sane relationship to scrolling. When
placing a child in <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, scrolling is
irrelevant, the child floats above all scrollable areas. But when
placing a child in one of the scrollable windows (border windows or
text window), you'll need to compute the child's correct position
in buffer coordinates any time scrolling occurs or buffer changes
occur, and then call <a href="GtkTextView.html#gtk-text-view-move-child"><code class="function">gtk_text_view_move_child()</code></a> to update the
child's position. Unfortunately there's no good way to detect that
scrolling has occurred, using the current API; a possible hack
would be to update all child positions when the scroll adjustments
change or the text buffer changes. See bug 64518 on
bugzilla.gnome.org for status of fixing this issue.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> a <a href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>which_window</code></em> :</span></td>
<td> which window the child should appear in
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>xpos</code></em> :</span></td>
<td> X position of child in window coordinates
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>ypos</code></em> :</span></td>
<td> Y position of child in window coordinates
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056002"></a><h3>
<a name="gtk-text-view-move-child"></a>gtk_text_view_move_child ()</h3>
<a class="indexterm" name="id3056015"></a><pre class="programlisting">void gtk_text_view_move_child (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkWidget.html" title="GtkWidget">GtkWidget</a> *child,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> xpos,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> ypos);</pre>
<p>
Updates the position of a child, as for <a href="GtkTextView.html#gtk-text-view-add-child-in-window"><code class="function">gtk_text_view_add_child_in_window()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>child</code></em> :</span></td>
<td> child widget already added to the text view
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>xpos</code></em> :</span></td>
<td> new X position in window coordinates
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>ypos</code></em> :</span></td>
<td> new Y position in window coordinates
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056150"></a><h3>
<a name="gtk-text-view-set-wrap-mode"></a>gtk_text_view_set_wrap_mode ()</h3>
<a class="indexterm" name="id3056164"></a><pre class="programlisting">void gtk_text_view_set_wrap_mode (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a> wrap_mode);</pre>
<p>
Sets the line wrapping for the view.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>wrap_mode</code></em> :</span></td>
<td> a <a href="GtkTextTag.html#GtkWrapMode"><span class="type">GtkWrapMode</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056250"></a><h3>
<a name="gtk-text-view-get-wrap-mode"></a>gtk_text_view_get_wrap_mode ()</h3>
<a class="indexterm" name="id3056264"></a><pre class="programlisting"><a href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a> gtk_text_view_get_wrap_mode (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the line wrapping for the view.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> the line wrap setting
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056332"></a><h3>
<a name="gtk-text-view-set-editable"></a>gtk_text_view_set_editable ()</h3>
<a class="indexterm" name="id3056346"></a><pre class="programlisting">void gtk_text_view_set_editable (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Sets the default editability of the <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. You can override
this default setting with tags in the buffer, using the "editable"
attribute of 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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em> :</span></td>
<td> whether it's editable
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056435"></a><h3>
<a name="gtk-text-view-get-editable"></a>gtk_text_view_get_editable ()</h3>
<a class="indexterm" name="id3056449"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_get_editable (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Returns the default editability of the <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. Tags in the
buffer may override this setting for some ranges of 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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether text is editable by default
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056526"></a><h3>
<a name="gtk-text-view-set-cursor-visible"></a>gtk_text_view_set_cursor_visible ()</h3>
<a class="indexterm" name="id3056540"></a><pre class="programlisting">void gtk_text_view_set_cursor_visible
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> setting);</pre>
<p>
Toggles whether the insertion point is displayed. A buffer with no editable
text probably shouldn't have a visible cursor, so you may want to turn
the cursor off.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>setting</code></em> :</span></td>
<td> whether to show the insertion cursor
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056622"></a><h3>
<a name="gtk-text-view-get-cursor-visible"></a>gtk_text_view_get_cursor_visible ()</h3>
<a class="indexterm" name="id3056636"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_get_cursor_visible
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Find out whether the cursor is being displayed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether the insertion mark is visible
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056705"></a><h3>
<a name="gtk-text-view-set-overwrite"></a>gtk_text_view_set_overwrite ()</h3>
<a class="indexterm" name="id3056722"></a><pre class="programlisting">void gtk_text_view_set_overwrite (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> overwrite);</pre>
<p>
Changes the <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> overwrite mode.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>overwrite</code></em> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> to turn on overwrite mode, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> to turn it off
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056833"></a><h3>
<a name="gtk-text-view-get-overwrite"></a>gtk_text_view_get_overwrite ()</h3>
<a class="indexterm" name="id3056850"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_get_overwrite (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Returns whether the <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> is in overwrite mode or not.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> whether <em class="parameter"><code>text_view</code></em> is in overwrite mode or not.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3056936"></a><h3>
<a name="gtk-text-view-set-pixels-above-lines"></a>gtk_text_view_set_pixels_above_lines ()</h3>
<a class="indexterm" name="id3056950"></a><pre class="programlisting">void gtk_text_view_set_pixels_above_lines
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> pixels_above_lines);</pre>
<p>
Sets the default number of blank pixels above paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer for <em class="parameter"><code>text_view</code></em> may override the defaults.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixels_above_lines</code></em> :</span></td>
<td> pixels above paragraphs
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057044"></a><h3>
<a name="gtk-text-view-get-pixels-above-lines"></a>gtk_text_view_get_pixels_above_lines ()</h3>
<a class="indexterm" name="id3057058"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_pixels_above_lines
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the default number of pixels to put above paragraphs.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> default number of pixels above paragraphs
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057128"></a><h3>
<a name="gtk-text-view-set-pixels-below-lines"></a>gtk_text_view_set_pixels_below_lines ()</h3>
<a class="indexterm" name="id3057142"></a><pre class="programlisting">void gtk_text_view_set_pixels_below_lines
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> pixels_below_lines);</pre>
<p>
Sets the default number of pixels of blank space
to put below paragraphs in <em class="parameter"><code>text_view</code></em>. May be overridden
by tags applied to <em class="parameter"><code>text_view</code></em>'s 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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixels_below_lines</code></em> :</span></td>
<td> pixels below paragraphs
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057236"></a><h3>
<a name="gtk-text-view-get-pixels-below-lines"></a>gtk_text_view_get_pixels_below_lines ()</h3>
<a class="indexterm" name="id3057250"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_pixels_below_lines
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the value set by <a href="GtkTextView.html#gtk-text-view-set-pixels-below-lines"><code class="function">gtk_text_view_set_pixels_below_lines()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> default number of blank pixels below paragraphs
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057331"></a><h3>
<a name="gtk-text-view-set-pixels-inside-wrap"></a>gtk_text_view_set_pixels_inside_wrap ()</h3>
<a class="indexterm" name="id3057345"></a><pre class="programlisting">void gtk_text_view_set_pixels_inside_wrap
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> pixels_inside_wrap);</pre>
<p>
Sets the default number of pixels of blank space to leave between
display/wrapped lines within a paragraph. May be overridden by
tags in <em class="parameter"><code>text_view</code></em>'s 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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>pixels_inside_wrap</code></em> :</span></td>
<td> default number of pixels between wrapped lines
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057434"></a><h3>
<a name="gtk-text-view-get-pixels-inside-wrap"></a>gtk_text_view_get_pixels_inside_wrap ()</h3>
<a class="indexterm" name="id3057447"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_pixels_inside_wrap
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the value set by <a href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap"><code class="function">gtk_text_view_set_pixels_inside_wrap()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> default number of pixels of blank space between wrapped lines
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057529"></a><h3>
<a name="gtk-text-view-set-justification"></a>gtk_text_view_set_justification ()</h3>
<a class="indexterm" name="id3057543"></a><pre class="programlisting">void gtk_text_view_set_justification (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> justification);</pre>
<p>
Sets the default justification of text in <em class="parameter"><code>text_view</code></em>.
Tags in the view's buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>justification</code></em> :</span></td>
<td> justification
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057630"></a><h3>
<a name="gtk-text-view-get-justification"></a>gtk_text_view_get_justification ()</h3>
<a class="indexterm" name="id3057643"></a><pre class="programlisting"><a href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> gtk_text_view_get_justification
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the default justification of paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> default justification
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057719"></a><h3>
<a name="gtk-text-view-set-left-margin"></a>gtk_text_view_set_left_margin ()</h3>
<a class="indexterm" name="id3057732"></a><pre class="programlisting">void gtk_text_view_set_left_margin (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> left_margin);</pre>
<p>
Sets the default left margin for text in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>left_margin</code></em> :</span></td>
<td> left margin in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057819"></a><h3>
<a name="gtk-text-view-get-left-margin"></a>gtk_text_view_get_left_margin ()</h3>
<a class="indexterm" name="id3057832"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_left_margin (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the default left margin size of paragraphs in the <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> left margin in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3057908"></a><h3>
<a name="gtk-text-view-set-right-margin"></a>gtk_text_view_set_right_margin ()</h3>
<a class="indexterm" name="id3057921"></a><pre class="programlisting">void gtk_text_view_set_right_margin (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> right_margin);</pre>
<p>
Sets the default right margin for text in the text view.
Tags in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>right_margin</code></em> :</span></td>
<td> right margin in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058002"></a><h3>
<a name="gtk-text-view-get-right-margin"></a>gtk_text_view_get_right_margin ()</h3>
<a class="indexterm" name="id3058016"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_right_margin (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the default right margin for text in <em class="parameter"><code>text_view</code></em>. Tags
in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> right margin in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058091"></a><h3>
<a name="gtk-text-view-set-indent"></a>gtk_text_view_set_indent ()</h3>
<a class="indexterm" name="id3058104"></a><pre class="programlisting">void gtk_text_view_set_indent (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> indent);</pre>
<p>
Sets the default indentation for paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>indent</code></em> :</span></td>
<td> indentation in pixels
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058190"></a><h3>
<a name="gtk-text-view-get-indent"></a>gtk_text_view_get_indent ()</h3>
<a class="indexterm" name="id3058204"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> gtk_text_view_get_indent (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the default indentation of paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the view's buffer may override the default.
The indentation may be negative.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> number of pixels of indentation
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058280"></a><h3>
<a name="gtk-text-view-set-tabs"></a>gtk_text_view_set_tabs ()</h3>
<a class="indexterm" name="id3058293"></a><pre class="programlisting">void gtk_text_view_set_tabs (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
>PangoTabArray</a> *tabs);</pre>
<p>
Sets the default tab stops for paragraphs in <em class="parameter"><code>text_view</code></em>.
Tags in the buffer may override the default.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>tabs</code></em> :</span></td>
<td> tabs as a <a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
><span class="type">PangoTabArray</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058388"></a><h3>
<a name="gtk-text-view-get-tabs"></a>gtk_text_view_get_tabs ()</h3>
<a class="indexterm" name="id3058401"></a><pre class="programlisting"><a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
>PangoTabArray</a>* gtk_text_view_get_tabs (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Gets the default tabs for <em class="parameter"><code>text_view</code></em>. Tags in the buffer may
override the defaults. The returned array will be <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if
"standard" (8-space) tabs are used. Free the return value
with <a
href="../pango/pango-Tab-Stops.html#pango-tab-array-free"
><code class="function">pango_tab_array_free()</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>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> copy of default tab array, or <a
href="../glib/glib-Standard-Macros.html#NULL:CAPS"
><code class="literal">NULL</code></a> if "standard" tabs are used; must be freed with <a
href="../pango/pango-Tab-Stops.html#pango-tab-array-free"
><code class="function">pango_tab_array_free()</code></a>.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058522"></a><h3>
<a name="gtk-text-view-set-accepts-tab"></a>gtk_text_view_set_accepts_tab ()</h3>
<a class="indexterm" name="id3058538"></a><pre class="programlisting">void gtk_text_view_set_accepts_tab (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> accepts_tab);</pre>
<p>
Sets the behavior of the text widget when the Tab key is pressed. If <em class="parameter"><code>accepts_tab</code></em>
is <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> a tab character is inserted. If <em class="parameter"><code>accepts_tab</code></em> is <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> the keyboard focus
is moved to the next widget in the focus chain.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> A <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>accepts_tab</code></em> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if pressing the Tab key should insert a tab character, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a>, if pressing the Tab key should move the keyboard focus.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058678"></a><h3>
<a name="gtk-text-view-get-accepts-tab"></a>gtk_text_view_get_accepts_tab ()</h3>
<a class="indexterm" name="id3058693"></a><pre class="programlisting"><a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> gtk_text_view_get_accepts_tab (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Returns whether pressing the Tab key inserts a tab characters.
<a href="GtkTextView.html#gtk-text-view-set-accepts-tab"><code class="function">gtk_text_view_set_accepts_tab()</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>text_view</code></em> :</span></td>
<td> A <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</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 pressing the Tab key inserts a tab character, <a
href="../glib/glib-Standard-Macros.html#FALSE:CAPS"
><code class="literal">FALSE</code></a> if pressing the Tab key moves the keyboard focus.
</td>
</tr>
</tbody>
</table></div>
<p>Since 2.4
</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058799"></a><h3>
<a name="gtk-text-view-get-default-attributes"></a>gtk_text_view_get_default_attributes ()</h3>
<a class="indexterm" name="id3058813"></a><pre class="programlisting"><a href="GtkTextTag.html#GtkTextAttributes">GtkTextAttributes</a>* gtk_text_view_get_default_attributes
(<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *text_view);</pre>
<p>
Obtains a copy of the default text attributes. These are the
attributes used for text unless a tag overrides them.
You'd typically pass the default attributes in to
<a href="gtk-GtkTextIter.html#gtk-text-iter-get-attributes"><code class="function">gtk_text_iter_get_attributes()</code></a> in order to get the
attributes in effect at a given text position.
</p>
<p>
The return value is a copy owned by the caller of this function,
and should be freed.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>text_view</code></em> :</span></td>
<td> a <a href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td>
<td> a new <a href="GtkTextTag.html#GtkTextAttributes"><span class="type">GtkTextAttributes</span></a>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058911"></a><h3>
<a name="GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS"></a>GTK_TEXT_VIEW_PRIORITY_VALIDATE</h3>
<a class="indexterm" name="id3058926"></a><pre class="programlisting">#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5)
</pre>
<p>
The priority at which the text view validates onscreen lines
in an idle job in the background.
</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3058944"></a><h2>Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3058955"></a><h3>
<a name="GtkTextView--accepts-tab"></a>The "<code class="literal">accepts-tab</code>" property</h3>
<a class="indexterm" name="id3058971"></a><pre class="programlisting"> "accepts-tab" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether Tab will result in a tab character being entered.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3058998"></a><h3>
<a name="GtkTextView--buffer"></a>The "<code class="literal">buffer</code>" property</h3>
<a class="indexterm" name="id3059014"></a><pre class="programlisting"> "buffer" <a href="GtkTextBuffer.html" title="GtkTextBuffer">GtkTextBuffer</a> : Read / Write</pre>
<p>The buffer which is displayed.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059037"></a><h3>
<a name="GtkTextView--cursor-visible"></a>The "<code class="literal">cursor-visible</code>" property</h3>
<a class="indexterm" name="id3059053"></a><pre class="programlisting"> "cursor-visible" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>If the insertion cursor is shown.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059080"></a><h3>
<a name="GtkTextView--editable"></a>The "<code class="literal">editable</code>" property</h3>
<a class="indexterm" name="id3059096"></a><pre class="programlisting"> "editable" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether the text can be modified by the user.</p>
<p>Default value: TRUE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059123"></a><h3>
<a name="GtkTextView--indent"></a>The "<code class="literal">indent</code>" property</h3>
<a class="indexterm" name="id3059139"></a><pre class="programlisting"> "indent" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>Amount to indent the paragraph, in pixels.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059168"></a><h3>
<a name="GtkTextView--justification"></a>The "<code class="literal">justification</code>" property</h3>
<a class="indexterm" name="id3059184"></a><pre class="programlisting"> "justification" <a href="gtk-Standard-Enumerations.html#GtkJustification">GtkJustification</a> : Read / Write</pre>
<p>Left, right, or center justification.</p>
<p>Default value: GTK_JUSTIFY_LEFT</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059212"></a><h3>
<a name="GtkTextView--left-margin"></a>The "<code class="literal">left-margin</code>" property</h3>
<a class="indexterm" name="id3059228"></a><pre class="programlisting"> "left-margin" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>Width of the left margin in pixels.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059259"></a><h3>
<a name="GtkTextView--overwrite"></a>The "<code class="literal">overwrite</code>" property</h3>
<a class="indexterm" name="id3059275"></a><pre class="programlisting"> "overwrite" <a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> : Read / Write</pre>
<p>Whether entered text overwrites existing contents.</p>
<p>Default value: FALSE</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059302"></a><h3>
<a name="GtkTextView--pixels-above-lines"></a>The "<code class="literal">pixels-above-lines</code>" property</h3>
<a class="indexterm" name="id3059319"></a><pre class="programlisting"> "pixels-above-lines" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>Pixels of blank space above paragraphs.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059350"></a><h3>
<a name="GtkTextView--pixels-below-lines"></a>The "<code class="literal">pixels-below-lines</code>" property</h3>
<a class="indexterm" name="id3059367"></a><pre class="programlisting"> "pixels-below-lines" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>Pixels of blank space below paragraphs.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059398"></a><h3>
<a name="GtkTextView--pixels-inside-wrap"></a>The "<code class="literal">pixels-inside-wrap</code>" property</h3>
<a class="indexterm" name="id3059415"></a><pre class="programlisting"> "pixels-inside-wrap" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>Pixels of blank space between wrapped lines in a paragraph.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059446"></a><h3>
<a name="GtkTextView--right-margin"></a>The "<code class="literal">right-margin</code>" property</h3>
<a class="indexterm" name="id3059463"></a><pre class="programlisting"> "right-margin" <a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> : Read / Write</pre>
<p>Width of the right margin in pixels.</p>
<p>Allowed values: >= 0</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059493"></a><h3>
<a name="GtkTextView--tabs"></a>The "<code class="literal">tabs</code>" property</h3>
<a class="indexterm" name="id3059510"></a><pre class="programlisting"> "tabs" <a
href="../pango/pango-Tab-Stops.html#PangoTabArray"
>PangoTabArray</a> : Read / Write</pre>
<p>Custom tabs for this text.</p>
</div>
<hr>
<div class="refsect2" lang="en">
<a name="id3059533"></a><h3>
<a name="GtkTextView--wrap-mode"></a>The "<code class="literal">wrap-mode</code>" property</h3>
<a class="indexterm" name="id3059550"></a><pre class="programlisting"> "wrap-mode" <a href="GtkTextTag.html#GtkWrapMode">GtkWrapMode</a> : Read / Write</pre>
<p>Whether to wrap lines never, at word boundaries, or at character boundaries.</p>
<p>Default value: GTK_WRAP_NONE</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3059578"></a><h2>Style Property Details</h2>
<div class="refsect2" lang="en">
<a name="id3059589"></a><h3>
<a name="GtkTextView--error-underline-color"></a>The "<code class="literal">error-underline-color</code>" style property</h3>
<a class="indexterm" name="id3059606"></a><pre class="programlisting"> "error-underline-color" <a
href="../gdk/gdk-Colormaps-and-Colors.html#GdkColor"
>GdkColor</a> : Read</pre>
<p>Color with which to draw error-indication underlines.</p>
</div>
</div>
<div class="refsect1" lang="en">
<a name="id3059631"></a><h2>Signal Details</h2>
<div class="refsect2" lang="en">
<a name="id3059641"></a><h3>
<a name="GtkTextView-backspace"></a>The "backspace" signal</h3>
<a class="indexterm" name="id3059652"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3059720"></a><h3>
<a name="GtkTextView-copy-clipboard"></a>The "copy-clipboard" signal</h3>
<a class="indexterm" name="id3059731"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3059799"></a><h3>
<a name="GtkTextView-cut-clipboard"></a>The "cut-clipboard" signal</h3>
<a class="indexterm" name="id3059809"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3059877"></a><h3>
<a name="GtkTextView-delete-from-cursor"></a>The "delete-from-cursor" signal</h3>
<a class="indexterm" name="id3059888"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="gtk-Standard-Enumerations.html#GtkDeleteType">GtkDeleteType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3059999"></a><h3>
<a name="GtkTextView-insert-at-cursor"></a>The "insert-at-cursor" signal</h3>
<a class="indexterm" name="id3060011"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gchar"
>gchar</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060100"></a><h3>
<a name="GtkTextView-move-cursor"></a>The "move-cursor" signal</h3>
<a class="indexterm" name="id3060110"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *widget,
<a href="gtk-Standard-Enumerations.html#GtkMovementStep">GtkMovementStep</a> *step,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> count,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> extend_selection,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
The ::move-cursor signal is a keybinding signal which gets emitted
when the user initiates a cursor movement.
</p>
<p>
Applications should not connect to it, but may emit it with
<a
href="../gobject/gobject-Signals.html#g-signal-emit-by-name"
><code class="function">g_signal_emit_by_name()</code></a> if they need to control scrolling
programmatically.</p>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>widget</code></em> :</span></td>
<td> the object which received the signal
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>step</code></em> :</span></td>
<td> the granularity of the move, as a <a href="gtk-Standard-Enumerations.html#GtkMovementStep"><span class="type">GtkMovementStep</span></a>
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>count</code></em> :</span></td>
<td> the number of <em class="parameter"><code>step</code></em> units to move
</td>
</tr>
<tr>
<td>
<span class="term"><em class="parameter"><code>extend_selection</code></em> :</span></td>
<td> <a
href="../glib/glib-Standard-Macros.html#TRUE:CAPS"
><code class="literal">TRUE</code></a> if the move should extend the selection
</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="id3060291"></a><h3>
<a name="GtkTextView-move-focus"></a>The "move-focus" signal</h3>
<a class="indexterm" name="id3060301"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="gtk-Standard-Enumerations.html#GtkDirectionType">GtkDirectionType</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060391"></a><h3>
<a name="GtkTextView-move-viewport"></a>The "move-viewport" signal</h3>
<a class="indexterm" name="id3060402"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="gtk-Standard-Enumerations.html#GtkScrollStep">GtkScrollStep</a> *arg1,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060513"></a><h3>
<a name="GtkTextView-page-horizontally"></a>The "page-horizontally" signal</h3>
<a class="indexterm" name="id3060524"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gint"
>gint</a> arg1,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060634"></a><h3>
<a name="GtkTextView-paste-clipboard"></a>The "paste-clipboard" signal</h3>
<a class="indexterm" name="id3060645"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060714"></a><h3>
<a name="GtkTextView-populate-popup"></a>The "populate-popup" signal</h3>
<a class="indexterm" name="id3060724"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="GtkMenu.html" title="GtkMenu">GtkMenu</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>textview</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="id3060813"></a><h3>
<a name="GtkTextView-select-all"></a>The "select-all" signal</h3>
<a class="indexterm" name="id3060823"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gboolean"
>gboolean</a> arg1,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060913"></a><h3>
<a name="GtkTextView-set-anchor"></a>The "set-anchor" signal</h3>
<a class="indexterm" name="id3060923"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3060991"></a><h3>
<a name="GtkTextView-set-scroll-adjustments"></a>The "set-scroll-adjustments" signal</h3>
<a class="indexterm" name="id3061002"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg1,
<a href="GtkAdjustment.html" title="GtkAdjustment">GtkAdjustment</a> *arg2,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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="id3061114"></a><h3>
<a name="GtkTextView-toggle-overwrite"></a>The "toggle-overwrite" signal</h3>
<a class="indexterm" name="id3061125"></a><pre class="programlisting">void user_function (<a href="GtkTextView.html" title="GtkTextView">GtkTextView</a> *textview,
<a
href="../glib/glib-Basic-Types.html#gpointer"
>gpointer</a> user_data) : Run last / Action</pre>
<p>
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td>
<span class="term"><em class="parameter"><code>textview</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>
</div>
<div class="refsect1" lang="en">
<a name="id3061195"></a><h2>See Also</h2>
<p>
<a href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>, <a href="gtk-GtkTextIter.html#GtkTextIter"><span class="type">GtkTextIter</span></a>
</p>
</div>
</div>
</body>
</html>