File: EogPrintPreview.html

package info (click to toggle)
eog 2.30.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 14,044 kB
  • ctags: 3,758
  • sloc: ansic: 29,896; xml: 16,113; sh: 10,620; makefile: 678
file content (459 lines) | stat: -rw-r--r-- 30,977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>EogPrintPreview</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="Eye of GNOME Reference Manual">
<link rel="up" href="ch03.html" title="Printing">
<link rel="prev" href="ch03.html" title="Printing">
<link rel="next" href="EogPrintImageSetup.html" title="EogPrintImageSetup">
<meta name="generator" content="GTK-Doc V1.15 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="ch03.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch03.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">Eye of GNOME Reference Manual</th>
<td><a accesskey="n" href="EogPrintImageSetup.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#EogPrintPreview.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#EogPrintPreview.description" class="shortcut">Description</a>
                   | 
                  <a href="#EogPrintPreview.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#EogPrintPreview.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
                   | 
                  <a href="#EogPrintPreview.properties" class="shortcut">Properties</a>
                   | 
                  <a href="#EogPrintPreview.signals" class="shortcut">Signals</a>
</td></tr>
</table>
<div class="refentry" title="EogPrintPreview">
<a name="EogPrintPreview"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="EogPrintPreview.top_of_page"></a>EogPrintPreview</span></h2>
<p>EogPrintPreview</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="EogPrintPreview.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">                    <a class="link" href="EogPrintPreview.html#EogPrintPreview-struct" title="EogPrintPreview">EogPrintPreview</a>;
<a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="EogPrintPreview.html#eog-print-preview-new" title="eog_print_preview_new ()">eog_print_preview_new</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
<a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="EogPrintPreview.html#eog-print-preview-new-with-pixbuf" title="eog_print_preview_new_with_pixbuf ()">eog_print_preview_new_with_pixbuf</a>   (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="EogPrintPreview.html#eog-print-preview-set-page-margins" title="eog_print_preview_set_page_margins ()">eog_print_preview_set_page_margins</a>  (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> l_margin</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> r_margin</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> t_margin</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> b_margin</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="EogPrintPreview.html#eog-print-preview-set-from-page-setup" title="eog_print_preview_set_from_page_setup ()">eog_print_preview_set_from_page_setup</a>
                                                        (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkPageSetup.html"><span class="type">GtkPageSetup</span></a> *setup</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="EogPrintPreview.html#eog-print-preview-get-image-position" title="eog_print_preview_get_image_position ()">eog_print_preview_get_image_position</a>
                                                        (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *x</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="EogPrintPreview.html#eog-print-preview-set-image-position" title="eog_print_preview_set_image_position ()">eog_print_preview_set_image_position</a>
                                                        (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="EogPrintPreview.html#eog-print-preview-set-scale" title="eog_print_preview_set_scale ()">eog_print_preview_set_scale</a>         (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> scale</code></em>);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="EogPrintPreview.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject">GObject</a>
   +----<a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GInitiallyUnowned">GInitiallyUnowned</a>
         +----<a href="http://library.gnome.org/devel/gtk/unstable/GtkObject.html">GtkObject</a>
               +----<a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html">GtkWidget</a>
                     +----<a href="http://library.gnome.org/devel/gtk/unstable/GtkContainer.html">GtkContainer</a>
                           +----<a href="http://library.gnome.org/devel/gtk/unstable/GtkBin.html">GtkBin</a>
                                 +----<a href="http://library.gnome.org/devel/gtk/unstable/GtkFrame.html">GtkFrame</a>
                                       +----<a href="http://library.gnome.org/devel/gtk/unstable/GtkAspectFrame.html">GtkAspectFrame</a>
                                             +----EogPrintPreview
</pre>
</div>
<div class="refsect1" title="Implemented Interfaces">
<a name="EogPrintPreview.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
EogPrintPreview implements
 AtkImplementorIface and  <a href="http://library.gnome.org/devel/gtk/unstable/gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1" title="Properties">
<a name="EogPrintPreview.properties"></a><h2>Properties</h2>
<pre class="synopsis">
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--image" title='The "image" property'>image</a>"                    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>*              : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--image-scale" title='The "image-scale" property'>image-scale</a>"              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--image-x-align" title='The "image-x-align" property'>image-x-align</a>"            <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--image-y-align" title='The "image-y-align" property'>image-y-align</a>"            <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--page-bottom-margin" title='The "page-bottom-margin" property'>page-bottom-margin</a>"       <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--page-left-margin" title='The "page-left-margin" property'>page-left-margin</a>"         <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--page-right-margin" title='The "page-right-margin" property'>page-right-margin</a>"        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--page-top-margin" title='The "page-top-margin" property'>page-top-margin</a>"          <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--paper-height" title='The "paper-height" property'>paper-height</a>"             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview--paper-width" title='The "paper-width" property'>paper-width</a>"              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write
</pre>
</div>
<div class="refsect1" title="Signals">
<a name="EogPrintPreview.signals"></a><h2>Signals</h2>
<pre class="synopsis">
  "<a class="link" href="EogPrintPreview.html#EogPrintPreview-image-moved" title='The "image-moved" signal'>image-moved</a>"                                    : Run First
</pre>
</div>
<div class="refsect1" title="Description">
<a name="EogPrintPreview.description"></a><h2>Description</h2>
<p>
</p>
</div>
<div class="refsect1" title="Details">
<a name="EogPrintPreview.details"></a><h2>Details</h2>
<div class="refsect2" title="EogPrintPreview">
<a name="EogPrintPreview-struct"></a><h3>EogPrintPreview</h3>
<pre class="programlisting">typedef struct _EogPrintPreview EogPrintPreview;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_new ()">
<a name="eog-print-preview-new"></a><h3>eog_print_preview_new ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         eog_print_preview_new               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> widget, setting it to the default values,
and leaving the page empty. You still need to set the <a class="link" href="EogPrintPreview.html#EogPrintPreview--image" title='The "image" property'><span class="type">"image"</span></a>
property to make it useful.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new and empty <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> widget.
</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_new_with_pixbuf ()">
<a name="eog-print-preview-new-with-pixbuf"></a><h3>eog_print_preview_new_with_pixbuf ()</h3>
<pre class="programlisting"><a href="http://library.gnome.org/devel/gtk/unstable/GtkWidget.html"><span class="returnvalue">GtkWidget</span></a> *         eog_print_preview_new_with_pixbuf   (<em class="parameter"><code><a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>);</pre>
<p>
Creates a new <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> widget, and sets the <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> to preview
on it.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gdk-pixbuf/unstable/gdk-pixbuf-gdk-pixbuf.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> A new <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> widget.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_set_page_margins ()">
<a name="eog-print-preview-set-page-margins"></a><h3>eog_print_preview_set_page_margins ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                eog_print_preview_set_page_margins  (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> l_margin</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> r_margin</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> t_margin</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> b_margin</code></em>);</pre>
<p>
Manually set the margins, in inches.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>preview</code></em> :</span></p></td>
<td>a <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>l_margin</code></em> :</span></p></td>
<td>Left margin.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>r_margin</code></em> :</span></p></td>
<td>Right margin.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>t_margin</code></em> :</span></p></td>
<td>Top margin.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>b_margin</code></em> :</span></p></td>
<td>Bottom margin.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_set_from_page_setup ()">
<a name="eog-print-preview-set-from-page-setup"></a><h3>eog_print_preview_set_from_page_setup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                eog_print_preview_set_from_page_setup
                                                        (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="http://library.gnome.org/devel/gtk/unstable/GtkPageSetup.html"><span class="type">GtkPageSetup</span></a> *setup</code></em>);</pre>
<p>
Sets up the page properties from a <a href="http://library.gnome.org/devel/gtk/unstable/GtkPageSetup.html"><span class="type">GtkPageSetup</span></a>. Useful when using the
widget with the GtkPrint API.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>preview</code></em> :</span></p></td>
<td>a <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>setup</code></em> :</span></p></td>
<td>a <a href="http://library.gnome.org/devel/gtk/unstable/GtkPageSetup.html"><span class="type">GtkPageSetup</span></a> to set the properties from
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_get_image_position ()">
<a name="eog-print-preview-get-image-position"></a><h3>eog_print_preview_get_image_position ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                eog_print_preview_get_image_position
                                                        (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *x</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> *y</code></em>);</pre>
<p>
Gets current image position in inches, relative to the margins. A
(0, 0) position is the intersection between the left and top margins.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>preview</code></em> :</span></p></td>
<td>a <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>a pointer to a <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore it
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>a pointer to a <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore it
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_set_image_position ()">
<a name="eog-print-preview-set-image-position"></a><h3>eog_print_preview_set_image_position ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                eog_print_preview_set_image_position
                                                        (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> x</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gdouble"><span class="type">gdouble</span></a> y</code></em>);</pre>
<p>
Sets the image position. You can pass -1 to one of the coordinates if you
only want to set the other.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>preview</code></em> :</span></p></td>
<td>a <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
<td>The X coordinate, in inches, or -1 to ignore it.
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
<td>The Y coordinate, in inches, or -1 to ignore it.
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2" title="eog_print_preview_set_scale ()">
<a name="eog-print-preview-set-scale"></a><h3>eog_print_preview_set_scale ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                eog_print_preview_set_scale         (<em class="parameter"><code><a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview</code></em>,
                                                         <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a> scale</code></em>);</pre>
<p>
Sets the scale for the image.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>preview</code></em> :</span></p></td>
<td>a <a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>scale</code></em> :</span></p></td>
<td>a scale value, between 0 and 1.
</td>
</tr>
</tbody>
</table></div>
</div>
</div>
<div class="refsect1" title="Property Details">
<a name="EogPrintPreview.property-details"></a><h2>Property Details</h2>
<div class="refsect2" title='The "image" property'>
<a name="EogPrintPreview--image"></a><h3>The <code class="literal">"image"</code> property</h3>
<pre class="programlisting">  "image"                    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject"><span class="type">GObject</span></a>*              : Read / Write</pre>
<p>
The "image" property defines the image that is previewed
in the widget.
</p>
</div>
<hr>
<div class="refsect2" title='The "image-scale" property'>
<a name="EogPrintPreview--image-scale"></a><h3>The <code class="literal">"image-scale"</code> property</h3>
<pre class="programlisting">  "image-scale"              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The "image-scale" property defines the scaling of the image
that the user wants for the printing.
</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 1</p>
</div>
<hr>
<div class="refsect2" title='The "image-x-align" property'>
<a name="EogPrintPreview--image-x-align"></a><h3>The <code class="literal">"image-x-align"</code> property</h3>
<pre class="programlisting">  "image-x-align"            <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The "image-x-align" property defines the horizontal alignment
of the image in the widget.
</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0.5</p>
</div>
<hr>
<div class="refsect2" title='The "image-y-align" property'>
<a name="EogPrintPreview--image-y-align"></a><h3>The <code class="literal">"image-y-align"</code> property</h3>
<pre class="programlisting">  "image-y-align"            <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The "image-y-align" property defines the horizontal alignment
of the image in the widget.
</p>
<p>Allowed values: [0,1]</p>
<p>Default value: 0.5</p>
</div>
<hr>
<div class="refsect2" title='The "page-bottom-margin" property'>
<a name="EogPrintPreview--page-bottom-margin"></a><h3>The <code class="literal">"page-bottom-margin"</code> property</h3>
<pre class="programlisting">  "page-bottom-margin"       <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The size of the page's bottom margin, in inches.
</p>
<p>Allowed values: [0,200]</p>
<p>Default value: 0.56</p>
</div>
<hr>
<div class="refsect2" title='The "page-left-margin" property'>
<a name="EogPrintPreview--page-left-margin"></a><h3>The <code class="literal">"page-left-margin"</code> property</h3>
<pre class="programlisting">  "page-left-margin"         <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The size of the page's left margin, in inches.
</p>
<p>Allowed values: [0,100]</p>
<p>Default value: 0.25</p>
</div>
<hr>
<div class="refsect2" title='The "page-right-margin" property'>
<a name="EogPrintPreview--page-right-margin"></a><h3>The <code class="literal">"page-right-margin"</code> property</h3>
<pre class="programlisting">  "page-right-margin"        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The size of the page's right margin, in inches.
</p>
<p>Allowed values: [0,200]</p>
<p>Default value: 0.25</p>
</div>
<hr>
<div class="refsect2" title='The "page-top-margin" property'>
<a name="EogPrintPreview--page-top-margin"></a><h3>The <code class="literal">"page-top-margin"</code> property</h3>
<pre class="programlisting">  "page-top-margin"          <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The size of the page's top margin, in inches.
</p>
<p>Allowed values: [0,100]</p>
<p>Default value: 0.25</p>
</div>
<hr>
<div class="refsect2" title='The "paper-height" property'>
<a name="EogPrintPreview--paper-height"></a><h3>The <code class="literal">"paper-height"</code> property</h3>
<pre class="programlisting">  "paper-height"             <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The height of the previewed paper, in inches.
</p>
<p>Allowed values: [0,200]</p>
<p>Default value: 11</p>
</div>
<hr>
<div class="refsect2" title='The "paper-width" property'>
<a name="EogPrintPreview--paper-width"></a><h3>The <code class="literal">"paper-width"</code> property</h3>
<pre class="programlisting">  "paper-width"              <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gfloat"><span class="type">gfloat</span></a>                : Read / Write</pre>
<p>
The width of the previewed paper, in inches.
</p>
<p>Allowed values: [0,100]</p>
<p>Default value: 8.5</p>
</div>
</div>
<div class="refsect1" title="Signal Details">
<a name="EogPrintPreview.signal-details"></a><h2>Signal Details</h2>
<div class="refsect2" title='The "image-moved" signal'>
<a name="EogPrintPreview-image-moved"></a><h3>The <code class="literal">"image-moved"</code> signal</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                user_function                      (<a class="link" href="EogPrintPreview.html" title="EogPrintPreview"><span class="type">EogPrintPreview</span></a> *preview,
                                                        <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="type">gpointer</span></a>         user_data)      : Run First</pre>
<p>
The <a class="link" href="EogPrintPreview.html#EogPrintPreview-image-moved" title='The "image-moved" signal'><span class="type">"image-moved"</span></a> signal is emitted when the position
of the image is changed.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>preview</code></em> :</span></p></td>
<td>the object which received the signal
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
<td>user data set when the signal handler was connected.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.15</div>
</body>
</html>