cairo 1.14.1-x64-mingw32 → 1.14.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (215) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +21 -0
  3. data/Rakefile +17 -6
  4. data/ext/cairo/cairo.def +1 -0
  5. data/ext/cairo/extconf.rb +23 -10
  6. data/ext/cairo/rb_cairo.c +3 -0
  7. data/ext/cairo/rb_cairo.h +3 -3
  8. data/ext/cairo/rb_cairo_context.c +1 -1
  9. data/ext/cairo/rb_cairo_io.c +4 -0
  10. data/ext/cairo/rb_cairo_io.h +2 -0
  11. data/ext/cairo/rb_cairo_pattern.c +4 -4
  12. data/ext/cairo/rb_cairo_private.h +2 -0
  13. data/ext/cairo/rb_cairo_surface.c +64 -232
  14. data/lib/2.0/cairo.so +0 -0
  15. data/lib/2.1/cairo.so +0 -0
  16. data/lib/2.2/cairo.so +0 -0
  17. data/lib/cairo.rb +20 -19
  18. data/lib/cairo/region.rb +14 -0
  19. data/test/test_region.rb +26 -0
  20. data/vendor/local/bin/fc-cache.exe +0 -0
  21. data/vendor/local/bin/fc-cat.exe +0 -0
  22. data/vendor/local/bin/fc-list.exe +0 -0
  23. data/vendor/local/bin/fc-match.exe +0 -0
  24. data/vendor/local/bin/fc-pattern.exe +0 -0
  25. data/vendor/local/bin/fc-query.exe +0 -0
  26. data/vendor/local/bin/fc-scan.exe +0 -0
  27. data/vendor/local/bin/fc-validate.exe +0 -0
  28. data/vendor/local/bin/freetype-config +2 -2
  29. data/vendor/local/bin/libcairo-2.dll +0 -0
  30. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  31. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  32. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  33. data/vendor/local/bin/libfreetype-6.dll +0 -0
  34. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  35. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  36. data/vendor/local/bin/libpng-config +1 -1
  37. data/vendor/local/bin/libpng16-16.dll +0 -0
  38. data/vendor/local/bin/libpng16-config +1 -1
  39. data/vendor/local/bin/libstdc++-6.dll +0 -0
  40. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  41. data/vendor/local/bin/libxml2-2.dll +0 -0
  42. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  43. data/vendor/local/bin/pngfix.exe +0 -0
  44. data/vendor/local/bin/xmlcatalog.exe +0 -0
  45. data/vendor/local/bin/xmllint.exe +0 -0
  46. data/vendor/local/bin/zlib1.dll +0 -0
  47. data/vendor/local/include/cairo/cairo-version.h +1 -1
  48. data/vendor/local/include/freetype2/config/ftconfig.h +19 -2
  49. data/vendor/local/include/freetype2/config/ftheader.h +7 -5
  50. data/vendor/local/include/freetype2/config/ftoption.h +9 -22
  51. data/vendor/local/include/freetype2/config/ftstdlib.h +2 -3
  52. data/vendor/local/include/freetype2/freetype.h +38 -17
  53. data/vendor/local/include/freetype2/ft2build.h +1 -1
  54. data/vendor/local/include/freetype2/ftadvanc.h +2 -2
  55. data/vendor/local/include/freetype2/ftautoh.h +50 -2
  56. data/vendor/local/include/freetype2/ftbbox.h +1 -1
  57. data/vendor/local/include/freetype2/ftbdf.h +1 -1
  58. data/vendor/local/include/freetype2/ftbitmap.h +11 -3
  59. data/vendor/local/include/freetype2/ftbzip2.h +1 -1
  60. data/vendor/local/include/freetype2/ftcache.h +3 -3
  61. data/vendor/local/include/freetype2/ftcffdrv.h +1 -1
  62. data/vendor/local/include/freetype2/ftcid.h +2 -1
  63. data/vendor/local/include/freetype2/fterrdef.h +1 -1
  64. data/vendor/local/include/freetype2/fterrors.h +1 -1
  65. data/vendor/local/include/freetype2/{ftxf86.h → ftfntfmt.h} +22 -14
  66. data/vendor/local/include/freetype2/ftgasp.h +1 -1
  67. data/vendor/local/include/freetype2/ftglyph.h +1 -1
  68. data/vendor/local/include/freetype2/ftgxval.h +1 -1
  69. data/vendor/local/include/freetype2/ftgzip.h +1 -1
  70. data/vendor/local/include/freetype2/ftimage.h +7 -13
  71. data/vendor/local/include/freetype2/ftincrem.h +1 -1
  72. data/vendor/local/include/freetype2/ftlcdfil.h +2 -2
  73. data/vendor/local/include/freetype2/ftlist.h +1 -1
  74. data/vendor/local/include/freetype2/ftlzw.h +1 -1
  75. data/vendor/local/include/freetype2/ftmac.h +1 -1
  76. data/vendor/local/include/freetype2/ftmm.h +17 -11
  77. data/vendor/local/include/freetype2/ftmodapi.h +4 -2
  78. data/vendor/local/include/freetype2/ftmoderr.h +1 -1
  79. data/vendor/local/include/freetype2/ftotval.h +1 -1
  80. data/vendor/local/include/freetype2/ftoutln.h +1 -1
  81. data/vendor/local/include/freetype2/ftpfr.h +1 -1
  82. data/vendor/local/include/freetype2/ftrender.h +3 -8
  83. data/vendor/local/include/freetype2/ftsizes.h +1 -1
  84. data/vendor/local/include/freetype2/ftsnames.h +1 -1
  85. data/vendor/local/include/freetype2/ftstroke.h +1 -1
  86. data/vendor/local/include/freetype2/ftsynth.h +5 -3
  87. data/vendor/local/include/freetype2/ftsystem.h +10 -1
  88. data/vendor/local/include/freetype2/fttrigon.h +1 -1
  89. data/vendor/local/include/freetype2/ftttdrv.h +85 -22
  90. data/vendor/local/include/freetype2/fttypes.h +1 -1
  91. data/vendor/local/include/freetype2/ftwinfnt.h +3 -3
  92. data/vendor/local/include/freetype2/t1tables.h +4 -3
  93. data/vendor/local/include/freetype2/ttnameid.h +116 -116
  94. data/vendor/local/include/freetype2/tttables.h +2 -2
  95. data/vendor/local/include/freetype2/tttags.h +1 -1
  96. data/vendor/local/include/freetype2/ttunpat.h +1 -1
  97. data/vendor/local/include/libpng16/png.h +63 -80
  98. data/vendor/local/include/libpng16/pngconf.h +8 -30
  99. data/vendor/local/include/libpng16/pnglibconf.h +10 -4
  100. data/vendor/local/include/png.h +63 -80
  101. data/vendor/local/include/pngconf.h +8 -30
  102. data/vendor/local/include/pnglibconf.h +10 -4
  103. data/vendor/local/lib/libcairo-gobject.a +0 -0
  104. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  105. data/vendor/local/lib/libcairo-gobject.la +2 -2
  106. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  107. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  108. data/vendor/local/lib/libcairo-script-interpreter.la +2 -2
  109. data/vendor/local/lib/libcairo.a +0 -0
  110. data/vendor/local/lib/libcairo.dll.a +0 -0
  111. data/vendor/local/lib/libcairo.la +2 -2
  112. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  113. data/vendor/local/lib/libfreetype.a +0 -0
  114. data/vendor/local/lib/libfreetype.dll.a +0 -0
  115. data/vendor/local/lib/libfreetype.la +4 -4
  116. data/vendor/local/lib/libpixman-1.a +0 -0
  117. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  118. data/vendor/local/lib/libpng.a +0 -0
  119. data/vendor/local/lib/libpng.dll.a +0 -0
  120. data/vendor/local/lib/libpng.la +4 -4
  121. data/vendor/local/lib/libpng16.a +0 -0
  122. data/vendor/local/lib/libpng16.dll.a +0 -0
  123. data/vendor/local/lib/libpng16.la +4 -4
  124. data/vendor/local/lib/libxml2.a +0 -0
  125. data/vendor/local/lib/libxml2.dll.a +0 -0
  126. data/vendor/local/lib/libz.a +0 -0
  127. data/vendor/local/lib/libz.dll.a +0 -0
  128. data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
  129. data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
  130. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
  131. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
  132. data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
  133. data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
  134. data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
  135. data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
  136. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
  137. data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
  138. data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
  139. data/vendor/local/lib/pkgconfig/freetype2.pc +1 -1
  140. data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
  141. data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
  142. data/vendor/local/share/aclocal/freetype2.m4 +1 -1
  143. data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +12 -12
  144. data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +12 -12
  145. data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +12 -12
  146. data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +13 -13
  147. data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +12 -12
  148. data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +35 -35
  149. data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +10 -10
  150. data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +11 -11
  151. data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +13 -13
  152. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +294 -225
  153. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +387 -269
  154. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +432 -302
  155. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +325 -217
  156. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +298 -193
  157. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1121 -812
  158. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +513 -383
  159. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +126 -83
  160. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +172 -119
  161. data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +581 -372
  162. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +179 -130
  163. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +888 -539
  164. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +287 -192
  165. data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +374 -231
  166. data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +395 -219
  167. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +125 -75
  168. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +630 -464
  169. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +225 -200
  170. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +336 -214
  171. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +277 -186
  172. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +495 -350
  173. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +557 -362
  174. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +158 -111
  175. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +655 -441
  176. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +389 -280
  177. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +667 -451
  178. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +579 -351
  179. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2006 -1545
  180. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +892 -618
  181. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1624 -1188
  182. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2903 -2104
  183. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -13
  184. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -13
  185. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +13 -13
  186. data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +13 -13
  187. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1115 -758
  188. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +419 -604
  189. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  190. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
  191. data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +70 -70
  192. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +58 -58
  193. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +39 -39
  194. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +30 -30
  195. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +38 -38
  196. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +426 -426
  197. data/vendor/local/share/gtk-doc/html/cairo/index.html +6 -6
  198. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +234 -325
  199. data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +12 -12
  200. data/vendor/local/share/gtk-doc/html/cairo/left-insensitive.png +0 -0
  201. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  202. data/vendor/local/share/gtk-doc/html/cairo/right-insensitive.png +0 -0
  203. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  204. data/vendor/local/share/gtk-doc/html/cairo/style.css +221 -26
  205. data/vendor/local/share/gtk-doc/html/cairo/up-insensitive.png +0 -0
  206. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  207. data/vendor/local/share/license/cairo/README +1 -1
  208. data/vendor/local/share/license/freetype/README +6 -6
  209. data/vendor/local/share/license/freetype/README.git +1 -1
  210. data/vendor/local/share/license/libpng/README +2 -2
  211. data/vendor/local/share/man/man1/freetype-config.1 +1 -1
  212. data/vendor/local/share/man/man3/libpng.3 +85 -92
  213. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  214. data/vendor/local/share/man/man5/png.5 +1 -1
  215. metadata +23 -19
