File: GtkPageSetupUnixDialog.html

package info (click to toggle)
gtk%2B2.0 2.20.1-2%2Bdeb6u2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze-lts
  • size: 136,284 kB
  • ctags: 66,487
  • sloc: ansic: 590,318; sh: 10,559; makefile: 5,573; xml: 1,357; python: 866; perl: 776; asm: 457; awk: 72; cpp: 34
file content (243 lines) | stat: -rw-r--r-- 15,805 bytes parent folder | download | duplicates (2)
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GtkPageSetupUnixDialog</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
<link rel="home" href="index.html" title="GTK+ Reference Manual">
<link rel="up" href="Printing.html" title="Printing">
<link rel="prev" href="GtkPrintUnixDialog.html" title="GtkPrintUnixDialog">
<link rel="next" href="MiscObjects.html" title="Miscellaneous">
<meta name="generator" content="GTK-Doc V1.14 (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="GtkPrintUnixDialog.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="Printing.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">GTK+ Reference Manual</th>
<td><a accesskey="n" href="MiscObjects.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#GtkPageSetupUnixDialog.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#GtkPageSetupUnixDialog.description" class="shortcut">Description</a>
                   | 
                  <a href="#GtkPageSetupUnixDialog.object-hierarchy" class="shortcut">Object Hierarchy</a>
                   | 
                  <a href="#GtkPageSetupUnixDialog.implemented-interfaces" class="shortcut">Implemented Interfaces</a>
</td></tr>
</table>
<div class="refentry" title="GtkPageSetupUnixDialog">
<a name="GtkPageSetupUnixDialog"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GtkPageSetupUnixDialog.top_of_page"></a>GtkPageSetupUnixDialog</span></h2>
<p>GtkPageSetupUnixDialog — A page setup dialog</p>
</td>
<td valign="top" align="right"><img src="pagesetupdialog.png"></td>
</tr></table></div>
<div class="refsynopsisdiv" title="Synopsis">
<a name="GtkPageSetupUnixDialog.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">
#include &lt;gtk/gtkpagesetupunixdialog.h&gt;

                    <a class="link" href="GtkPageSetupUnixDialog.html#GtkPageSetupUnixDialog-struct" title="GtkPageSetupUnixDialog">GtkPageSetupUnixDialog</a>;
<a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         <a class="link" href="GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-new" title="gtk_page_setup_unix_dialog_new ()">gtk_page_setup_unix_dialog_new</a>      (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-set-page-setup" title="gtk_page_setup_unix_dialog_set_page_setup ()">gtk_page_setup_unix_dialog_set_page_setup</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);
<a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *      <a class="link" href="GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-get-page-setup" title="gtk_page_setup_unix_dialog_get_page_setup ()">gtk_page_setup_unix_dialog_get_page_setup</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-set-print-settings" title="gtk_page_setup_unix_dialog_set_print_settings ()">gtk_page_setup_unix_dialog_set_print_settings</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *print_settings</code></em>);
<a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> *  <a class="link" href="GtkPageSetupUnixDialog.html#gtk-page-setup-unix-dialog-get-print-settings" title="gtk_page_setup_unix_dialog_get_print_settings ()">gtk_page_setup_unix_dialog_get_print_settings</a>
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);
</pre>
</div>
<div class="refsect1" title="Object Hierarchy">
<a name="GtkPageSetupUnixDialog.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 class="link" href="GtkObject.html" title="GtkObject">GtkObject</a>
               +----<a class="link" href="GtkWidget.html" title="GtkWidget">GtkWidget</a>
                     +----<a class="link" href="GtkContainer.html" title="GtkContainer">GtkContainer</a>
                           +----<a class="link" href="GtkBin.html" title="GtkBin">GtkBin</a>
                                 +----<a class="link" href="GtkWindow.html" title="GtkWindow">GtkWindow</a>
                                       +----<a class="link" href="GtkDialog.html" title="GtkDialog">GtkDialog</a>
                                             +----GtkPageSetupUnixDialog
</pre>
</div>
<div class="refsect1" title="Implemented Interfaces">
<a name="GtkPageSetupUnixDialog.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GtkPageSetupUnixDialog implements
 AtkImplementorIface and  <a class="link" href="gtk-gtkbuildable.html#GtkBuildable">GtkBuildable</a>.</p>
