1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>GeditView</title>
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
<link rel="home" href="index.html" title="gedit Reference Manual">
8
<link rel="up" href="ch01.html" title="gedit">
9
<link rel="prev" href="GeditTab.html" title="GeditTab">
10
<link rel="next" href="GeditWindow.html" title="GeditWindow">
11
<meta name="generator" content="GTK-Doc V1.13 (XML mode)">
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="chapter" href="ch01.html" title="gedit">
15
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
16
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
18
<td><a accesskey="p" href="GeditTab.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
19
<td><a accesskey="u" href="ch01.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
20
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
21
<th width="100%" align="center">gedit Reference Manual</th>
22
<td><a accesskey="n" href="GeditWindow.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
24
<tr><td colspan="5" class="shortcuts">
25
<a href="#GeditView.synopsis" class="shortcut">Top</a>
27
<a href="#GeditView.description" class="shortcut">Description</a>
29
<a href="#GeditView.object-hierarchy" class="shortcut">Object Hierarchy</a>
31
<a href="#GeditView.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
33
<a href="#GeditView.signals" class="shortcut">Signals</a>
36
<div class="refentry" title="GeditView">
37
<a name="GeditView"></a><div class="titlepage"></div>
38
<div class="refnamediv"><table width="100%"><tr>
40
<h2><span class="refentrytitle"><a name="GeditView.top_of_page"></a>GeditView</span></h2>
43
<td valign="top" align="right"></td>
45
<div class="refsynopsisdiv" title="Synopsis">
46
<a name="GeditView.synopsis"></a><h2>Synopsis</h2>
47
<pre class="synopsis"> <a class="link" href="GeditView.html#GeditViewPrivate" title="GeditViewPrivate">GeditViewPrivate</a>;
48
<a class="link" href="GeditView.html#GeditView-struct" title="GeditView">GeditView</a>;
49
<a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * <a class="link" href="GeditView.html#gedit-view-new" title="gedit_view_new ()">gedit_view_new</a> (<a class="link" href="GeditDocument.html" title="GeditDocument"><span class="returnvalue">GeditDocument</span></a> *doc);
50
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-cut-clipboard" title="gedit_view_cut_clipboard ()">gedit_view_cut_clipboard</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);
51
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-copy-clipboard" title="gedit_view_copy_clipboard ()">gedit_view_copy_clipboard</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);
52
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-paste-clipboard" title="gedit_view_paste_clipboard ()">gedit_view_paste_clipboard</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);
53
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-delete-selection" title="gedit_view_delete_selection ()">gedit_view_delete_selection</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);
54
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-select-all" title="gedit_view_select_all ()">gedit_view_select_all</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);
55
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-scroll-to-cursor" title="gedit_view_scroll_to_cursor ()">gedit_view_scroll_to_cursor</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);
56
<span class="returnvalue">void</span> <a class="link" href="GeditView.html#gedit-view-set-font" title="gedit_view_set_font ()">gedit_view_set_font</a> (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view,
57
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> def,
58
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *font_name);
61
<div class="refsect1" title="Object Hierarchy">
62
<a name="GeditView.object-hierarchy"></a><h2>Object Hierarchy</h2>
63
<pre class="synopsis">
64
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GObject">GObject</a>
65
+----<a href="http://library.gnome.org/devel/gobject/unstable/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
66
+----<a href="http://library.gnome.org/devel/gtk/unstable/GtkObject.html">GtkObject</a>
67
+----<a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html">GtkWidget</a>
68
+----<a href="http://library.gnome.org/devel/gtk/unstable/GtkContainer.html">GtkContainer</a>
69
+----<a href="http://library.gnome.org/devel/gtk/unstable/GtkTextView.html">GtkTextView</a>
70
+----<a href="/usr/share/gtk-doc/html/gtksourceview-2.0/GtkSourceView.html">GtkSourceView</a>
74
<div class="refsect1" title="Implemented Interfaces">
75
<a name="GeditView.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
78
AtkImplementorIface and <a href="http://library.gnome.org/devel/gtk/unstable/gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
80
<div class="refsect1" title="Signals">
81
<a name="GeditView.signals"></a><h2>Signals</h2>
82
<pre class="synopsis">
83
"<a class="link" href="GeditView.html#GeditView-drop-uris" title='The "drop-uris" signal'>drop-uris</a>" : Run Last / Action
84
"<a class="link" href="GeditView.html#GeditView-reset-searched-text" title='The "reset-searched-text" signal'>reset-searched-text</a>" : Run Last / Action
85
"<a class="link" href="GeditView.html#GeditView-start-interactive-goto-line" title='The "start-interactive-goto-line" signal'>start-interactive-goto-line</a>" : Run Last / Action
86
"<a class="link" href="GeditView.html#GeditView-start-interactive-search" title='The "start-interactive-search" signal'>start-interactive-search</a>" : Run Last / Action
89
<div class="refsect1" title="Description">
90
<a name="GeditView.description"></a><h2>Description</h2>
94
<div class="refsect1" title="Details">
95
<a name="GeditView.details"></a><h2>Details</h2>
96
<div class="refsect2" title="GeditViewPrivate">
97
<a name="GeditViewPrivate"></a><h3>GeditViewPrivate</h3>
98
<pre class="programlisting">typedef struct _GeditViewPrivate GeditViewPrivate;</pre>
103
<div class="refsect2" title="GeditView">
104
<a name="GeditView-struct"></a><h3>GeditView</h3>
105
<pre class="programlisting">typedef struct _GeditView GeditView;</pre>
110
<div class="refsect2" title="gedit_view_new ()">
111
<a name="gedit-view-new"></a><h3>gedit_view_new ()</h3>
112
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> * gedit_view_new (<a class="link" href="GeditDocument.html" title="GeditDocument"><span class="returnvalue">GeditDocument</span></a> *doc);</pre>
114
Creates a new <a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a> object displaying the <em class="parameter"><code>doc</code></em> document.
115
<em class="parameter"><code>doc</code></em> cannot be NULL.</p>
116
<div class="variablelist"><table border="0">
117
<col align="left" valign="top">
120
<td><p><span class="term"><em class="parameter"><code>doc</code></em> :</span></p></td>
121
<td> a <a class="link" href="GeditDocument.html" title="GeditDocument"><span class="type">GeditDocument</span></a>
125
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
126
<td> a new <a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a>
133
<div class="refsect2" title="gedit_view_cut_clipboard ()">
134
<a name="gedit-view-cut-clipboard"></a><h3>gedit_view_cut_clipboard ()</h3>
135
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_cut_clipboard (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);</pre>
138
<div class="variablelist"><table border="0">
139
<col align="left" valign="top">
141
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
148
<div class="refsect2" title="gedit_view_copy_clipboard ()">
149
<a name="gedit-view-copy-clipboard"></a><h3>gedit_view_copy_clipboard ()</h3>
150
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_copy_clipboard (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);</pre>
153
<div class="variablelist"><table border="0">
154
<col align="left" valign="top">
156
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
163
<div class="refsect2" title="gedit_view_paste_clipboard ()">
164
<a name="gedit-view-paste-clipboard"></a><h3>gedit_view_paste_clipboard ()</h3>
165
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_paste_clipboard (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);</pre>
168
<div class="variablelist"><table border="0">
169
<col align="left" valign="top">
171
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
178
<div class="refsect2" title="gedit_view_delete_selection ()">
179
<a name="gedit-view-delete-selection"></a><h3>gedit_view_delete_selection ()</h3>
180
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_delete_selection (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);</pre>
182
Deletes the text currently selected in the <a href="http://library.gnome.org/devel/gtk/unstable/GtkTextBuffer.html"><span class="type">GtkTextBuffer</span></a> associated
183
to the view and scroll to the cursor position.</p>
184
<div class="variablelist"><table border="0">
185
<col align="left" valign="top">
187
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
188
<td> a <a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a>
194
<div class="refsect2" title="gedit_view_select_all ()">
195
<a name="gedit-view-select-all"></a><h3>gedit_view_select_all ()</h3>
196
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_select_all (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);</pre>
198
Selects all the text displayed in the <em class="parameter"><code>view</code></em>.</p>
199
<div class="variablelist"><table border="0">
200
<col align="left" valign="top">
202
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
203
<td> a <a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a>
209
<div class="refsect2" title="gedit_view_scroll_to_cursor ()">
210
<a name="gedit-view-scroll-to-cursor"></a><h3>gedit_view_scroll_to_cursor ()</h3>
211
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_scroll_to_cursor (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view);</pre>
213
Scrolls the <em class="parameter"><code>view</code></em> to the cursor position.</p>
214
<div class="variablelist"><table border="0">
215
<col align="left" valign="top">
217
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
218
<td> a <a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a>
224
<div class="refsect2" title="gedit_view_set_font ()">
225
<a name="gedit-view-set-font"></a><h3>gedit_view_set_font ()</h3>
226
<pre class="programlisting"><span class="returnvalue">void</span> gedit_view_set_font (<a class="link" href="GeditView.html" title="GeditView"><span class="returnvalue">GeditView</span></a> *view,
227
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> def,
228
const <a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> *font_name);</pre>
230
If <em class="parameter"><code>def</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><span class="type">TRUE</span></a>, resets the font of the <em class="parameter"><code>view</code></em> to the default font
231
otherwise sets it to <em class="parameter"><code>font_name</code></em>.</p>
232
<div class="variablelist"><table border="0">
233
<col align="left" valign="top">
236
<td><p><span class="term"><em class="parameter"><code>view</code></em> :</span></p></td>
237
<td> a <a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a>
241
<td><p><span class="term"><em class="parameter"><code>def</code></em> :</span></p></td>
242
<td> whether to reset the default font
246
<td><p><span class="term"><em class="parameter"><code>font_name</code></em> :</span></p></td>
247
<td> the name of the font to use
254
<div class="refsect1" title="Signal Details">
255
<a name="GeditView.signal-details"></a><h2>Signal Details</h2>
256
<div class="refsect2" title='The "drop-uris" signal'>
257
<a name="GeditView-drop-uris"></a><h3>The <code class="literal">"drop-uris"</code> signal</h3>
258
<pre class="programlisting"><span class="returnvalue">void</span> user_function (<a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a> *geditview,
259
<a href="http://library.gnome.org/devel/gobject/unstable/gobject-Boxed-Types.html#GStrv"><span class="type">GStrv</span></a> *arg1,
260
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last / Action</pre>
263
<div class="variablelist"><table border="0">
264
<col align="left" valign="top">
267
<td><p><span class="term"><em class="parameter"><code>geditview</code></em> :</span></p></td>
268
<td>the object which received the signal.
272
<td><p><span class="term"><em class="parameter"><code>arg1</code></em> :</span></p></td>
277
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
278
<td>user data set when the signal handler was connected.</td>
284
<div class="refsect2" title='The "reset-searched-text" signal'>
285
<a name="GeditView-reset-searched-text"></a><h3>The <code class="literal">"reset-searched-text"</code> signal</h3>
286
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a> *geditview,
287
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last / Action</pre>
290
<div class="variablelist"><table border="0">
291
<col align="left" valign="top">
294
<td><p><span class="term"><em class="parameter"><code>geditview</code></em> :</span></p></td>
295
<td>the object which received the signal.
299
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
300
<td>user data set when the signal handler was connected.</td>
303
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
311
<div class="refsect2" title='The "start-interactive-goto-line" signal'>
312
<a name="GeditView-start-interactive-goto-line"></a><h3>The <code class="literal">"start-interactive-goto-line"</code> signal</h3>
313
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a> *geditview,
314
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last / Action</pre>
317
<div class="variablelist"><table border="0">
318
<col align="left" valign="top">
321
<td><p><span class="term"><em class="parameter"><code>geditview</code></em> :</span></p></td>
322
<td>the object which received the signal.
326
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
327
<td>user data set when the signal handler was connected.</td>
330
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
338
<div class="refsect2" title='The "start-interactive-search" signal'>
339
<a name="GeditView-start-interactive-search"></a><h3>The <code class="literal">"start-interactive-search"</code> signal</h3>
340
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> user_function (<a class="link" href="GeditView.html" title="GeditView"><span class="type">GeditView</span></a> *geditview,
341
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a> user_data) : Run Last / Action</pre>
344
<div class="variablelist"><table border="0">
345
<col align="left" valign="top">
348
<td><p><span class="term"><em class="parameter"><code>geditview</code></em> :</span></p></td>
349
<td>the object which received the signal.
353
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
354
<td>user data set when the signal handler was connected.</td>
357
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
368
Generated by GTK-Doc V1.13</div>
b'\\ No newline at end of file'