@@ -2,30 +2,27 @@
2
2
  <html>
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
- <title>XLib Surfaces</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: XLib Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
9
  <link rel="prev" href="cairo-XCB-Surfaces.html" title="XCB Surfaces">
10
10
  <link rel="next" href="cairo-XLib-XRender-Backend.html" title="XLib-XRender Backend">
11
- <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
13
13
  </head>
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
- <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
- <tr valign="middle">
17
- <td><a accesskey="p" href="cairo-XCB-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
- <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
- <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
- <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
21
- <td><a accesskey="n" href="cairo-XLib-XRender-Backend.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
- </tr>
23
- <tr><td colspan="5" class="shortcuts">
24
- <a href="#cairo-XLib-Surfaces.synopsis" class="shortcut">Top</a>
25
-  | 
26
- <a href="#cairo-XLib-Surfaces.description" class="shortcut">Description</a>
27
- </td></tr>
28
- </table>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
16
+ <td width="100%" align="left" class="shortcuts">
17
+ <a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span> 
18
+ <a href="#cairo-XLib-Surfaces.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
19
+ <a href="#cairo-XLib-Surfaces.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
20
+ </td>
21
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
+ <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
23
+ <td><a accesskey="p" href="cairo-XCB-Surfaces.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
+ <td><a accesskey="n" href="cairo-XLib-XRender-Backend.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
25
+ </tr></table>
29
26
  <div class="refentry">
30
27
  <a name="cairo-XLib-Surfaces"></a><div class="titlepage"></div>
31
28
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,503 +30,701 @@
33
30
  <h2><span class="refentrytitle"><a name="cairo-XLib-Surfaces.top_of_page"></a>XLib Surfaces</span></h2>
34
31
  <p>XLib Surfaces — X Window System rendering using XLib</p>
35
32
  </td>
36
- <td valign="top" align="right"></td>
33
+ <td class="gallery_image" valign="top" align="right"></td>
37
34
  </tr></table></div>
