4
4
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
<title>Evince Document Library Reference Manual: ev-document-misc</title>
5
<title>EvDocumentMisc</title>
6
6
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
<link rel="home" href="index.html" title="Evince Document Library Reference Manual">
8
8
<link rel="up" href="document-interfaces.html" title="Part I. Document Interfaces">
9
9
<link rel="prev" href="EvDocumentLinks.html" title="EvDocumentLinks">
10
10
<link rel="next" href="EvDocumentPrint.html" title="EvDocumentPrint">
11
<meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
11
<meta name="generator" content="GTK-Doc V1.19 (XML mode)">
12
12
<link rel="stylesheet" href="style.css" type="text/css">
14
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="10"><tr valign="middle">
16
<td width="100%" align="left">
17
<a href="#" class="shortcut">Top</a>
15
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
17
<td><a accesskey="p" href="EvDocumentLinks.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>
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">Evince Document Library Reference Manual</th>
21
<td><a accesskey="n" href="EvDocumentPrint.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
23
<tr><td colspan="5" class="shortcuts">
24
<a href="#libevdocument-EvDocumentMisc.synopsis" class="shortcut">Top</a>
19
26
<a href="#libevdocument-EvDocumentMisc.description" class="shortcut">Description</a>
21
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
<td><a accesskey="u" href="document-interfaces.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23
<td><a accesskey="p" href="EvDocumentLinks.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
<td><a accesskey="n" href="EvDocumentPrint.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
26
29
<div class="refentry">
27
30
<a name="libevdocument-EvDocumentMisc"></a><div class="titlepage"></div>
28
31
<div class="refnamediv"><table width="100%"><tr>
30
<h2><span class="refentrytitle"><a name="libevdocument-EvDocumentMisc.top_of_page"></a>ev-document-misc</span></h2>
31
<p>ev-document-misc</p>
33
<h2><span class="refentrytitle"><a name="libevdocument-EvDocumentMisc.top_of_page"></a>EvDocumentMisc</span></h2>
33
36
<td valign="top" align="right"></td>
34
37
</tr></table></div>
39
42
<em class="parameter"><code><span class="type">gint</span> *x</code></em>,
40
43
<em class="parameter"><code><span class="type">gint</span> *y</code></em>);
41
44
<span class="returnvalue">gdouble</span> <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-get-screen-dpi" title="ev_document_misc_get_screen_dpi ()">ev_document_misc_get_screen_dpi</a> (<em class="parameter"><code><span class="type">GdkScreen</span> *screen</code></em>);
42
<a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-surface-from-pixbuf" title="ev_document_misc_surface_from_pixbuf ()">ev_document_misc_surface_from_pixbuf</a>
45
<span class="returnvalue">cairo_surface_t</span> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-surface-from-pixbuf" title="ev_document_misc_surface_from_pixbuf ()">ev_document_misc_surface_from_pixbuf</a>
43
46
(<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);
44
47
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-pixbuf-from-surface" title="ev_document_misc_pixbuf_from_surface ()">ev_document_misc_pixbuf_from_surface</a>
45
(<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);
46
<a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-surface-rotate-and-scale" title="ev_document_misc_surface_rotate_and_scale ()">ev_document_misc_surface_rotate_and_scale</a>
47
(<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
48
(<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>);
49
<span class="returnvalue">cairo_surface_t</span> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-surface-rotate-and-scale" title="ev_document_misc_surface_rotate_and_scale ()">ev_document_misc_surface_rotate_and_scale</a>
50
(<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>,
48
51
<em class="parameter"><code><span class="type">gint</span> dest_width</code></em>,
49
52
<em class="parameter"><code><span class="type">gint</span> dest_height</code></em>,
50
53
<em class="parameter"><code><span class="type">gint</span> dest_rotation</code></em>);
51
<span class="returnvalue">void</span> <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-invert-surface" title="ev_document_misc_invert_surface ()">ev_document_misc_invert_surface</a> (<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);
54
<span class="returnvalue">void</span> <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-invert-surface" title="ev_document_misc_invert_surface ()">ev_document_misc_invert_surface</a> (<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>);
52
55
<span class="returnvalue">void</span> <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-invert-pixbuf" title="ev_document_misc_invert_pixbuf ()">ev_document_misc_invert_pixbuf</a> (<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);
53
56
<span class="returnvalue">gchar</span> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-format-date" title="ev_document_misc_format_date ()">ev_document_misc_format_date</a> (<em class="parameter"><code><span class="type">GTime</span> utime</code></em>);
54
57
<span class="returnvalue">GdkPixbuf</span> * <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-render-loading-thumbnail" title="ev_document_misc_render_loading_thumbnail ()">ev_document_misc_render_loading_thumbnail</a>
68
71
(<em class="parameter"><code><span class="type">gint</span> page_width</code></em>,
69
72
<em class="parameter"><code><span class="type">gint</span> page_height</code></em>,
70
73
<em class="parameter"><code><span class="type">GtkBorder</span> *border</code></em>);
71
<span class="returnvalue">void</span> <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-paint-one-page" title="ev_document_misc_paint_one_page ()">ev_document_misc_paint_one_page</a> (<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
74
<span class="returnvalue">void</span> <a class="link" href="libevdocument-EvDocumentMisc.html#ev-document-misc-paint-one-page" title="ev_document_misc_paint_one_page ()">ev_document_misc_paint_one_page</a> (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
72
75
<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
73
76
<em class="parameter"><code><span class="type">GdkRectangle</span> *area</code></em>,
74
77
<em class="parameter"><code><span class="type">GtkBorder</span> *border</code></em>,
103
104
<div class="refsect2">
104
105
<a name="ev-document-misc-surface-from-pixbuf"></a><h3>ev_document_misc_surface_from_pixbuf ()</h3>
105
<pre class="programlisting"><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> * ev_document_misc_surface_from_pixbuf
106
<pre class="programlisting"><span class="returnvalue">cairo_surface_t</span> * ev_document_misc_surface_from_pixbuf
106
107
(<em class="parameter"><code><span class="type">GdkPixbuf</span> *pixbuf</code></em>);</pre>
111
110
<div class="refsect2">
112
111
<a name="ev-document-misc-pixbuf-from-surface"></a><h3>ev_document_misc_pixbuf_from_surface ()</h3>
113
112
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * ev_document_misc_pixbuf_from_surface
114
(<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
113
(<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>);</pre>
115
114
<div class="variablelist"><table border="0" class="variablelist">
117
116
<col align="left" valign="top">
135
134
<div class="refsect2">
136
135
<a name="ev-document-misc-surface-rotate-and-scale"></a><h3>ev_document_misc_surface_rotate_and_scale ()</h3>
137
<pre class="programlisting"><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="returnvalue">cairo_surface_t</span></a> * ev_document_misc_surface_rotate_and_scale
138
(<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
136
<pre class="programlisting"><span class="returnvalue">cairo_surface_t</span> * ev_document_misc_surface_rotate_and_scale
137
(<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>,
139
138
<em class="parameter"><code><span class="type">gint</span> dest_width</code></em>,
140
139
<em class="parameter"><code><span class="type">gint</span> dest_height</code></em>,
141
140
<em class="parameter"><code><span class="type">gint</span> dest_rotation</code></em>);</pre>
146
143
<div class="refsect2">
147
144
<a name="ev-document-misc-invert-surface"></a><h3>ev_document_misc_invert_surface ()</h3>
148
<pre class="programlisting"><span class="returnvalue">void</span> ev_document_misc_invert_surface (<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html#cairo-surface-t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
145
<pre class="programlisting"><span class="returnvalue">void</span> ev_document_misc_invert_surface (<em class="parameter"><code><span class="type">cairo_surface_t</span> *surface</code></em>);</pre>
151
148
<div class="refsect2">
165
162
<em class="parameter"><code><span class="type">int</span> width</code></em>,
166
163
<em class="parameter"><code><span class="type">int</span> height</code></em>,
167
164
<em class="parameter"><code><span class="type">gboolean</span> inverted_colors</code></em>);</pre>
165
<div class="variablelist"><table border="0" class="variablelist">
167
<col align="left" valign="top">
172
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
173
<td>a <span class="type">GtkWidget</span> to use for style information</td>
176
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
177
<td>the desired width</td>
180
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
181
<td>the desired height</td>
184
<td><p><span class="term"><em class="parameter"><code>inverted_colors</code></em> :</span></p></td>
185
<td>whether to invert colors</td>
188
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
189
<td>a <span class="type">GdkPixbuf</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
168
194
<p class="since">Since 3.8</p>
173
199
<pre class="programlisting"><span class="returnvalue">GdkPixbuf</span> * ev_document_misc_render_thumbnail_with_frame
174
200
(<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
175
201
<em class="parameter"><code><span class="type">GdkPixbuf</span> *source_pixbuf</code></em>);</pre>
202
<div class="variablelist"><table border="0" class="variablelist">
204
<col align="left" valign="top">
209
<td><p><span class="term"><em class="parameter"><code>widget</code></em> :</span></p></td>
210
<td>a <span class="type">GtkWidget</span> to use for style information</td>
213
<td><p><span class="term"><em class="parameter"><code>source_pixbuf</code></em> :</span></p></td>
214
<td>a <span class="type">GdkPixbuf</span>
218
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
219
<td>a <span class="type">GdkPixbuf</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
176
224
<p class="since">Since 3.8</p>
182
230
(<em class="parameter"><code><span class="type">int</span> width</code></em>,
183
231
<em class="parameter"><code><span class="type">int</span> height</code></em>,
184
232
<em class="parameter"><code><span class="type">gboolean</span> inverted_colors</code></em>);</pre>
233
<div class="variablelist"><table border="0" class="variablelist">
235
<col align="left" valign="top">
240
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
241
<td>the desired width</td>
244
<td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
245
<td>the desired height</td>
248
<td><p><span class="term"><em class="parameter"><code>inverted_colors</code></em> :</span></p></td>
249
<td>whether to invert colors</td>
252
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
253
<td>a <span class="type">GdkPixbuf</span>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
187
260
<div class="refsect2">
190
263
(<em class="parameter"><code><span class="type">gint</span> page_width</code></em>,
191
264
<em class="parameter"><code><span class="type">gint</span> page_height</code></em>,
192
265
<em class="parameter"><code><span class="type">GtkBorder</span> *border</code></em>);</pre>
197
268
<div class="refsect2">
198
269
<a name="ev-document-misc-paint-one-page"></a><h3>ev_document_misc_paint_one_page ()</h3>
199
<pre class="programlisting"><span class="returnvalue">void</span> ev_document_misc_paint_one_page (<em class="parameter"><code><a href="/home/carlos/gnome/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-t"><span class="type">cairo_t</span></a> *cr</code></em>,
270
<pre class="programlisting"><span class="returnvalue">void</span> ev_document_misc_paint_one_page (<em class="parameter"><code><span class="type">cairo_t</span> *cr</code></em>,
200
271
<em class="parameter"><code><span class="type">GtkWidget</span> *widget</code></em>,
201
272
<em class="parameter"><code><span class="type">GdkRectangle</span> *area</code></em>,
202
273
<em class="parameter"><code><span class="type">GtkBorder</span> *border</code></em>,
203
274
<em class="parameter"><code><span class="type">gboolean</span> highlight</code></em>,
204
275
<em class="parameter"><code><span class="type">gboolean</span> inverted_colors</code></em>);</pre>
209
278
<div class="refsect2">