File: classCairo_1_1XlibSurface.html

package info (click to toggle)
cairomm 1.10.0-1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 5,496 kB
  • sloc: sh: 10,127; cpp: 5,652; perl: 236; makefile: 157
file content (630 lines) | stat: -rw-r--r-- 32,478 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
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
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
<!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::XlibSurface Class Reference</title>
        <link href="cairomm.css" rel="stylesheet" type="text/css">
    </head>
<body>
<!-- Generated by Doxygen 1.7.3 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <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 id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceCairo.html">Cairo</a> </li>
      <li class="navelem"><a class="el" href="classCairo_1_1XlibSurface.html">XlibSurface</a> </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> </div>
  <div class="headertitle">
<h1>Cairo::XlibSurface Class Reference</h1> </div>
</div>
<div class="contents">
<!-- doxytag: class="Cairo::XlibSurface" --><!-- doxytag: inherits="Cairo::Surface" -->
<p>An <a class="el" href="classCairo_1_1XlibSurface.html" title="An XlibSurface provides a way to render to the X Window System using XLib.">XlibSurface</a> provides a way to render to the X Window System using XLib. <a href="#_details">More...</a></p>
<div class="dynheader">
Inheritance diagram for Cairo::XlibSurface:</div>
<div class="dyncontent">
<div class="center"><img src="classCairo_1_1XlibSurface__inherit__graph.png" border="0" usemap="#Cairo_1_1XlibSurface_inherit__map" alt="Inheritance graph"/></div>
<map name="Cairo_1_1XlibSurface_inherit__map" id="Cairo_1_1XlibSurface_inherit__map">
<area shape="rect" id="node2" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh..." alt="" coords="16,6,120,37"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classCairo_1_1XlibSurface-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#afe45b69c03a79879b0e1b1cabb13a6da">XlibSurface</a> (cairo_surface_t*<a class="el" href="classCairo_1_1Surface.html#ad176eb7343b5902df3c19f9f56e59fb4">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="#afe45b69c03a79879b0e1b1cabb13a6da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a362141c504db6742c4e09af52945709f">~XlibSurface</a> ()</td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a69b6337fa91dd53a054427e9a8235f16">set_size</a> (int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Informs cairo of the new size of the X Drawable underlying the surface. <a href="#a69b6337fa91dd53a054427e9a8235f16"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a92f59aab3ce0a113df0f6de18f306816">set_drawable</a> (Drawable drawable, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Informs cairo of a new X Drawable underlying the surface. <a href="#a92f59aab3ce0a113df0f6de18f306816"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Drawable&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#ae72506a16c6865a5709d38e2e33b1771">get_drawable</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">gets the Drawable object associated with this surface <a href="#ae72506a16c6865a5709d38e2e33b1771"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const Display*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#ad073af9affb7338e9b78589e7565a320">get_display</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the X Display for the underlying X Drawable. <a href="#ad073af9affb7338e9b78589e7565a320"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Display*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#afe98ccb169fe84f05ff7f2c1fb413a5a">get_display</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the X Display for the underlying X Drawable. <a href="#afe98ccb169fe84f05ff7f2c1fb413a5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Screen*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a95da96899c1098dae4dc34d0b489d4b5">get_screen</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the X Screen for the underlying X Drawable. <a href="#a95da96899c1098dae4dc34d0b489d4b5"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const Screen*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#ae0a1ccd477c2e5691b5a748c71191338">get_screen</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the X Screen for the underlying X Drawable. <a href="#ae0a1ccd477c2e5691b5a748c71191338"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">Visual*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#ada56c72e6f48420340a0bc4ae0ae22b0">get_visual</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the X Visual for the underlying X Drawable. <a href="#ada56c72e6f48420340a0bc4ae0ae22b0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">const Visual*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a2e1b0cc64bd149a141a08112236726a1">get_visual</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the X Visual for the underlying X Drawable. <a href="#a2e1b0cc64bd149a141a08112236726a1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a476e5ddd3deee79c8f47be01e1e0f7e7">get_depth</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the number of bits used to represent each pixel value. <a href="#a476e5ddd3deee79c8f47be01e1e0f7e7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a5ebd424f0c526c82141051a9824f3c69">get_height</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the height in pixels of the X Drawable underlying the surface. <a href="#a5ebd424f0c526c82141051a9824f3c69"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a8cce1064a3f867657eb31e83d1dd464d">get_width</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Get the width in pixels of the X Drawable underlying the surface. <a href="#a8cce1064a3f867657eb31e83d1dd464d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">XRenderPictFormat*&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a285b8e6394c22f395cca79c92dc17429">get_xrender_format</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Gets the X Render picture format that uses for rendering with the X Render extension. <a href="#a285b8e6394c22f395cca79c92dc17429"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1XlibSurface.html">XlibSurface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#ae4c1ee03939f091bc5f1bc75e8b35dcb">create</a> (Display* dpy, Drawable drawable, Visual* visual, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an Xlib surface that draws to the given drawable. <a href="#ae4c1ee03939f091bc5f1bc75e8b35dcb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">RefPtr</a>&lt; <a class="el" href="classCairo_1_1XlibSurface.html">XlibSurface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a8ece252d2269f2f73c9f436dbc6c8a30">create</a> (Display* dpy, Pixmap bitmap, Screen* screen, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an Xlib surface that draws to the given bitmap. <a href="#a8ece252d2269f2f73c9f436dbc6c8a30"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classCairo_1_1RefPtr.html">Cairo::RefPtr</a><br class="typebreak"/>
&lt; <a class="el" href="classCairo_1_1XlibSurface.html">Cairo::XlibSurface</a> &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classCairo_1_1XlibSurface.html#a88149191bb6cef8fbe5dded45be35355">create_with_xrender_format</a> (Display* dpy, Drawable drawable, Screen* screen, XRenderPictFormat* format, int width, int height)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates an Xlib surface that draws to the given drawable. <a href="#a88149191bb6cef8fbe5dded45be35355"></a><br/></td></tr>
</table>
<hr/><a name="_details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>An <a class="el" href="classCairo_1_1XlibSurface.html" title="An XlibSurface provides a way to render to the X Window System using XLib.">XlibSurface</a> provides a way to render to the X Window System using XLib. </p>
<p>If you want to draw to the screen within an application that uses the X Window system, you should use this <a class="el" href="classCairo_1_1Surface.html" title="A cairo surface represents an image, either as the destination of a drawing operation or as source wh...">Surface</a> type.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>For this surface to be availabe, cairo must have been compiled with support for XLib Surfaces </dd></dl>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afe45b69c03a79879b0e1b1cabb13a6da"></a><!-- doxytag: member="Cairo::XlibSurface::XlibSurface" ref="afe45b69c03a79879b0e1b1cabb13a6da" args="(cairo_surface_t *cobject, bool has_reference=false)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Cairo::XlibSurface::XlibSurface </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>&#160;</td>
        </tr>
        <tr>
          <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>
<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><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cobject</td><td>The C instance. </td></tr>
    <tr><td class="paramname">has_reference</td><td>whether we already have a reference. Otherwise, the constructor will take an extra reference. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a362141c504db6742c4e09af52945709f"></a><!-- doxytag: member="Cairo::XlibSurface::~XlibSurface" ref="a362141c504db6742c4e09af52945709f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">virtual Cairo::XlibSurface::~XlibSurface </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ae4c1ee03939f091bc5f1bc75e8b35dcb"></a><!-- doxytag: member="Cairo::XlibSurface::create" ref="ae4c1ee03939f091bc5f1bc75e8b35dcb" args="(Display *dpy, Drawable drawable, Visual *visual, int width, int height)" -->
<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_1XlibSurface.html">XlibSurface</a>&gt; Cairo::XlibSurface::create </td>
          <td>(</td>
          <td class="paramtype">Display *&#160;</td>
          <td class="paramname"><em>dpy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Drawable&#160;</td>
          <td class="paramname"><em>drawable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Visual *&#160;</td>
          <td class="paramname"><em>visual</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates an Xlib surface that draws to the given drawable. </p>
<p>The way that colors are represented in the drawable is specified by the provided visual.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>If drawable is a Window, then the function cairo_xlib_surface_set_size must be called whenever the size of the window changes.</dd></dl>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dpy</td><td>an X Display </td></tr>
    <tr><td class="paramname">drawable</td><td>an X Drawable, (a Pixmap or a Window) </td></tr>
    <tr><td class="paramname">visual</td><td>the visual to use for drawing to drawable. The depth of the visual must match the depth of the drawable. Currently, only TrueColor visuals are fully supported. </td></tr>
    <tr><td class="paramname">width</td><td>the current width of drawable. </td></tr>
    <tr><td class="paramname">height</td><td>the current height of drawable. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr&lt;&gt; is a reference-counting shared smartpointer.">RefPtr</a> to the newly created surface </dd></dl>

</div>
</div>
<a class="anchor" id="a8ece252d2269f2f73c9f436dbc6c8a30"></a><!-- doxytag: member="Cairo::XlibSurface::create" ref="a8ece252d2269f2f73c9f436dbc6c8a30" args="(Display *dpy, Pixmap bitmap, Screen *screen, int width, int height)" -->
<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_1XlibSurface.html">XlibSurface</a>&gt; Cairo::XlibSurface::create </td>
          <td>(</td>
          <td class="paramtype">Display *&#160;</td>
          <td class="paramname"><em>dpy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Pixmap&#160;</td>
          <td class="paramname"><em>bitmap</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Screen *&#160;</td>
          <td class="paramname"><em>screen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates an Xlib surface that draws to the given bitmap. </p>
<p>This will be drawn to as a CAIRO_FORMAT_A1 object.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dpy</td><td>an X Display </td></tr>
    <tr><td class="paramname">bitmap</td><td>an X Drawable, (a depth-1 Pixmap) </td></tr>
    <tr><td class="paramname">screen</td><td>the X Screen associated with bitmap </td></tr>
    <tr><td class="paramname">width</td><td>the current width of bitmap. </td></tr>
    <tr><td class="paramname">height</td><td>the current height of bitmap. </td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>A <a class="el" href="classCairo_1_1RefPtr.html" title="RefPtr&lt;&gt; is a reference-counting shared smartpointer.">RefPtr</a> to the newly created surface </dd></dl>

</div>
</div>
<a class="anchor" id="a88149191bb6cef8fbe5dded45be35355"></a><!-- doxytag: member="Cairo::XlibSurface::create_with_xrender_format" ref="a88149191bb6cef8fbe5dded45be35355" args="(Display *dpy, Drawable drawable, Screen *screen, XRenderPictFormat *format, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">static <a class="el" href="classCairo_1_1RefPtr.html">Cairo::RefPtr</a>&lt;<a class="el" href="classCairo_1_1XlibSurface.html">Cairo::XlibSurface</a>&gt; Cairo::XlibSurface::create_with_xrender_format </td>
          <td>(</td>
          <td class="paramtype">Display *&#160;</td>
          <td class="paramname"><em>dpy</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Drawable&#160;</td>
          <td class="paramname"><em>drawable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">Screen *&#160;</td>
          <td class="paramname"><em>screen</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">XRenderPictFormat *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [static]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates an Xlib surface that draws to the given drawable. </p>
<p>The way that colors are represented in the drawable is specified by the provided picture format.</p>
<p>Note: If is a Window, then the function <a class="el" href="classCairo_1_1XlibSurface.html#a69b6337fa91dd53a054427e9a8235f16" title="Informs cairo of the new size of the X Drawable underlying the surface.">set_size()</a> must be called whenever the size of the window changes.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">dpy</td><td>an X Display </td></tr>
    <tr><td class="paramname">drawable</td><td>an X Drawable, (a Pixmap or a Window) </td></tr>
    <tr><td class="paramname">screen</td><td>the X Screen associated with </td></tr>
    <tr><td class="paramname">format</td><td>the picture format to use for drawing to . The depth of must match the depth of the drawable. </td></tr>
    <tr><td class="paramname">width</td><td>the current width of . </td></tr>
    <tr><td class="paramname">height</td><td>the current height of .</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>the newly created surface </dd></dl>

</div>
</div>
<a class="anchor" id="a476e5ddd3deee79c8f47be01e1e0f7e7"></a><!-- doxytag: member="Cairo::XlibSurface::get_depth" ref="a476e5ddd3deee79c8f47be01e1e0f7e7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Cairo::XlibSurface::get_depth </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the number of bits used to represent each pixel value. </p>

</div>
</div>
<a class="anchor" id="ad073af9affb7338e9b78589e7565a320"></a><!-- doxytag: member="Cairo::XlibSurface::get_display" ref="ad073af9affb7338e9b78589e7565a320" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Display* Cairo::XlibSurface::get_display </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the X Display for the underlying X Drawable. </p>

</div>
</div>
<a class="anchor" id="afe98ccb169fe84f05ff7f2c1fb413a5a"></a><!-- doxytag: member="Cairo::XlibSurface::get_display" ref="afe98ccb169fe84f05ff7f2c1fb413a5a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Display* Cairo::XlibSurface::get_display </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the X Display for the underlying X Drawable. </p>

</div>
</div>
<a class="anchor" id="ae72506a16c6865a5709d38e2e33b1771"></a><!-- doxytag: member="Cairo::XlibSurface::get_drawable" ref="ae72506a16c6865a5709d38e2e33b1771" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Drawable Cairo::XlibSurface::get_drawable </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>gets the Drawable object associated with this surface </p>

</div>
</div>
<a class="anchor" id="a5ebd424f0c526c82141051a9824f3c69"></a><!-- doxytag: member="Cairo::XlibSurface::get_height" ref="a5ebd424f0c526c82141051a9824f3c69" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Cairo::XlibSurface::get_height </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the height in pixels of the X Drawable underlying the surface. </p>

</div>
</div>
<a class="anchor" id="a95da96899c1098dae4dc34d0b489d4b5"></a><!-- doxytag: member="Cairo::XlibSurface::get_screen" ref="a95da96899c1098dae4dc34d0b489d4b5" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Screen* Cairo::XlibSurface::get_screen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the X Screen for the underlying X Drawable. </p>

</div>
</div>
<a class="anchor" id="ae0a1ccd477c2e5691b5a748c71191338"></a><!-- doxytag: member="Cairo::XlibSurface::get_screen" ref="ae0a1ccd477c2e5691b5a748c71191338" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Screen* Cairo::XlibSurface::get_screen </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the X Screen for the underlying X Drawable. </p>

</div>
</div>
<a class="anchor" id="a2e1b0cc64bd149a141a08112236726a1"></a><!-- doxytag: member="Cairo::XlibSurface::get_visual" ref="a2e1b0cc64bd149a141a08112236726a1" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const Visual* Cairo::XlibSurface::get_visual </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the X Visual for the underlying X Drawable. </p>

</div>
</div>
<a class="anchor" id="ada56c72e6f48420340a0bc4ae0ae22b0"></a><!-- doxytag: member="Cairo::XlibSurface::get_visual" ref="ada56c72e6f48420340a0bc4ae0ae22b0" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Visual* Cairo::XlibSurface::get_visual </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the X Visual for the underlying X Drawable. </p>

</div>
</div>
<a class="anchor" id="a8cce1064a3f867657eb31e83d1dd464d"></a><!-- doxytag: member="Cairo::XlibSurface::get_width" ref="a8cce1064a3f867657eb31e83d1dd464d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Cairo::XlibSurface::get_width </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Get the width in pixels of the X Drawable underlying the surface. </p>

</div>
</div>
<a class="anchor" id="a285b8e6394c22f395cca79c92dc17429"></a><!-- doxytag: member="Cairo::XlibSurface::get_xrender_format" ref="a285b8e6394c22f395cca79c92dc17429" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">XRenderPictFormat* Cairo::XlibSurface::get_xrender_format </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Gets the X Render picture format that uses for rendering with the X Render extension. </p>
<p>If the surface was created by cairo_xlib_surface_create_with_xrender_format() originally, the return value is the format passed to that constructor.</p>
<p>Return value: the XRenderPictFormat* associated with , or NULL if the surface is not an xlib surface or if the X Render extension is not available.</p>
<p>Since: 1.6 </p>

</div>
</div>
<a class="anchor" id="a92f59aab3ce0a113df0f6de18f306816"></a><!-- doxytag: member="Cairo::XlibSurface::set_drawable" ref="a92f59aab3ce0a113df0f6de18f306816" args="(Drawable drawable, int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::XlibSurface::set_drawable </td>
          <td>(</td>
          <td class="paramtype">Drawable&#160;</td>
          <td class="paramname"><em>drawable</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Informs cairo of a new X Drawable underlying the surface. </p>
<p>The drawable must match the display, screen and format of the existing drawable or the application will get X protocol errors and will probably terminate. No checks are done by this function to ensure this compatibility.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">drawable</td><td>the new drawable for the surface </td></tr>
    <tr><td class="paramname">width</td><td>the width of the new drawable </td></tr>
    <tr><td class="paramname">height</td><td>the height of the new drawable </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a69b6337fa91dd53a054427e9a8235f16"></a><!-- doxytag: member="Cairo::XlibSurface::set_size" ref="a69b6337fa91dd53a054427e9a8235f16" args="(int width, int height)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Cairo::XlibSurface::set_size </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>width</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>height</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Informs cairo of the new size of the X Drawable underlying the surface. </p>
<p>For a surface created for a Window (rather than a Pixmap), this function must be called each time the size of the window changes. (For a subwindow, you are normally resizing the window yourself, but for a toplevel window, it is necessary to listen for ConfigureNotify events.)</p>
<p>A Pixmap can never change size, so it is never necessary to call this function on a surface created for a Pixmap.</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">width</td><td>the new width of the surface </td></tr>
    <tr><td class="paramname">height</td><td>the new height of the surface </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>cairomm/xlib_surface.h</li>
</ul>
</div>
<hr class="footer"/><address class="footer"><small>Generated on Mon May 9 2011 09:51:07 for cairomm by&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address>
</body>
</html>