38
- <div class="refsynopsisdiv">
39
- <a name="cairo-XLib-Surfaces.synopsis"></a><h2>Synopsis</h2>
40
- <pre class="synopsis">#define <a class="link" href="cairo-XLib-Surfaces.html#CAIRO-HAS-XLIB-SURFACE:CAPS" title="CAIRO_HAS_XLIB_SURFACE">CAIRO_HAS_XLIB_SURFACE</a>
41
- <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create" title="cairo_xlib_surface_create ()">cairo_xlib_surface_create</a> (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
42
- <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
43
- <em class="parameter"><code><span class="type">Visual</span> *visual</code></em>,
44
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
45
- <em class="parameter"><code><span class="type">int</span> height</code></em>);
46
- <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * <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>
47
- (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
48
- <em class="parameter"><code><span class="type">Pixmap</span> bitmap</code></em>,
49
- <em class="parameter"><code><span class="type">Screen</span> *screen</code></em>,
50
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
51
- <em class="parameter"><code><span class="type">int</span> height</code></em>);
52
- <span class="returnvalue">void</span> <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> (<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>,
53
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
54
- <em class="parameter"><code><span class="type">int</span> height</code></em>);
55
- <span class="returnvalue">Display</span> * <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> (<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>);
56
- <span class="returnvalue">Screen</span> * <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> (<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>);
57
- <span class="returnvalue">void</span> <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> (<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>,
58
- <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
59
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
60
- <em class="parameter"><code><span class="type">int</span> height</code></em>);
61
- <span class="returnvalue">Drawable</span> <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> (<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>);
62
- <span class="returnvalue">Visual</span> * <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> (<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>);
63
- <span class="returnvalue">int</span> <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> (<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>);
64
- <span class="returnvalue">int</span> <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> (<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>);
65
- <span class="returnvalue">int</span> <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> (<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>);
66
- <span class="returnvalue">void</span> <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>
67
- (<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>,
68
- <em class="parameter"><code><span class="type">int</span> major_version</code></em>,
69
- <em class="parameter"><code><span class="type">int</span> minor_version</code></em>);
70
- <span class="returnvalue">int</span> <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>
71
- (<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>);
72
- <span class="returnvalue">void</span> <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>
73
- (<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>,
74
- <em class="parameter"><code><span class="type">int</span> precision</code></em>);
75
- </pre>
35
+ <div class="refsect1">
36
+ <a name="cairo-XLib-Surfaces.functions"></a><h2>Functions</h2>
37
+ <div class="informaltable"><table width="100%" border="0">
38
+ <colgroup>
39
+ <col width="150px" class="functions_return">
40
+ <col class="functions_name">
41
+ </colgroup>
42
+ <tbody>
43
+ <tr>
44
+ <td class="function_type">
45
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
46
+ </td>
47
+ <td class="function_name">
48
+ <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>
49
+ </td>
50
+ </tr>
51
+ <tr>
52
+ <td class="function_type">
53
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
54
+ </td>
55
+ <td class="function_name">
56
+ <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>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td class="function_type">
61
+ <span class="returnvalue">void</span>
62
+ </td>
63
+ <td class="function_name">
64
+ <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>
65
+ </td>
66
+ </tr>
67
+ <tr>
68
+ <td class="function_type">
69
+ <span class="returnvalue">Display</span> *
70
+ </td>
71
+ <td class="function_name">
72
+ <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>
73
+ </td>
74
+ </tr>
75
+ <tr>
76
+ <td class="function_type">
77
+ <span class="returnvalue">Screen</span> *
78
+ </td>
79
+ <td class="function_name">
80
+ <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>
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <td class="function_type">
85
+ <span class="returnvalue">void</span>
86
+ </td>
87
+ <td class="function_name">
88
+ <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>
89
+ </td>
90
+ </tr>
91
+ <tr>
92
+ <td class="function_type">
93
+ <span class="returnvalue">Drawable</span>
94
+ </td>
95
+ <td class="function_name">
96
+ <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>
97
+ </td>
98
+ </tr>
99
+ <tr>
100
+ <td class="function_type">
101
+ <span class="returnvalue">Visual</span> *
102
+ </td>
103
+ <td class="function_name">
104
+ <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>
105
+ </td>
106
+ </tr>
107
+ <tr>
108
+ <td class="function_type">
109
+ <span class="returnvalue">int</span>
110
+ </td>
111
+ <td class="function_name">
112
+ <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>
113
+ </td>
114
+ </tr>
115
+ <tr>
116
+ <td class="function_type">
117
+ <span class="returnvalue">int</span>
118
+ </td>
119
+ <td class="function_name">
120
+ <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>
121
+ </td>
122
+ </tr>
123
+ <tr>
124
+ <td class="function_type">
125
+ <span class="returnvalue">int</span>
126
+ </td>
127
+ <td class="function_name">
128
+ <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>
129
+ </td>
130
+ </tr>
131
+ <tr>
132
+ <td class="function_type">
133
+ <span class="returnvalue">void</span>
134
+ </td>
135
+ <td class="function_name">
136
+ <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>
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <td class="function_type">
141
+ <span class="returnvalue">int</span>
142
+ </td>
143
+ <td class="function_name">
144
+ <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>
145
+ </td>
146
+ </tr>
147
+ <tr>
148
+ <td class="function_type">
149
+ <span class="returnvalue">void</span>
150
+ </td>
151
+ <td class="function_name">
152
+ <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>
153
+ </td>
154
+ </tr>
155
+ </tbody>
156
+ </table></div>
76
157
  </div>
77
158
  <div class="refsect1">
78
- <a name="cairo-XLib-Surfaces.description"></a><h2>Description</h2>
79
- <p>
80
- The XLib surface is used to render cairo graphics to X Window System
81
- windows and pixmaps using the XLib library.
82
- </p>
83
- <p>
84
- Note that the XLib surface automatically takes advantage of X render extension
85
- if it is available.
86
- </p>
159
+ <a name="cairo-XLib-Surfaces.other"></a><h2>Types and Values</h2>
160
+ <div class="informaltable"><table width="100%" border="0">
161
+ <colgroup>
162
+ <col width="150px" class="name">
163
+ <col class="description">
164
+ </colgroup>
165
+ <tbody><tr>
166
+ <td class="define_keyword">#define</td>
167
+ <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>
168
+ </tr></tbody>
169
+ </table></div>
87
170
  </div>
88
171
  <div class="refsect1">
89
- <a name="cairo-XLib-Surfaces.details"></a><h2>Details</h2>
90
- <div class="refsect2">
91
- <a name="CAIRO-HAS-XLIB-SURFACE:CAPS"></a><h3>CAIRO_HAS_XLIB_SURFACE</h3>
92
- <pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
172
+ <a name="cairo-XLib-Surfaces.object-hierarchy"></a><h2>Object Hierarchy</h2>
173
+ <pre class="screen">
93
174
  </pre>
94
- <p>
95
- Defined if the Xlib surface backend is available.
96
- This macro can be used to conditionally compile backend-specific code.
97
- </p>
98
- <p class="since">Since 1.0</p>
99
175
  </div>
100
- <hr>
176
+ <div class="refsect1">
177
+ <a name="cairo-XLib-Surfaces.description"></a><h2>Description</h2>
178
+ <p>The XLib surface is used to render cairo graphics to X Window System
179
+ windows and pixmaps using the XLib library.</p>
180
+ <p>Note that the XLib surface automatically takes advantage of X render extension
181
+ if it is available.</p>
182
+ </div>
183
+ <div class="refsect1">
184
+ <a name="cairo-XLib-Surfaces.functions_details"></a><h2>Functions</h2>
101
185
  <div class="refsect2">