</div>
<div class="refsect1" title="Description">
<a name="GtkPageSetupUnixDialog.description"></a><h2>Description</h2>
<p>
GtkPageSetupUnixDialog implements a page setup dialog for platforms
which don't provide a native page setup dialog, like Unix. It can
be used very much like any other GTK+ dialog, at the cost of
the portability offered by the <a class="link" href="gtk-High-level-Printing-API.html" title="GtkPrintOperation">high-level printing API</a>
</p>
<p>
Printing support was added in GTK+ 2.10.
</p>
</div>
<div class="refsect1" title="Details">
<a name="GtkPageSetupUnixDialog.details"></a><h2>Details</h2>
<div class="refsect2" title="GtkPageSetupUnixDialog">
<a name="GtkPageSetupUnixDialog-struct"></a><h3>GtkPageSetupUnixDialog</h3>
<pre class="programlisting">typedef struct _GtkPageSetupUnixDialog GtkPageSetupUnixDialog;</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_unix_dialog_new ()">
<a name="gtk-page-setup-unix-dialog-new"></a><h3>gtk_page_setup_unix_dialog_new ()</h3>
<pre class="programlisting"><a class="link" href="GtkWidget.html" title="GtkWidget"><span class="returnvalue">GtkWidget</span></a> *         gtk_page_setup_unix_dialog_new      (<em class="parameter"><code>const <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *title</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkWindow.html" title="GtkWindow"><span class="type">GtkWindow</span></a> *parent</code></em>);</pre>
<p>
Creates a new page setup dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>title</code></em> :</span></p></td>
<td> the title of the dialog, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>. </td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>parent</code></em> :</span></p></td>
<td> transient parent of the dialog, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. <acronym title="NULL is ok, both for passing and for returning."><span class="acronym">allow-none</span></acronym>. </td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the new <a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_unix_dialog_set_page_setup ()">
<a name="gtk-page-setup-unix-dialog-set-page-setup"></a><h3>gtk_page_setup_unix_dialog_set_page_setup ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_page_setup_unix_dialog_set_page_setup
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> *page_setup</code></em>);</pre>
<p>
Sets the <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a> from which the page setup
dialog takes its values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>page_setup</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="type">GtkPageSetup</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_unix_dialog_get_page_setup ()">
<a name="gtk-page-setup-unix-dialog-get-page-setup"></a><h3>gtk_page_setup_unix_dialog_get_page_setup ()</h3>
<pre class="programlisting"><a class="link" href="GtkPageSetup.html" title="GtkPageSetup"><span class="returnvalue">GtkPageSetup</span></a> *      gtk_page_setup_unix_dialog_get_page_setup
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the currently selected page setup from the dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the current page setup 

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_unix_dialog_set_print_settings ()">
<a name="gtk-page-setup-unix-dialog-set-print-settings"></a><h3>gtk_page_setup_unix_dialog_set_print_settings ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                gtk_page_setup_unix_dialog_set_print_settings
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>,
                                                         <em class="parameter"><code><a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> *print_settings</code></em>);</pre>
<p>
Sets the <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a> from which the page setup dialog
takes its values.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>print_settings</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="type">GtkPrintSettings</span></a>
</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
<hr>
<div class="refsect2" title="gtk_page_setup_unix_dialog_get_print_settings ()">
<a name="gtk-page-setup-unix-dialog-get-print-settings"></a><h3>gtk_page_setup_unix_dialog_get_print_settings ()</h3>
<pre class="programlisting"><a class="link" href="GtkPrintSettings.html" title="GtkPrintSettings"><span class="returnvalue">GtkPrintSettings</span></a> *  gtk_page_setup_unix_dialog_get_print_settings
                                                        (<em class="parameter"><code><a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a> *dialog</code></em>);</pre>
<p>
Gets the current print settings from the dialog.
</p>
<div class="variablelist"><table border="0">
<col align="left" valign="top">
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dialog</code></em> :</span></p></td>
<td>a <a class="link" href="GtkPageSetupUnixDialog.html" title="GtkPageSetupUnixDialog"><span class="type">GtkPageSetupUnixDialog</span></a>
</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td> the current print settings

</td>
</tr>
</tbody>
</table></div>
<p class="since">Since 2.10</p>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.14</div>
</body>
</html>