annotate CSP2/CSP2_env/env-d9b9114564458d9d-741b3de822f2aaca6c6caa4325c4afce/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html @ 68:5028fdace37b

planemo upload commit 2e9511a184a1ca667c7be0c6321a36dc4e3d116d
author jpayne
date Tue, 18 Mar 2025 16:23:26 -0400
parents
children
rev   line source
jpayne@68 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
jpayne@68 2 <html>
jpayne@68 3 <head>
jpayne@68 4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
jpayne@68 5 <title>XLib Surfaces: Cairo: A Vector Graphics Library</title>
jpayne@68 6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
jpayne@68 7 <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
jpayne@68 8 <link rel="up" href="cairo-surfaces.html" title="Surfaces">
jpayne@68 9 <link rel="prev" href="cairo-XCB-Surfaces.html" title="XCB Surfaces">
jpayne@68 10 <link rel="next" href="cairo-XLib-XRender-Backend.html" title="XLib-XRender Backend">
jpayne@68 11 <meta name="generator" content="GTK-Doc V1.27 (XML mode)">
jpayne@68 12 <link rel="stylesheet" href="style.css" type="text/css">
jpayne@68 13 </head>
jpayne@68 14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
jpayne@68 15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
jpayne@68 16 <td width="100%" align="left" class="shortcuts">
jpayne@68 17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
jpayne@68 18 <a href="#cairo-XLib-Surfaces.description" class="shortcut">Description</a></span>
jpayne@68 19 </td>
jpayne@68 20 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
jpayne@68 21 <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
jpayne@68 22 <td><a accesskey="p" href="cairo-XCB-Surfaces.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
jpayne@68 23 <td><a accesskey="n" href="cairo-XLib-XRender-Backend.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
jpayne@68 24 </tr></table>
jpayne@68 25 <div class="refentry">
jpayne@68 26 <a name="cairo-XLib-Surfaces"></a><div class="titlepage"></div>
jpayne@68 27 <div class="refnamediv"><table width="100%"><tr>
jpayne@68 28 <td valign="top">
jpayne@68 29 <h2><span class="refentrytitle"><a name="cairo-XLib-Surfaces.top_of_page"></a>XLib Surfaces</span></h2>
jpayne@68 30 <p>XLib Surfaces — X Window System rendering using XLib</p>
jpayne@68 31 </td>
jpayne@68 32 <td class="gallery_image" valign="top" align="right"></td>
jpayne@68 33 </tr></table></div>
jpayne@68 34 <div class="refsect1">
jpayne@68 35 <a name="cairo-XLib-Surfaces.functions"></a><h2>Functions</h2>
jpayne@68 36 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 37 <colgroup>
jpayne@68 38 <col width="150px" class="functions_return">
jpayne@68 39 <col class="functions_name">
jpayne@68 40 </colgroup>
jpayne@68 41 <tbody>
jpayne@68 42 <tr>
jpayne@68 43 <td class="function_type">
jpayne@68 44 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
jpayne@68 45 </td>
jpayne@68 46 <td class="function_name">
jpayne@68 47 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create" title="cairo_xlib_surface_create ()">cairo_xlib_surface_create</a> <span class="c_punctuation">()</span>
jpayne@68 48 </td>
jpayne@68 49 </tr>
jpayne@68 50 <tr>
jpayne@68 51 <td class="function_type">
jpayne@68 52 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
jpayne@68 53 </td>
jpayne@68 54 <td class="function_name">
jpayne@68 55 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create-for-bitmap" title="cairo_xlib_surface_create_for_bitmap ()">cairo_xlib_surface_create_for_bitmap</a> <span class="c_punctuation">()</span>
jpayne@68 56 </td>
jpayne@68 57 </tr>
jpayne@68 58 <tr>
jpayne@68 59 <td class="function_type">
jpayne@68 60 <span class="returnvalue">void</span>
jpayne@68 61 </td>
jpayne@68 62 <td class="function_name">
jpayne@68 63 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-set-size" title="cairo_xlib_surface_set_size ()">cairo_xlib_surface_set_size</a> <span class="c_punctuation">()</span>
jpayne@68 64 </td>
jpayne@68 65 </tr>
jpayne@68 66 <tr>
jpayne@68 67 <td class="function_type">
jpayne@68 68 <span class="returnvalue">Display</span> *
jpayne@68 69 </td>
jpayne@68 70 <td class="function_name">
jpayne@68 71 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-display" title="cairo_xlib_surface_get_display ()">cairo_xlib_surface_get_display</a> <span class="c_punctuation">()</span>
jpayne@68 72 </td>
jpayne@68 73 </tr>
jpayne@68 74 <tr>
jpayne@68 75 <td class="function_type">
jpayne@68 76 <span class="returnvalue">Screen</span> *
jpayne@68 77 </td>
jpayne@68 78 <td class="function_name">
jpayne@68 79 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-screen" title="cairo_xlib_surface_get_screen ()">cairo_xlib_surface_get_screen</a> <span class="c_punctuation">()</span>
jpayne@68 80 </td>
jpayne@68 81 </tr>
jpayne@68 82 <tr>
jpayne@68 83 <td class="function_type">
jpayne@68 84 <span class="returnvalue">void</span>
jpayne@68 85 </td>
jpayne@68 86 <td class="function_name">
jpayne@68 87 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-set-drawable" title="cairo_xlib_surface_set_drawable ()">cairo_xlib_surface_set_drawable</a> <span class="c_punctuation">()</span>
jpayne@68 88 </td>
jpayne@68 89 </tr>
jpayne@68 90 <tr>
jpayne@68 91 <td class="function_type">
jpayne@68 92 <span class="returnvalue">Drawable</span>
jpayne@68 93 </td>
jpayne@68 94 <td class="function_name">
jpayne@68 95 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-drawable" title="cairo_xlib_surface_get_drawable ()">cairo_xlib_surface_get_drawable</a> <span class="c_punctuation">()</span>
jpayne@68 96 </td>
jpayne@68 97 </tr>
jpayne@68 98 <tr>
jpayne@68 99 <td class="function_type">
jpayne@68 100 <span class="returnvalue">Visual</span> *
jpayne@68 101 </td>
jpayne@68 102 <td class="function_name">
jpayne@68 103 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-visual" title="cairo_xlib_surface_get_visual ()">cairo_xlib_surface_get_visual</a> <span class="c_punctuation">()</span>
jpayne@68 104 </td>
jpayne@68 105 </tr>
jpayne@68 106 <tr>
jpayne@68 107 <td class="function_type">
jpayne@68 108 <span class="returnvalue">int</span>
jpayne@68 109 </td>
jpayne@68 110 <td class="function_name">
jpayne@68 111 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-width" title="cairo_xlib_surface_get_width ()">cairo_xlib_surface_get_width</a> <span class="c_punctuation">()</span>
jpayne@68 112 </td>
jpayne@68 113 </tr>
jpayne@68 114 <tr>
jpayne@68 115 <td class="function_type">
jpayne@68 116 <span class="returnvalue">int</span>
jpayne@68 117 </td>
jpayne@68 118 <td class="function_name">
jpayne@68 119 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-height" title="cairo_xlib_surface_get_height ()">cairo_xlib_surface_get_height</a> <span class="c_punctuation">()</span>
jpayne@68 120 </td>
jpayne@68 121 </tr>
jpayne@68 122 <tr>
jpayne@68 123 <td class="function_type">
jpayne@68 124 <span class="returnvalue">int</span>
jpayne@68 125 </td>
jpayne@68 126 <td class="function_name">
jpayne@68 127 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-depth" title="cairo_xlib_surface_get_depth ()">cairo_xlib_surface_get_depth</a> <span class="c_punctuation">()</span>
jpayne@68 128 </td>
jpayne@68 129 </tr>
jpayne@68 130 <tr>
jpayne@68 131 <td class="function_type">
jpayne@68 132 <span class="returnvalue">void</span>
jpayne@68 133 </td>
jpayne@68 134 <td class="function_name">
jpayne@68 135 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-device-debug-cap-xrender-version" title="cairo_xlib_device_debug_cap_xrender_version ()">cairo_xlib_device_debug_cap_xrender_version</a> <span class="c_punctuation">()</span>
jpayne@68 136 </td>
jpayne@68 137 </tr>
jpayne@68 138 <tr>
jpayne@68 139 <td class="function_type">
jpayne@68 140 <span class="returnvalue">int</span>
jpayne@68 141 </td>
jpayne@68 142 <td class="function_name">
jpayne@68 143 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-device-debug-get-precision" title="cairo_xlib_device_debug_get_precision ()">cairo_xlib_device_debug_get_precision</a> <span class="c_punctuation">()</span>
jpayne@68 144 </td>
jpayne@68 145 </tr>
jpayne@68 146 <tr>
jpayne@68 147 <td class="function_type">
jpayne@68 148 <span class="returnvalue">void</span>
jpayne@68 149 </td>
jpayne@68 150 <td class="function_name">
jpayne@68 151 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-device-debug-set-precision" title="cairo_xlib_device_debug_set_precision ()">cairo_xlib_device_debug_set_precision</a> <span class="c_punctuation">()</span>
jpayne@68 152 </td>
jpayne@68 153 </tr>
jpayne@68 154 </tbody>
jpayne@68 155 </table></div>
jpayne@68 156 </div>
jpayne@68 157 <div class="refsect1">
jpayne@68 158 <a name="cairo-XLib-Surfaces.other"></a><h2>Types and Values</h2>
jpayne@68 159 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 160 <colgroup>
jpayne@68 161 <col width="150px" class="name">
jpayne@68 162 <col class="description">
jpayne@68 163 </colgroup>
jpayne@68 164 <tbody><tr>
jpayne@68 165 <td class="define_keyword">#define</td>
jpayne@68 166 <td class="function_name"><a class="link" href="cairo-XLib-Surfaces.html#CAIRO-HAS-XLIB-SURFACE:CAPS" title="CAIRO_HAS_XLIB_SURFACE">CAIRO_HAS_XLIB_SURFACE</a></td>
jpayne@68 167 </tr></tbody>
jpayne@68 168 </table></div>
jpayne@68 169 </div>
jpayne@68 170 <div class="refsect1">
jpayne@68 171 <a name="cairo-XLib-Surfaces.description"></a><h2>Description</h2>
jpayne@68 172 <p>The XLib surface is used to render cairo graphics to X Window System
jpayne@68 173 windows and pixmaps using the XLib library.</p>
jpayne@68 174 <p>Note that the XLib surface automatically takes advantage of X render extension
jpayne@68 175 if it is available.</p>
jpayne@68 176 </div>
jpayne@68 177 <div class="refsect1">
jpayne@68 178 <a name="cairo-XLib-Surfaces.functions_details"></a><h2>Functions</h2>
jpayne@68 179 <div class="refsect2">
jpayne@68 180 <a name="cairo-xlib-surface-create"></a><h3>cairo_xlib_surface_create ()</h3>
jpayne@68 181 <pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
jpayne@68 182 cairo_xlib_surface_create (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
jpayne@68 183 <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
jpayne@68 184 <em class="parameter"><code><span class="type">Visual</span> *visual</code></em>,
jpayne@68 185 <em class="parameter"><code><span class="type">int</span> width</code></em>,
jpayne@68 186 <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
jpayne@68 187 <p>Creates an Xlib surface that draws to the given drawable.
jpayne@68 188 The way that colors are represented in the drawable is specified
jpayne@68 189 by the provided visual.</p>
jpayne@68 190 <p>Note: If <em class="parameter"><code>drawable</code></em>
jpayne@68 191 is a Window, then the function
jpayne@68 192 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-set-size" title="cairo_xlib_surface_set_size ()"><code class="function">cairo_xlib_surface_set_size()</code></a> must be called whenever the size of the
jpayne@68 193 window changes.</p>
jpayne@68 194 <p>When <em class="parameter"><code>drawable</code></em>
jpayne@68 195 is a Window containing child windows then drawing to
jpayne@68 196 the created surface will be clipped by those child windows. When
jpayne@68 197 the created surface is used as a source, the contents of the
jpayne@68 198 children will be included.</p>
jpayne@68 199 <div class="refsect3">
jpayne@68 200 <a name="cairo-xlib-surface-create.parameters"></a><h4>Parameters</h4>
jpayne@68 201 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 202 <colgroup>
jpayne@68 203 <col width="150px" class="parameters_name">
jpayne@68 204 <col class="parameters_description">
jpayne@68 205 <col width="200px" class="parameters_annotations">
jpayne@68 206 </colgroup>
jpayne@68 207 <tbody>
jpayne@68 208 <tr>
jpayne@68 209 <td class="parameter_name"><p>dpy</p></td>
jpayne@68 210 <td class="parameter_description"><p>an X Display</p></td>
jpayne@68 211 <td class="parameter_annotations"> </td>
jpayne@68 212 </tr>
jpayne@68 213 <tr>
jpayne@68 214 <td class="parameter_name"><p>drawable</p></td>
jpayne@68 215 <td class="parameter_description"><p>an X Drawable, (a Pixmap or a Window)</p></td>
jpayne@68 216 <td class="parameter_annotations"> </td>
jpayne@68 217 </tr>
jpayne@68 218 <tr>
jpayne@68 219 <td class="parameter_name"><p>visual</p></td>
jpayne@68 220 <td class="parameter_description"><p>the visual to use for drawing to <em class="parameter"><code>drawable</code></em>
jpayne@68 221 . The depth
jpayne@68 222 of the visual must match the depth of the drawable.
jpayne@68 223 Currently, only TrueColor visuals are fully supported.</p></td>
jpayne@68 224 <td class="parameter_annotations"> </td>
jpayne@68 225 </tr>
jpayne@68 226 <tr>
jpayne@68 227 <td class="parameter_name"><p>width</p></td>
jpayne@68 228 <td class="parameter_description"><p>the current width of <em class="parameter"><code>drawable</code></em>
jpayne@68 229 .</p></td>
jpayne@68 230 <td class="parameter_annotations"> </td>
jpayne@68 231 </tr>
jpayne@68 232 <tr>
jpayne@68 233 <td class="parameter_name"><p>height</p></td>
jpayne@68 234 <td class="parameter_description"><p>the current height of <em class="parameter"><code>drawable</code></em>
jpayne@68 235 .</p></td>
jpayne@68 236 <td class="parameter_annotations"> </td>
jpayne@68 237 </tr>
jpayne@68 238 </tbody>
jpayne@68 239 </table></div>
jpayne@68 240 </div>
jpayne@68 241 <div class="refsect3">
jpayne@68 242 <a name="cairo-xlib-surface-create.returns"></a><h4>Returns</h4>
jpayne@68 243 <p> the newly created surface</p>
jpayne@68 244 </div>
jpayne@68 245 <p class="since">Since: 1.0</p>
jpayne@68 246 </div>
jpayne@68 247 <hr>
jpayne@68 248 <div class="refsect2">
jpayne@68 249 <a name="cairo-xlib-surface-create-for-bitmap"></a><h3>cairo_xlib_surface_create_for_bitmap ()</h3>
jpayne@68 250 <pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
jpayne@68 251 cairo_xlib_surface_create_for_bitmap (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
jpayne@68 252 <em class="parameter"><code><span class="type">Pixmap</span> bitmap</code></em>,
jpayne@68 253 <em class="parameter"><code><span class="type">Screen</span> *screen</code></em>,
jpayne@68 254 <em class="parameter"><code><span class="type">int</span> width</code></em>,
jpayne@68 255 <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
jpayne@68 256 <p>Creates an Xlib surface that draws to the given bitmap.
jpayne@68 257 This will be drawn to as a <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-A1:CAPS"><code class="literal">CAIRO_FORMAT_A1</code></a> object.</p>
jpayne@68 258 <div class="refsect3">
jpayne@68 259 <a name="cairo-xlib-surface-create-for-bitmap.parameters"></a><h4>Parameters</h4>
jpayne@68 260 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 261 <colgroup>
jpayne@68 262 <col width="150px" class="parameters_name">
jpayne@68 263 <col class="parameters_description">
jpayne@68 264 <col width="200px" class="parameters_annotations">
jpayne@68 265 </colgroup>
jpayne@68 266 <tbody>
jpayne@68 267 <tr>
jpayne@68 268 <td class="parameter_name"><p>dpy</p></td>
jpayne@68 269 <td class="parameter_description"><p>an X Display</p></td>
jpayne@68 270 <td class="parameter_annotations"> </td>
jpayne@68 271 </tr>
jpayne@68 272 <tr>
jpayne@68 273 <td class="parameter_name"><p>bitmap</p></td>
jpayne@68 274 <td class="parameter_description"><p>an X Drawable, (a depth-1 Pixmap)</p></td>
jpayne@68 275 <td class="parameter_annotations"> </td>
jpayne@68 276 </tr>
jpayne@68 277 <tr>
jpayne@68 278 <td class="parameter_name"><p>screen</p></td>
jpayne@68 279 <td class="parameter_description"><p>the X Screen associated with <em class="parameter"><code>bitmap</code></em>
jpayne@68 280 </p></td>
jpayne@68 281 <td class="parameter_annotations"> </td>
jpayne@68 282 </tr>
jpayne@68 283 <tr>
jpayne@68 284 <td class="parameter_name"><p>width</p></td>
jpayne@68 285 <td class="parameter_description"><p>the current width of <em class="parameter"><code>bitmap</code></em>
jpayne@68 286 .</p></td>
jpayne@68 287 <td class="parameter_annotations"> </td>
jpayne@68 288 </tr>
jpayne@68 289 <tr>
jpayne@68 290 <td class="parameter_name"><p>height</p></td>
jpayne@68 291 <td class="parameter_description"><p>the current height of <em class="parameter"><code>bitmap</code></em>
jpayne@68 292 .</p></td>
jpayne@68 293 <td class="parameter_annotations"> </td>
jpayne@68 294 </tr>
jpayne@68 295 </tbody>
jpayne@68 296 </table></div>
jpayne@68 297 </div>
jpayne@68 298 <div class="refsect3">
jpayne@68 299 <a name="cairo-xlib-surface-create-for-bitmap.returns"></a><h4>Returns</h4>
jpayne@68 300 <p> the newly created surface</p>
jpayne@68 301 </div>
jpayne@68 302 <p class="since">Since: 1.0</p>
jpayne@68 303 </div>
jpayne@68 304 <hr>
jpayne@68 305 <div class="refsect2">
jpayne@68 306 <a name="cairo-xlib-surface-set-size"></a><h3>cairo_xlib_surface_set_size ()</h3>
jpayne@68 307 <pre class="programlisting"><span class="returnvalue">void</span>
jpayne@68 308 cairo_xlib_surface_set_size (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
jpayne@68 309 <em class="parameter"><code><span class="type">int</span> width</code></em>,
jpayne@68 310 <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
jpayne@68 311 <p>Informs cairo of the new size of the X Drawable underlying the
jpayne@68 312 surface. For a surface created for a Window (rather than a Pixmap),
jpayne@68 313 this function must be called each time the size of the window
jpayne@68 314 changes. (For a subwindow, you are normally resizing the window
jpayne@68 315 yourself, but for a toplevel window, it is necessary to listen for
jpayne@68 316 ConfigureNotify events.)</p>
jpayne@68 317 <p>A Pixmap can never change size, so it is never necessary to call
jpayne@68 318 this function on a surface created for a Pixmap.</p>
jpayne@68 319 <div class="refsect3">
jpayne@68 320 <a name="cairo-xlib-surface-set-size.parameters"></a><h4>Parameters</h4>
jpayne@68 321 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 322 <colgroup>
jpayne@68 323 <col width="150px" class="parameters_name">
jpayne@68 324 <col class="parameters_description">
jpayne@68 325 <col width="200px" class="parameters_annotations">
jpayne@68 326 </colgroup>
jpayne@68 327 <tbody>
jpayne@68 328 <tr>
jpayne@68 329 <td class="parameter_name"><p>surface</p></td>
jpayne@68 330 <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend</p></td>
jpayne@68 331 <td class="parameter_annotations"> </td>
jpayne@68 332 </tr>
jpayne@68 333 <tr>
jpayne@68 334 <td class="parameter_name"><p>width</p></td>
jpayne@68 335 <td class="parameter_description"><p>the new width of the surface</p></td>
jpayne@68 336 <td class="parameter_annotations"> </td>
jpayne@68 337 </tr>
jpayne@68 338 <tr>
jpayne@68 339 <td class="parameter_name"><p>height</p></td>
jpayne@68 340 <td class="parameter_description"><p>the new height of the surface</p></td>
jpayne@68 341 <td class="parameter_annotations"> </td>
jpayne@68 342 </tr>
jpayne@68 343 </tbody>
jpayne@68 344 </table></div>
jpayne@68 345 </div>
jpayne@68 346 <p class="since">Since: 1.0</p>
jpayne@68 347 </div>
jpayne@68 348 <hr>
jpayne@68 349 <div class="refsect2">
jpayne@68 350 <a name="cairo-xlib-surface-get-display"></a><h3>cairo_xlib_surface_get_display ()</h3>
jpayne@68 351 <pre class="programlisting"><span class="returnvalue">Display</span> *
jpayne@68 352 cairo_xlib_surface_get_display (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 353 <p>Get the X Display for the underlying X Drawable.</p>
jpayne@68 354 <div class="refsect3">
jpayne@68 355 <a name="cairo-xlib-surface-get-display.parameters"></a><h4>Parameters</h4>
jpayne@68 356 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 357 <colgroup>
jpayne@68 358 <col width="150px" class="parameters_name">
jpayne@68 359 <col class="parameters_description">
jpayne@68 360 <col width="200px" class="parameters_annotations">
jpayne@68 361 </colgroup>
jpayne@68 362 <tbody><tr>
jpayne@68 363 <td class="parameter_name"><p>surface</p></td>
jpayne@68 364 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 365 <td class="parameter_annotations"> </td>
jpayne@68 366 </tr></tbody>
jpayne@68 367 </table></div>
jpayne@68 368 </div>
jpayne@68 369 <div class="refsect3">
jpayne@68 370 <a name="cairo-xlib-surface-get-display.returns"></a><h4>Returns</h4>
jpayne@68 371 <p> the display.</p>
jpayne@68 372 </div>
jpayne@68 373 <p class="since">Since: 1.2</p>
jpayne@68 374 </div>
jpayne@68 375 <hr>
jpayne@68 376 <div class="refsect2">
jpayne@68 377 <a name="cairo-xlib-surface-get-screen"></a><h3>cairo_xlib_surface_get_screen ()</h3>
jpayne@68 378 <pre class="programlisting"><span class="returnvalue">Screen</span> *
jpayne@68 379 cairo_xlib_surface_get_screen (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 380 <p>Get the X Screen for the underlying X Drawable.</p>
jpayne@68 381 <div class="refsect3">
jpayne@68 382 <a name="cairo-xlib-surface-get-screen.parameters"></a><h4>Parameters</h4>
jpayne@68 383 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 384 <colgroup>
jpayne@68 385 <col width="150px" class="parameters_name">
jpayne@68 386 <col class="parameters_description">
jpayne@68 387 <col width="200px" class="parameters_annotations">
jpayne@68 388 </colgroup>
jpayne@68 389 <tbody><tr>
jpayne@68 390 <td class="parameter_name"><p>surface</p></td>
jpayne@68 391 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 392 <td class="parameter_annotations"> </td>
jpayne@68 393 </tr></tbody>
jpayne@68 394 </table></div>
jpayne@68 395 </div>
jpayne@68 396 <div class="refsect3">
jpayne@68 397 <a name="cairo-xlib-surface-get-screen.returns"></a><h4>Returns</h4>
jpayne@68 398 <p> the screen.</p>
jpayne@68 399 </div>
jpayne@68 400 <p class="since">Since: 1.2</p>
jpayne@68 401 </div>
jpayne@68 402 <hr>
jpayne@68 403 <div class="refsect2">
jpayne@68 404 <a name="cairo-xlib-surface-set-drawable"></a><h3>cairo_xlib_surface_set_drawable ()</h3>
jpayne@68 405 <pre class="programlisting"><span class="returnvalue">void</span>
jpayne@68 406 cairo_xlib_surface_set_drawable (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
jpayne@68 407 <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
jpayne@68 408 <em class="parameter"><code><span class="type">int</span> width</code></em>,
jpayne@68 409 <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
jpayne@68 410 <p>Informs cairo of a new X Drawable underlying the
jpayne@68 411 surface. The drawable must match the display, screen
jpayne@68 412 and format of the existing drawable or the application
jpayne@68 413 will get X protocol errors and will probably terminate.
jpayne@68 414 No checks are done by this function to ensure this
jpayne@68 415 compatibility.</p>
jpayne@68 416 <div class="refsect3">
jpayne@68 417 <a name="cairo-xlib-surface-set-drawable.parameters"></a><h4>Parameters</h4>
jpayne@68 418 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 419 <colgroup>
jpayne@68 420 <col width="150px" class="parameters_name">
jpayne@68 421 <col class="parameters_description">
jpayne@68 422 <col width="200px" class="parameters_annotations">
jpayne@68 423 </colgroup>
jpayne@68 424 <tbody>
jpayne@68 425 <tr>
jpayne@68 426 <td class="parameter_name"><p>surface</p></td>
jpayne@68 427 <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend</p></td>
jpayne@68 428 <td class="parameter_annotations"> </td>
jpayne@68 429 </tr>
jpayne@68 430 <tr>
jpayne@68 431 <td class="parameter_name"><p>drawable</p></td>
jpayne@68 432 <td class="parameter_description"><p>the new drawable for the surface</p></td>
jpayne@68 433 <td class="parameter_annotations"> </td>
jpayne@68 434 </tr>
jpayne@68 435 <tr>
jpayne@68 436 <td class="parameter_name"><p>width</p></td>
jpayne@68 437 <td class="parameter_description"><p>the width of the new drawable</p></td>
jpayne@68 438 <td class="parameter_annotations"> </td>
jpayne@68 439 </tr>
jpayne@68 440 <tr>
jpayne@68 441 <td class="parameter_name"><p>height</p></td>
jpayne@68 442 <td class="parameter_description"><p>the height of the new drawable</p></td>
jpayne@68 443 <td class="parameter_annotations"> </td>
jpayne@68 444 </tr>
jpayne@68 445 </tbody>
jpayne@68 446 </table></div>
jpayne@68 447 </div>
jpayne@68 448 <p class="since">Since: 1.0</p>
jpayne@68 449 </div>
jpayne@68 450 <hr>
jpayne@68 451 <div class="refsect2">
jpayne@68 452 <a name="cairo-xlib-surface-get-drawable"></a><h3>cairo_xlib_surface_get_drawable ()</h3>
jpayne@68 453 <pre class="programlisting"><span class="returnvalue">Drawable</span>
jpayne@68 454 cairo_xlib_surface_get_drawable (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 455 <p>Get the underlying X Drawable used for the surface.</p>
jpayne@68 456 <div class="refsect3">
jpayne@68 457 <a name="cairo-xlib-surface-get-drawable.parameters"></a><h4>Parameters</h4>
jpayne@68 458 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 459 <colgroup>
jpayne@68 460 <col width="150px" class="parameters_name">
jpayne@68 461 <col class="parameters_description">
jpayne@68 462 <col width="200px" class="parameters_annotations">
jpayne@68 463 </colgroup>
jpayne@68 464 <tbody><tr>
jpayne@68 465 <td class="parameter_name"><p>surface</p></td>
jpayne@68 466 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 467 <td class="parameter_annotations"> </td>
jpayne@68 468 </tr></tbody>
jpayne@68 469 </table></div>
jpayne@68 470 </div>
jpayne@68 471 <div class="refsect3">
jpayne@68 472 <a name="cairo-xlib-surface-get-drawable.returns"></a><h4>Returns</h4>
jpayne@68 473 <p> the drawable.</p>
jpayne@68 474 </div>
jpayne@68 475 <p class="since">Since: 1.2</p>
jpayne@68 476 </div>
jpayne@68 477 <hr>
jpayne@68 478 <div class="refsect2">
jpayne@68 479 <a name="cairo-xlib-surface-get-visual"></a><h3>cairo_xlib_surface_get_visual ()</h3>
jpayne@68 480 <pre class="programlisting"><span class="returnvalue">Visual</span> *
jpayne@68 481 cairo_xlib_surface_get_visual (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 482 <p>Gets the X Visual associated with <em class="parameter"><code>surface</code></em>
jpayne@68 483 , suitable for use with the
jpayne@68 484 underlying X Drawable. If <em class="parameter"><code>surface</code></em>
jpayne@68 485 was created by
jpayne@68 486 <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create" title="cairo_xlib_surface_create ()"><code class="function">cairo_xlib_surface_create()</code></a>, the return value is the Visual passed to that
jpayne@68 487 constructor.</p>
jpayne@68 488 <div class="refsect3">
jpayne@68 489 <a name="cairo-xlib-surface-get-visual.parameters"></a><h4>Parameters</h4>
jpayne@68 490 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 491 <colgroup>
jpayne@68 492 <col width="150px" class="parameters_name">
jpayne@68 493 <col class="parameters_description">
jpayne@68 494 <col width="200px" class="parameters_annotations">
jpayne@68 495 </colgroup>
jpayne@68 496 <tbody><tr>
jpayne@68 497 <td class="parameter_name"><p>surface</p></td>
jpayne@68 498 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 499 <td class="parameter_annotations"> </td>
jpayne@68 500 </tr></tbody>
jpayne@68 501 </table></div>
jpayne@68 502 </div>
jpayne@68 503 <div class="refsect3">
jpayne@68 504 <a name="cairo-xlib-surface-get-visual.returns"></a><h4>Returns</h4>
jpayne@68 505 <p> the Visual or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no appropriate Visual for
jpayne@68 506 <em class="parameter"><code>surface</code></em>
jpayne@68 507 .</p>
jpayne@68 508 </div>
jpayne@68 509 <p class="since">Since: 1.2</p>
jpayne@68 510 </div>
jpayne@68 511 <hr>
jpayne@68 512 <div class="refsect2">
jpayne@68 513 <a name="cairo-xlib-surface-get-width"></a><h3>cairo_xlib_surface_get_width ()</h3>
jpayne@68 514 <pre class="programlisting"><span class="returnvalue">int</span>
jpayne@68 515 cairo_xlib_surface_get_width (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 516 <p>Get the width of the X Drawable underlying the surface in pixels.</p>
jpayne@68 517 <div class="refsect3">
jpayne@68 518 <a name="cairo-xlib-surface-get-width.parameters"></a><h4>Parameters</h4>
jpayne@68 519 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 520 <colgroup>
jpayne@68 521 <col width="150px" class="parameters_name">
jpayne@68 522 <col class="parameters_description">
jpayne@68 523 <col width="200px" class="parameters_annotations">
jpayne@68 524 </colgroup>
jpayne@68 525 <tbody><tr>
jpayne@68 526 <td class="parameter_name"><p>surface</p></td>
jpayne@68 527 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 528 <td class="parameter_annotations"> </td>
jpayne@68 529 </tr></tbody>
jpayne@68 530 </table></div>
jpayne@68 531 </div>
jpayne@68 532 <div class="refsect3">
jpayne@68 533 <a name="cairo-xlib-surface-get-width.returns"></a><h4>Returns</h4>
jpayne@68 534 <p> the width of the surface in pixels.</p>
jpayne@68 535 </div>
jpayne@68 536 <p class="since">Since: 1.2</p>
jpayne@68 537 </div>
jpayne@68 538 <hr>
jpayne@68 539 <div class="refsect2">
jpayne@68 540 <a name="cairo-xlib-surface-get-height"></a><h3>cairo_xlib_surface_get_height ()</h3>
jpayne@68 541 <pre class="programlisting"><span class="returnvalue">int</span>
jpayne@68 542 cairo_xlib_surface_get_height (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 543 <p>Get the height of the X Drawable underlying the surface in pixels.</p>
jpayne@68 544 <div class="refsect3">
jpayne@68 545 <a name="cairo-xlib-surface-get-height.parameters"></a><h4>Parameters</h4>
jpayne@68 546 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 547 <colgroup>
jpayne@68 548 <col width="150px" class="parameters_name">
jpayne@68 549 <col class="parameters_description">
jpayne@68 550 <col width="200px" class="parameters_annotations">
jpayne@68 551 </colgroup>
jpayne@68 552 <tbody><tr>
jpayne@68 553 <td class="parameter_name"><p>surface</p></td>
jpayne@68 554 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 555 <td class="parameter_annotations"> </td>
jpayne@68 556 </tr></tbody>
jpayne@68 557 </table></div>
jpayne@68 558 </div>
jpayne@68 559 <div class="refsect3">
jpayne@68 560 <a name="cairo-xlib-surface-get-height.returns"></a><h4>Returns</h4>
jpayne@68 561 <p> the height of the surface in pixels.</p>
jpayne@68 562 </div>
jpayne@68 563 <p class="since">Since: 1.2</p>
jpayne@68 564 </div>
jpayne@68 565 <hr>
jpayne@68 566 <div class="refsect2">
jpayne@68 567 <a name="cairo-xlib-surface-get-depth"></a><h3>cairo_xlib_surface_get_depth ()</h3>
jpayne@68 568 <pre class="programlisting"><span class="returnvalue">int</span>
jpayne@68 569 cairo_xlib_surface_get_depth (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
jpayne@68 570 <p>Get the number of bits used to represent each pixel value.</p>
jpayne@68 571 <div class="refsect3">
jpayne@68 572 <a name="cairo-xlib-surface-get-depth.parameters"></a><h4>Parameters</h4>
jpayne@68 573 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 574 <colgroup>
jpayne@68 575 <col width="150px" class="parameters_name">
jpayne@68 576 <col class="parameters_description">
jpayne@68 577 <col width="200px" class="parameters_annotations">
jpayne@68 578 </colgroup>
jpayne@68 579 <tbody><tr>
jpayne@68 580 <td class="parameter_name"><p>surface</p></td>
jpayne@68 581 <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
jpayne@68 582 <td class="parameter_annotations"> </td>
jpayne@68 583 </tr></tbody>
jpayne@68 584 </table></div>
jpayne@68 585 </div>
jpayne@68 586 <div class="refsect3">
jpayne@68 587 <a name="cairo-xlib-surface-get-depth.returns"></a><h4>Returns</h4>
jpayne@68 588 <p> the depth of the surface in bits.</p>
jpayne@68 589 </div>
jpayne@68 590 <p class="since">Since: 1.2</p>
jpayne@68 591 </div>
jpayne@68 592 <hr>
jpayne@68 593 <div class="refsect2">
jpayne@68 594 <a name="cairo-xlib-device-debug-cap-xrender-version"></a><h3>cairo_xlib_device_debug_cap_xrender_version ()</h3>
jpayne@68 595 <pre class="programlisting"><span class="returnvalue">void</span>
jpayne@68 596 cairo_xlib_device_debug_cap_xrender_version
jpayne@68 597 (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>,
jpayne@68 598 <em class="parameter"><code><span class="type">int</span> major_version</code></em>,
jpayne@68 599 <em class="parameter"><code><span class="type">int</span> minor_version</code></em>);</pre>
jpayne@68 600 <p>Restricts all future Xlib surfaces for this devices to the specified version
jpayne@68 601 of the RENDER extension. This function exists solely for debugging purpose.
jpayne@68 602 It lets you find out how cairo would behave with an older version of
jpayne@68 603 the RENDER extension.</p>
jpayne@68 604 <p>Use the special values -1 and -1 for disabling the RENDER extension.</p>
jpayne@68 605 <div class="refsect3">
jpayne@68 606 <a name="cairo-xlib-device-debug-cap-xrender-version.parameters"></a><h4>Parameters</h4>
jpayne@68 607 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 608 <colgroup>
jpayne@68 609 <col width="150px" class="parameters_name">
jpayne@68 610 <col class="parameters_description">
jpayne@68 611 <col width="200px" class="parameters_annotations">
jpayne@68 612 </colgroup>
jpayne@68 613 <tbody>
jpayne@68 614 <tr>
jpayne@68 615 <td class="parameter_name"><p>device</p></td>
jpayne@68 616 <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</p></td>
jpayne@68 617 <td class="parameter_annotations"> </td>
jpayne@68 618 </tr>
jpayne@68 619 <tr>
jpayne@68 620 <td class="parameter_name"><p>major_version</p></td>
jpayne@68 621 <td class="parameter_description"><p>major version to restrict to</p></td>
jpayne@68 622 <td class="parameter_annotations"> </td>
jpayne@68 623 </tr>
jpayne@68 624 <tr>
jpayne@68 625 <td class="parameter_name"><p>minor_version</p></td>
jpayne@68 626 <td class="parameter_description"><p>minor version to restrict to</p></td>
jpayne@68 627 <td class="parameter_annotations"> </td>
jpayne@68 628 </tr>
jpayne@68 629 </tbody>
jpayne@68 630 </table></div>
jpayne@68 631 </div>
jpayne@68 632 <p class="since">Since: 1.12</p>
jpayne@68 633 </div>
jpayne@68 634 <hr>
jpayne@68 635 <div class="refsect2">
jpayne@68 636 <a name="cairo-xlib-device-debug-get-precision"></a><h3>cairo_xlib_device_debug_get_precision ()</h3>
jpayne@68 637 <pre class="programlisting"><span class="returnvalue">int</span>
jpayne@68 638 cairo_xlib_device_debug_get_precision (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
jpayne@68 639 <p>Get the Xrender precision mode.</p>
jpayne@68 640 <div class="refsect3">
jpayne@68 641 <a name="cairo-xlib-device-debug-get-precision.parameters"></a><h4>Parameters</h4>
jpayne@68 642 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 643 <colgroup>
jpayne@68 644 <col width="150px" class="parameters_name">
jpayne@68 645 <col class="parameters_description">
jpayne@68 646 <col width="200px" class="parameters_annotations">
jpayne@68 647 </colgroup>
jpayne@68 648 <tbody><tr>
jpayne@68 649 <td class="parameter_name"><p>device</p></td>
jpayne@68 650 <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</p></td>
jpayne@68 651 <td class="parameter_annotations"> </td>
jpayne@68 652 </tr></tbody>
jpayne@68 653 </table></div>
jpayne@68 654 </div>
jpayne@68 655 <div class="refsect3">
jpayne@68 656 <a name="cairo-xlib-device-debug-get-precision.returns"></a><h4>Returns</h4>
jpayne@68 657 <p> the render precision mode</p>
jpayne@68 658 </div>
jpayne@68 659 <p class="since">Since: 1.12</p>
jpayne@68 660 </div>
jpayne@68 661 <hr>
jpayne@68 662 <div class="refsect2">
jpayne@68 663 <a name="cairo-xlib-device-debug-set-precision"></a><h3>cairo_xlib_device_debug_set_precision ()</h3>
jpayne@68 664 <pre class="programlisting"><span class="returnvalue">void</span>
jpayne@68 665 cairo_xlib_device_debug_set_precision (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>,
jpayne@68 666 <em class="parameter"><code><span class="type">int</span> precision</code></em>);</pre>
jpayne@68 667 <p>Render supports two modes of precision when rendering trapezoids. Set
jpayne@68 668 the precision to the desired mode.</p>
jpayne@68 669 <div class="refsect3">
jpayne@68 670 <a name="cairo-xlib-device-debug-set-precision.parameters"></a><h4>Parameters</h4>
jpayne@68 671 <div class="informaltable"><table class="informaltable" width="100%" border="0">
jpayne@68 672 <colgroup>
jpayne@68 673 <col width="150px" class="parameters_name">
jpayne@68 674 <col class="parameters_description">
jpayne@68 675 <col width="200px" class="parameters_annotations">
jpayne@68 676 </colgroup>
jpayne@68 677 <tbody>
jpayne@68 678 <tr>
jpayne@68 679 <td class="parameter_name"><p>device</p></td>
jpayne@68 680 <td class="parameter_description"><p>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</p></td>
jpayne@68 681 <td class="parameter_annotations"> </td>
jpayne@68 682 </tr>
jpayne@68 683 <tr>
jpayne@68 684 <td class="parameter_name"><p>precision</p></td>
jpayne@68 685 <td class="parameter_description"><p>the precision to use</p></td>
jpayne@68 686 <td class="parameter_annotations"> </td>
jpayne@68 687 </tr>
jpayne@68 688 </tbody>
jpayne@68 689 </table></div>
jpayne@68 690 </div>
jpayne@68 691 <p class="since">Since: 1.12</p>
jpayne@68 692 </div>
jpayne@68 693 </div>
jpayne@68 694 <div class="refsect1">
jpayne@68 695 <a name="cairo-XLib-Surfaces.other_details"></a><h2>Types and Values</h2>
jpayne@68 696 <div class="refsect2">
jpayne@68 697 <a name="CAIRO-HAS-XLIB-SURFACE:CAPS"></a><h3>CAIRO_HAS_XLIB_SURFACE</h3>
jpayne@68 698 <pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
jpayne@68 699 </pre>
jpayne@68 700 <p>Defined if the Xlib surface backend is available.
jpayne@68 701 This macro can be used to conditionally compile backend-specific code.</p>
jpayne@68 702 <p class="since">Since: 1.0</p>
jpayne@68 703 </div>
jpayne@68 704 </div>
jpayne@68 705 <div class="refsect1">
jpayne@68 706 <a name="cairo-XLib-Surfaces.see-also"></a><h2>See Also</h2>
jpayne@68 707 <p><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></p>
jpayne@68 708 </div>
jpayne@68 709 </div>
jpayne@68 710 <div class="footer">
jpayne@68 711 <hr>Generated by GTK-Doc V1.27</div>
jpayne@68 712 </body>
jpayne@68 713 </html>