File: classCairo_1_1PsSurface.html

package info (click to toggle)
cairomm 1.8.4-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 4,952 kB
  • ctags: 1,655
  • sloc: sh: 10,132; cpp: 5,157; perl: 204; makefile: 159
file content (523 lines) | stat: -rw-r--r-- 31,508 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
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
        <title>cairomm: Cairo::PsSurface Class Reference</title>
        <link href="cairomm.css" rel="stylesheet" type="text/css">
    </head>
<body>
<!-- Generated by Doxygen 1.5.9 -->
<div class="navigation" id="top">
  <div class="tabs">
    <ul>
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li><a href="namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="examples.html"><span>Examples</span></a></li>
    </ul>
  </div>
  <div class="tabs">
    <ul>
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceCairo.html">Cairo</a>::<a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a>
  </div>
</div>
<div class="contents">
<h1>Cairo::PsSurface Class Reference</h1><!-- doxytag: class="Cairo::PsSurface" --><!-- doxytag: inherits="Cairo::Surface" -->A <a class="el" href="classCairo_1_1PsSurface.html" title="A PsSurface provides a way to render PostScript documents from cairo.">PsSurface</a> provides a way to render PostScript documents from cairo.  
<a href="#_details">More...</a>
<p>
Inherits <a class="el" href="classCairo_1_1Surface.html">Cairo::Surface</a>.
<p>

<p>
<a href="classCairo_1_1PsSurface-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#0b84b39dd7188da7e785ee8af85374f1">PsSurface</a> (cairo_surface_t*<a class="el" href="classCairo_1_1Surface.html#d176eb7343b5902df3c19f9f56e59fb4">cobject</a>, bool has_reference=false)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a C++ wrapper for the C instance.  <a href="#0b84b39dd7188da7e785ee8af85374f1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#118c07206670cc3535c739599d4d10d3">~PsSurface</a> ()</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#9de17b1a3db7227a4f16fbf08a4cef2a">set_size</a> (double width_in_points, double height_in_points)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Changes the size of a PostScript surface for the current (and subsequent) pages.  <a href="#9de17b1a3db7227a4f16fbf08a4cef2a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#9cd275173ea5dd88eeb485aab614cf92">dsc_comment</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a> comment)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Emit a comment into the PostScript output for the given surface.  <a href="#9cd275173ea5dd88eeb485aab614cf92"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#2c72ddaa92aaf109511586e445309131">dsc_begin_setup</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This function indicates that subsequent calls to <a class="el" href="classCairo_1_1PsSurface.html#9cd275173ea5dd88eeb485aab614cf92" title="Emit a comment into the PostScript output for the given surface.">dsc_comment()</a> should direct comments to the Setup section of the PostScript output.  <a href="#2c72ddaa92aaf109511586e445309131"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#dcaaa1cf7f554e71f85039424726f6c9">dsc_begin_page_setup</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">This function indicates that subsequent calls to <a class="el" href="classCairo_1_1PsSurface.html#9cd275173ea5dd88eeb485aab614cf92" title="Emit a comment into the PostScript output for the given surface.">dsc_comment()</a> should direct comments to the PageSetup section of the PostScript output.  <a href="#dcaaa1cf7f554e71f85039424726f6c9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#a2424e42623eb0c410573b465f7b0f00">set_eps</a> (bool eps)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">If eps is true, the PostScript surface will output Encapsulated PostScript.  <a href="#a2424e42623eb0c410573b465f7b0f00"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#f31ab624b15d1d8a36ee6e06e3980cc9">get_eps</a> () const </td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Check whether the PostScript surface will output Encapsulated PostScript.  <a href="#f31ab624b15d1d8a36ee6e06e3980cc9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#2db7043f9b80e2d2082a66ba419b5d46">restrict_to_level</a> (<a class="el" href="namespaceCairo.html#452db49f19542c791e4a331f052a9a00">PsLevel</a> level)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Restricts the generated PostSript file to .  <a href="#2db7043f9b80e2d2082a66ba419b5d46"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#0d7a34b58211563e2b1f2f4f85818e90">create</a> (<a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a> filename, double width_in_points, double height_in_points)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classCairo_1_1PsSurface.html" title="A PsSurface provides a way to render PostScript documents from cairo.">PsSurface</a> with a specified dimensions that will be saved as the given filename.  <a href="#0d7a34b58211563e2b1f2f4f85818e90"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#aa633e9ca0c424eae66d63826684f4d4">create_for_stream</a> (const <a class="el" href="classCairo_1_1Surface.html#02fb9416d466b762bc5845b0ae204f49">SlotWriteFunc</a>&amp; write_func, double width_in_points, double height_in_points)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a <a class="el" href="classCairo_1_1PsSurface.html" title="A PsSurface provides a way to render PostScript documents from cairo.">PsSurface</a> with a specified dimensions that will be written to the given write function instead of saved directly to disk.  <a href="#aa633e9ca0c424eae66d63826684f4d4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#108e885033a7a6c2697f7a94b40bb113">create</a> (cairo_write_func_t write_func, void* closure, double width_in_points, double height_in_points)</td></tr>