102
- <a name="cairo-xlib-surface-create"></a><h3>cairo_xlib_surface_create ()</h3>
103
- <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> * cairo_xlib_surface_create (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
104
- <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
105
- <em class="parameter"><code><span class="type">Visual</span> *visual</code></em>,
106
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
107
- <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
108
- <p>
109
- Creates an Xlib surface that draws to the given drawable.
186
+ <a name="cairo-xlib-surface-create"></a><h3>cairo_xlib_surface_create ()</h3>
187
+ <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> *
188
+ cairo_xlib_surface_create (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
189
+ <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
190
+ <em class="parameter"><code><span class="type">Visual</span> *visual</code></em>,
191
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
192
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
193
+ <p>Creates an Xlib surface that draws to the given drawable.
110
194
  The way that colors are represented in the drawable is specified
111
- by the provided visual.
112
- </p>
113
- <p>
114
- Note: If <em class="parameter"><code>drawable</code></em> is a Window, then the function
115
- <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
116
- window changes.
117
- </p>
118
- <p>
119
- When <em class="parameter"><code>drawable</code></em> is a Window containing child windows then drawing to
195
+ by the provided visual.</p>
196
+ <p>Note: If <em class="parameter"><code>drawable</code></em>
197
+ is a Window, then the function
198
+ <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
199
+ window changes.</p>
200
+ <p>When <em class="parameter"><code>drawable</code></em>
201
+ is a Window containing child windows then drawing to
120
202
  the created surface will be clipped by those child windows. When
121
203
  the created surface is used as a source, the contents of the
122
- children will be included.
123
- </p>
124
- <div class="variablelist"><table border="0">
125
- <col align="left" valign="top">
204
+ children will be included.</p>
205
+ <div class="refsect3">
206
+ <a name="id-1.5.13.7.2.7"></a><h4>Parameters</h4>
207
+ <div class="informaltable"><table width="100%" border="0">
208
+ <colgroup>
209
+ <col width="150px" class="parameters_name">
210
+ <col class="parameters_description">
211
+ <col width="200px" class="parameters_annotations">
212
+ </colgroup>
126
213
  <tbody>
127
214
  <tr>
128
- <td><p><span class="term"><em class="parameter"><code>dpy</code></em> :</span></p></td>
129
- <td>an X Display</td>
215
+ <td class="parameter_name"><p>dpy</p></td>
216
+ <td class="parameter_description"><p>an X Display</p></td>
217
+ <td class="parameter_annotations"> </td>
130
218
  </tr>
131
219
  <tr>
132
- <td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
133
- <td>an X Drawable, (a Pixmap or a Window)</td>
220
+ <td class="parameter_name"><p>drawable</p></td>
221
+ <td class="parameter_description"><p>an X Drawable, (a Pixmap or a Window)</p></td>
222
+ <td class="parameter_annotations"> </td>
134
223
  </tr>
135
224
  <tr>
136
- <td><p><span class="term"><em class="parameter"><code>visual</code></em> :</span></p></td>
137
- <td>the visual to use for drawing to <em class="parameter"><code>drawable</code></em>. The depth
225
+ <td class="parameter_name"><p>visual</p></td>
226
+ <td class="parameter_description"><p>the visual to use for drawing to <em class="parameter"><code>drawable</code></em>
227
+ . The depth
138
228
  of the visual must match the depth of the drawable.
139
- Currently, only TrueColor visuals are fully supported.</td>
229
+ Currently, only TrueColor visuals are fully supported.</p></td>
230
+ <td class="parameter_annotations"> </td>
140
231
  </tr>
141
232
  <tr>
142
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
143
- <td>the current width of <em class="parameter"><code>drawable</code></em>.</td>
233
+ <td class="parameter_name"><p>width</p></td>
234
+ <td class="parameter_description"><p>the current width of <em class="parameter"><code>drawable</code></em>
235
+ .</p></td>
236
+ <td class="parameter_annotations"> </td>
144
237
  </tr>
145
238
  <tr>
146
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
147
- <td>the current height of <em class="parameter"><code>drawable</code></em>.</td>
148
- </tr>
149
- <tr>
150
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
151
- <td>the newly created surface</td>
239
+ <td class="parameter_name"><p>height</p></td>
240
+ <td class="parameter_description"><p>the current height of <em class="parameter"><code>drawable</code></em>
241
+ .</p></td>
242
+ <td class="parameter_annotations"> </td>
152
243
  </tr>
153
244
  </tbody>
154
245
  </table></div>
246
+ </div>
247
+ <div class="refsect3">
248
+ <a name="id-1.5.13.7.2.8"></a><h4>Returns</h4>
249
+ <p> the newly created surface</p>
250
+ <p></p>
251
+ </div>
155
252
  <p class="since">Since 1.0</p>
156
253
  </div>
157
254
  <hr>
158
255
  <div class="refsect2">
159
- <a name="cairo-xlib-surface-create-for-bitmap"></a><h3>cairo_xlib_surface_create_for_bitmap ()</h3>
160
- <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> * cairo_xlib_surface_create_for_bitmap
161
- (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
162
- <em class="parameter"><code><span class="type">Pixmap</span> bitmap</code></em>,
163
- <em class="parameter"><code><span class="type">Screen</span> *screen</code></em>,
164
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
165
- <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
166
- <p>
167
- Creates an Xlib surface that draws to the given bitmap.
168
- 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.
169
- </p>
170
- <div class="variablelist"><table border="0">
171
- <col align="left" valign="top">
256
+ <a name="cairo-xlib-surface-create-for-bitmap"></a><h3>cairo_xlib_surface_create_for_bitmap ()</h3>
257
+ <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> *
258
+ cairo_xlib_surface_create_for_bitmap (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
259
+ <em class="parameter"><code><span class="type">Pixmap</span> bitmap</code></em>,
260
+ <em class="parameter"><code><span class="type">Screen</span> *screen</code></em>,
261
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
262
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
263
+ <p>Creates an Xlib surface that draws to the given bitmap.
264
+ 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>
265
+ <div class="refsect3">
266
+ <a name="id-1.5.13.7.3.5"></a><h4>Parameters</h4>
267
+ <div class="informaltable"><table width="100%" border="0">
268
+ <colgroup>
269
+ <col width="150px" class="parameters_name">
270
+ <col class="parameters_description">
271
+ <col width="200px" class="parameters_annotations">
272
+ </colgroup>
172
273
  <tbody>
173
274
  <tr>
174
- <td><p><span class="term"><em class="parameter"><code>dpy</code></em> :</span></p></td>
175
- <td>an X Display</td>
176
- </tr>
177
- <tr>
178
- <td><p><span class="term"><em class="parameter"><code>bitmap</code></em> :</span></p></td>
179
- <td>an X Drawable, (a depth-1 Pixmap)</td>
275
+ <td class="parameter_name"><p>dpy</p></td>
276
+ <td class="parameter_description"><p>an X Display</p></td>
277
+ <td class="parameter_annotations"> </td>
180
278
  </tr>
181
279
  <tr>
182
- <td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
183
- <td>the X Screen associated with <em class="parameter"><code>bitmap</code></em>
184
- </td>
280
+ <td class="parameter_name"><p>bitmap</p></td>
281
+ <td class="parameter_description"><p>an X Drawable, (a depth-1 Pixmap)</p></td>
282
+ <td class="parameter_annotations"> </td>
185
283
  </tr>
186
284
  <tr>
187
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
188
- <td>the current width of <em class="parameter"><code>bitmap</code></em>.</td>
285
+ <td class="parameter_name"><p>screen</p></td>
286
+ <td class="parameter_description"><p>the X Screen associated with <em class="parameter"><code>bitmap</code></em>
287
+ </p></td>
288
+ <td class="parameter_annotations"> </td>
189
289
  </tr>
190
290
  <tr>
191
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
192
- <td>the current height of <em class="parameter"><code>bitmap</code></em>.</td>
291
+ <td class="parameter_name"><p>width</p></td>
292
+ <td class="parameter_description"><p>the current width of <em class="parameter"><code>bitmap</code></em>
293
+ .</p></td>
294
+ <td class="parameter_annotations"> </td>
193
295
  </tr>
194
296
  <tr>
195
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
196
- <td>the newly created surface</td>
297
+ <td class="parameter_name"><p>height</p></td>
298
+ <td class="parameter_description"><p>the current height of <em class="parameter"><code>bitmap</code></em>
299
+ .</p></td>
300
+ <td class="parameter_annotations"> </td>
197
301
  </tr>
198
302
  </tbody>
199
303
  </table></div>
304
+ </div>
305
+ <div class="refsect3">
306
+ <a name="id-1.5.13.7.3.6"></a><h4>Returns</h4>
307
+ <p> the newly created surface</p>
308
+ <p></p>
309
+ </div>
200
310
  <p class="since">Since 1.0</p>
201
311
  </div>
202
312
  <hr>
203
313
  <div class="refsect2">
204
- <a name="cairo-xlib-surface-set-size"></a><h3>cairo_xlib_surface_set_size ()</h3>
205
- <pre class="programlisting"><span class="returnvalue">void</span> 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>,
206
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
207
- <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
208
- <p>
209
- Informs cairo of the new size of the X Drawable underlying the
314
+ <a name="cairo-xlib-surface-set-size"></a><h3>cairo_xlib_surface_set_size ()</h3>
315
+ <pre class="programlisting"><span class="returnvalue">void</span>
316
+ 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>,
317
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
318
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
319
+ <p>Informs cairo of the new size of the X Drawable underlying the
210
320
  surface. For a surface created for a Window (rather than a Pixmap),
211
321
  this function must be called each time the size of the window
212
322
  changes. (For a subwindow, you are normally resizing the window
213
323
  yourself, but for a toplevel window, it is necessary to listen for
214
- ConfigureNotify events.)
215
- </p>
216
- <p>
217
- A Pixmap can never change size, so it is never necessary to call
218
- this function on a surface created for a Pixmap.
219
- </p>
220
- <div class="variablelist"><table border="0">
221
- <col align="left" valign="top">
324
+ ConfigureNotify events.)</p>
325
+ <p>A Pixmap can never change size, so it is never necessary to call
326
+ this function on a surface created for a Pixmap.</p>
327
+ <div class="refsect3">
328
+ <a name="id-1.5.13.7.4.6"></a><h4>Parameters</h4>
329
+ <div class="informaltable"><table width="100%" border="0">
330
+ <colgroup>
331
+ <col width="150px" class="parameters_name">
332
+ <col class="parameters_description">
333
+ <col width="200px" class="parameters_annotations">
334
+ </colgroup>
222
335
  <tbody>
223
336
  <tr>
224
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
225
- <td>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</td>
337
+ <td class="parameter_name"><p>surface</p></td>
338
+ <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>
339
+ <td class="parameter_annotations"> </td>
226
340
  </tr>
227
341
  <tr>
228
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
229
- <td>the new width of the surface</td>
342
+ <td class="parameter_name"><p>width</p></td>
343
+ <td class="parameter_description"><p>the new width of the surface</p></td>
344
+ <td class="parameter_annotations"> </td>
230
345
  </tr>
231
346
  <tr>
232
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
233
- <td>the new height of the surface</td>
347
+ <td class="parameter_name"><p>height</p></td>
348
+ <td class="parameter_description"><p>the new height of the surface</p></td>
349
+ <td class="parameter_annotations"> </td>
234
350
  </tr>
235
351
  </tbody>
236
352
  </table></div>
353
+ </div>
237
354
  <p class="since">Since 1.0</p>
238
355
  </div>
239
356
  <hr>
240
357
  <div class="refsect2">
241
- <a name="cairo-xlib-surface-get-display"></a><h3>cairo_xlib_surface_get_display ()</h3>
242
- <pre class="programlisting"><span class="returnvalue">Display</span> * 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>
243
- <p>
244
- Get the X Display for the underlying X Drawable.
245
- </p>
246
- <div class="variablelist"><table border="0">
247
- <col align="left" valign="top">
248
- <tbody>
249
- <tr>
250
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
251
- <td>a <span class="type">cairo_xlib_surface_t</span>
252
- </td>
253
- </tr>
254
- <tr>
255
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
256
- <td>the display.</td>
257
- </tr>
258
- </tbody>
358
+ <a name="cairo-xlib-surface-get-display"></a><h3>cairo_xlib_surface_get_display ()</h3>
359
+ <pre class="programlisting"><span class="returnvalue">Display</span> *
360
+ 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>
361
+ <p>Get the X Display for the underlying X Drawable.</p>
362
+ <div class="refsect3">
363
+ <a name="id-1.5.13.7.5.5"></a><h4>Parameters</h4>
364
+ <div class="informaltable"><table width="100%" border="0">
365
+ <colgroup>
366
+ <col width="150px" class="parameters_name">
367
+ <col class="parameters_description">
368
+ <col width="200px" class="parameters_annotations">
369
+ </colgroup>
370
+ <tbody><tr>
371
+ <td class="parameter_name"><p>surface</p></td>
372
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
373
+ <td class="parameter_annotations"> </td>
374
+ </tr></tbody>
259
375
  </table></div>
376
+ </div>
377
+ <div class="refsect3">
378
+ <a name="id-1.5.13.7.5.6"></a><h4>Returns</h4>
379
+ <p> the display.</p>
380
+ <p></p>
381
+ </div>
260
382
  <p class="since">Since 1.2</p>
261
383
  </div>
262
384
  <hr>
263
385
  <div class="refsect2">
264
- <a name="cairo-xlib-surface-get-screen"></a><h3>cairo_xlib_surface_get_screen ()</h3>
265
- <pre class="programlisting"><span class="returnvalue">Screen</span> * 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>
266
- <p>
267
- Get the X Screen for the underlying X Drawable.
268
- </p>
269
- <div class="variablelist"><table border="0">
270
- <col align="left" valign="top">
271
- <tbody>
272
- <tr>
273
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
274
- <td>a <span class="type">cairo_xlib_surface_t</span>
275
- </td>
276
- </tr>
277
- <tr>
278
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
279
- <td>the screen.</td>
280
- </tr>
281
- </tbody>
386
+ <a name="cairo-xlib-surface-get-screen"></a><h3>cairo_xlib_surface_get_screen ()</h3>
387
+ <pre class="programlisting"><span class="returnvalue">Screen</span> *
388
+ 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>
389
+ <p>Get the X Screen for the underlying X Drawable.</p>
390
+ <div class="refsect3">
391
+ <a name="id-1.5.13.7.6.5"></a><h4>Parameters</h4>
392
+ <div class="informaltable"><table width="100%" border="0">
393
+ <colgroup>
394
+ <col width="150px" class="parameters_name">
395
+ <col class="parameters_description">
396
+ <col width="200px" class="parameters_annotations">
397
+ </colgroup>
398
+ <tbody><tr>
399
+ <td class="parameter_name"><p>surface</p></td>
400
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
401
+ <td class="parameter_annotations"> </td>
402
+ </tr></tbody>
282
403
  </table></div>
404
+ </div>
405
+ <div class="refsect3">
406
+ <a name="id-1.5.13.7.6.6"></a><h4>Returns</h4>
407
+ <p> the screen.</p>
408
+ <p></p>
409
+ </div>
283
410
  <p class="since">Since 1.2</p>
284
411
  </div>
285
412
  <hr>
286
413
  <div class="refsect2">
287
- <a name="cairo-xlib-surface-set-drawable"></a><h3>cairo_xlib_surface_set_drawable ()</h3>
288
- <pre class="programlisting"><span class="returnvalue">void</span> 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>,
289
- <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
290
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
291
- <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
292
- <p>
293
- Informs cairo of a new X Drawable underlying the
414
+ <a name="cairo-xlib-surface-set-drawable"></a><h3>cairo_xlib_surface_set_drawable ()</h3>
415
+ <pre class="programlisting"><span class="returnvalue">void</span>
416
+ 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>,
417
+ <em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
418
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
419
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
420
+ <p>Informs cairo of a new X Drawable underlying the
294
421
  surface. The drawable must match the display, screen
295
422
  and format of the existing drawable or the application
296
423
  will get X protocol errors and will probably terminate.
297
424
  No checks are done by this function to ensure this
298
- compatibility.
299
- </p>
300
- <div class="variablelist"><table border="0">
301
- <col align="left" valign="top">
425
+ compatibility.</p>
426
+ <div class="refsect3">
427
+ <a name="id-1.5.13.7.7.5"></a><h4>Parameters</h4>
428
+ <div class="informaltable"><table width="100%" border="0">
429
+ <colgroup>
430
+ <col width="150px" class="parameters_name">
431
+ <col class="parameters_description">
432
+ <col width="200px" class="parameters_annotations">
433
+ </colgroup>
302
434
  <tbody>
303
435
  <tr>
304
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
305
- <td>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</td>
436
+ <td class="parameter_name"><p>surface</p></td>
437
+ <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>
438
+ <td class="parameter_annotations"> </td>
306
439
  </tr>
307
440
  <tr>
308
- <td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
309
- <td>the new drawable for the surface</td>
441
+ <td class="parameter_name"><p>drawable</p></td>
442
+ <td class="parameter_description"><p>the new drawable for the surface</p></td>
443
+ <td class="parameter_annotations"> </td>
310
444
  </tr>
311
445
  <tr>
312
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
313
- <td>the width of the new drawable</td>
446
+ <td class="parameter_name"><p>width</p></td>
447
+ <td class="parameter_description"><p>the width of the new drawable</p></td>
448
+ <td class="parameter_annotations"> </td>
314
449
  </tr>
315
450
  <tr>
316
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
317
- <td>the height of the new drawable</td>
451
+ <td class="parameter_name"><p>height</p></td>
452
+ <td class="parameter_description"><p>the height of the new drawable</p></td>
453
+ <td class="parameter_annotations"> </td>
318
454
  </tr>
319
455
  </tbody>
320
456
  </table></div>
457
+ </div>
321
458
  <p class="since">Since 1.0</p>
322
459
  </div>
323
460
  <hr>
324
461
  <div class="refsect2">
325
- <a name="cairo-xlib-surface-get-drawable"></a><h3>cairo_xlib_surface_get_drawable ()</h3>
326
- <pre class="programlisting"><span class="returnvalue">Drawable</span> 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>
327
- <p>
328
- Get the underlying X Drawable used for the surface.
329
- </p>
330
- <div class="variablelist"><table border="0">
331
- <col align="left" valign="top">
332
- <tbody>
333
- <tr>
334
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
335
- <td>a <span class="type">cairo_xlib_surface_t</span>
336
- </td>
337
- </tr>
338
- <tr>
339
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
340
- <td>the drawable.</td>
341
- </tr>
342
- </tbody>
462
+ <a name="cairo-xlib-surface-get-drawable"></a><h3>cairo_xlib_surface_get_drawable ()</h3>
463
+ <pre class="programlisting"><span class="returnvalue">Drawable</span>
464
+ 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>
465
+ <p>Get the underlying X Drawable used for the surface.</p>
466
+ <div class="refsect3">
467
+ <a name="id-1.5.13.7.8.5"></a><h4>Parameters</h4>
468
+ <div class="informaltable"><table width="100%" border="0">
469
+ <colgroup>
470
+ <col width="150px" class="parameters_name">
471
+ <col class="parameters_description">
472
+ <col width="200px" class="parameters_annotations">
473
+ </colgroup>
474
+ <tbody><tr>
475
+ <td class="parameter_name"><p>surface</p></td>
476
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
477
+ <td class="parameter_annotations"> </td>
478
+ </tr></tbody>
343
479
  </table></div>
480
+ </div>
481
+ <div class="refsect3">
482
+ <a name="id-1.5.13.7.8.6"></a><h4>Returns</h4>
483
+ <p> the drawable.</p>
484
+ <p></p>
485
+ </div>
344
486
  <p class="since">Since 1.2</p>
345
487
  </div>
346
488
  <hr>
347
489
  <div class="refsect2">
348
- <a name="cairo-xlib-surface-get-visual"></a><h3>cairo_xlib_surface_get_visual ()</h3>
349
- <pre class="programlisting"><span class="returnvalue">Visual</span> * 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>
350
- <p>
351
- Gets the X Visual associated with <em class="parameter"><code>surface</code></em>, suitable for use with the
352
- underlying X Drawable. If <em class="parameter"><code>surface</code></em> was created by
353
- <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
354
- constructor.
355
- </p>
356
- <div class="variablelist"><table border="0">
357
- <col align="left" valign="top">
358
- <tbody>
359
- <tr>
360
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
361
- <td>a <span class="type">cairo_xlib_surface_t</span>
362
- </td>
363
- </tr>
364
- <tr>
365
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
366
- <td>the Visual or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no appropriate Visual for
367
- <em class="parameter"><code>surface</code></em>.</td>
368
- </tr>
369
- </tbody>
490
+ <a name="cairo-xlib-surface-get-visual"></a><h3>cairo_xlib_surface_get_visual ()</h3>
491
+ <pre class="programlisting"><span class="returnvalue">Visual</span> *
492
+ 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>
493
+ <p>Gets the X Visual associated with <em class="parameter"><code>surface</code></em>
494
+ , suitable for use with the
495
+ underlying X Drawable. If <em class="parameter"><code>surface</code></em>
496
+ was created by
497
+ <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
498
+ constructor.</p>
499
+ <div class="refsect3">
500
+ <a name="id-1.5.13.7.9.5"></a><h4>Parameters</h4>
501
+ <div class="informaltable"><table width="100%" border="0">
502
+ <colgroup>
503
+ <col width="150px" class="parameters_name">
504
+ <col class="parameters_description">
505
+ <col width="200px" class="parameters_annotations">
506
+ </colgroup>
507
+ <tbody><tr>
508
+ <td class="parameter_name"><p>surface</p></td>
509
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
510
+ <td class="parameter_annotations"> </td>
511
+ </tr></tbody>
370
512
  </table></div>
513
+ </div>
514
+ <div class="refsect3">
515
+ <a name="id-1.5.13.7.9.6"></a><h4>Returns</h4>
516
+ <p> the Visual or <code class="literal">NULL</code> if there is no appropriate Visual for
517
+ <em class="parameter"><code>surface</code></em>
518
+ .</p>
519
+ <p></p>
520
+ </div>
371
521
  <p class="since">Since 1.2</p>
372
522
  </div>
373
523
  <hr>
374
524
  <div class="refsect2">
375
- <a name="cairo-xlib-surface-get-width"></a><h3>cairo_xlib_surface_get_width ()</h3>
376
- <pre class="programlisting"><span class="returnvalue">int</span> 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>
377
- <p>
378
- Get the width of the X Drawable underlying the surface in pixels.
379
- </p>
380
- <div class="variablelist"><table border="0">
381
- <col align="left" valign="top">
382
- <tbody>
383
- <tr>
384
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
385
- <td>a <span class="type">cairo_xlib_surface_t</span>
386
- </td>
387
- </tr>
388
- <tr>
389
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
390
- <td>the width of the surface in pixels.</td>
391
- </tr>
392
- </tbody>
525
+ <a name="cairo-xlib-surface-get-width"></a><h3>cairo_xlib_surface_get_width ()</h3>
526
+ <pre class="programlisting"><span class="returnvalue">int</span>
527
+ 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>
528
+ <p>Get the width of the X Drawable underlying the surface in pixels.</p>
529
+ <div class="refsect3">
530
+ <a name="id-1.5.13.7.10.5"></a><h4>Parameters</h4>
531
+ <div class="informaltable"><table width="100%" border="0">
532
+ <colgroup>
533
+ <col width="150px" class="parameters_name">
534
+ <col class="parameters_description">
535
+ <col width="200px" class="parameters_annotations">
536
+ </colgroup>
537
+ <tbody><tr>
538
+ <td class="parameter_name"><p>surface</p></td>
539
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
540
+ <td class="parameter_annotations"> </td>
541
+ </tr></tbody>
393
542
  </table></div>
543
+ </div>
544
+ <div class="refsect3">
545
+ <a name="id-1.5.13.7.10.6"></a><h4>Returns</h4>
546
+ <p> the width of the surface in pixels.</p>
547
+ <p></p>
548
+ </div>
394
549
  <p class="since">Since 1.2</p>
395
550
  </div>
396
551
  <hr>
397
552
  <div class="refsect2">
398
- <a name="cairo-xlib-surface-get-height"></a><h3>cairo_xlib_surface_get_height ()</h3>
399
- <pre class="programlisting"><span class="returnvalue">int</span> 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>
400
- <p>
401
- Get the height of the X Drawable underlying the surface in pixels.
402
- </p>
403
- <div class="variablelist"><table border="0">
404
- <col align="left" valign="top">
405
- <tbody>
406
- <tr>
407
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
408
- <td>a <span class="type">cairo_xlib_surface_t</span>
409
- </td>
410
- </tr>
411
- <tr>
412
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
413
- <td>the height of the surface in pixels.</td>
414
- </tr>
415
- </tbody>
553
+ <a name="cairo-xlib-surface-get-height"></a><h3>cairo_xlib_surface_get_height ()</h3>
554
+ <pre class="programlisting"><span class="returnvalue">int</span>
555
+ 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>
556
+ <p>Get the height of the X Drawable underlying the surface in pixels.</p>
557
+ <div class="refsect3">
558
+ <a name="id-1.5.13.7.11.5"></a><h4>Parameters</h4>
559
+ <div class="informaltable"><table width="100%" border="0">
560
+ <colgroup>
561
+ <col width="150px" class="parameters_name">
562
+ <col class="parameters_description">
563
+ <col width="200px" class="parameters_annotations">
564
+ </colgroup>
565
+ <tbody><tr>
566
+ <td class="parameter_name"><p>surface</p></td>
567
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
568
+ <td class="parameter_annotations"> </td>
569
+ </tr></tbody>
416
570
  </table></div>
571
+ </div>
572
+ <div class="refsect3">
573
+ <a name="id-1.5.13.7.11.6"></a><h4>Returns</h4>
574
+ <p> the height of the surface in pixels.</p>
575
+ <p></p>
576
+ </div>
417
577
  <p class="since">Since 1.2</p>
418
578
  </div>
419
579
  <hr>
420
580
  <div class="refsect2">
421
- <a name="cairo-xlib-surface-get-depth"></a><h3>cairo_xlib_surface_get_depth ()</h3>
422
- <pre class="programlisting"><span class="returnvalue">int</span> 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>
423
- <p>
424
- Get the number of bits used to represent each pixel value.
425
- </p>
426
- <div class="variablelist"><table border="0">
427
- <col align="left" valign="top">
428
- <tbody>
429
- <tr>
430
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
431
- <td>a <span class="type">cairo_xlib_surface_t</span>
432
- </td>
433
- </tr>
434
- <tr>
435
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
436
- <td>the depth of the surface in bits.</td>
437
- </tr>
438
- </tbody>
581
+ <a name="cairo-xlib-surface-get-depth"></a><h3>cairo_xlib_surface_get_depth ()</h3>
582
+ <pre class="programlisting"><span class="returnvalue">int</span>
583
+ 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>
584
+ <p>Get the number of bits used to represent each pixel value.</p>
585
+ <div class="refsect3">
586
+ <a name="id-1.5.13.7.12.5"></a><h4>Parameters</h4>
587
+ <div class="informaltable"><table width="100%" border="0">
588
+ <colgroup>
589
+ <col width="150px" class="parameters_name">
590
+ <col class="parameters_description">
591
+ <col width="200px" class="parameters_annotations">
592
+ </colgroup>
593
+ <tbody><tr>
594
+ <td class="parameter_name"><p>surface</p></td>
595
+ <td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
596
+ <td class="parameter_annotations"> </td>
597
+ </tr></tbody>
439
598
  </table></div>
599
+ </div>
600
+ <div class="refsect3">
601
+ <a name="id-1.5.13.7.12.6"></a><h4>Returns</h4>
602
+ <p> the depth of the surface in bits.</p>
603
+ <p></p>
604
+ </div>
440
605
  <p class="since">Since 1.2</p>
441
606
  </div>
442
607
  <hr>
443
608
  <div class="refsect2">
444
- <a name="cairo-xlib-device-debug-cap-xrender-version"></a><h3>cairo_xlib_device_debug_cap_xrender_version ()</h3>
445
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_xlib_device_debug_cap_xrender_version
446
- (<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>,
447
- <em class="parameter"><code><span class="type">int</span> major_version</code></em>,
448
- <em class="parameter"><code><span class="type">int</span> minor_version</code></em>);</pre>
449
- <p>
450
- Restricts all future Xlib surfaces for this devices to the specified version
609
+ <a name="cairo-xlib-device-debug-cap-xrender-version"></a><h3>cairo_xlib_device_debug_cap_xrender_version ()</h3>
610
+ <pre class="programlisting"><span class="returnvalue">void</span>
611
+ cairo_xlib_device_debug_cap_xrender_version
612
+ (<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>,
613
+ <em class="parameter"><code><span class="type">int</span> major_version</code></em>,
614
+ <em class="parameter"><code><span class="type">int</span> minor_version</code></em>);</pre>
615
+ <p>Restricts all future Xlib surfaces for this devices to the specified version
451
616
  of the RENDER extension. This function exists solely for debugging purpose.
452
617
  It lets you find out how cairo would behave with an older version of
453
- the RENDER extension.
454
- </p>
455
- <p>
456
- Use the special values -1 and -1 for disabling the RENDER extension.
457
- </p>
458
- <div class="variablelist"><table border="0">
459
- <col align="left" valign="top">
618
+ the RENDER extension.</p>
619
+ <p>Use the special values -1 and -1 for disabling the RENDER extension.</p>
620
+ <div class="refsect3">
621
+ <a name="id-1.5.13.7.13.6"></a><h4>Parameters</h4>
622
+ <div class="informaltable"><table width="100%" border="0">
623
+ <colgroup>
624
+ <col width="150px" class="parameters_name">
625
+ <col class="parameters_description">
626
+ <col width="200px" class="parameters_annotations">
627
+ </colgroup>
460
628
  <tbody>
461
629
  <tr>
462
- <td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
463
- <td>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</td>
630
+ <td class="parameter_name"><p>device</p></td>
631
+ <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>
632
+ <td class="parameter_annotations"> </td>
464
633
  </tr>
465
634
  <tr>
466
- <td><p><span class="term"><em class="parameter"><code>major_version</code></em> :</span></p></td>
467
- <td>major version to restrict to</td>
635
+ <td class="parameter_name"><p>major_version</p></td>
636
+ <td class="parameter_description"><p>major version to restrict to</p></td>
637
+ <td class="parameter_annotations"> </td>
468
638
  </tr>
469
639
  <tr>
470
- <td><p><span class="term"><em class="parameter"><code>minor_version</code></em> :</span></p></td>
471
- <td>minor version to restrict to</td>
640
+ <td class="parameter_name"><p>minor_version</p></td>
641
+ <td class="parameter_description"><p>minor version to restrict to</p></td>
642
+ <td class="parameter_annotations"> </td>
472
643
  </tr>
473
644
  </tbody>
474
645
  </table></div>
646
+ </div>
475
647
  <p class="since">Since 1.12</p>
476
648
  </div>
477
649
  <hr>
478
650
  <div class="refsect2">
479
- <a name="cairo-xlib-device-debug-get-precision"></a><h3>cairo_xlib_device_debug_get_precision ()</h3>
480
- <pre class="programlisting"><span class="returnvalue">int</span> cairo_xlib_device_debug_get_precision
481
- (<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>
482
- <p>
483
- Get the Xrender precision mode.
484
- </p>
485
- <div class="variablelist"><table border="0">
486
- <col align="left" valign="top">
487
- <tbody>
488
- <tr>
489
- <td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
490
- <td>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</td>
491
- </tr>
492
- <tr>
493
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
494
- <td>the render precision mode</td>
495
- </tr>
496
- </tbody>
651
+ <a name="cairo-xlib-device-debug-get-precision"></a><h3>cairo_xlib_device_debug_get_precision ()</h3>
652
+ <pre class="programlisting"><span class="returnvalue">int</span>
653
+ 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>
654
+ <p>Get the Xrender precision mode.</p>
655
+ <div class="refsect3">
656
+ <a name="id-1.5.13.7.14.5"></a><h4>Parameters</h4>
657
+ <div class="informaltable"><table width="100%" border="0">
658
+ <colgroup>
659
+ <col width="150px" class="parameters_name">
660
+ <col class="parameters_description">
661
+ <col width="200px" class="parameters_annotations">
662
+ </colgroup>
663
+ <tbody><tr>
664
+ <td class="parameter_name"><p>device</p></td>
665
+ <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>
666
+ <td class="parameter_annotations"> </td>
667
+ </tr></tbody>
497
668
  </table></div>
669
+ </div>
670
+ <div class="refsect3">
671
+ <a name="id-1.5.13.7.14.6"></a><h4>Returns</h4>
672
+ <p> the render precision mode</p>
673
+ <p></p>
674
+ </div>
498
675
  <p class="since">Since 1.12</p>
499
676
  </div>
500
677
  <hr>
501
678
  <div class="refsect2">
502
- <a name="cairo-xlib-device-debug-set-precision"></a><h3>cairo_xlib_device_debug_set_precision ()</h3>
503
- <pre class="programlisting"><span class="returnvalue">void</span> cairo_xlib_device_debug_set_precision
504
- (<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>,
505
- <em class="parameter"><code><span class="type">int</span> precision</code></em>);</pre>
506
- <p>
507
- Render supports two modes of precision when rendering trapezoids. Set
508
- the precision to the desired mode.
509
- </p>
510
- <div class="variablelist"><table border="0">
511
- <col align="left" valign="top">
679
+ <a name="cairo-xlib-device-debug-set-precision"></a><h3>cairo_xlib_device_debug_set_precision ()</h3>
680
+ <pre class="programlisting"><span class="returnvalue">void</span>
681
+ 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>,
682
+ <em class="parameter"><code><span class="type">int</span> precision</code></em>);</pre>
683
+ <p>Render supports two modes of precision when rendering trapezoids. Set
684
+ the precision to the desired mode.</p>
685
+ <div class="refsect3">
686
+ <a name="id-1.5.13.7.15.5"></a><h4>Parameters</h4>
687
+ <div class="informaltable"><table width="100%" border="0">
688
+ <colgroup>
689
+ <col width="150px" class="parameters_name">
690
+ <col class="parameters_description">
691
+ <col width="200px" class="parameters_annotations">
692
+ </colgroup>
512
693
  <tbody>
513
694
  <tr>
514
- <td><p><span class="term"><em class="parameter"><code>device</code></em> :</span></p></td>
515
- <td>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</td>
695
+ <td class="parameter_name"><p>device</p></td>
696
+ <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>
697
+ <td class="parameter_annotations"> </td>
516
698
  </tr>
517
699
  <tr>
518
- <td><p><span class="term"><em class="parameter"><code>precision</code></em> :</span></p></td>
519
- <td>the precision to use</td>
700
+ <td class="parameter_name"><p>precision</p></td>
701
+ <td class="parameter_description"><p>the precision to use</p></td>
702
+ <td class="parameter_annotations"> </td>
520
703
  </tr>
521
704
  </tbody>
522
705
  </table></div>
706
+ </div>
523
707
  <p class="since">Since 1.12</p>
524
708
  </div>
525
709
  </div>
526
710
  <div class="refsect1">
711
+ <a name="cairo-XLib-Surfaces.other_details"></a><h2>Types and Values</h2>
712
+ <div class="refsect2">
713
+ <a name="CAIRO-HAS-XLIB-SURFACE:CAPS"></a><h3>CAIRO_HAS_XLIB_SURFACE</h3>
714
+ <pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
715
+ </pre>
716
+ <p>Defined if the Xlib surface backend is available.
717
+ This macro can be used to conditionally compile backend-specific code.</p>
718
+ <p class="since">Since 1.0</p>
719
+ </div>
720
+ </div>
721
+ <div class="refsect1">
527
722
  <a name="cairo-XLib-Surfaces.see-also"></a><h2>See Also</h2>
528
- <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
723
+ <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>
529
724
  </div>
530
725
  </div>
531
726
  <div class="footer">
532
727
  <hr>
533
- Generated by GTK-Doc V1.18</div>
728
+ Generated by GTK-Doc V1.20</div>
534
729
  </body>
535
730
  </html>