Initial packaging to sync OBS with git/gerrit
[profile/ivi/gtk3.git] / docs / reference / gtk / html / GtkTextView.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>GtkTextView</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7 <link rel="home" href="index.html" title="GTK+ 3 Reference Manual">
8 <link rel="up" href="TextWidgetObjects.html" title="Multiline Text Editor">
9 <link rel="prev" href="GtkTextTagTable.html" title="GtkTextTagTable">
10 <link rel="next" href="TreeWidgetObjects.html" title="Tree, List and Icon Grid Widgets">
11 <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16 <tr valign="middle">
17 <td><a accesskey="p" href="GtkTextTagTable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18 <td><a accesskey="u" href="TextWidgetObjects.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19 <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20 <th width="100%" align="center">GTK+ 3 Reference Manual</th>
21 <td><a accesskey="n" href="TreeWidgetObjects.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22 </tr>
23 <tr><td colspan="5" class="shortcuts">
24 <a href="#GtkTextView.synopsis" class="shortcut">Top</a>
25                    | 
26                   <a href="#GtkTextView.description" class="shortcut">Description</a>
27                    | 
28                   <a href="#GtkTextView.object-hierarchy" class="shortcut">Object Hierarchy</a>
29                    | 
30                   <a href="#GtkTextView.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
31                    | 
32                   <a href="#GtkTextView.properties" class="shortcut">Properties</a>
33                    | 
34                   <a href="#GtkTextView.style-properties" class="shortcut">Style Properties</a>
35                    | 
36                   <a href="#GtkTextView.signals" class="shortcut">Signals</a>
37 </td></tr>
38 </table>
39 <div class="refentry">
40 <a name="GtkTextView"></a><div class="titlepage"></div>
41 <div class="refnamediv"><table width="100%"><tr>
42 <td valign="top">
43 <h2><span class="refentrytitle"><a name="GtkTextView.top_of_page"></a>GtkTextView</span></h2>
44 <p>GtkTextView — Widget that displays a GtkTextBuffer</p>
45 </td>
46 <td valign="top" align="right"><img src="multiline-text.png"></td>
47 </tr></table></div>
48 <div class="refsynopsisdiv">
49 <a name="GtkTextView.synopsis"></a><h2>Synopsis</h2>
50 <a name="GtkTextChildAnchor"></a><pre class="synopsis">
51 #include &lt;gtk/gtk.h&gt;
52
53 struct              <a class="link" href="GtkTextView.html#GtkTextView-struct" title="struct GtkTextView">GtkTextView</a>;
54 enum                <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType">GtkTextWindowType</a>;
55 <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()">gtk_text_view_new</a>                   (<em class="parameter"><code><span class="type">void</span></code></em>);
56 <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()">gtk_text_view_new_with_buffer</a>       (<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);
57 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()">gtk_text_view_set_buffer</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
58                                                          <em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);
59 <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()">gtk_text_view_get_buffer</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
60 <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-hadjustment" title="gtk_text_view_get_hadjustment ()">gtk_text_view_get_hadjustment</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
61 <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-vadjustment" title="gtk_text_view_get_vadjustment ()">gtk_text_view_get_vadjustment</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
62 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()">gtk_text_view_scroll_to_mark</a>        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
63                                                          <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
64                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
65                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
66                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
67                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);
68 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-iter" title="gtk_text_view_scroll_to_iter ()">gtk_text_view_scroll_to_iter</a>        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
69                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
70                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
71                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
72                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
73                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);
74 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-scroll-mark-onscreen" title="gtk_text_view_scroll_mark_onscreen ()">gtk_text_view_scroll_mark_onscreen</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
75                                                          <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);
76 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-move-mark-onscreen" title="gtk_text_view_move_mark_onscreen ()">gtk_text_view_move_mark_onscreen</a>    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
77                                                          <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);
78 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-place-cursor-onscreen" title="gtk_text_view_place_cursor_onscreen ()">gtk_text_view_place_cursor_onscreen</a> (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
79 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-visible-rect" title="gtk_text_view_get_visible_rect ()">gtk_text_view_get_visible_rect</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
80                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);
81 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-location" title="gtk_text_view_get_iter_location ()">gtk_text_view_get_iter_location</a>     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
82                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
83                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);
84 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-cursor-locations" title="gtk_text_view_get_cursor_locations ()">gtk_text_view_get_cursor_locations</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
85                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
86                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *strong</code></em>,
87                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *weak</code></em>);
88 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-line-at-y" title="gtk_text_view_get_line_at_y ()">gtk_text_view_get_line_at_y</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
89                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
90                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
91                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *line_top</code></em>);
92 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-line-yrange" title="gtk_text_view_get_line_yrange ()">gtk_text_view_get_line_yrange</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
93                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
94                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
95                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);
96 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()">gtk_text_view_get_iter_at_location</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
97                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
98                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
99                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
100 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-position" title="gtk_text_view_get_iter_at_position ()">gtk_text_view_get_iter_at_position</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
101                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
102                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *trailing</code></em>,
103                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
104                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);
105 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()">gtk_text_view_buffer_to_window_coords</a>
106                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
107                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
108                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_x</code></em>,
109                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_y</code></em>,
110                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_x</code></em>,
111                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_y</code></em>);
112 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()">gtk_text_view_window_to_buffer_coords</a>
113                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
114                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
115                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_x</code></em>,
116                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_y</code></em>,
117                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_x</code></em>,
118                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_y</code></em>);
119 <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         <a class="link" href="GtkTextView.html#gtk-text-view-get-window" title="gtk_text_view_get_window ()">gtk_text_view_get_window</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
120                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);
121 <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>   <a class="link" href="GtkTextView.html#gtk-text-view-get-window-type" title="gtk_text_view_get_window_type ()">gtk_text_view_get_window_type</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
122                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);
123 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()">gtk_text_view_set_border_window_size</a>
124                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
125                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
126                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);
127 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-border-window-size" title="gtk_text_view_get_border_window_size ()">gtk_text_view_get_border_window_size</a>
128                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
129                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);
130 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()">gtk_text_view_forward_display_line</a>  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
131                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
132 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-backward-display-line" title="gtk_text_view_backward_display_line ()">gtk_text_view_backward_display_line</a> (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
133                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
134 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line-end" title="gtk_text_view_forward_display_line_end ()">gtk_text_view_forward_display_line_end</a>
135                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
136                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
137 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-backward-display-line-start" title="gtk_text_view_backward_display_line_start ()">gtk_text_view_backward_display_line_start</a>
138                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
139                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
140 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-starts-display-line" title="gtk_text_view_starts_display_line ()">gtk_text_view_starts_display_line</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
141                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);
142 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-move-visually" title="gtk_text_view_move_visually ()">gtk_text_view_move_visually</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
143                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
144                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);
145 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-add-child-at-anchor" title="gtk_text_view_add_child_at_anchor ()">gtk_text_view_add_child_at_anchor</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
146                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
147                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
148 struct              <a class="link" href="GtkTextView.html#GtkTextChildAnchor-struct" title="struct GtkTextChildAnchor">GtkTextChildAnchor</a>;
149 <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> * <a class="link" href="GtkTextView.html#gtk-text-child-anchor-new" title="gtk_text_child_anchor_new ()">gtk_text_child_anchor_new</a>          (<em class="parameter"><code><span class="type">void</span></code></em>);
150 <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             <a class="link" href="GtkTextView.html#gtk-text-child-anchor-get-widgets" title="gtk_text_child_anchor_get_widgets ()">gtk_text_child_anchor_get_widgets</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
151 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-child-anchor-get-deleted" title="gtk_text_child_anchor_get_deleted ()">gtk_text_child_anchor_get_deleted</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);
152 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()">gtk_text_view_add_child_in_window</a>   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
153                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
154                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
155                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
156                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);
157 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()">gtk_text_view_move_child</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
158                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
159                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
160                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);
161 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-wrap-mode" title="gtk_text_view_set_wrap_mode ()">gtk_text_view_set_wrap_mode</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
162                                                          <em class="parameter"><code><a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);
163 <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>         <a class="link" href="GtkTextView.html#gtk-text-view-get-wrap-mode" title="gtk_text_view_get_wrap_mode ()">gtk_text_view_get_wrap_mode</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
164 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-editable" title="gtk_text_view_set_editable ()">gtk_text_view_set_editable</a>          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
165                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
166 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-editable" title="gtk_text_view_get_editable ()">gtk_text_view_get_editable</a>          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
167 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-cursor-visible" title="gtk_text_view_set_cursor_visible ()">gtk_text_view_set_cursor_visible</a>    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
168                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);
169 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-cursor-visible" title="gtk_text_view_get_cursor_visible ()">gtk_text_view_get_cursor_visible</a>    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
170 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-overwrite" title="gtk_text_view_set_overwrite ()">gtk_text_view_set_overwrite</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
171                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);
172 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-overwrite" title="gtk_text_view_get_overwrite ()">gtk_text_view_get_overwrite</a>         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
173 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-above-lines" title="gtk_text_view_set_pixels_above_lines ()">gtk_text_view_set_pixels_above_lines</a>
174                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
175                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_above_lines</code></em>);
176 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-above-lines" title="gtk_text_view_get_pixels_above_lines ()">gtk_text_view_get_pixels_above_lines</a>
177                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
178 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()">gtk_text_view_set_pixels_below_lines</a>
179                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
180                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_below_lines</code></em>);
181 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-below-lines" title="gtk_text_view_get_pixels_below_lines ()">gtk_text_view_get_pixels_below_lines</a>
182                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
183 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()">gtk_text_view_set_pixels_inside_wrap</a>
184                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
185                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_inside_wrap</code></em>);
186 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-pixels-inside-wrap" title="gtk_text_view_get_pixels_inside_wrap ()">gtk_text_view_get_pixels_inside_wrap</a>
187                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
188 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-justification" title="gtk_text_view_set_justification ()">gtk_text_view_set_justification</a>     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
189                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);
190 <a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>    <a class="link" href="GtkTextView.html#gtk-text-view-get-justification" title="gtk_text_view_get_justification ()">gtk_text_view_get_justification</a>     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
191 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-left-margin" title="gtk_text_view_set_left_margin ()">gtk_text_view_set_left_margin</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
192                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left_margin</code></em>);
193 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-left-margin" title="gtk_text_view_get_left_margin ()">gtk_text_view_get_left_margin</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
194 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-right-margin" title="gtk_text_view_set_right_margin ()">gtk_text_view_set_right_margin</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
195                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> right_margin</code></em>);
196 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-right-margin" title="gtk_text_view_get_right_margin ()">gtk_text_view_get_right_margin</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
197 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-indent" title="gtk_text_view_set_indent ()">gtk_text_view_set_indent</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
198                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> indent</code></em>);
199 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                <a class="link" href="GtkTextView.html#gtk-text-view-get-indent" title="gtk_text_view_get_indent ()">gtk_text_view_get_indent</a>            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
200 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-tabs" title="gtk_text_view_set_tabs ()">gtk_text_view_set_tabs</a>              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
201                                                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);
202 <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> *     <a class="link" href="GtkTextView.html#gtk-text-view-get-tabs" title="gtk_text_view_get_tabs ()">gtk_text_view_get_tabs</a>              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
203 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()">gtk_text_view_set_accepts_tab</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
204                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> accepts_tab</code></em>);
205 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-get-accepts-tab" title="gtk_text_view_get_accepts_tab ()">gtk_text_view_get_accepts_tab</a>       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
206 <a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> * <a class="link" href="GtkTextView.html#gtk-text-view-get-default-attributes" title="gtk_text_view_get_default_attributes ()">gtk_text_view_get_default_attributes</a>
207                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
208 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            <a class="link" href="GtkTextView.html#gtk-text-view-im-context-filter-keypress" title="gtk_text_view_im_context_filter_keypress ()">gtk_text_view_im_context_filter_keypress</a>
209                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
210                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);
211 <span class="returnvalue">void</span>                <a class="link" href="GtkTextView.html#gtk-text-view-reset-im-context" title="gtk_text_view_reset_im_context ()">gtk_text_view_reset_im_context</a>      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);
212 #define             <a class="link" href="GtkTextView.html#GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS" title="GTK_TEXT_VIEW_PRIORITY_VALIDATE">GTK_TEXT_VIEW_PRIORITY_VALIDATE</a>
213 </pre>
214 </div>
215 <div class="refsect1">
216 <a name="GtkTextView.object-hierarchy"></a><h2>Object Hierarchy</h2>
217 <pre class="synopsis">
218   <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
219    +----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
220          +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
221                +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
222                      +----GtkTextView
223 </pre>
224 <pre class="synopsis">
225   <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
226    +----GtkTextChildAnchor
227 </pre>
228 </div>
229 <div class="refsect1">
230 <a name="GtkTextView.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
231 <p>
232 GtkTextView implements
233  AtkImplementorIface,  <a class="link" href="GtkBuildable.html" title="GtkBuildable">GtkBuildable</a> and  <a class="link" href="GtkScrollable.html" title="GtkScrollable">GtkScrollable</a>.</p>
234 </div>
235 <div class="refsect1">
236 <a name="GtkTextView.properties"></a><h2>Properties</h2>
237 <pre class="synopsis">
238   "<a class="link" href="GtkTextView.html#GtkTextView--accepts-tab" title='The "accepts-tab" property'>accepts-tab</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
239   "<a class="link" href="GtkTextView.html#GtkTextView--buffer" title='The "buffer" property'>buffer</a>"                   <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>*        : Read / Write
240   "<a class="link" href="GtkTextView.html#GtkTextView--cursor-visible" title='The "cursor-visible" property'>cursor-visible</a>"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
241   "<a class="link" href="GtkTextView.html#GtkTextView--editable" title='The "editable" property'>editable</a>"                 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
242   "<a class="link" href="GtkTextView.html#GtkTextView--im-module" title='The "im-module" property'>im-module</a>"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write
243   "<a class="link" href="GtkTextView.html#GtkTextView--indent" title='The "indent" property'>indent</a>"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
244   "<a class="link" href="GtkTextView.html#GtkTextView--justification" title='The "justification" property'>justification</a>"            <a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a>      : Read / Write
245   "<a class="link" href="GtkTextView.html#GtkTextView--left-margin" title='The "left-margin" property'>left-margin</a>"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
246   "<a class="link" href="GtkTextView.html#GtkTextView--overwrite" title='The "overwrite" property'>overwrite</a>"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write
247   "<a class="link" href="GtkTextView.html#GtkTextView--pixels-above-lines" title='The "pixels-above-lines" property'>pixels-above-lines</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
248   "<a class="link" href="GtkTextView.html#GtkTextView--pixels-below-lines" title='The "pixels-below-lines" property'>pixels-below-lines</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
249   "<a class="link" href="GtkTextView.html#GtkTextView--pixels-inside-wrap" title='The "pixels-inside-wrap" property'>pixels-inside-wrap</a>"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
250   "<a class="link" href="GtkTextView.html#GtkTextView--right-margin" title='The "right-margin" property'>right-margin</a>"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write
251   "<a class="link" href="GtkTextView.html#GtkTextView--tabs" title='The "tabs" property'>tabs</a>"                     <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>*        : Read / Write
252   "<a class="link" href="GtkTextView.html#GtkTextView--wrap-mode" title='The "wrap-mode" property'>wrap-mode</a>"                <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>           : Read / Write
253 </pre>
254 </div>
255 <div class="refsect1">
256 <a name="GtkTextView.style-properties"></a><h2>Style Properties</h2>
257 <pre class="synopsis">
258   "<a class="link" href="GtkTextView.html#GtkTextView--s-error-underline-color" title='The "error-underline-color" style property'>error-underline-color</a>"    <a href="http://developer.gnome.org/devel/gdk/gdk3-Colors.html#GdkColor"><span class="type">GdkColor</span></a>*             : Read
259 </pre>
260 </div>
261 <div class="refsect1">
262 <a name="GtkTextView.signals"></a><h2>Signals</h2>
263 <pre class="synopsis">
264   "<a class="link" href="GtkTextView.html#GtkTextView-backspace" title='The "backspace" signal'>backspace</a>"                                      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
265   "<a class="link" href="GtkTextView.html#GtkTextView-copy-clipboard" title='The "copy-clipboard" signal'>copy-clipboard</a>"                                 : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
266   "<a class="link" href="GtkTextView.html#GtkTextView-cut-clipboard" title='The "cut-clipboard" signal'>cut-clipboard</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
267   "<a class="link" href="GtkTextView.html#GtkTextView-delete-from-cursor" title='The "delete-from-cursor" signal'>delete-from-cursor</a>"                             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
268   "<a class="link" href="GtkTextView.html#GtkTextView-insert-at-cursor" title='The "insert-at-cursor" signal'>insert-at-cursor</a>"                               : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
269   "<a class="link" href="GtkTextView.html#GtkTextView-move-cursor" title='The "move-cursor" signal'>move-cursor</a>"                                    : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
270   "<a class="link" href="GtkTextView.html#GtkTextView-move-viewport" title='The "move-viewport" signal'>move-viewport</a>"                                  : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
271   "<a class="link" href="GtkTextView.html#GtkTextView-paste-clipboard" title='The "paste-clipboard" signal'>paste-clipboard</a>"                                : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
272   "<a class="link" href="GtkTextView.html#GtkTextView-populate-popup" title='The "populate-popup" signal'>populate-popup</a>"                                 : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a>
273   "<a class="link" href="GtkTextView.html#GtkTextView-preedit-changed" title='The "preedit-changed" signal'>preedit-changed</a>"                                : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
274   "<a class="link" href="GtkTextView.html#GtkTextView-select-all" title='The "select-all" signal'>select-all</a>"                                     : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
275   "<a class="link" href="GtkTextView.html#GtkTextView-set-anchor" title='The "set-anchor" signal'>set-anchor</a>"                                     : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
276   "<a class="link" href="GtkTextView.html#GtkTextView-toggle-cursor-visible" title='The "toggle-cursor-visible" signal'>toggle-cursor-visible</a>"                          : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
277   "<a class="link" href="GtkTextView.html#GtkTextView-toggle-overwrite" title='The "toggle-overwrite" signal'>toggle-overwrite</a>"                               : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a>
278 </pre>
279 </div>
280 <div class="refsect1">
281 <a name="GtkTextView.description"></a><h2>Description</h2>
282 <p>
283 You may wish to begin by reading the <a class="link" href="TextWidget.html" title="Text Widget Overview">text widget
284 conceptual overview</a> which gives an overview of all the objects and data
285 types related to the text widget and how they work together.
286 </p>
287 </div>
288 <div class="refsect1">
289 <a name="GtkTextView.details"></a><h2>Details</h2>
290 <div class="refsect2">
291 <a name="GtkTextView-struct"></a><h3>struct GtkTextView</h3>
292 <pre class="programlisting">struct GtkTextView;</pre>
293 </div>
294 <hr>
295 <div class="refsect2">
296 <a name="GtkTextWindowType"></a><h3>enum GtkTextWindowType</h3>
297 <pre class="programlisting">typedef enum {
298   GTK_TEXT_WINDOW_PRIVATE,
299   GTK_TEXT_WINDOW_WIDGET,
300   GTK_TEXT_WINDOW_TEXT,
301   GTK_TEXT_WINDOW_LEFT,
302   GTK_TEXT_WINDOW_RIGHT,
303   GTK_TEXT_WINDOW_TOP,
304   GTK_TEXT_WINDOW_BOTTOM
305 } GtkTextWindowType;
306 </pre>
307 </div>
308 <hr>
309 <div class="refsect2">
310 <a name="gtk-text-view-new"></a><h3>gtk_text_view_new ()</h3>
311 <pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_text_view_new                   (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
312 <p>
313 Creates a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. If you don't call <a class="link" href="GtkTextView.html#gtk-text-view-set-buffer" title="gtk_text_view_set_buffer ()"><code class="function">gtk_text_view_set_buffer()</code></a>
314 before using the text view, an empty default buffer will be created
315 for you. Get the buffer with <a class="link" href="GtkTextView.html#gtk-text-view-get-buffer" title="gtk_text_view_get_buffer ()"><code class="function">gtk_text_view_get_buffer()</code></a>. If you want
316 to specify your own buffer, consider <a class="link" href="GtkTextView.html#gtk-text-view-new-with-buffer" title="gtk_text_view_new_with_buffer ()"><code class="function">gtk_text_view_new_with_buffer()</code></a>.
317 </p>
318 <div class="variablelist"><table border="0">
319 <col align="left" valign="top">
320 <tbody><tr>
321 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
322 <td>a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
323 </td>
324 </tr></tbody>
325 </table></div>
326 </div>
327 <hr>
328 <div class="refsect2">
329 <a name="gtk-text-view-new-with-buffer"></a><h3>gtk_text_view_new_with_buffer ()</h3>
330 <pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_text_view_new_with_buffer       (<em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
331 <p>
332 Creates a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> widget displaying the buffer
333 <em class="parameter"><code>buffer</code></em>. One buffer can be shared among many widgets.
334 <em class="parameter"><code>buffer</code></em> may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to create a default buffer, in which case
335 this function is equivalent to <a class="link" href="GtkTextView.html#gtk-text-view-new" title="gtk_text_view_new ()"><code class="function">gtk_text_view_new()</code></a>. The
336 text view adds its own reference count to the buffer; it does not
337 take over an existing reference.
338 </p>
339 <div class="variablelist"><table border="0">
340 <col align="left" valign="top">
341 <tbody>
342 <tr>
343 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
344 <td>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>
345 </td>
346 </tr>
347 <tr>
348 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
349 <td>a new <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.</td>
350 </tr>
351 </tbody>
352 </table></div>
353 </div>
354 <hr>
355 <div class="refsect2">
356 <a name="gtk-text-view-set-buffer"></a><h3>gtk_text_view_set_buffer ()</h3>
357 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_buffer            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
358                                                          <em class="parameter"><code><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> *buffer</code></em>);</pre>
359 <p>
360 Sets <em class="parameter"><code>buffer</code></em> as the buffer being displayed by <em class="parameter"><code>text_view</code></em>. The previous
361 buffer displayed by the text view is unreferenced, and a reference is
362 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
363 to this function, you must remove that reference yourself; <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
364 will not "adopt" it.
365 </p>
366 <div class="variablelist"><table border="0">
367 <col align="left" valign="top">
368 <tbody>
369 <tr>
370 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
371 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
372 </td>
373 </tr>
374 <tr>
375 <td><p><span class="term"><em class="parameter"><code>buffer</code></em> :</span></p></td>
376 <td>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
377 </td>
378 </tr>
379 </tbody>
380 </table></div>
381 </div>
382 <hr>
383 <div class="refsect2">
384 <a name="gtk-text-view-get-buffer"></a><h3>gtk_text_view_get_buffer ()</h3>
385 <pre class="programlisting"><a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="returnvalue">GtkTextBuffer</span></a> *     gtk_text_view_get_buffer            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
386 <p>
387 Returns the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> being displayed by this text view.
388 The reference count on the buffer is not incremented; the caller
389 of this function won't own a new reference.
390 </p>
391 <div class="variablelist"><table border="0">
392 <col align="left" valign="top">
393 <tbody>
394 <tr>
395 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
396 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
397 </td>
398 </tr>
399 <tr>
400 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
401 <td>a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
402 </td>
403 </tr>
404 </tbody>
405 </table></div>
406 </div>
407 <hr>
408 <div class="refsect2">
409 <a name="gtk-text-view-get-hadjustment"></a><h3>gtk_text_view_get_hadjustment ()</h3>
410 <pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_text_view_get_hadjustment       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
411 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
412 <h3 class="title">Warning</h3>
413 <p><code class="literal">gtk_text_view_get_hadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="GtkScrollable.html#gtk-scrollable-get-hadjustment" title="gtk_scrollable_get_hadjustment ()"><code class="function">gtk_scrollable_get_hadjustment()</code></a></p>
414 </div>
415 <p>
416 Gets the horizontal-scrolling <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
417 </p>
418 <div class="variablelist"><table border="0">
419 <col align="left" valign="top">
420 <tbody>
421 <tr>
422 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
423 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
424 </td>
425 </tr>
426 <tr>
427 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
428 <td>pointer to the horizontal <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
429 </td>
430 </tr>
431 </tbody>
432 </table></div>
433 <p class="since">Since 2.22</p>
434 </div>
435 <hr>
436 <div class="refsect2">
437 <a name="gtk-text-view-get-vadjustment"></a><h3>gtk_text_view_get_vadjustment ()</h3>
438 <pre class="programlisting"><a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="returnvalue">GtkAdjustment</span></a> *     gtk_text_view_get_vadjustment       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
439 <div class="warning" style="margin-left: 0.5in; margin-right: 0.5in;">
440 <h3 class="title">Warning</h3>
441 <p><code class="literal">gtk_text_view_get_vadjustment</code> has been deprecated since version 3.0 and should not be used in newly-written code. Use <a class="link" href="GtkScrollable.html#gtk-scrollable-get-vadjustment" title="gtk_scrollable_get_vadjustment ()"><code class="function">gtk_scrollable_get_vadjustment()</code></a></p>
442 </div>
443 <p>
444 Gets the vertical-scrolling <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>.
445 </p>
446 <div class="variablelist"><table border="0">
447 <col align="left" valign="top">
448 <tbody>
449 <tr>
450 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
451 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
452 </td>
453 </tr>
454 <tr>
455 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
456 <td>pointer to the vertical <a class="link" href="GtkAdjustment.html" title="GtkAdjustment"><span class="type">GtkAdjustment</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
457 </td>
458 </tr>
459 </tbody>
460 </table></div>
461 <p class="since">Since 2.22</p>
462 </div>
463 <hr>
464 <div class="refsect2">
465 <a name="gtk-text-view-scroll-to-mark"></a><h3>gtk_text_view_scroll_to_mark ()</h3>
466 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_scroll_to_mark        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
467                                                          <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>,
468                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
469                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
470                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
471                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);</pre>
472 <p>
473 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
474 indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
475 left or top, 1.0 indicates right or bottom, 0.5 means center. 
476 If <em class="parameter"><code>use_align</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to 
477 get the mark onscreen, possibly not scrolling at all. The effective 
478 screen for purposes of this function is reduced by a margin of size 
479 <em class="parameter"><code>within_margin</code></em>.
480 </p>
481 <div class="variablelist"><table border="0">
482 <col align="left" valign="top">
483 <tbody>
484 <tr>
485 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
486 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
487 </td>
488 </tr>
489 <tr>
490 <td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
491 <td>a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>
492 </td>
493 </tr>
494 <tr>
495 <td><p><span class="term"><em class="parameter"><code>within_margin</code></em> :</span></p></td>
496 <td>margin as a [0.0,0.5) fraction of screen size</td>
497 </tr>
498 <tr>
499 <td><p><span class="term"><em class="parameter"><code>use_align</code></em> :</span></p></td>
500 <td>whether to use alignment arguments (if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, just
501 get the mark onscreen)</td>
502 </tr>
503 <tr>
504 <td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
505 <td>horizontal alignment of mark within visible area</td>
506 </tr>
507 <tr>
508 <td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
509 <td>vertical alignment of mark within visible area</td>
510 </tr>
511 </tbody>
512 </table></div>
513 </div>
514 <hr>
515 <div class="refsect2">
516 <a name="gtk-text-view-scroll-to-iter"></a><h3>gtk_text_view_scroll_to_iter ()</h3>
517 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_scroll_to_iter        (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
518                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
519                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> within_margin</code></em>,
520                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_align</code></em>,
521                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> xalign</code></em>,
522                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> yalign</code></em>);</pre>
523 <p>
524 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
525 indicated by <em class="parameter"><code>xalign</code></em> and <em class="parameter"><code>yalign</code></em>. An alignment of 0.0 indicates
526 left or top, 1.0 indicates right or bottom, 0.5 means center. 
527 If <em class="parameter"><code>use_align</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, the text scrolls the minimal distance to 
528 get the mark onscreen, possibly not scrolling at all. The effective 
529 screen for purposes of this function is reduced by a margin of size 
530 <em class="parameter"><code>within_margin</code></em>.
531 </p>
532 <p>
533 Note that this function uses the currently-computed height of the
534 lines in the text buffer. Line heights are computed in an idle 
535 handler; so this function may not have the desired effect if it's 
536 called before the height computations. To avoid oddness, consider 
537 using <a class="link" href="GtkTextView.html#gtk-text-view-scroll-to-mark" title="gtk_text_view_scroll_to_mark ()"><code class="function">gtk_text_view_scroll_to_mark()</code></a> which saves a point to be 
538 scrolled to after line validation.
539 </p>
540 <div class="variablelist"><table border="0">
541 <col align="left" valign="top">
542 <tbody>
543 <tr>
544 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
545 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
546 </td>
547 </tr>
548 <tr>
549 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
550 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
551 </td>
552 </tr>
553 <tr>
554 <td><p><span class="term"><em class="parameter"><code>within_margin</code></em> :</span></p></td>
555 <td>margin as a [0.0,0.5) fraction of screen size</td>
556 </tr>
557 <tr>
558 <td><p><span class="term"><em class="parameter"><code>use_align</code></em> :</span></p></td>
559 <td>whether to use alignment arguments (if <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>,
560 just get the mark onscreen)</td>
561 </tr>
562 <tr>
563 <td><p><span class="term"><em class="parameter"><code>xalign</code></em> :</span></p></td>
564 <td>horizontal alignment of mark within visible area</td>
565 </tr>
566 <tr>
567 <td><p><span class="term"><em class="parameter"><code>yalign</code></em> :</span></p></td>
568 <td>vertical alignment of mark within visible area</td>
569 </tr>
570 <tr>
571 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
572 <td>
573 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if scrolling occurred</td>
574 </tr>
575 </tbody>
576 </table></div>
577 </div>
578 <hr>
579 <div class="refsect2">
580 <a name="gtk-text-view-scroll-mark-onscreen"></a><h3>gtk_text_view_scroll_mark_onscreen ()</h3>
581 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_scroll_mark_onscreen  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
582                                                          <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
583 <p>
584 Scrolls <em class="parameter"><code>text_view</code></em> the minimum distance such that <em class="parameter"><code>mark</code></em> is contained
585 within the visible area of the widget.
586 </p>
587 <div class="variablelist"><table border="0">
588 <col align="left" valign="top">
589 <tbody>
590 <tr>
591 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
592 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
593 </td>
594 </tr>
595 <tr>
596 <td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
597 <td>a mark in the buffer for <em class="parameter"><code>text_view</code></em>
598 </td>
599 </tr>
600 </tbody>
601 </table></div>
602 </div>
603 <hr>
604 <div class="refsect2">
605 <a name="gtk-text-view-move-mark-onscreen"></a><h3>gtk_text_view_move_mark_onscreen ()</h3>
606 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_move_mark_onscreen    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
607                                                          <em class="parameter"><code><a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a> *mark</code></em>);</pre>
608 <p>
609 Moves a mark within the buffer so that it's
610 located within the currently-visible text area.
611 </p>
612 <div class="variablelist"><table border="0">
613 <col align="left" valign="top">
614 <tbody>
615 <tr>
616 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
617 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
618 </td>
619 </tr>
620 <tr>
621 <td><p><span class="term"><em class="parameter"><code>mark</code></em> :</span></p></td>
622 <td>a <a class="link" href="GtkTextMark.html" title="GtkTextMark"><span class="type">GtkTextMark</span></a>
623 </td>
624 </tr>
625 <tr>
626 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
627 <td>
628 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the mark moved (wasn't already onscreen)</td>
629 </tr>
630 </tbody>
631 </table></div>
632 </div>
633 <hr>
634 <div class="refsect2">
635 <a name="gtk-text-view-place-cursor-onscreen"></a><h3>gtk_text_view_place_cursor_onscreen ()</h3>
636 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_place_cursor_onscreen (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
637 <p>
638 Moves the cursor to the currently visible region of the
639 buffer, it it isn't there already.
640 </p>
641 <div class="variablelist"><table border="0">
642 <col align="left" valign="top">
643 <tbody>
644 <tr>
645 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
646 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
647 </td>
648 </tr>
649 <tr>
650 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
651 <td>
652 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the cursor had to be moved.</td>
653 </tr>
654 </tbody>
655 </table></div>
656 </div>
657 <hr>
658 <div class="refsect2">
659 <a name="gtk-text-view-get-visible-rect"></a><h3>gtk_text_view_get_visible_rect ()</h3>
660 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_visible_rect      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
661                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *visible_rect</code></em>);</pre>
662 <p>
663 Fills <em class="parameter"><code>visible_rect</code></em> with the currently-visible
664 region of the buffer, in buffer coordinates. Convert to window coordinates
665 with <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.
666 </p>
667 <div class="variablelist"><table border="0">
668 <col align="left" valign="top">
669 <tbody>
670 <tr>
671 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
672 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
673 </td>
674 </tr>
675 <tr>
676 <td><p><span class="term"><em class="parameter"><code>visible_rect</code></em> :</span></p></td>
677 <td>rectangle to fill. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
678 </td>
679 </tr>
680 </tbody>
681 </table></div>
682 </div>
683 <hr>
684 <div class="refsect2">
685 <a name="gtk-text-view-get-iter-location"></a><h3>gtk_text_view_get_iter_location ()</h3>
686 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_location     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
687                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
688                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *location</code></em>);</pre>
689 <p>
690 Gets a rectangle which roughly contains the character at <em class="parameter"><code>iter</code></em>.
691 The rectangle position is in buffer coordinates; use
692 <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
693 coordinates to coordinates for one of the windows in the text view.
694 </p>
695 <div class="variablelist"><table border="0">
696 <col align="left" valign="top">
697 <tbody>
698 <tr>
699 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
700 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
701 </td>
702 </tr>
703 <tr>
704 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
705 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
706 </td>
707 </tr>
708 <tr>
709 <td><p><span class="term"><em class="parameter"><code>location</code></em> :</span></p></td>
710 <td>bounds of the character at <em class="parameter"><code>iter</code></em>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
711 </td>
712 </tr>
713 </tbody>
714 </table></div>
715 </div>
716 <hr>
717 <div class="refsect2">
718 <a name="gtk-text-view-get-cursor-locations"></a><h3>gtk_text_view_get_cursor_locations ()</h3>
719 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_cursor_locations  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
720                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
721                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *strong</code></em>,
722                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Points-Rectangles-and-Regions.html#GdkRectangle"><span class="type">GdkRectangle</span></a> *weak</code></em>);</pre>
723 <p>
724 Given an <em class="parameter"><code>iter</code></em> within a text layout, determine the positions of the
725 strong and weak cursors if the insertion point is at that
726 iterator. The position of each cursor is stored as a zero-width
727 rectangle. The strong cursor location is the location where
728 characters of the directionality equal to the base direction of the
729 paragraph are inserted.  The weak cursor location is the location
730 where characters of the directionality opposite to the base
731 direction of the paragraph are inserted.
732 </p>
733 <p>
734 If <em class="parameter"><code>iter</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the actual cursor position is used.
735 </p>
736 <p>
737 Note that if <em class="parameter"><code>iter</code></em> happens to be the actual cursor position, and
738 there is currently an IM preedit sequence being entered, the
739 returned locations will be adjusted to account for the preedit
740 cursor's offset within the preedit sequence.
741 </p>
742 <p>
743 The rectangle position is in buffer coordinates; use
744 <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a> to convert these
745 coordinates to coordinates for one of the windows in the text view.
746 </p>
747 <div class="variablelist"><table border="0">
748 <col align="left" valign="top">
749 <tbody>
750 <tr>
751 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
752 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
753 </td>
754 </tr>
755 <tr>
756 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
757 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
758 </td>
759 </tr>
760 <tr>
761 <td><p><span class="term"><em class="parameter"><code>strong</code></em> :</span></p></td>
762 <td>location to store the strong
763 cursor position (may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>). <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
764 </td>
765 </tr>
766 <tr>
767 <td><p><span class="term"><em class="parameter"><code>weak</code></em> :</span></p></td>
768 <td>location to store the weak
769 cursor position (may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>). <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
770 </td>
771 </tr>
772 </tbody>
773 </table></div>
774 <p class="since">Since 3.0</p>
775 </div>
776 <hr>
777 <div class="refsect2">
778 <a name="gtk-text-view-get-line-at-y"></a><h3>gtk_text_view_get_line_at_y ()</h3>
779 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_line_at_y         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
780                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *target_iter</code></em>,
781                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>,
782                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *line_top</code></em>);</pre>
783 <p>
784 Gets the <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> at the start of the line containing
785 the coordinate <em class="parameter"><code>y</code></em>. <em class="parameter"><code>y</code></em> is in buffer coordinates, convert from
786 window coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
787 If non-<a href="http://library.gnome.org/devel/glib/unstable/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
788 edge of the line.
789 </p>
790 <div class="variablelist"><table border="0">
791 <col align="left" valign="top">
792 <tbody>
793 <tr>
794 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
795 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
796 </td>
797 </tr>
798 <tr>
799 <td><p><span class="term"><em class="parameter"><code>target_iter</code></em> :</span></p></td>
800 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
801 </td>
802 </tr>
803 <tr>
804 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
805 <td>a y coordinate</td>
806 </tr>
807 <tr>
808 <td><p><span class="term"><em class="parameter"><code>line_top</code></em> :</span></p></td>
809 <td>return location for top coordinate of the line. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
810 </td>
811 </tr>
812 </tbody>
813 </table></div>
814 </div>
815 <hr>
816 <div class="refsect2">
817 <a name="gtk-text-view-get-line-yrange"></a><h3>gtk_text_view_get_line_yrange ()</h3>
818 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_line_yrange       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
819                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
820                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *y</code></em>,
821                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *height</code></em>);</pre>
822 <p>
823 Gets the y coordinate of the top of the line containing <em class="parameter"><code>iter</code></em>,
824 and the height of the line. The coordinate is a buffer coordinate;
825 convert to window coordinates with <a class="link" href="GtkTextView.html#gtk-text-view-buffer-to-window-coords" title="gtk_text_view_buffer_to_window_coords ()"><code class="function">gtk_text_view_buffer_to_window_coords()</code></a>.
826 </p>
827 <div class="variablelist"><table border="0">
828 <col align="left" valign="top">
829 <tbody>
830 <tr>
831 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
832 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
833 </td>
834 </tr>
835 <tr>
836 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
837 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
838 </td>
839 </tr>
840 <tr>
841 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
842 <td>return location for a y coordinate. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
843 </td>
844 </tr>
845 <tr>
846 <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
847 <td>return location for a height. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
848 </td>
849 </tr>
850 </tbody>
851 </table></div>
852 </div>
853 <hr>
854 <div class="refsect2">
855 <a name="gtk-text-view-get-iter-at-location"></a><h3>gtk_text_view_get_iter_at_location ()</h3>
856 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_at_location  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
857                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
858                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
859                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
860 <p>
861 Retrieves the iterator at buffer coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer
862 coordinates are coordinates for the entire buffer, not just the
863 currently-displayed portion.  If you have coordinates from an
864 event, you have to convert those to buffer coordinates with
865 <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
866 </p>
867 <div class="variablelist"><table border="0">
868 <col align="left" valign="top">
869 <tbody>
870 <tr>
871 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
872 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
873 </td>
874 </tr>
875 <tr>
876 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
877 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
878 </td>
879 </tr>
880 <tr>
881 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
882 <td>x position, in buffer coordinates</td>
883 </tr>
884 <tr>
885 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
886 <td>y position, in buffer coordinates</td>
887 </tr>
888 </tbody>
889 </table></div>
890 </div>
891 <hr>
892 <div class="refsect2">
893 <a name="gtk-text-view-get-iter-at-position"></a><h3>gtk_text_view_get_iter_at_position ()</h3>
894 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_get_iter_at_position  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
895                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
896                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *trailing</code></em>,
897                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> x</code></em>,
898                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> y</code></em>);</pre>
899 <p>
900 Retrieves the iterator pointing to the character at buffer 
901 coordinates <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em>. Buffer coordinates are coordinates for 
902 the entire buffer, not just the currently-displayed portion.  
903 If you have coordinates from an event, you have to convert 
904 those to buffer coordinates with 
905 <a class="link" href="GtkTextView.html#gtk-text-view-window-to-buffer-coords" title="gtk_text_view_window_to_buffer_coords ()"><code class="function">gtk_text_view_window_to_buffer_coords()</code></a>.
906 </p>
907 <p>
908 Note that this is different from <a class="link" href="GtkTextView.html#gtk-text-view-get-iter-at-location" title="gtk_text_view_get_iter_at_location ()"><code class="function">gtk_text_view_get_iter_at_location()</code></a>,
909 which returns cursor locations, i.e. positions <span class="emphasis"><em>between</em></span>
910 characters.
911 </p>
912 <div class="variablelist"><table border="0">
913 <col align="left" valign="top">
914 <tbody>
915 <tr>
916 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
917 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
918 </td>
919 </tr>
920 <tr>
921 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
922 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>]</span>
923 </td>
924 </tr>
925 <tr>
926 <td><p><span class="term"><em class="parameter"><code>trailing</code></em> :</span></p></td>
927 <td>if non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, location to store an integer indicating where
928 in the grapheme the user clicked. It will either be
929 zero, or the number of characters in the grapheme.
930 0 represents the trailing edge of the grapheme. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
931 </td>
932 </tr>
933 <tr>
934 <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
935 <td>x position, in buffer coordinates</td>
936 </tr>
937 <tr>
938 <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
939 <td>y position, in buffer coordinates</td>
940 </tr>
941 </tbody>
942 </table></div>
943 <p class="since">Since 2.6</p>
944 </div>
945 <hr>
946 <div class="refsect2">
947 <a name="gtk-text-view-buffer-to-window-coords"></a><h3>gtk_text_view_buffer_to_window_coords ()</h3>
948 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_buffer_to_window_coords
949                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
950                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
951                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_x</code></em>,
952                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> buffer_y</code></em>,
953                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_x</code></em>,
954                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *window_y</code></em>);</pre>
955 <p>
956 Converts coordinate (<em class="parameter"><code>buffer_x</code></em>, <em class="parameter"><code>buffer_y</code></em>) to coordinates for the window
957 <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>). 
958 </p>
959 <p>
960 Note that you can't convert coordinates for a nonexisting window (see 
961 <a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).
962 </p>
963 <div class="variablelist"><table border="0">
964 <col align="left" valign="top">
965 <tbody>
966 <tr>
967 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
968 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
969 </td>
970 </tr>
971 <tr>
972 <td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
973 <td>a <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
974 </td>
975 </tr>
976 <tr>
977 <td><p><span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></p></td>
978 <td>buffer x coordinate</td>
979 </tr>
980 <tr>
981 <td><p><span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></p></td>
982 <td>buffer y coordinate</td>
983 </tr>
984 <tr>
985 <td><p><span class="term"><em class="parameter"><code>window_x</code></em> :</span></p></td>
986 <td>window x coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
987 </td>
988 </tr>
989 <tr>
990 <td><p><span class="term"><em class="parameter"><code>window_y</code></em> :</span></p></td>
991 <td>window y coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
992 </td>
993 </tr>
994 </tbody>
995 </table></div>
996 </div>
997 <hr>
998 <div class="refsect2">
999 <a name="gtk-text-view-window-to-buffer-coords"></a><h3>gtk_text_view_window_to_buffer_coords ()</h3>
1000 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_window_to_buffer_coords
1001                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1002                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>,
1003                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_x</code></em>,
1004                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> window_y</code></em>,
1005                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_x</code></em>,
1006                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *buffer_y</code></em>);</pre>
1007 <p>
1008 Converts coordinates on the window identified by <em class="parameter"><code>win</code></em> to buffer
1009 coordinates, storing the result in (<em class="parameter"><code>buffer_x</code></em>,<em class="parameter"><code>buffer_y</code></em>).
1010 </p>
1011 <p>
1012 Note that you can't convert coordinates for a nonexisting window (see 
1013 <a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>).
1014 </p>
1015 <div class="variablelist"><table border="0">
1016 <col align="left" valign="top">
1017 <tbody>
1018 <tr>
1019 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1020 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1021 </td>
1022 </tr>
1023 <tr>
1024 <td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
1025 <td>a <a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> except <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>
1026 </td>
1027 </tr>
1028 <tr>
1029 <td><p><span class="term"><em class="parameter"><code>window_x</code></em> :</span></p></td>
1030 <td>window x coordinate</td>
1031 </tr>
1032 <tr>
1033 <td><p><span class="term"><em class="parameter"><code>window_y</code></em> :</span></p></td>
1034 <td>window y coordinate</td>
1035 </tr>
1036 <tr>
1037 <td><p><span class="term"><em class="parameter"><code>buffer_x</code></em> :</span></p></td>
1038 <td>buffer x coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1039 </td>
1040 </tr>
1041 <tr>
1042 <td><p><span class="term"><em class="parameter"><code>buffer_y</code></em> :</span></p></td>
1043 <td>buffer y coordinate return location or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Parameter for returning results. Default is transfer full."><span class="acronym">out</span></acronym>][<acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>]</span>
1044 </td>
1045 </tr>
1046 </tbody>
1047 </table></div>
1048 </div>
1049 <hr>
1050 <div class="refsect2">
1051 <a name="gtk-text-view-get-window"></a><h3>gtk_text_view_get_window ()</h3>
1052 <pre class="programlisting"><a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="returnvalue">GdkWindow</span></a> *         gtk_text_view_get_window            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1053                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> win</code></em>);</pre>
1054 <p>
1055 Retrieves the <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> corresponding to an area of the text view;
1056 possible windows include the overall widget window, child windows
1057 on the left, right, top, bottom, and the window that displays the
1058 text buffer. Windows are <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and nonexistent if their width or
1059 height is 0, and are nonexistent before the widget has been
1060 realized.
1061 </p>
1062 <div class="variablelist"><table border="0">
1063 <col align="left" valign="top">
1064 <tbody>
1065 <tr>
1066 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1067 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1068 </td>
1069 </tr>
1070 <tr>
1071 <td><p><span class="term"><em class="parameter"><code>win</code></em> :</span></p></td>
1072 <td>window to get</td>
1073 </tr>
1074 <tr>
1075 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1076 <td>a <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a>, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
1077 </td>
1078 </tr>
1079 </tbody>
1080 </table></div>
1081 </div>
1082 <hr>
1083 <div class="refsect2">
1084 <a name="gtk-text-view-get-window-type"></a><h3>gtk_text_view_get_window_type ()</h3>
1085 <pre class="programlisting"><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="returnvalue">GtkTextWindowType</span></a>   gtk_text_view_get_window_type       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1086                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> *window</code></em>);</pre>
1087 <p>
1088 Usually used to find out which window an event corresponds to.
1089 If you connect to an event signal on <em class="parameter"><code>text_view</code></em>, this function
1090 should be called on <code class="literal">event-&gt;window</code> to
1091 see which window it was.
1092 </p>
1093 <div class="variablelist"><table border="0">
1094 <col align="left" valign="top">
1095 <tbody>
1096 <tr>
1097 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1098 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1099 </td>
1100 </tr>
1101 <tr>
1102 <td><p><span class="term"><em class="parameter"><code>window</code></em> :</span></p></td>
1103 <td>a window type</td>
1104 </tr>
1105 <tr>
1106 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1107 <td>the window type.</td>
1108 </tr>
1109 </tbody>
1110 </table></div>
1111 </div>
1112 <hr>
1113 <div class="refsect2">
1114 <a name="gtk-text-view-set-border-window-size"></a><h3>gtk_text_view_set_border_window_size ()</h3>
1115 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_border_window_size
1116                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1117                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>,
1118                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> size</code></em>);</pre>
1119 <p>
1120 Sets the width of <code class="literal">GTK_TEXT_WINDOW_LEFT</code> or <code class="literal">GTK_TEXT_WINDOW_RIGHT</code>,
1121 or the height of <code class="literal">GTK_TEXT_WINDOW_TOP</code> or <code class="literal">GTK_TEXT_WINDOW_BOTTOM</code>.
1122 Automatically destroys the corresponding window if the size is set
1123 to 0, and creates the window if the size is set to non-zero.  This
1124 function can only be used for the "border windows," it doesn't work
1125 with <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, <span class="type">GTK_TEXT_WINDOW_TEXT</span>, or
1126 <span class="type">GTK_TEXT_WINDOW_PRIVATE</span>.
1127 </p>
1128 <div class="variablelist"><table border="0">
1129 <col align="left" valign="top">
1130 <tbody>
1131 <tr>
1132 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1133 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1134 </td>
1135 </tr>
1136 <tr>
1137 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1138 <td>window to affect</td>
1139 </tr>
1140 <tr>
1141 <td><p><span class="term"><em class="parameter"><code>size</code></em> :</span></p></td>
1142 <td>width or height of the window</td>
1143 </tr>
1144 </tbody>
1145 </table></div>
1146 </div>
1147 <hr>
1148 <div class="refsect2">
1149 <a name="gtk-text-view-get-border-window-size"></a><h3>gtk_text_view_get_border_window_size ()</h3>
1150 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_border_window_size
1151                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1152                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> type</code></em>);</pre>
1153 <p>
1154 Gets the width of the specified border window. See
1155 <a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>.
1156 </p>
1157 <div class="variablelist"><table border="0">
1158 <col align="left" valign="top">
1159 <tbody>
1160 <tr>
1161 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1162 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1163 </td>
1164 </tr>
1165 <tr>
1166 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
1167 <td>window to return size from</td>
1168 </tr>
1169 <tr>
1170 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1171 <td>width of window</td>
1172 </tr>
1173 </tbody>
1174 </table></div>
1175 </div>
1176 <hr>
1177 <div class="refsect2">
1178 <a name="gtk-text-view-forward-display-line"></a><h3>gtk_text_view_forward_display_line ()</h3>
1179 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_forward_display_line  (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1180                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
1181 <p>
1182 Moves the given <em class="parameter"><code>iter</code></em> forward by one display (wrapped) line.
1183 A display line is different from a paragraph. Paragraphs are
1184 separated by newlines or other paragraph separator characters.
1185 Display lines are created by line-wrapping a paragraph. If
1186 wrapping is turned off, display lines and paragraphs will be the
1187 same. Display lines are divided differently for each view, since
1188 they depend on the view's width; paragraphs are the same in all
1189 views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
1190 </p>
1191 <div class="variablelist"><table border="0">
1192 <col align="left" valign="top">
1193 <tbody>
1194 <tr>
1195 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1196 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1197 </td>
1198 </tr>
1199 <tr>
1200 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
1201 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
1202 </td>
1203 </tr>
1204 <tr>
1205 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1206 <td>
1207 <a href="http://library.gnome.org/devel/glib/unstable/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>
1208 </tr>
1209 </tbody>
1210 </table></div>
1211 </div>
1212 <hr>
1213 <div class="refsect2">
1214 <a name="gtk-text-view-backward-display-line"></a><h3>gtk_text_view_backward_display_line ()</h3>
1215 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_backward_display_line (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1216                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
1217 <p>
1218 Moves the given <em class="parameter"><code>iter</code></em> backward by one display (wrapped) line.
1219 A display line is different from a paragraph. Paragraphs are
1220 separated by newlines or other paragraph separator characters.
1221 Display lines are created by line-wrapping a paragraph. If
1222 wrapping is turned off, display lines and paragraphs will be the
1223 same. Display lines are divided differently for each view, since
1224 they depend on the view's width; paragraphs are the same in all
1225 views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
1226 </p>
1227 <div class="variablelist"><table border="0">
1228 <col align="left" valign="top">
1229 <tbody>
1230 <tr>
1231 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1232 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1233 </td>
1234 </tr>
1235 <tr>
1236 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
1237 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
1238 </td>
1239 </tr>
1240 <tr>
1241 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1242 <td>
1243 <a href="http://library.gnome.org/devel/glib/unstable/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>
1244 </tr>
1245 </tbody>
1246 </table></div>
1247 </div>
1248 <hr>
1249 <div class="refsect2">
1250 <a name="gtk-text-view-forward-display-line-end"></a><h3>gtk_text_view_forward_display_line_end ()</h3>
1251 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_forward_display_line_end
1252                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1253                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
1254 <p>
1255 Moves the given <em class="parameter"><code>iter</code></em> forward to the next display line end.
1256 A display line is different from a paragraph. Paragraphs are
1257 separated by newlines or other paragraph separator characters.
1258 Display lines are created by line-wrapping a paragraph. If
1259 wrapping is turned off, display lines and paragraphs will be the
1260 same. Display lines are divided differently for each view, since
1261 they depend on the view's width; paragraphs are the same in all
1262 views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
1263 </p>
1264 <div class="variablelist"><table border="0">
1265 <col align="left" valign="top">
1266 <tbody>
1267 <tr>
1268 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1269 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1270 </td>
1271 </tr>
1272 <tr>
1273 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
1274 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
1275 </td>
1276 </tr>
1277 <tr>
1278 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1279 <td>
1280 <a href="http://library.gnome.org/devel/glib/unstable/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>
1281 </tr>
1282 </tbody>
1283 </table></div>
1284 </div>
1285 <hr>
1286 <div class="refsect2">
1287 <a name="gtk-text-view-backward-display-line-start"></a><h3>gtk_text_view_backward_display_line_start ()</h3>
1288 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_backward_display_line_start
1289                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1290                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
1291 <p>
1292 Moves the given <em class="parameter"><code>iter</code></em> backward to the next display line start.
1293 A display line is different from a paragraph. Paragraphs are
1294 separated by newlines or other paragraph separator characters.
1295 Display lines are created by line-wrapping a paragraph. If
1296 wrapping is turned off, display lines and paragraphs will be the
1297 same. Display lines are divided differently for each view, since
1298 they depend on the view's width; paragraphs are the same in all
1299 views, since they depend on the contents of the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>.
1300 </p>
1301 <div class="variablelist"><table border="0">
1302 <col align="left" valign="top">
1303 <tbody>
1304 <tr>
1305 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1306 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1307 </td>
1308 </tr>
1309 <tr>
1310 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
1311 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
1312 </td>
1313 </tr>
1314 <tr>
1315 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1316 <td>
1317 <a href="http://library.gnome.org/devel/glib/unstable/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>
1318 </tr>
1319 </tbody>
1320 </table></div>
1321 </div>
1322 <hr>
1323 <div class="refsect2">
1324 <a name="gtk-text-view-starts-display-line"></a><h3>gtk_text_view_starts_display_line ()</h3>
1325 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_starts_display_line   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1326                                                          <em class="parameter"><code>const <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>);</pre>
1327 <p>
1328 Determines whether <em class="parameter"><code>iter</code></em> is at the start of a display line.
1329 See <a class="link" href="GtkTextView.html#gtk-text-view-forward-display-line" title="gtk_text_view_forward_display_line ()"><code class="function">gtk_text_view_forward_display_line()</code></a> for an explanation of
1330 display lines vs. paragraphs.
1331 </p>
1332 <div class="variablelist"><table border="0">
1333 <col align="left" valign="top">
1334 <tbody>
1335 <tr>
1336 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1337 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1338 </td>
1339 </tr>
1340 <tr>
1341 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
1342 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
1343 </td>
1344 </tr>
1345 <tr>
1346 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1347 <td>
1348 <a href="http://library.gnome.org/devel/glib/unstable/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>
1349 </tr>
1350 </tbody>
1351 </table></div>
1352 </div>
1353 <hr>
1354 <div class="refsect2">
1355 <a name="gtk-text-view-move-visually"></a><h3>gtk_text_view_move_visually ()</h3>
1356 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_move_visually         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1357                                                          <em class="parameter"><code><a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a> *iter</code></em>,
1358                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> count</code></em>);</pre>
1359 <p>
1360 Move the iterator a given number of characters visually, treating
1361 it as the strong cursor position. If <em class="parameter"><code>count</code></em> is positive, then the
1362 new strong cursor position will be <em class="parameter"><code>count</code></em> positions to the right of
1363 the old cursor position. If <em class="parameter"><code>count</code></em> is negative then the new strong
1364 cursor position will be <em class="parameter"><code>count</code></em> positions to the left of the old
1365 cursor position.
1366 </p>
1367 <p>
1368 In the presence of bi-directional text, the correspondence
1369 between logical and visual order will depend on the direction
1370 of the current run, and there may be jumps when the cursor
1371 is moved off of the end of a run.
1372 </p>
1373 <div class="variablelist"><table border="0">
1374 <col align="left" valign="top">
1375 <tbody>
1376 <tr>
1377 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1378 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1379 </td>
1380 </tr>
1381 <tr>
1382 <td><p><span class="term"><em class="parameter"><code>iter</code></em> :</span></p></td>
1383 <td>a <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
1384 </td>
1385 </tr>
1386 <tr>
1387 <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
1388 <td>number of characters to move (negative moves left,
1389 positive moves right)</td>
1390 </tr>
1391 <tr>
1392 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1393 <td>
1394 <a href="http://library.gnome.org/devel/glib/unstable/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>
1395 </tr>
1396 </tbody>
1397 </table></div>
1398 </div>
1399 <hr>
1400 <div class="refsect2">
1401 <a name="gtk-text-view-add-child-at-anchor"></a><h3>gtk_text_view_add_child_at_anchor ()</h3>
1402 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_add_child_at_anchor   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1403                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
1404                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
1405 <p>
1406 Adds a child widget in the text buffer, at the given <em class="parameter"><code>anchor</code></em>.
1407 </p>
1408 <div class="variablelist"><table border="0">
1409 <col align="left" valign="top">
1410 <tbody>
1411 <tr>
1412 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1413 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1414 </td>
1415 </tr>
1416 <tr>
1417 <td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
1418 <td>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
1419 </td>
1420 </tr>
1421 <tr>
1422 <td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
1423 <td>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> in the <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> for <em class="parameter"><code>text_view</code></em>
1424 </td>
1425 </tr>
1426 </tbody>
1427 </table></div>
1428 </div>
1429 <hr>
1430 <div class="refsect2">
1431 <a name="GtkTextChildAnchor-struct"></a><h3>struct GtkTextChildAnchor</h3>
1432 <pre class="programlisting">struct GtkTextChildAnchor;</pre>
1433 <p>
1434 A <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> is a spot in the buffer where child widgets can
1435 be "anchored" (inserted inline, as if they were characters). The anchor
1436 can have multiple widgets anchored, to allow for multiple views.
1437 </p>
1438 </div>
1439 <hr>
1440 <div class="refsect2">
1441 <a name="gtk-text-child-anchor-new"></a><h3>gtk_text_child_anchor_new ()</h3>
1442 <pre class="programlisting"><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="returnvalue">GtkTextChildAnchor</span></a> * gtk_text_child_anchor_new          (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
1443 <p>
1444 Creates a new <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>. Usually you would then insert
1445 it into a <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a> with <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-insert-child-anchor" title="gtk_text_buffer_insert_child_anchor ()"><code class="function">gtk_text_buffer_insert_child_anchor()</code></a>.
1446 To perform the creation and insertion in one step, use the
1447 convenience function <a class="link" href="GtkTextBuffer.html#gtk-text-buffer-create-child-anchor" title="gtk_text_buffer_create_child_anchor ()"><code class="function">gtk_text_buffer_create_child_anchor()</code></a>.
1448 </p>
1449 <div class="variablelist"><table border="0">
1450 <col align="left" valign="top">
1451 <tbody><tr>
1452 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1453 <td>a new <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
1454 </td>
1455 </tr></tbody>
1456 </table></div>
1457 </div>
1458 <hr>
1459 <div class="refsect2">
1460 <a name="gtk-text-child-anchor-get-widgets"></a><h3>gtk_text_child_anchor_get_widgets ()</h3>
1461 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#GList"><span class="returnvalue">GList</span></a> *             gtk_text_child_anchor_get_widgets   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
1462 <p>
1463 Gets a list of all widgets anchored at this child anchor.
1464 The returned list should be freed with <a href="http://library.gnome.org/devel/glib/unstable/glib-Doubly-Linked-Lists.html#g-list-free"><code class="function">g_list_free()</code></a>.
1465 </p>
1466 <div class="variablelist"><table border="0">
1467 <col align="left" valign="top">
1468 <tbody>
1469 <tr>
1470 <td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
1471 <td>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
1472 </td>
1473 </tr>
1474 <tr>
1475 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1476 <td>list of widgets anchored at <em class="parameter"><code>anchor</code></em>. <span class="annotation">[<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> GtkWidget][<acronym title="Free data container after the code is done."><span class="acronym">transfer container</span></acronym>]</span>
1477 </td>
1478 </tr>
1479 </tbody>
1480 </table></div>
1481 </div>
1482 <hr>
1483 <div class="refsect2">
1484 <a name="gtk-text-child-anchor-get-deleted"></a><h3>gtk_text_child_anchor_get_deleted ()</h3>
1485 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_child_anchor_get_deleted   (<em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a> *anchor</code></em>);</pre>
1486 <p>
1487 Determines whether a child anchor has been deleted from
1488 the buffer. Keep in mind that the child anchor will be
1489 unreferenced when removed from the buffer, so you need to
1490 hold your own reference (with <a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#g-object-ref"><code class="function">g_object_ref()</code></a>) if you plan
1491 to use this function — otherwise all deleted child anchors
1492 will also be finalized.
1493 </p>
1494 <div class="variablelist"><table border="0">
1495 <col align="left" valign="top">
1496 <tbody>
1497 <tr>
1498 <td><p><span class="term"><em class="parameter"><code>anchor</code></em> :</span></p></td>
1499 <td>a <a class="link" href="GtkTextView.html#GtkTextChildAnchor"><span class="type">GtkTextChildAnchor</span></a>
1500 </td>
1501 </tr>
1502 <tr>
1503 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1504 <td>
1505 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the child anchor has been deleted from its buffer</td>
1506 </tr>
1507 </tbody>
1508 </table></div>
1509 </div>
1510 <hr>
1511 <div class="refsect2">
1512 <a name="gtk-text-view-add-child-in-window"></a><h3>gtk_text_view_add_child_in_window ()</h3>
1513 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_add_child_in_window   (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1514                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
1515                                                          <em class="parameter"><code><a class="link" href="GtkTextView.html#GtkTextWindowType" title="enum GtkTextWindowType"><span class="type">GtkTextWindowType</span></a> which_window</code></em>,
1516                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
1517                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);</pre>
1518 <p>
1519 Adds a child at fixed coordinates in one of the text widget's
1520 windows.
1521 </p>
1522 <p>
1523 The window must have nonzero size (see
1524 <a class="link" href="GtkTextView.html#gtk-text-view-set-border-window-size" title="gtk_text_view_set_border_window_size ()"><code class="function">gtk_text_view_set_border_window_size()</code></a>). Note that the child
1525 coordinates are given relative to the <a href="http://developer.gnome.org/devel/gdk/gdk3-Windows.html#GdkWindow"><span class="type">GdkWindow</span></a> in question, and
1526 that these coordinates have no sane relationship to scrolling. When
1527 placing a child in <span class="type">GTK_TEXT_WINDOW_WIDGET</span>, scrolling is
1528 irrelevant, the child floats above all scrollable areas. But when
1529 placing a child in one of the scrollable windows (border windows or
1530 text window), you'll need to compute the child's correct position
1531 in buffer coordinates any time scrolling occurs or buffer changes
1532 occur, and then call <a class="link" href="GtkTextView.html#gtk-text-view-move-child" title="gtk_text_view_move_child ()"><code class="function">gtk_text_view_move_child()</code></a> to update the
1533 child's position.
1534 </p>
1535 <div class="variablelist"><table border="0">
1536 <col align="left" valign="top">
1537 <tbody>
1538 <tr>
1539 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1540 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1541 </td>
1542 </tr>
1543 <tr>
1544 <td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
1545 <td>a <a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a>
1546 </td>
1547 </tr>
1548 <tr>
1549 <td><p><span class="term"><em class="parameter"><code>which_window</code></em> :</span></p></td>
1550 <td>which window the child should appear in</td>
1551 </tr>
1552 <tr>
1553 <td><p><span class="term"><em class="parameter"><code>xpos</code></em> :</span></p></td>
1554 <td>X position of child in window coordinates</td>
1555 </tr>
1556 <tr>
1557 <td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
1558 <td>Y position of child in window coordinates</td>
1559 </tr>
1560 </tbody>
1561 </table></div>
1562 </div>
1563 <hr>
1564 <div class="refsect2">
1565 <a name="gtk-text-view-move-child"></a><h3>gtk_text_view_move_child ()</h3>
1566 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_move_child            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1567                                                          <em class="parameter"><code><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="type">GtkWidget</span></a> *child</code></em>,
1568                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> xpos</code></em>,
1569                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ypos</code></em>);</pre>
1570 <p>
1571 Updates the position of a child, as for <a class="link" href="GtkTextView.html#gtk-text-view-add-child-in-window" title="gtk_text_view_add_child_in_window ()"><code class="function">gtk_text_view_add_child_in_window()</code></a>.
1572 </p>
1573 <div class="variablelist"><table border="0">
1574 <col align="left" valign="top">
1575 <tbody>
1576 <tr>
1577 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1578 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1579 </td>
1580 </tr>
1581 <tr>
1582 <td><p><span class="term"><em class="parameter"><code>child</code></em> :</span></p></td>
1583 <td>child widget already added to the text view</td>
1584 </tr>
1585 <tr>
1586 <td><p><span class="term"><em class="parameter"><code>xpos</code></em> :</span></p></td>
1587 <td>new X position in window coordinates</td>
1588 </tr>
1589 <tr>
1590 <td><p><span class="term"><em class="parameter"><code>ypos</code></em> :</span></p></td>
1591 <td>new Y position in window coordinates</td>
1592 </tr>
1593 </tbody>
1594 </table></div>
1595 </div>
1596 <hr>
1597 <div class="refsect2">
1598 <a name="gtk-text-view-set-wrap-mode"></a><h3>gtk_text_view_set_wrap_mode ()</h3>
1599 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_wrap_mode         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1600                                                          <em class="parameter"><code><a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a> wrap_mode</code></em>);</pre>
1601 <p>
1602 Sets the line wrapping for the view.
1603 </p>
1604 <div class="variablelist"><table border="0">
1605 <col align="left" valign="top">
1606 <tbody>
1607 <tr>
1608 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1609 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1610 </td>
1611 </tr>
1612 <tr>
1613 <td><p><span class="term"><em class="parameter"><code>wrap_mode</code></em> :</span></p></td>
1614 <td>a <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>
1615 </td>
1616 </tr>
1617 </tbody>
1618 </table></div>
1619 </div>
1620 <hr>
1621 <div class="refsect2">
1622 <a name="gtk-text-view-get-wrap-mode"></a><h3>gtk_text_view_get_wrap_mode ()</h3>
1623 <pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="returnvalue">GtkWrapMode</span></a>         gtk_text_view_get_wrap_mode         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1624 <p>
1625 Gets the line wrapping for the view.
1626 </p>
1627 <div class="variablelist"><table border="0">
1628 <col align="left" valign="top">
1629 <tbody>
1630 <tr>
1631 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1632 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1633 </td>
1634 </tr>
1635 <tr>
1636 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1637 <td>the line wrap setting</td>
1638 </tr>
1639 </tbody>
1640 </table></div>
1641 </div>
1642 <hr>
1643 <div class="refsect2">
1644 <a name="gtk-text-view-set-editable"></a><h3>gtk_text_view_set_editable ()</h3>
1645 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_editable          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1646                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
1647 <p>
1648 Sets the default editability of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. You can override
1649 this default setting with tags in the buffer, using the "editable"
1650 attribute of tags.
1651 </p>
1652 <div class="variablelist"><table border="0">
1653 <col align="left" valign="top">
1654 <tbody>
1655 <tr>
1656 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1657 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1658 </td>
1659 </tr>
1660 <tr>
1661 <td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
1662 <td>whether it's editable</td>
1663 </tr>
1664 </tbody>
1665 </table></div>
1666 </div>
1667 <hr>
1668 <div class="refsect2">
1669 <a name="gtk-text-view-get-editable"></a><h3>gtk_text_view_get_editable ()</h3>
1670 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_editable          (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1671 <p>
1672 Returns the default editability of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>. Tags in the
1673 buffer may override this setting for some ranges of text.
1674 </p>
1675 <div class="variablelist"><table border="0">
1676 <col align="left" valign="top">
1677 <tbody>
1678 <tr>
1679 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1680 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1681 </td>
1682 </tr>
1683 <tr>
1684 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1685 <td>whether text is editable by default</td>
1686 </tr>
1687 </tbody>
1688 </table></div>
1689 </div>
1690 <hr>
1691 <div class="refsect2">
1692 <a name="gtk-text-view-set-cursor-visible"></a><h3>gtk_text_view_set_cursor_visible ()</h3>
1693 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_cursor_visible    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1694                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> setting</code></em>);</pre>
1695 <p>
1696 Toggles whether the insertion point is displayed. A buffer with no editable
1697 text probably shouldn't have a visible cursor, so you may want to turn
1698 the cursor off.
1699 </p>
1700 <div class="variablelist"><table border="0">
1701 <col align="left" valign="top">
1702 <tbody>
1703 <tr>
1704 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1705 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1706 </td>
1707 </tr>
1708 <tr>
1709 <td><p><span class="term"><em class="parameter"><code>setting</code></em> :</span></p></td>
1710 <td>whether to show the insertion cursor</td>
1711 </tr>
1712 </tbody>
1713 </table></div>
1714 </div>
1715 <hr>
1716 <div class="refsect2">
1717 <a name="gtk-text-view-get-cursor-visible"></a><h3>gtk_text_view_get_cursor_visible ()</h3>
1718 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_cursor_visible    (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1719 <p>
1720 Find out whether the cursor is being displayed.
1721 </p>
1722 <div class="variablelist"><table border="0">
1723 <col align="left" valign="top">
1724 <tbody>
1725 <tr>
1726 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1727 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1728 </td>
1729 </tr>
1730 <tr>
1731 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1732 <td>whether the insertion mark is visible</td>
1733 </tr>
1734 </tbody>
1735 </table></div>
1736 </div>
1737 <hr>
1738 <div class="refsect2">
1739 <a name="gtk-text-view-set-overwrite"></a><h3>gtk_text_view_set_overwrite ()</h3>
1740 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_overwrite         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1741                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> overwrite</code></em>);</pre>
1742 <p>
1743 Changes the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> overwrite mode.
1744 </p>
1745 <div class="variablelist"><table border="0">
1746 <col align="left" valign="top">
1747 <tbody>
1748 <tr>
1749 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1750 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1751 </td>
1752 </tr>
1753 <tr>
1754 <td><p><span class="term"><em class="parameter"><code>overwrite</code></em> :</span></p></td>
1755 <td>
1756 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to turn on overwrite mode, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to turn it off</td>
1757 </tr>
1758 </tbody>
1759 </table></div>
1760 <p class="since">Since 2.4</p>
1761 </div>
1762 <hr>
1763 <div class="refsect2">
1764 <a name="gtk-text-view-get-overwrite"></a><h3>gtk_text_view_get_overwrite ()</h3>
1765 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_overwrite         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1766 <p>
1767 Returns whether the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> is in overwrite mode or not.
1768 </p>
1769 <div class="variablelist"><table border="0">
1770 <col align="left" valign="top">
1771 <tbody>
1772 <tr>
1773 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1774 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1775 </td>
1776 </tr>
1777 <tr>
1778 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1779 <td>whether <em class="parameter"><code>text_view</code></em> is in overwrite mode or not.</td>
1780 </tr>
1781 </tbody>
1782 </table></div>
1783 <p class="since">Since 2.4</p>
1784 </div>
1785 <hr>
1786 <div class="refsect2">
1787 <a name="gtk-text-view-set-pixels-above-lines"></a><h3>gtk_text_view_set_pixels_above_lines ()</h3>
1788 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_above_lines
1789                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1790                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_above_lines</code></em>);</pre>
1791 <p>
1792 Sets the default number of blank pixels above paragraphs in <em class="parameter"><code>text_view</code></em>.
1793 Tags in the buffer for <em class="parameter"><code>text_view</code></em> may override the defaults.
1794 </p>
1795 <div class="variablelist"><table border="0">
1796 <col align="left" valign="top">
1797 <tbody>
1798 <tr>
1799 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1800 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1801 </td>
1802 </tr>
1803 <tr>
1804 <td><p><span class="term"><em class="parameter"><code>pixels_above_lines</code></em> :</span></p></td>
1805 <td>pixels above paragraphs</td>
1806 </tr>
1807 </tbody>
1808 </table></div>
1809 </div>
1810 <hr>
1811 <div class="refsect2">
1812 <a name="gtk-text-view-get-pixels-above-lines"></a><h3>gtk_text_view_get_pixels_above_lines ()</h3>
1813 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_above_lines
1814                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1815 <p>
1816 Gets the default number of pixels to put above paragraphs.
1817 </p>
1818 <div class="variablelist"><table border="0">
1819 <col align="left" valign="top">
1820 <tbody>
1821 <tr>
1822 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1823 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1824 </td>
1825 </tr>
1826 <tr>
1827 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1828 <td>default number of pixels above paragraphs</td>
1829 </tr>
1830 </tbody>
1831 </table></div>
1832 </div>
1833 <hr>
1834 <div class="refsect2">
1835 <a name="gtk-text-view-set-pixels-below-lines"></a><h3>gtk_text_view_set_pixels_below_lines ()</h3>
1836 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_below_lines
1837                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1838                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_below_lines</code></em>);</pre>
1839 <p>
1840 Sets the default number of pixels of blank space
1841 to put below paragraphs in <em class="parameter"><code>text_view</code></em>. May be overridden
1842 by tags applied to <em class="parameter"><code>text_view</code></em>'s buffer.
1843 </p>
1844 <div class="variablelist"><table border="0">
1845 <col align="left" valign="top">
1846 <tbody>
1847 <tr>
1848 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1849 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1850 </td>
1851 </tr>
1852 <tr>
1853 <td><p><span class="term"><em class="parameter"><code>pixels_below_lines</code></em> :</span></p></td>
1854 <td>pixels below paragraphs</td>
1855 </tr>
1856 </tbody>
1857 </table></div>
1858 </div>
1859 <hr>
1860 <div class="refsect2">
1861 <a name="gtk-text-view-get-pixels-below-lines"></a><h3>gtk_text_view_get_pixels_below_lines ()</h3>
1862 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_below_lines
1863                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1864 <p>
1865 Gets the value set by <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-below-lines" title="gtk_text_view_set_pixels_below_lines ()"><code class="function">gtk_text_view_set_pixels_below_lines()</code></a>.
1866 </p>
1867 <div class="variablelist"><table border="0">
1868 <col align="left" valign="top">
1869 <tbody>
1870 <tr>
1871 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1872 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1873 </td>
1874 </tr>
1875 <tr>
1876 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1877 <td>default number of blank pixels below paragraphs</td>
1878 </tr>
1879 </tbody>
1880 </table></div>
1881 </div>
1882 <hr>
1883 <div class="refsect2">
1884 <a name="gtk-text-view-set-pixels-inside-wrap"></a><h3>gtk_text_view_set_pixels_inside_wrap ()</h3>
1885 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_pixels_inside_wrap
1886                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1887                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> pixels_inside_wrap</code></em>);</pre>
1888 <p>
1889 Sets the default number of pixels of blank space to leave between
1890 display/wrapped lines within a paragraph. May be overridden by
1891 tags in <em class="parameter"><code>text_view</code></em>'s buffer.
1892 </p>
1893 <div class="variablelist"><table border="0">
1894 <col align="left" valign="top">
1895 <tbody>
1896 <tr>
1897 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1898 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1899 </td>
1900 </tr>
1901 <tr>
1902 <td><p><span class="term"><em class="parameter"><code>pixels_inside_wrap</code></em> :</span></p></td>
1903 <td>default number of pixels between wrapped lines</td>
1904 </tr>
1905 </tbody>
1906 </table></div>
1907 </div>
1908 <hr>
1909 <div class="refsect2">
1910 <a name="gtk-text-view-get-pixels-inside-wrap"></a><h3>gtk_text_view_get_pixels_inside_wrap ()</h3>
1911 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_pixels_inside_wrap
1912                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1913 <p>
1914 Gets the value set by <a class="link" href="GtkTextView.html#gtk-text-view-set-pixels-inside-wrap" title="gtk_text_view_set_pixels_inside_wrap ()"><code class="function">gtk_text_view_set_pixels_inside_wrap()</code></a>.
1915 </p>
1916 <div class="variablelist"><table border="0">
1917 <col align="left" valign="top">
1918 <tbody>
1919 <tr>
1920 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1921 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1922 </td>
1923 </tr>
1924 <tr>
1925 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1926 <td>default number of pixels of blank space between wrapped lines</td>
1927 </tr>
1928 </tbody>
1929 </table></div>
1930 </div>
1931 <hr>
1932 <div class="refsect2">
1933 <a name="gtk-text-view-set-justification"></a><h3>gtk_text_view_set_justification ()</h3>
1934 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_justification     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1935                                                          <em class="parameter"><code><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a> justification</code></em>);</pre>
1936 <p>
1937 Sets the default justification of text in <em class="parameter"><code>text_view</code></em>.
1938 Tags in the view's buffer may override the default.
1939 </p>
1940 <div class="variablelist"><table border="0">
1941 <col align="left" valign="top">
1942 <tbody>
1943 <tr>
1944 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1945 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1946 </td>
1947 </tr>
1948 <tr>
1949 <td><p><span class="term"><em class="parameter"><code>justification</code></em> :</span></p></td>
1950 <td>justification</td>
1951 </tr>
1952 </tbody>
1953 </table></div>
1954 </div>
1955 <hr>
1956 <div class="refsect2">
1957 <a name="gtk-text-view-get-justification"></a><h3>gtk_text_view_get_justification ()</h3>
1958 <pre class="programlisting"><a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="returnvalue">GtkJustification</span></a>    gtk_text_view_get_justification     (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
1959 <p>
1960 Gets the default justification of paragraphs in <em class="parameter"><code>text_view</code></em>.
1961 Tags in the buffer may override the default.
1962 </p>
1963 <div class="variablelist"><table border="0">
1964 <col align="left" valign="top">
1965 <tbody>
1966 <tr>
1967 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1968 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1969 </td>
1970 </tr>
1971 <tr>
1972 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1973 <td>default justification</td>
1974 </tr>
1975 </tbody>
1976 </table></div>
1977 </div>
1978 <hr>
1979 <div class="refsect2">
1980 <a name="gtk-text-view-set-left-margin"></a><h3>gtk_text_view_set_left_margin ()</h3>
1981 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_left_margin       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
1982                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> left_margin</code></em>);</pre>
1983 <p>
1984 Sets the default left margin for text in <em class="parameter"><code>text_view</code></em>.
1985 Tags in the buffer may override the default.
1986 </p>
1987 <div class="variablelist"><table border="0">
1988 <col align="left" valign="top">
1989 <tbody>
1990 <tr>
1991 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
1992 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
1993 </td>
1994 </tr>
1995 <tr>
1996 <td><p><span class="term"><em class="parameter"><code>left_margin</code></em> :</span></p></td>
1997 <td>left margin in pixels</td>
1998 </tr>
1999 </tbody>
2000 </table></div>
2001 </div>
2002 <hr>
2003 <div class="refsect2">
2004 <a name="gtk-text-view-get-left-margin"></a><h3>gtk_text_view_get_left_margin ()</h3>
2005 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_left_margin       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2006 <p>
2007 Gets the default left margin size of paragraphs in the <em class="parameter"><code>text_view</code></em>.
2008 Tags in the buffer may override the default.
2009 </p>
2010 <div class="variablelist"><table border="0">
2011 <col align="left" valign="top">
2012 <tbody>
2013 <tr>
2014 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2015 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2016 </td>
2017 </tr>
2018 <tr>
2019 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2020 <td>left margin in pixels</td>
2021 </tr>
2022 </tbody>
2023 </table></div>
2024 </div>
2025 <hr>
2026 <div class="refsect2">
2027 <a name="gtk-text-view-set-right-margin"></a><h3>gtk_text_view_set_right_margin ()</h3>
2028 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_right_margin      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
2029                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> right_margin</code></em>);</pre>
2030 <p>
2031 Sets the default right margin for text in the text view.
2032 Tags in the buffer may override the default.
2033 </p>
2034 <div class="variablelist"><table border="0">
2035 <col align="left" valign="top">
2036 <tbody>
2037 <tr>
2038 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2039 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2040 </td>
2041 </tr>
2042 <tr>
2043 <td><p><span class="term"><em class="parameter"><code>right_margin</code></em> :</span></p></td>
2044 <td>right margin in pixels</td>
2045 </tr>
2046 </tbody>
2047 </table></div>
2048 </div>
2049 <hr>
2050 <div class="refsect2">
2051 <a name="gtk-text-view-get-right-margin"></a><h3>gtk_text_view_get_right_margin ()</h3>
2052 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_right_margin      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2053 <p>
2054 Gets the default right margin for text in <em class="parameter"><code>text_view</code></em>. Tags
2055 in the buffer may override the default.
2056 </p>
2057 <div class="variablelist"><table border="0">
2058 <col align="left" valign="top">
2059 <tbody>
2060 <tr>
2061 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2062 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2063 </td>
2064 </tr>
2065 <tr>
2066 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2067 <td>right margin in pixels</td>
2068 </tr>
2069 </tbody>
2070 </table></div>
2071 </div>
2072 <hr>
2073 <div class="refsect2">
2074 <a name="gtk-text-view-set-indent"></a><h3>gtk_text_view_set_indent ()</h3>
2075 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_indent            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
2076                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a> indent</code></em>);</pre>
2077 <p>
2078 Sets the default indentation for paragraphs in <em class="parameter"><code>text_view</code></em>.
2079 Tags in the buffer may override the default.
2080 </p>
2081 <div class="variablelist"><table border="0">
2082 <col align="left" valign="top">
2083 <tbody>
2084 <tr>
2085 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2086 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2087 </td>
2088 </tr>
2089 <tr>
2090 <td><p><span class="term"><em class="parameter"><code>indent</code></em> :</span></p></td>
2091 <td>indentation in pixels</td>
2092 </tr>
2093 </tbody>
2094 </table></div>
2095 </div>
2096 <hr>
2097 <div class="refsect2">
2098 <a name="gtk-text-view-get-indent"></a><h3>gtk_text_view_get_indent ()</h3>
2099 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="returnvalue">gint</span></a>                gtk_text_view_get_indent            (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2100 <p>
2101 Gets the default indentation of paragraphs in <em class="parameter"><code>text_view</code></em>.
2102 Tags in the view's buffer may override the default.
2103 The indentation may be negative.
2104 </p>
2105 <div class="variablelist"><table border="0">
2106 <col align="left" valign="top">
2107 <tbody>
2108 <tr>
2109 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2110 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2111 </td>
2112 </tr>
2113 <tr>
2114 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2115 <td>number of pixels of indentation</td>
2116 </tr>
2117 </tbody>
2118 </table></div>
2119 </div>
2120 <hr>
2121 <div class="refsect2">
2122 <a name="gtk-text-view-set-tabs"></a><h3>gtk_text_view_set_tabs ()</h3>
2123 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_tabs              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
2124                                                          <em class="parameter"><code><a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a> *tabs</code></em>);</pre>
2125 <p>
2126 Sets the default tab stops for paragraphs in <em class="parameter"><code>text_view</code></em>.
2127 Tags in the buffer may override the default.
2128 </p>
2129 <div class="variablelist"><table border="0">
2130 <col align="left" valign="top">
2131 <tbody>
2132 <tr>
2133 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2134 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2135 </td>
2136 </tr>
2137 <tr>
2138 <td><p><span class="term"><em class="parameter"><code>tabs</code></em> :</span></p></td>
2139 <td>tabs as a <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>
2140 </td>
2141 </tr>
2142 </tbody>
2143 </table></div>
2144 </div>
2145 <hr>
2146 <div class="refsect2">
2147 <a name="gtk-text-view-get-tabs"></a><h3>gtk_text_view_get_tabs ()</h3>
2148 <pre class="programlisting"><a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="returnvalue">PangoTabArray</span></a> *     gtk_text_view_get_tabs              (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2149 <p>
2150 Gets the default tabs for <em class="parameter"><code>text_view</code></em>. Tags in the buffer may
2151 override the defaults. The returned array will be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if
2152 "standard" (8-space) tabs are used. Free the return value
2153 with <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#pango-tab-array-free"><code class="function">pango_tab_array_free()</code></a>.
2154 </p>
2155 <div class="variablelist"><table border="0">
2156 <col align="left" valign="top">
2157 <tbody>
2158 <tr>
2159 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2160 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2161 </td>
2162 </tr>
2163 <tr>
2164 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2165 <td>copy of default tab array, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if "standard"
2166 tabs are used; must be freed with <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#pango-tab-array-free"><code class="function">pango_tab_array_free()</code></a>.</td>
2167 </tr>
2168 </tbody>
2169 </table></div>
2170 </div>
2171 <hr>
2172 <div class="refsect2">
2173 <a name="gtk-text-view-set-accepts-tab"></a><h3>gtk_text_view_set_accepts_tab ()</h3>
2174 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_set_accepts_tab       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
2175                                                          <em class="parameter"><code><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> accepts_tab</code></em>);</pre>
2176 <p>
2177 Sets the behavior of the text widget when the Tab key is pressed. 
2178 If <em class="parameter"><code>accepts_tab</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/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> 
2179 is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> the keyboard focus is moved to the next widget in the focus 
2180 chain.
2181 </p>
2182 <div class="variablelist"><table border="0">
2183 <col align="left" valign="top">
2184 <tbody>
2185 <tr>
2186 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2187 <td>A <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2188 </td>
2189 </tr>
2190 <tr>
2191 <td><p><span class="term"><em class="parameter"><code>accepts_tab</code></em> :</span></p></td>
2192 <td>
2193 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pressing the Tab key should insert a tab
2194 character, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, if pressing the Tab key should move the
2195 keyboard focus.</td>
2196 </tr>
2197 </tbody>
2198 </table></div>
2199 <p class="since">Since 2.4</p>
2200 </div>
2201 <hr>
2202 <div class="refsect2">
2203 <a name="gtk-text-view-get-accepts-tab"></a><h3>gtk_text_view_get_accepts_tab ()</h3>
2204 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_get_accepts_tab       (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2205 <p>
2206 Returns whether pressing the Tab key inserts a tab characters.
2207 <a class="link" href="GtkTextView.html#gtk-text-view-set-accepts-tab" title="gtk_text_view_set_accepts_tab ()"><code class="function">gtk_text_view_set_accepts_tab()</code></a>.
2208 </p>
2209 <div class="variablelist"><table border="0">
2210 <col align="left" valign="top">
2211 <tbody>
2212 <tr>
2213 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2214 <td>A <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2215 </td>
2216 </tr>
2217 <tr>
2218 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2219 <td>
2220 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if pressing the Tab key inserts a tab character,
2221 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if pressing the Tab key moves the keyboard focus.</td>
2222 </tr>
2223 </tbody>
2224 </table></div>
2225 <p class="since">Since 2.4</p>
2226 </div>
2227 <hr>
2228 <div class="refsect2">
2229 <a name="gtk-text-view-get-default-attributes"></a><h3>gtk_text_view_get_default_attributes ()</h3>
2230 <pre class="programlisting"><a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="returnvalue">GtkTextAttributes</span></a> * gtk_text_view_get_default_attributes
2231                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2232 <p>
2233 Obtains a copy of the default text attributes. These are the
2234 attributes used for text unless a tag overrides them.
2235 You'd typically pass the default attributes in to
2236 <a class="link" href="GtkTextIter.html#gtk-text-iter-get-attributes" title="gtk_text_iter_get_attributes ()"><code class="function">gtk_text_iter_get_attributes()</code></a> in order to get the
2237 attributes in effect at a given text position.
2238 </p>
2239 <p>
2240 The return value is a copy owned by the caller of this function,
2241 and should be freed.
2242 </p>
2243 <div class="variablelist"><table border="0">
2244 <col align="left" valign="top">
2245 <tbody>
2246 <tr>
2247 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2248 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2249 </td>
2250 </tr>
2251 <tr>
2252 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2253 <td>a new <a class="link" href="GtkTextTag.html#GtkTextAttributes" title="struct GtkTextAttributes"><span class="type">GtkTextAttributes</span></a>
2254 </td>
2255 </tr>
2256 </tbody>
2257 </table></div>
2258 </div>
2259 <hr>
2260 <div class="refsect2">
2261 <a name="gtk-text-view-im-context-filter-keypress"></a><h3>gtk_text_view_im_context_filter_keypress ()</h3>
2262 <pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>            gtk_text_view_im_context_filter_keypress
2263                                                         (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>,
2264                                                          <em class="parameter"><code><a href="http://developer.gnome.org/devel/gdk/gdk3-Event-Structures.html#GdkEventKey"><span class="type">GdkEventKey</span></a> *event</code></em>);</pre>
2265 <p>
2266 Allow the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> input method to internally handle key press
2267 and release events. If this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, then no further
2268 processing should be done for this key event. See
2269 <a class="link" href="GtkIMContext.html#gtk-im-context-filter-keypress" title="gtk_im_context_filter_keypress ()"><code class="function">gtk_im_context_filter_keypress()</code></a>.
2270 </p>
2271 <p>
2272 Note that you are expected to call this function from your handler
2273 when overriding key event handling. This is needed in the case when
2274 you need to insert your own key handling between the input method
2275 and the default key event handling of the <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>.
2276 </p>
2277 <p>
2278 </p>
2279 <div class="informalexample">
2280   <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
2281     <tbody>
2282       <tr>
2283         <td class="listing_lines" align="right"><pre>1
2284 2
2285 3
2286 4
2287 5
2288 6
2289 7
2290 8
2291 9
2292 10
2293 11
2294 12
2295 13
2296 14</pre></td>
2297         <td class="listing_code"><pre class="programlisting"><span class="keyword">static</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean">gboolean</a></span>
2298 <span class="function">gtk_foo_bar_key_press_event</span><span class="normal"> </span><span class="symbol">(</span><span class="usertype">GtkWidget</span><span class="normal">   </span><span class="symbol">*</span><span class="normal">widget</span><span class="symbol">,</span>
2299 <span class="normal">                             </span><span class="usertype">GdkEventKey</span><span class="normal"> </span><span class="symbol">*</span><span class="normal">event</span><span class="symbol">)</span>
2300 <span class="cbracket">{</span>
2301 <span class="normal">  </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">((</span><span class="normal">key</span><span class="symbol">-&gt;</span><span class="normal">keyval </span><span class="symbol">==</span><span class="normal"> GDK_KEY_Return </span><span class="symbol">||</span><span class="normal"> key</span><span class="symbol">-&gt;</span><span class="normal">keyval </span><span class="symbol">==</span><span class="normal"> GDK_KEY_KP_Enter</span><span class="symbol">))</span>
2302 <span class="normal">    </span><span class="cbracket">{</span>
2303 <span class="normal">      </span><span class="keyword">if</span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="GtkTextView.html#gtk-text-view-im-context-filter-keypress">gtk_text_view_im_context_filter_keypress</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function">GTK_TEXT_VIEW</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">view</span><span class="symbol">),</span><span class="normal"> event</span><span class="symbol">))</span>
2304 <span class="normal">        </span><span class="keyword">return</span><span class="normal"> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS">TRUE</a></span><span class="symbol">;</span>
2305 <span class="normal">    </span><span class="cbracket">}</span>
2306
2307 <span class="normal">    </span><span class="comment">/* Do some stuff */</span>
2308
2309 <span class="normal">  </span><span class="keyword">return</span><span class="normal"> </span><span class="function">GTK_WIDGET_CLASS</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">gtk_foo_bar_parent_class</span><span class="symbol">)-&gt;</span><span class="function">key_press_event</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">widget</span><span class="symbol">,</span><span class="normal"> event</span><span class="symbol">);</span>
2310 <span class="cbracket">}</span></pre></td>
2311       </tr>
2312     </tbody>
2313   </table>
2314 </div>
2315
2316 <p>
2317 </p>
2318 <div class="variablelist"><table border="0">
2319 <col align="left" valign="top">
2320 <tbody>
2321 <tr>
2322 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2323 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2324 </td>
2325 </tr>
2326 <tr>
2327 <td><p><span class="term"><em class="parameter"><code>event</code></em> :</span></p></td>
2328 <td>the key event</td>
2329 </tr>
2330 <tr>
2331 <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2332 <td>
2333 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the input method handled the key event.</td>
2334 </tr>
2335 </tbody>
2336 </table></div>
2337 <p class="since">Since 2.22</p>
2338 </div>
2339 <hr>
2340 <div class="refsect2">
2341 <a name="gtk-text-view-reset-im-context"></a><h3>gtk_text_view_reset_im_context ()</h3>
2342 <pre class="programlisting"><span class="returnvalue">void</span>                gtk_text_view_reset_im_context      (<em class="parameter"><code><a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view</code></em>);</pre>
2343 <p>
2344 Reset the input method context of the text view if needed.
2345 </p>
2346 <p>
2347 This can be necessary in the case where modifying the buffer
2348 would confuse on-going input method behavior.
2349 </p>
2350 <div class="variablelist"><table border="0">
2351 <col align="left" valign="top">
2352 <tbody><tr>
2353 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2354 <td>a <a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>
2355 </td>
2356 </tr></tbody>
2357 </table></div>
2358 <p class="since">Since 2.22</p>
2359 </div>
2360 <hr>
2361 <div class="refsect2">
2362 <a name="GTK-TEXT-VIEW-PRIORITY-VALIDATE:CAPS"></a><h3>GTK_TEXT_VIEW_PRIORITY_VALIDATE</h3>
2363 <pre class="programlisting">#define GTK_TEXT_VIEW_PRIORITY_VALIDATE (GDK_PRIORITY_REDRAW + 5)
2364 </pre>
2365 <p>
2366 The priority at which the text view validates onscreen lines
2367 in an idle job in the background.
2368 </p>
2369 </div>
2370 </div>
2371 <div class="refsect1">
2372 <a name="GtkTextView.property-details"></a><h2>Property Details</h2>
2373 <div class="refsect2">
2374 <a name="GtkTextView--accepts-tab"></a><h3>The <code class="literal">"accepts-tab"</code> property</h3>
2375 <pre class="programlisting">  "accepts-tab"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
2376 <p>Whether Tab will result in a tab character being entered.</p>
2377 <p>Default value: TRUE</p>
2378 </div>
2379 <hr>
2380 <div class="refsect2">
2381 <a name="GtkTextView--buffer"></a><h3>The <code class="literal">"buffer"</code> property</h3>
2382 <pre class="programlisting">  "buffer"                   <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>*        : Read / Write</pre>
2383 <p>The buffer which is displayed.</p>
2384 </div>
2385 <hr>
2386 <div class="refsect2">
2387 <a name="GtkTextView--cursor-visible"></a><h3>The <code class="literal">"cursor-visible"</code> property</h3>
2388 <pre class="programlisting">  "cursor-visible"           <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
2389 <p>If the insertion cursor is shown.</p>
2390 <p>Default value: TRUE</p>
2391 </div>
2392 <hr>
2393 <div class="refsect2">
2394 <a name="GtkTextView--editable"></a><h3>The <code class="literal">"editable"</code> property</h3>
2395 <pre class="programlisting">  "editable"                 <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
2396 <p>Whether the text can be modified by the user.</p>
2397 <p>Default value: TRUE</p>
2398 </div>
2399 <hr>
2400 <div class="refsect2">
2401 <a name="GtkTextView--im-module"></a><h3>The <code class="literal">"im-module"</code> property</h3>
2402 <pre class="programlisting">  "im-module"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>*                : Read / Write</pre>
2403 <p>
2404 Which IM (input method) module should be used for this entry.
2405 See <a class="link" href="GtkIMContext.html" title="GtkIMContext"><span class="type">GtkIMContext</span></a>.
2406 </p>
2407 <p>
2408 Setting this to a non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value overrides the
2409 system-wide IM module setting. See the GtkSettings 
2410 <a class="link" href="GtkSettings.html#GtkSettings--gtk-im-module" title='The "gtk-im-module" property'><span class="type">"gtk-im-module"</span></a> property.
2411 </p>
2412 <p>Default value: NULL</p>
2413 <p class="since">Since 2.16</p>
2414 </div>
2415 <hr>
2416 <div class="refsect2">
2417 <a name="GtkTextView--indent"></a><h3>The <code class="literal">"indent"</code> property</h3>
2418 <pre class="programlisting">  "indent"                   <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
2419 <p>Amount to indent the paragraph, in pixels.</p>
2420 <p>Default value: 0</p>
2421 </div>
2422 <hr>
2423 <div class="refsect2">
2424 <a name="GtkTextView--justification"></a><h3>The <code class="literal">"justification"</code> property</h3>
2425 <pre class="programlisting">  "justification"            <a class="link" href="gtk3-Standard-Enumerations.html#GtkJustification" title="enum GtkJustification"><span class="type">GtkJustification</span></a>      : Read / Write</pre>
2426 <p>Left, right, or center justification.</p>
2427 <p>Default value: GTK_JUSTIFY_LEFT</p>
2428 </div>
2429 <hr>
2430 <div class="refsect2">
2431 <a name="GtkTextView--left-margin"></a><h3>The <code class="literal">"left-margin"</code> property</h3>
2432 <pre class="programlisting">  "left-margin"              <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
2433 <p>Width of the left margin in pixels.</p>
2434 <p>Allowed values: &gt;= 0</p>
2435 <p>Default value: 0</p>
2436 </div>
2437 <hr>
2438 <div class="refsect2">
2439 <a name="GtkTextView--overwrite"></a><h3>The <code class="literal">"overwrite"</code> property</h3>
2440 <pre class="programlisting">  "overwrite"                <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>              : Read / Write</pre>
2441 <p>Whether entered text overwrites existing contents.</p>
2442 <p>Default value: FALSE</p>
2443 </div>
2444 <hr>
2445 <div class="refsect2">
2446 <a name="GtkTextView--pixels-above-lines"></a><h3>The <code class="literal">"pixels-above-lines"</code> property</h3>
2447 <pre class="programlisting">  "pixels-above-lines"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
2448 <p>Pixels of blank space above paragraphs.</p>
2449 <p>Allowed values: &gt;= 0</p>
2450 <p>Default value: 0</p>
2451 </div>
2452 <hr>
2453 <div class="refsect2">
2454 <a name="GtkTextView--pixels-below-lines"></a><h3>The <code class="literal">"pixels-below-lines"</code> property</h3>
2455 <pre class="programlisting">  "pixels-below-lines"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
2456 <p>Pixels of blank space below paragraphs.</p>
2457 <p>Allowed values: &gt;= 0</p>
2458 <p>Default value: 0</p>
2459 </div>
2460 <hr>
2461 <div class="refsect2">
2462 <a name="GtkTextView--pixels-inside-wrap"></a><h3>The <code class="literal">"pixels-inside-wrap"</code> property</h3>
2463 <pre class="programlisting">  "pixels-inside-wrap"       <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
2464 <p>Pixels of blank space between wrapped lines in a paragraph.</p>
2465 <p>Allowed values: &gt;= 0</p>
2466 <p>Default value: 0</p>
2467 </div>
2468 <hr>
2469 <div class="refsect2">
2470 <a name="GtkTextView--right-margin"></a><h3>The <code class="literal">"right-margin"</code> property</h3>
2471 <pre class="programlisting">  "right-margin"             <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>                  : Read / Write</pre>
2472 <p>Width of the right margin in pixels.</p>
2473 <p>Allowed values: &gt;= 0</p>
2474 <p>Default value: 0</p>
2475 </div>
2476 <hr>
2477 <div class="refsect2">
2478 <a name="GtkTextView--tabs"></a><h3>The <code class="literal">"tabs"</code> property</h3>
2479 <pre class="programlisting">  "tabs"                     <a href="/usr/share/gtk-doc/html/pango/pango-Tab-Stops.html#PangoTabArray"><span class="type">PangoTabArray</span></a>*        : Read / Write</pre>
2480 <p>Custom tabs for this text.</p>
2481 </div>
2482 <hr>
2483 <div class="refsect2">
2484 <a name="GtkTextView--wrap-mode"></a><h3>The <code class="literal">"wrap-mode"</code> property</h3>
2485 <pre class="programlisting">  "wrap-mode"                <a class="link" href="GtkTextTag.html#GtkWrapMode" title="enum GtkWrapMode"><span class="type">GtkWrapMode</span></a>           : Read / Write</pre>
2486 <p>Whether to wrap lines never, at word boundaries, or at character boundaries.</p>
2487 <p>Default value: GTK_WRAP_NONE</p>
2488 </div>
2489 </div>
2490 <div class="refsect1">
2491 <a name="GtkTextView.style-property-details"></a><h2>Style Property Details</h2>
2492 <div class="refsect2">
2493 <a name="GtkTextView--s-error-underline-color"></a><h3>The <code class="literal">"error-underline-color"</code> style property</h3>
2494 <pre class="programlisting">  "error-underline-color"    <a href="http://developer.gnome.org/devel/gdk/gdk3-Colors.html#GdkColor"><span class="type">GdkColor</span></a>*             : Read</pre>
2495 <p>Color with which to draw error-indication underlines.</p>
2496 </div>
2497 </div>
2498 <div class="refsect1">
2499 <a name="GtkTextView.signal-details"></a><h2>Signal Details</h2>
2500 <div class="refsect2">
2501 <a name="GtkTextView-backspace"></a><h3>The <code class="literal">"backspace"</code> signal</h3>
2502 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2503                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2504 <p>
2505 The ::backspace signal is a
2506 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2507 which gets emitted when the user asks for it.
2508 </p>
2509 <p>
2510 The default bindings for this signal are
2511 Backspace and Shift-Backspace.
2512 </p>
2513 <div class="variablelist"><table border="0">
2514 <col align="left" valign="top">
2515 <tbody>
2516 <tr>
2517 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2518 <td>the object which received the signal</td>
2519 </tr>
2520 <tr>
2521 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2522 <td>user data set when the signal handler was connected.</td>
2523 </tr>
2524 </tbody>
2525 </table></div>
2526 </div>
2527 <hr>
2528 <div class="refsect2">
2529 <a name="GtkTextView-copy-clipboard"></a><h3>The <code class="literal">"copy-clipboard"</code> signal</h3>
2530 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2531                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2532 <p>
2533 The ::copy-clipboard signal is a 
2534 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2535 which gets emitted to copy the selection to the clipboard.
2536 </p>
2537 <p>
2538 The default bindings for this signal are
2539 Ctrl-c and Ctrl-Insert.
2540 </p>
2541 <div class="variablelist"><table border="0">
2542 <col align="left" valign="top">
2543 <tbody>
2544 <tr>
2545 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2546 <td>the object which received the signal</td>
2547 </tr>
2548 <tr>
2549 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2550 <td>user data set when the signal handler was connected.</td>
2551 </tr>
2552 </tbody>
2553 </table></div>
2554 </div>
2555 <hr>
2556 <div class="refsect2">
2557 <a name="GtkTextView-cut-clipboard"></a><h3>The <code class="literal">"cut-clipboard"</code> signal</h3>
2558 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2559                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2560 <p>
2561 The ::cut-clipboard signal is a 
2562 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2563 which gets emitted to cut the selection to the clipboard.
2564 </p>
2565 <p>
2566 The default bindings for this signal are
2567 Ctrl-x and Shift-Delete.
2568 </p>
2569 <div class="variablelist"><table border="0">
2570 <col align="left" valign="top">
2571 <tbody>
2572 <tr>
2573 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2574 <td>the object which received the signal</td>
2575 </tr>
2576 <tr>
2577 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2578 <td>user data set when the signal handler was connected.</td>
2579 </tr>
2580 </tbody>
2581 </table></div>
2582 </div>
2583 <hr>
2584 <div class="refsect2">
2585 <a name="GtkTextView-delete-from-cursor"></a><h3>The <code class="literal">"delete-from-cursor"</code> signal</h3>
2586 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>  *text_view,
2587                                                         <a class="link" href="gtk3-Standard-Enumerations.html#GtkDeleteType" title="enum GtkDeleteType"><span class="type">GtkDeleteType</span></a> type,
2588                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>          count,
2589                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2590 <p>
2591 The ::delete-from-cursor signal is a 
2592 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2593 which gets emitted when the user initiates a text deletion.
2594 </p>
2595 <p>
2596 If the <em class="parameter"><code>type</code></em> is <code class="literal">GTK_DELETE_CHARS</code>, GTK+ deletes the selection
2597 if there is one, otherwise it deletes the requested number
2598 of characters.
2599 </p>
2600 <p>
2601 The default bindings for this signal are
2602 Delete for deleting a character, Ctrl-Delete for 
2603 deleting a word and Ctrl-Backspace for deleting a word 
2604 backwords.
2605 </p>
2606 <div class="variablelist"><table border="0">
2607 <col align="left" valign="top">
2608 <tbody>
2609 <tr>
2610 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2611 <td>the object which received the signal</td>
2612 </tr>
2613 <tr>
2614 <td><p><span class="term"><em class="parameter"><code>type</code></em> :</span></p></td>
2615 <td>the granularity of the deletion, as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkDeleteType" title="enum GtkDeleteType"><span class="type">GtkDeleteType</span></a>
2616 </td>
2617 </tr>
2618 <tr>
2619 <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
2620 <td>the number of <em class="parameter"><code>type</code></em> units to delete</td>
2621 </tr>
2622 <tr>
2623 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2624 <td>user data set when the signal handler was connected.</td>
2625 </tr>
2626 </tbody>
2627 </table></div>
2628 </div>
2629 <hr>
2630 <div class="refsect2">
2631 <a name="GtkTextView-insert-at-cursor"></a><h3>The <code class="literal">"insert-at-cursor"</code> signal</h3>
2632 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2633                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>       *string,
2634                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2635 <p>
2636 The ::insert-at-cursor signal is a
2637 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a>
2638 which gets emitted when the user initiates the insertion of a 
2639 fixed string at the cursor.
2640 </p>
2641 <p>
2642 This signal has no default bindings.
2643 </p>
2644 <div class="variablelist"><table border="0">
2645 <col align="left" valign="top">
2646 <tbody>
2647 <tr>
2648 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2649 <td>the object which received the signal</td>
2650 </tr>
2651 <tr>
2652 <td><p><span class="term"><em class="parameter"><code>string</code></em> :</span></p></td>
2653 <td>the string to insert</td>
2654 </tr>
2655 <tr>
2656 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2657 <td>user data set when the signal handler was connected.</td>
2658 </tr>
2659 </tbody>
2660 </table></div>
2661 </div>
2662 <hr>
2663 <div class="refsect2">
2664 <a name="GtkTextView-move-cursor"></a><h3>The <code class="literal">"move-cursor"</code> signal</h3>
2665 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>    *text_view,
2666                                                         <a class="link" href="gtk3-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a> step,
2667                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>            count,
2668                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>        extend_selection,
2669                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>        user_data)             : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2670 <p>
2671 The ::move-cursor signal is a 
2672 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2673 which gets emitted when the user initiates a cursor movement. 
2674 If the cursor is not visible in <em class="parameter"><code>text_view</code></em>, this signal causes
2675 the viewport to be moved instead.
2676 </p>
2677 <p>
2678 Applications should not connect to it, but may emit it with 
2679 <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#g-signal-emit-by-name"><code class="function">g_signal_emit_by_name()</code></a> if they need to control the cursor
2680 programmatically.
2681 </p>
2682 <p>
2683 The default bindings for this signal come in two variants,
2684 the variant with the Shift modifier extends the selection,
2685 the variant without the Shift modifer does not.
2686 There are too many key combinations to list them all here.
2687 </p>
2688 <div class="itemizedlist"><ul class="itemizedlist" type="disc">
2689 <li class="listitem">Arrow keys move by individual characters/lines</li>
2690 <li class="listitem">Ctrl-arrow key combinations move by words/paragraphs</li>
2691 <li class="listitem">Home/End keys move to the ends of the buffer</li>
2692 <li class="listitem">PageUp/PageDown keys move vertically by pages</li>
2693 <li class="listitem">Ctrl-PageUp/PageDown keys move horizontally by pages</li>
2694 </ul></div>
2695 <p>
2696 </p>
2697 <div class="variablelist"><table border="0">
2698 <col align="left" valign="top">
2699 <tbody>
2700 <tr>
2701 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2702 <td>the object which received the signal</td>
2703 </tr>
2704 <tr>
2705 <td><p><span class="term"><em class="parameter"><code>step</code></em> :</span></p></td>
2706 <td>the granularity of the move, as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a>
2707 </td>
2708 </tr>
2709 <tr>
2710 <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
2711 <td>the number of <em class="parameter"><code>step</code></em> units to move</td>
2712 </tr>
2713 <tr>
2714 <td><p><span class="term"><em class="parameter"><code>extend_selection</code></em> :</span></p></td>
2715 <td>
2716 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the move should extend the selection</td>
2717 </tr>
2718 <tr>
2719 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2720 <td>user data set when the signal handler was connected.</td>
2721 </tr>
2722 </tbody>
2723 </table></div>
2724 </div>
2725 <hr>
2726 <div class="refsect2">
2727 <a name="GtkTextView-move-viewport"></a><h3>The <code class="literal">"move-viewport"</code> signal</h3>
2728 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a>  *text_view,
2729                                                         <a class="link" href="gtk3-Standard-Enumerations.html#GtkScrollStep" title="enum GtkScrollStep"><span class="type">GtkScrollStep</span></a> step,
2730                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gint"><span class="type">gint</span></a>          count,
2731                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>      user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2732 <p>
2733 The ::move-viewport signal is a 
2734 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2735 which can be bound to key combinations to allow the user
2736 to move the viewport, i.e. change what part of the text view
2737 is visible in a containing scrolled window.
2738 </p>
2739 <p>
2740 There are no default bindings for this signal.
2741 </p>
2742 <div class="variablelist"><table border="0">
2743 <col align="left" valign="top">
2744 <tbody>
2745 <tr>
2746 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2747 <td>the object which received the signal</td>
2748 </tr>
2749 <tr>
2750 <td><p><span class="term"><em class="parameter"><code>step</code></em> :</span></p></td>
2751 <td>the granularity of the move, as a <a class="link" href="gtk3-Standard-Enumerations.html#GtkMovementStep" title="enum GtkMovementStep"><span class="type">GtkMovementStep</span></a>
2752 </td>
2753 </tr>
2754 <tr>
2755 <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
2756 <td>the number of <em class="parameter"><code>step</code></em> units to move</td>
2757 </tr>
2758 <tr>
2759 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2760 <td>user data set when the signal handler was connected.</td>
2761 </tr>
2762 </tbody>
2763 </table></div>
2764 </div>
2765 <hr>
2766 <div class="refsect2">
2767 <a name="GtkTextView-paste-clipboard"></a><h3>The <code class="literal">"paste-clipboard"</code> signal</h3>
2768 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2769                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2770 <p>
2771 The ::paste-clipboard signal is a 
2772 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2773 which gets emitted to paste the contents of the clipboard 
2774 into the text view.
2775 </p>
2776 <p>
2777 The default bindings for this signal are
2778 Ctrl-v and Shift-Insert.
2779 </p>
2780 <div class="variablelist"><table border="0">
2781 <col align="left" valign="top">
2782 <tbody>
2783 <tr>
2784 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2785 <td>the object which received the signal</td>
2786 </tr>
2787 <tr>
2788 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2789 <td>user data set when the signal handler was connected.</td>
2790 </tr>
2791 </tbody>
2792 </table></div>
2793 </div>
2794 <hr>
2795 <div class="refsect2">
2796 <a name="GtkTextView-populate-popup"></a><h3>The <code class="literal">"populate-popup"</code> signal</h3>
2797 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *entry,
2798                                                         <a class="link" href="GtkMenu.html" title="GtkMenu"><span class="type">GtkMenu</span></a>     *menu,
2799                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-RUN-LAST:CAPS"><code class="literal">Run Last</code></a></pre>
2800 <p>
2801 The ::populate-popup signal gets emitted before showing the 
2802 context menu of the text view.
2803 </p>
2804 <p>
2805 If you need to add items to the context menu, connect
2806 to this signal and append your menuitems to the <em class="parameter"><code>menu</code></em>.
2807 </p>
2808 <div class="variablelist"><table border="0">
2809 <col align="left" valign="top">
2810 <tbody>
2811 <tr>
2812 <td><p><span class="term"><em class="parameter"><code>entry</code></em> :</span></p></td>
2813 <td>The text view on which the signal is emitted</td>
2814 </tr>
2815 <tr>
2816 <td><p><span class="term"><em class="parameter"><code>menu</code></em> :</span></p></td>
2817 <td>the menu that is being populated</td>
2818 </tr>
2819 <tr>
2820 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2821 <td>user data set when the signal handler was connected.</td>
2822 </tr>
2823 </tbody>
2824 </table></div>
2825 </div>
2826 <hr>
2827 <div class="refsect2">
2828 <a name="GtkTextView-preedit-changed"></a><h3>The <code class="literal">"preedit-changed"</code> signal</h3>
2829 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2830                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a>       *preedit,
2831                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2832 <p>
2833 If an input method is used, the typed text will not immediately
2834 be committed to the buffer. So if you are interested in the text,
2835 connect to this signal.
2836 </p>
2837 <p>
2838 This signal is only emitted if the text at the given position
2839 is actually editable.
2840 </p>
2841 <div class="variablelist"><table border="0">
2842 <col align="left" valign="top">
2843 <tbody>
2844 <tr>
2845 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2846 <td>the object which received the signal</td>
2847 </tr>
2848 <tr>
2849 <td><p><span class="term"><em class="parameter"><code>preedit</code></em> :</span></p></td>
2850 <td>the current preedit string</td>
2851 </tr>
2852 <tr>
2853 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2854 <td>user data set when the signal handler was connected.</td>
2855 </tr>
2856 </tbody>
2857 </table></div>
2858 <p class="since">Since 2.20</p>
2859 </div>
2860 <hr>
2861 <div class="refsect2">
2862 <a name="GtkTextView-select-all"></a><h3>The <code class="literal">"select-all"</code> signal</h3>
2863 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2864                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a>     select,
2865                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2866 <p>
2867 The ::select-all signal is a 
2868 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2869 which gets emitted to select or unselect the complete
2870 contents of the text view.
2871 </p>
2872 <p>
2873 The default bindings for this signal are Ctrl-a and Ctrl-/ 
2874 for selecting and Shift-Ctrl-a and Ctrl-\ for unselecting.
2875 </p>
2876 <div class="variablelist"><table border="0">
2877 <col align="left" valign="top">
2878 <tbody>
2879 <tr>
2880 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2881 <td>the object which received the signal</td>
2882 </tr>
2883 <tr>
2884 <td><p><span class="term"><em class="parameter"><code>select</code></em> :</span></p></td>
2885 <td>
2886 <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> to select, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> to unselect</td>
2887 </tr>
2888 <tr>
2889 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2890 <td>user data set when the signal handler was connected.</td>
2891 </tr>
2892 </tbody>
2893 </table></div>
2894 </div>
2895 <hr>
2896 <div class="refsect2">
2897 <a name="GtkTextView-set-anchor"></a><h3>The <code class="literal">"set-anchor"</code> signal</h3>
2898 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2899                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2900 <p>
2901 The ::set-anchor signal is a
2902 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a>
2903 which gets emitted when the user initiates setting the "anchor" 
2904 mark. The "anchor" mark gets placed at the same position as the
2905 "insert" mark.
2906 </p>
2907 <p>
2908 This signal has no default bindings.
2909 </p>
2910 <div class="variablelist"><table border="0">
2911 <col align="left" valign="top">
2912 <tbody>
2913 <tr>
2914 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2915 <td>the object which received the signal</td>
2916 </tr>
2917 <tr>
2918 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2919 <td>user data set when the signal handler was connected.</td>
2920 </tr>
2921 </tbody>
2922 </table></div>
2923 </div>
2924 <hr>
2925 <div class="refsect2">
2926 <a name="GtkTextView-toggle-cursor-visible"></a><h3>The <code class="literal">"toggle-cursor-visible"</code> signal</h3>
2927 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2928                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2929 <p>
2930 The ::toggle-cursor-visible signal is a 
2931 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2932 which gets emitted to toggle the visibility of the cursor.
2933 </p>
2934 <p>
2935 The default binding for this signal is F7.
2936 </p>
2937 <div class="variablelist"><table border="0">
2938 <col align="left" valign="top">
2939 <tbody>
2940 <tr>
2941 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2942 <td>the object which received the signal</td>
2943 </tr>
2944 <tr>
2945 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2946 <td>user data set when the signal handler was connected.</td>
2947 </tr>
2948 </tbody>
2949 </table></div>
2950 </div>
2951 <hr>
2952 <div class="refsect2">
2953 <a name="GtkTextView-toggle-overwrite"></a><h3>The <code class="literal">"toggle-overwrite"</code> signal</h3>
2954 <pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="GtkTextView.html" title="GtkTextView"><span class="type">GtkTextView</span></a> *text_view,
2955                                                         <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>     user_data)      : <a href="http://library.gnome.org/devel/gobject/unstable/gobject-Signals.html#G-SIGNAL-ACTION:CAPS"><code class="literal">Action</code></a></pre>
2956 <p>
2957 The ::toggle-overwrite signal is a 
2958 <a class="link" href="gtk3-Bindings.html#keybinding-signals">keybinding signal</a> 
2959 which gets emitted to toggle the overwrite mode of the text view.
2960 </p>
2961 <p>
2962 The default bindings for this signal is Insert.
2963 </p>
2964 <div class="variablelist"><table border="0">
2965 <col align="left" valign="top">
2966 <tbody>
2967 <tr>
2968 <td><p><span class="term"><em class="parameter"><code>text_view</code></em> :</span></p></td>
2969 <td>the object which received the signal</td>
2970 </tr>
2971 <tr>
2972 <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2973 <td>user data set when the signal handler was connected.</td>
2974 </tr>
2975 </tbody>
2976 </table></div>
2977 </div>
2978 </div>
2979 <div class="refsect1">
2980 <a name="GtkTextView.see-also"></a><h2>See Also</h2>
2981 <a class="link" href="GtkTextBuffer.html" title="GtkTextBuffer"><span class="type">GtkTextBuffer</span></a>, <a class="link" href="GtkTextIter.html" title="GtkTextIter"><span class="type">GtkTextIter</span></a>
2982 </div>
2983 </div>
2984 <div class="footer">
2985 <hr>
2986           Generated by GTK-Doc V1.18</div>
2987 </body>
2988 </html>