<tr><td class="memItemLeft" nowrap align="right" valign="top">static const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt; <a class="el" href="namespaceCairo.html#452db49f19542c791e4a331f052a9a00">PsLevel</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#63de398067f3af5e6179e057063cc76d">get_levels</a> ()</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Used to retrieve the list of supported levels.  <a href="#63de398067f3af5e6179e057063cc76d"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1PsSurface.html#7afd98b03c189f1761cbe7e90db334dc">level_to_string</a> (<a class="el" href="namespaceCairo.html#452db49f19542c791e4a331f052a9a00">PsLevel</a> level)</td></tr>

<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the string representation of the given level id.  <a href="#7afd98b03c189f1761cbe7e90db334dc"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A <a class="el" href="classCairo_1_1PsSurface.html" title="A PsSurface provides a way to render PostScript documents from cairo.">PsSurface</a> provides a way to render PostScript documents from cairo. 
<p>
This surface is not rendered to the screen but instead renders the drawing to a PostScript file on disk.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>For this <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation...">Surface</a> to be available, cairo must have been compiled with PostScript support </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="0b84b39dd7188da7e785ee8af85374f1"></a><!-- doxytag: member="Cairo::PsSurface::PsSurface" ref="0b84b39dd7188da7e785ee8af85374f1" args="(cairo_surface_t *cobject, bool has_reference=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::PsSurface::PsSurface           </td>
          <td>(</td>
          <td class="paramtype">cairo_surface_t *&#160;</td>
          <td class="paramname"> <em>cobject</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>has_reference</em> = <code>false</code></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [explicit]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Create a C++ wrapper for the C instance. 
<p>
This C++ instance should then be given to a <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr&lt;&gt; is a reference-counting shared smartpointer.">RefPtr</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>cobject</em>&#160;</td><td>The C instance. </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>has_reference</em>&#160;</td><td>whether we already have a reference. Otherwise, the constructor will take an extra reference. </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="118c07206670cc3535c739599d4d10d3"></a><!-- doxytag: member="Cairo::PsSurface::~PsSurface" ref="118c07206670cc3535c739599d4d10d3" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Cairo::PsSurface::~PsSurface           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="108e885033a7a6c2697f7a94b40bb113"></a><!-- doxytag: member="Cairo::PsSurface::create" ref="108e885033a7a6c2697f7a94b40bb113" args="(cairo_write_func_t write_func, void *closure, double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a>&gt; Cairo::PsSurface::create           </td>
          <td>(</td>
          <td class="paramtype">cairo_write_func_t&#160;</td>
          <td class="paramname"> <em>write_func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">void *&#160;</td>
          <td class="paramname"> <em>closure</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>width_in_points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>height_in_points</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
<dl class="deprecated" compact><dt><b><a class="el" href="deprecated.html#_deprecated000008">Deprecated:</a></b></dt><dd>use <a class="el" href="classCairo_1_1PsSurface.html#aa633e9ca0c424eae66d63826684f4d4" title="Creates a PsSurface with a specified dimensions that will be written to the given...">PsSurface::create_for_stream()</a> instead </dd></dl>

</div>
</div><p>
<a class="anchor" name="0d7a34b58211563e2b1f2f4f85818e90"></a><!-- doxytag: member="Cairo::PsSurface::create" ref="0d7a34b58211563e2b1f2f4f85818e90" args="(std::string filename, double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a>&gt; Cairo::PsSurface::create           </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a>&#160;</td>
          <td class="paramname"> <em>filename</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>width_in_points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>height_in_points</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <a class="el" href="classCairo_1_1PsSurface.html" title="A PsSurface provides a way to render PostScript documents from cairo.">PsSurface</a> with a specified dimensions that will be saved as the given filename. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>filename</em>&#160;</td><td>The name of the PostScript file to save the surface to </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width_in_points</em>&#160;</td><td>The width of the PostScript document in points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height_in_points</em>&#160;</td><td>The height of the PostScript document in points </td></tr>
  </table>
</dl>
<dl compact><dt><b>Examples: </b></dt><dd>
<a class="el" href="ps-surface_8cc-example.html#a2">ps-surface.cc</a>.</dl>
</div>
</div><p>
<a class="anchor" name="aa633e9ca0c424eae66d63826684f4d4"></a><!-- doxytag: member="Cairo::PsSurface::create_for_stream" ref="aa633e9ca0c424eae66d63826684f4d4" args="(const SlotWriteFunc &amp;write_func, double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt;<a class="el" href="classCairo_1_1PsSurface.html">PsSurface</a>&gt; Cairo::PsSurface::create_for_stream           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classCairo_1_1Surface.html#02fb9416d466b762bc5845b0ae204f49">SlotWriteFunc</a>&amp;&#160;</td>
          <td class="paramname"> <em>write_func</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>width_in_points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>height_in_points</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a <a class="el" href="classCairo_1_1PsSurface.html" title="A PsSurface provides a way to render PostScript documents from cairo.">PsSurface</a> with a specified dimensions that will be written to the given write function instead of saved directly to disk. 
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>write_func</em>&#160;</td><td>The function to be called when the backend needs to write data to an output stream </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>width_in_points</em>&#160;</td><td>The width of the PostScript document in points </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height_in_points</em>&#160;</td><td>The height of the PostScript document in points</td></tr>
  </table>
</dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="dcaaa1cf7f554e71f85039424726f6c9"></a><!-- doxytag: member="Cairo::PsSurface::dsc_begin_page_setup" ref="dcaaa1cf7f554e71f85039424726f6c9" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::PsSurface::dsc_begin_page_setup           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function indicates that subsequent calls to <a class="el" href="classCairo_1_1PsSurface.html#9cd275173ea5dd88eeb485aab614cf92" title="Emit a comment into the PostScript output for the given surface.">dsc_comment()</a> should direct comments to the PageSetup section of the PostScript output. 
<p>
This function call is only needed for the first page of a surface. It should be called after any call to <a class="el" href="classCairo_1_1PsSurface.html#2c72ddaa92aaf109511586e445309131" title="This function indicates that subsequent calls to dsc_comment() should direct comments...">dsc_begin_setup()</a> and before any drawing is performed to the surface. 
</div>
</div><p>
<a class="anchor" name="2c72ddaa92aaf109511586e445309131"></a><!-- doxytag: member="Cairo::PsSurface::dsc_begin_setup" ref="2c72ddaa92aaf109511586e445309131" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::PsSurface::dsc_begin_setup           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
This function indicates that subsequent calls to <a class="el" href="classCairo_1_1PsSurface.html#9cd275173ea5dd88eeb485aab614cf92" title="Emit a comment into the PostScript output for the given surface.">dsc_comment()</a> should direct comments to the Setup section of the PostScript output. 
<p>
This function should be called at most once per surface, and must be called before any call to <a class="el" href="classCairo_1_1PsSurface.html#dcaaa1cf7f554e71f85039424726f6c9" title="This function indicates that subsequent calls to dsc_comment() should direct comments...">dsc_begin_page_setup()</a> and before any drawing is performed to the surface. 
</div>
</div><p>
<a class="anchor" name="9cd275173ea5dd88eeb485aab614cf92"></a><!-- doxytag: member="Cairo::PsSurface::dsc_comment" ref="9cd275173ea5dd88eeb485aab614cf92" args="(std::string comment)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::PsSurface::dsc_comment           </td>
          <td>(</td>
          <td class="paramtype"><a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a>&#160;</td>
          <td class="paramname"> <em>comment</em>          </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Emit a comment into the PostScript output for the given surface. 
<p>
See the cairo reference documentation for more information.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>comment</em>&#160;</td><td>a comment string to be emitted into the PostScript output </td></tr>
  </table>
</dl>

</div>
</div><p>
<a class="anchor" name="f31ab624b15d1d8a36ee6e06e3980cc9"></a><!-- doxytag: member="Cairo::PsSurface::get_eps" ref="f31ab624b15d1d8a36ee6e06e3980cc9" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Cairo::PsSurface::get_eps           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Check whether the PostScript surface will output Encapsulated PostScript. 
<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.8 </dd></dl>

</div>
</div><p>
<a class="anchor" name="63de398067f3af5e6179e057063cc76d"></a><!-- doxytag: member="Cairo::PsSurface::get_levels" ref="63de398067f3af5e6179e057063cc76d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static const <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00599.html">std::vector</a>&lt;<a class="el" href="namespaceCairo.html#452db49f19542c791e4a331f052a9a00">PsLevel</a>&gt; Cairo::PsSurface::get_levels           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Used to retrieve the list of supported levels. 
<p>
See <a class="el" href="classCairo_1_1PsSurface.html#2db7043f9b80e2d2082a66ba419b5d46" title="Restricts the generated PostSript file to .">restrict_to_level()</a>.<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="7afd98b03c189f1761cbe7e90db334dc"></a><!-- doxytag: member="Cairo::PsSurface::level_to_string" ref="7afd98b03c189f1761cbe7e90db334dc" args="(PsLevel level)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="elRef" doxygen="libstdc++.tag:http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/" href="http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a00218.html">std::string</a> Cairo::PsSurface::level_to_string           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#452db49f19542c791e4a331f052a9a00">PsLevel</a>&#160;</td>
          <td class="paramname"> <em>level</em>          </td>
          <td>&#160;)&#160;</td>
          <td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Get the string representation of the given level id. 
<p>
This function will return an empty string if level id isn't valid. See <a class="el" href="classCairo_1_1PsSurface.html#63de398067f3af5e6179e057063cc76d" title="Used to retrieve the list of supported levels.">get_levels()</a> for a way to get the list of valid level ids.<p>
<dl class="return" compact><dt><b>Returns:</b></dt><dd>the string associated to given level.</dd></dl>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>level</em>&#160;</td><td>a level id</td></tr>
  </table>
</dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="2db7043f9b80e2d2082a66ba419b5d46"></a><!-- doxytag: member="Cairo::PsSurface::restrict_to_level" ref="2db7043f9b80e2d2082a66ba419b5d46" args="(PsLevel level)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::PsSurface::restrict_to_level           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceCairo.html#452db49f19542c791e4a331f052a9a00">PsLevel</a>&#160;</td>
          <td class="paramname"> <em>level</em>          </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Restricts the generated PostSript file to . 
<p>
See <a class="el" href="classCairo_1_1PsSurface.html#63de398067f3af5e6179e057063cc76d" title="Used to retrieve the list of supported levels.">get_levels()</a> for a list of available level values that can be used here.<p>
This function should only be called before any drawing operations have been performed on the given surface. The simplest way to do this is to call this function immediately after creating the surface.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>level</em>&#160;</td><td>PostScript level</td></tr>
  </table>
</dl>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="a2424e42623eb0c410573b465f7b0f00"></a><!-- doxytag: member="Cairo::PsSurface::set_eps" ref="a2424e42623eb0c410573b465f7b0f00" args="(bool eps)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::PsSurface::set_eps           </td>
          <td>(</td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"> <em>eps</em>          </td>
          <td>&#160;)&#160;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
If eps is true, the PostScript surface will output Encapsulated PostScript. 
<p>
This function should only be called before any drawing operations have been performed on the current page. The simplest way to do this is to call this function immediately after creating the surface. An Encapsulated Postscript file should never contain more than one page.<p>
<dl class="since" compact><dt><b>Since:</b></dt><dd>1.6 </dd></dl>

</div>
</div><p>
<a class="anchor" name="9de17b1a3db7227a4f16fbf08a4cef2a"></a><!-- doxytag: member="Cairo::PsSurface::set_size" ref="9de17b1a3db7227a4f16fbf08a4cef2a" args="(double width_in_points, double height_in_points)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::PsSurface::set_size           </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>width_in_points</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"> <em>height_in_points</em></td><td>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Changes the size of a PostScript surface for the current (and subsequent) pages. 
<p>
This function should only be called before any drawing operations have been performed on the current page. The simplest way to do this is to call this function immediately after creating the surface or immediately after completing a page with either <a class="el" href="classCairo_1_1Context.html#525cac95b4d4c2abea12b82c433adba9">Context::show_page()</a> or <a class="el" href="classCairo_1_1Context.html#7ccbeacb2a7f2d787b3daf31a69383fd">Context::copy_page()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
  <table border="0" cellspacing="2" cellpadding="0">
    <tr><td valign="top"></td><td valign="top"><em>width_in_points</em>&#160;</td><td>new surface width, in points (1 point == 1/72.0 inch) </td></tr>
    <tr><td valign="top"></td><td valign="top"><em>height_in_points</em>&#160;</td><td>new surface height, in points (1 point == 1/72.0 inch) </td></tr>
  </table>
</dl>

</div>
</div><p>
<hr>The documentation for this class was generated from the following file:<ul>
<li>cairomm/surface.h</ul>
</div>
<hr size="1"><address style="text-align: right;"><small>Generated on Thu Aug 13 11:40:14 2009 for cairomm by&#160;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.9 </small></address>
</body>
</html>