4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
5
<title>EvSelection</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
7
<link rel="home" href="index.html" title="libevdocument Reference Manual">
8
<link rel="up" href="interfaces.html" title="Part I. Document Interfaces">
9
<link rel="prev" href="EvDocument.html" title="EvDocument">
10
<link rel="next" href="EvDocumentLayers.html" title="EvDocumentLayers">
11
<meta name="generator" content="GTK-Doc V1.12 (XML mode)">
7
<link rel="home" href="index.html" title="Evince Document Library Reference Manual">
8
<link rel="up" href="document-interfaces.html" title="Part I. Document Interfaces">
9
<link rel="prev" href="EvDocumentTransition.html" title="EvDocumentTransition">
10
<link rel="next" href="EvFileExporter.html" title="EvFileExporter">
11
<meta name="generator" content="GTK-Doc V1.14 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
13
<link rel="part" href="interfaces.html" title="Part I. Document Interfaces">
14
<link rel="part" href="data.html" title="Part II. Document data">
15
<link rel="part" href="helper.html" title="Part III. Helper functions">
17
14
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
18
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
19
16
<tr valign="middle">
20
<td><a accesskey="p" href="EvDocument.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
21
<td><a accesskey="u" href="interfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
17
<td><a accesskey="p" href="EvDocumentTransition.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
<td><a accesskey="u" href="document-interfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
22
19
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
23
<th width="100%" align="center">libevdocument Reference Manual</th>
24
<td><a accesskey="n" href="EvDocumentLayers.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
20
<th width="100%" align="center">Evince Document Library Reference Manual</th>
21
<td><a accesskey="n" href="EvFileExporter.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
26
23
<tr><td colspan="5" class="shortcuts">
27
24
<a href="#EvSelection.synopsis" class="shortcut">Top</a>
46
43
#define <a class="link" href="EvSelection.html#EV-IS-SELECTION-IFACE:CAPS" title="EV_IS_SELECTION_IFACE()">EV_IS_SELECTION_IFACE</a> (k)
47
44
enum <a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a>;
48
45
<a class="link" href="EvSelection.html#EvSelection-struct" title="EvSelection">EvSelection</a>;
49
void <a class="link" href="EvSelection.html#ev-selection-render-selection" title="ev_selection_render_selection ()">ev_selection_render_selection</a> (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
50
<a class="link" href="EvRenderContext.html" title="EvRenderContext">EvRenderContext</a> *rc,
51
<a href="/home/carlos/gnome-cvs/share/gtk-doc/html/cairo/cairo-surface.html#cairo-surface-t">cairo_surface_t</a> **surface,
52
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *points,
53
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *old_points,
54
<a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a> style,
57
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a> * <a class="link" href="EvSelection.html#ev-selection-get-selected-text" title="ev_selection_get_selected_text ()">ev_selection_get_selected_text</a> (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
58
<a class="link" href="EvRenderContext.html" title="EvRenderContext">EvRenderContext</a> *rc,
59
<a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a> style,
60
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *points);
61
GdkRegion * <a class="link" href="EvSelection.html#ev-selection-get-selection-map" title="ev_selection_get_selection_map ()">ev_selection_get_selection_map</a> (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
62
<a class="link" href="EvPage.html" title="EvPage">EvPage</a> *page);
63
GdkRegion * <a class="link" href="EvSelection.html#ev-selection-get-selection-region" title="ev_selection_get_selection_region ()">ev_selection_get_selection_region</a> (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
64
<a class="link" href="EvRenderContext.html" title="EvRenderContext">EvRenderContext</a> *rc,
65
<a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a> style,
66
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *points);
46
<a class="link" href="EvSelection.html#EvSelectionIface" title="EvSelectionIface">EvSelectionIface</a>;
47
<span class="returnvalue">void</span> <a class="link" href="EvSelection.html#ev-selection-render-selection" title="ev_selection_render_selection ()">ev_selection_render_selection</a> (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
48
<em class="parameter"><code><a class="link" href="EvRenderContext.html" title="EvRenderContext"><span class="type">EvRenderContext</span></a> *rc</code></em>,
49
<em class="parameter"><code><a href="/home/carlos/gnome-cvs/share/gtk-doc/html/cairo/cairo-surface.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> **surface</code></em>,
50
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *points</code></em>,
51
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *old_points</code></em>,
52
<em class="parameter"><code><a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle"><span class="type">EvSelectionStyle</span></a> style</code></em>,
53
<em class="parameter"><code><span class="type">GdkColor</span> *text</code></em>,
54
<em class="parameter"><code><span class="type">GdkColor</span> *base</code></em>);
55
<a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * <a class="link" href="EvSelection.html#ev-selection-get-selected-text" title="ev_selection_get_selected_text ()">ev_selection_get_selected_text</a> (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
56
<em class="parameter"><code><a class="link" href="EvRenderContext.html" title="EvRenderContext"><span class="type">EvRenderContext</span></a> *rc</code></em>,
57
<em class="parameter"><code><a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle"><span class="type">EvSelectionStyle</span></a> style</code></em>,
58
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *points</code></em>);
59
<span class="returnvalue">GdkRegion</span> * <a class="link" href="EvSelection.html#ev-selection-get-selection-map" title="ev_selection_get_selection_map ()">ev_selection_get_selection_map</a> (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
60
<em class="parameter"><code><a class="link" href="EvPage.html" title="EvPage"><span class="type">EvPage</span></a> *page</code></em>);
61
<span class="returnvalue">GdkRegion</span> * <a class="link" href="EvSelection.html#ev-selection-get-selection-region" title="ev_selection_get_selection_region ()">ev_selection_get_selection_region</a> (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
62
<em class="parameter"><code><a class="link" href="EvRenderContext.html" title="EvRenderContext"><span class="type">EvRenderContext</span></a> *rc</code></em>,
63
<em class="parameter"><code><a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle"><span class="type">EvSelectionStyle</span></a> style</code></em>,
64
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *points</code></em>);
69
67
<div class="refsect1" title="Object Hierarchy">
132
<div class="refsect2" title="EvSelectionIface">
133
<a name="EvSelectionIface"></a><h3>EvSelectionIface</h3>
134
<pre class="programlisting">typedef struct {
135
GTypeInterface base_iface;
137
void (* render_selection) (EvSelection *selection,
139
cairo_surface_t **surface,
141
EvRectangle *old_points,
142
EvSelectionStyle style,
145
gchar * (* get_selected_text) (EvSelection *selection,
147
EvSelectionStyle style,
148
EvRectangle *points);
149
GdkRegion * (* get_selection_map) (EvSelection *selection,
151
GdkRegion * (* get_selection_region) (EvSelection *selection,
153
EvSelectionStyle style,
154
EvRectangle *points);
134
159
<div class="refsect2" title="ev_selection_render_selection ()">
135
160
<a name="ev-selection-render-selection"></a><h3>ev_selection_render_selection ()</h3>
136
<pre class="programlisting">void ev_selection_render_selection (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
137
<a class="link" href="EvRenderContext.html" title="EvRenderContext">EvRenderContext</a> *rc,
138
<a href="/home/carlos/gnome-cvs/share/gtk-doc/html/cairo/cairo-surface.html#cairo-surface-t">cairo_surface_t</a> **surface,
139
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *points,
140
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *old_points,
141
<a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a> style,
143
GdkColor *base);</pre>
161
<pre class="programlisting"><span class="returnvalue">void</span> ev_selection_render_selection (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
162
<em class="parameter"><code><a class="link" href="EvRenderContext.html" title="EvRenderContext"><span class="type">EvRenderContext</span></a> *rc</code></em>,
163
<em class="parameter"><code><a href="/home/carlos/gnome-cvs/share/gtk-doc/html/cairo/cairo-surface.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> **surface</code></em>,
164
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *points</code></em>,
165
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *old_points</code></em>,
166
<em class="parameter"><code><a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle"><span class="type">EvSelectionStyle</span></a> style</code></em>,
167
<em class="parameter"><code><span class="type">GdkColor</span> *text</code></em>,
168
<em class="parameter"><code><span class="type">GdkColor</span> *base</code></em>);</pre>
146
171
<div class="variablelist"><table border="0">
193
218
<div class="refsect2" title="ev_selection_get_selected_text ()">
194
219
<a name="ev-selection-get-selected-text"></a><h3>ev_selection_get_selected_text ()</h3>
195
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar">gchar</a> * ev_selection_get_selected_text (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
196
<a class="link" href="EvRenderContext.html" title="EvRenderContext">EvRenderContext</a> *rc,
197
<a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a> style,
198
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *points);</pre>
220
<pre class="programlisting"><a href="http://library.gnome.org/devel/glib/unstable/glib-Basic-Types.html#gchar"><span class="returnvalue">gchar</span></a> * ev_selection_get_selected_text (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
221
<em class="parameter"><code><a class="link" href="EvRenderContext.html" title="EvRenderContext"><span class="type">EvRenderContext</span></a> *rc</code></em>,
222
<em class="parameter"><code><a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle"><span class="type">EvSelectionStyle</span></a> style</code></em>,
223
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *points</code></em>);</pre>
201
226
<div class="variablelist"><table border="0">
261
286
<div class="refsect2" title="ev_selection_get_selection_region ()">
262
287
<a name="ev-selection-get-selection-region"></a><h3>ev_selection_get_selection_region ()</h3>
263
<pre class="programlisting">GdkRegion * ev_selection_get_selection_region (<a class="link" href="EvSelection.html" title="EvSelection">EvSelection</a> *selection,
264
<a class="link" href="EvRenderContext.html" title="EvRenderContext">EvRenderContext</a> *rc,
265
<a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle">EvSelectionStyle</a> style,
266
<a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle">EvRectangle</a> *points);</pre>
288
<pre class="programlisting"><span class="returnvalue">GdkRegion</span> * ev_selection_get_selection_region (<em class="parameter"><code><a class="link" href="EvSelection.html" title="EvSelection"><span class="type">EvSelection</span></a> *selection</code></em>,
289
<em class="parameter"><code><a class="link" href="EvRenderContext.html" title="EvRenderContext"><span class="type">EvRenderContext</span></a> *rc</code></em>,
290
<em class="parameter"><code><a class="link" href="EvSelection.html#EvSelectionStyle" title="enum EvSelectionStyle"><span class="type">EvSelectionStyle</span></a> style</code></em>,
291
<em class="parameter"><code><a class="link" href="EvDocument.html#EvRectangle" title="EvRectangle"><span class="type">EvRectangle</span></a> *points</code></em>);</pre>
269
294
<div class="variablelist"><table border="0">