cairo 1.14.1-x86-mingw32 → 1.14.2-x86-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 +18 -7
  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_sjlj-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>Win32 Surfaces</title>
6
- <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
5
+ <title>Cairo: A Vector Graphics Library: Win32 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-Recording-Surfaces.html" title="Recording Surfaces">
10
10
  <link rel="next" href="cairo-SVG-Surfaces.html" title="SVG Surfaces">
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-Recording-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-SVG-Surfaces.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-Win32-Surfaces.synopsis" class="shortcut">Top</a>
25
-  | 
26
- <a href="#cairo-Win32-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-Win32-Surfaces.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span> 
19
+ <a href="#cairo-Win32-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-Recording-Surfaces.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
24
+ <td><a accesskey="n" href="cairo-SVG-Surfaces.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-Win32-Surfaces"></a><div class="titlepage"></div>
31
28
  <div class="refnamediv"><table width="100%"><tr>
@@ -33,248 +30,342 @@
33
30
  <h2><span class="refentrytitle"><a name="cairo-Win32-Surfaces.top_of_page"></a>Win32 Surfaces</span></h2>
34
31
  <p>Win32 Surfaces — Microsoft Windows surface support</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-Win32-Surfaces.synopsis"></a><h2>Synopsis</h2>
40
- <pre class="synopsis">#define <a class="link" href="cairo-Win32-Surfaces.html#CAIRO-HAS-WIN32-SURFACE:CAPS" title="CAIRO_HAS_WIN32_SURFACE">CAIRO_HAS_WIN32_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-Win32-Surfaces.html#cairo-win32-surface-create" title="cairo_win32_surface_create ()">cairo_win32_surface_create</a> (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);
42
- <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-Win32-Surfaces.html#cairo-win32-surface-create-with-dib" title="cairo_win32_surface_create_with_dib ()">cairo_win32_surface_create_with_dib</a> (<em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
43
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
44
- <em class="parameter"><code><span class="type">int</span> height</code></em>);
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> * <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-ddb" title="cairo_win32_surface_create_with_ddb ()">cairo_win32_surface_create_with_ddb</a> (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>,
46
- <em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
47
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
48
- <em class="parameter"><code><span class="type">int</span> height</code></em>);
49
- <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-Win32-Surfaces.html#cairo-win32-printing-surface-create" title="cairo_win32_printing_surface_create ()">cairo_win32_printing_surface_create</a> (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);
50
- <span class="returnvalue">HDC</span> <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-dc" title="cairo_win32_surface_get_dc ()">cairo_win32_surface_get_dc</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>);
51
- <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-Win32-Surfaces.html#cairo-win32-surface-get-image" title="cairo_win32_surface_get_image ()">cairo_win32_surface_get_image</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>);
35
+ <div class="refsect1">
36
+ <a name="cairo-Win32-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-Win32-Surfaces.html#cairo-win32-surface-create" title="cairo_win32_surface_create ()">cairo_win32_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-Win32-Surfaces.html#cairo-win32-surface-create-with-dib" title="cairo_win32_surface_create_with_dib ()">cairo_win32_surface_create_with_dib</a> <span class="c_punctuation">()</span>
57
+ </td>
58
+ </tr>
59
+ <tr>
60
+ <td class="function_type">
61
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
62
+ </td>
63
+ <td class="function_name">
64
+ <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-ddb" title="cairo_win32_surface_create_with_ddb ()">cairo_win32_surface_create_with_ddb</a> <span class="c_punctuation">()</span>
65
+ </td>
66
+ </tr>
67
+ <tr>
68
+ <td class="function_type">
69
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
70
+ </td>
71
+ <td class="function_name">
72
+ <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create" title="cairo_win32_printing_surface_create ()">cairo_win32_printing_surface_create</a> <span class="c_punctuation">()</span>
73
+ </td>
74
+ </tr>
75
+ <tr>
76
+ <td class="function_type">
77
+ <span class="returnvalue">HDC</span>
78
+ </td>
79
+ <td class="function_name">
80
+ <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-dc" title="cairo_win32_surface_get_dc ()">cairo_win32_surface_get_dc</a> <span class="c_punctuation">()</span>
81
+ </td>
82
+ </tr>
83
+ <tr>
84
+ <td class="function_type">
85
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
86
+ </td>
87
+ <td class="function_name">
88
+ <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-get-image" title="cairo_win32_surface_get_image ()">cairo_win32_surface_get_image</a> <span class="c_punctuation">()</span>
89
+ </td>
90
+ </tr>
91
+ </tbody>
92
+ </table></div>
93
+ </div>
94
+ <div class="refsect1">
95
+ <a name="cairo-Win32-Surfaces.other"></a><h2>Types and Values</h2>
96
+ <div class="informaltable"><table width="100%" border="0">
97
+ <colgroup>
98
+ <col width="150px" class="name">
99
+ <col class="description">
100
+ </colgroup>
101
+ <tbody><tr>
102
+ <td class="define_keyword">#define</td>
103
+ <td class="function_name"><a class="link" href="cairo-Win32-Surfaces.html#CAIRO-HAS-WIN32-SURFACE:CAPS" title="CAIRO_HAS_WIN32_SURFACE">CAIRO_HAS_WIN32_SURFACE</a></td>
104
+ </tr></tbody>
105
+ </table></div>
106
+ </div>
107
+ <div class="refsect1">
108
+ <a name="cairo-Win32-Surfaces.object-hierarchy"></a><h2>Object Hierarchy</h2>
109
+ <pre class="screen">
52
110
  </pre>
53
111
  </div>
54
112
  <div class="refsect1">
55
113
  <a name="cairo-Win32-Surfaces.description"></a><h2>Description</h2>
56
- <p>
57
- The Microsoft Windows surface is used to render cairo graphics to
58
- Microsoft Windows windows, bitmaps, and printing device contexts.
59
- </p>
60
- <p>
61
- The surface returned by <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create" title="cairo_win32_printing_surface_create ()"><code class="function">cairo_win32_printing_surface_create()</code></a> is of surface
114
+ <p>The Microsoft Windows surface is used to render cairo graphics to
115
+ Microsoft Windows windows, bitmaps, and printing device contexts.</p>
116
+ <p>The surface returned by <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-printing-surface-create" title="cairo_win32_printing_surface_create ()"><code class="function">cairo_win32_printing_surface_create()</code></a> is of surface
62
117
  type <a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32-PRINTING:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32_PRINTING</code></a> and is a multi-page vector surface
63
- type.
64
- </p>
65
- <p>
66
- The surface returned by the other win32 constructors is of surface type
67
- <a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></a> and is a raster surface type.
68
- </p>
118
+ type.</p>
119
+ <p>The surface returned by the other win32 constructors is of surface type
120
+ <a class="link" href="cairo-cairo-surface-t.html#CAIRO-SURFACE-TYPE-WIN32:CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></a> and is a raster surface type.</p>
69
121
  </div>
70
122
  <div class="refsect1">
71
- <a name="cairo-Win32-Surfaces.details"></a><h2>Details</h2>
123
+ <a name="cairo-Win32-Surfaces.functions_details"></a><h2>Functions</h2>
72
124
  <div class="refsect2">
73
- <a name="CAIRO-HAS-WIN32-SURFACE:CAPS"></a><h3>CAIRO_HAS_WIN32_SURFACE</h3>
74
- <pre class="programlisting">#define CAIRO_HAS_WIN32_SURFACE 1
75
- </pre>
76
- <p>
77
- Defined if the Microsoft Windows surface backend is available.
78
- This macro can be used to conditionally compile backend-specific code.
79
- </p>
80
- <p class="since">Since 1.0</p>
81
- </div>
82
- <hr>
83
- <div class="refsect2">
84
- <a name="cairo-win32-surface-create"></a><h3>cairo_win32_surface_create ()</h3>
85
- <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_win32_surface_create (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);</pre>
86
- <p>
87
- Creates a cairo surface that targets the given DC. The DC will be
125
+ <a name="cairo-win32-surface-create"></a><h3>cairo_win32_surface_create ()</h3>
126
+ <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> *
127
+ cairo_win32_surface_create (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);</pre>
128
+ <p>Creates a cairo surface that targets the given DC. The DC will be
88
129
  queried for its initial clip extents, and this will be used as the
89
130
  size of the cairo surface. The resulting surface will always be of
90
131
  format <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-RGB24:CAPS"><code class="literal">CAIRO_FORMAT_RGB24</code></a>; should you need another surface format,
91
132
  you will need to create one through
92
- <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-dib" title="cairo_win32_surface_create_with_dib ()"><code class="function">cairo_win32_surface_create_with_dib()</code></a>.
93
- </p>
94
- <div class="variablelist"><table border="0">
95
- <col align="left" valign="top">
96
- <tbody>
97
- <tr>
98
- <td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
99
- <td>the DC to create a surface for</td>
100
- </tr>
101
- <tr>
102
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
103
- <td>the newly created surface</td>
104
- </tr>
105
- </tbody>
133
+ <a class="link" href="cairo-Win32-Surfaces.html#cairo-win32-surface-create-with-dib" title="cairo_win32_surface_create_with_dib ()"><code class="function">cairo_win32_surface_create_with_dib()</code></a>.</p>
134
+ <div class="refsect3">
135
+ <a name="id-1.5.9.7.2.5"></a><h4>Parameters</h4>
136
+ <div class="informaltable"><table width="100%" border="0">
137
+ <colgroup>
138
+ <col width="150px" class="parameters_name">
139
+ <col class="parameters_description">
140
+ <col width="200px" class="parameters_annotations">
141
+ </colgroup>
142
+ <tbody><tr>
143
+ <td class="parameter_name"><p>hdc</p></td>
144
+ <td class="parameter_description"><p>the DC to create a surface for</p></td>
145
+ <td class="parameter_annotations"> </td>
146
+ </tr></tbody>
106
147
  </table></div>
148
+ </div>
149
+ <div class="refsect3">
150
+ <a name="id-1.5.9.7.2.6"></a><h4>Returns</h4>
151
+ <p> the newly created surface</p>
152
+ <p></p>
153
+ </div>
107
154
  <p class="since">Since 1.0</p>
108
155
  </div>
109
156
  <hr>
110
157
  <div class="refsect2">
111
- <a name="cairo-win32-surface-create-with-dib"></a><h3>cairo_win32_surface_create_with_dib ()</h3>
112
- <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_win32_surface_create_with_dib (<em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
113
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
114
- <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
115
- <p>
116
- Creates a device-independent-bitmap surface not associated with
158
+ <a name="cairo-win32-surface-create-with-dib"></a><h3>cairo_win32_surface_create_with_dib ()</h3>
159
+ <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> *
160
+ cairo_win32_surface_create_with_dib (<em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
161
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
162
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
163
+ <p>Creates a device-independent-bitmap surface not associated with
117
164
  any particular existing surface or device context. The created
118
- bitmap will be uninitialized.
119
- </p>
120
- <div class="variablelist"><table border="0">
121
- <col align="left" valign="top">
165
+ bitmap will be uninitialized.</p>
166
+ <div class="refsect3">
167
+ <a name="id-1.5.9.7.3.5"></a><h4>Parameters</h4>
168
+ <div class="informaltable"><table width="100%" border="0">
169
+ <colgroup>
170
+ <col width="150px" class="parameters_name">
171
+ <col class="parameters_description">
172
+ <col width="200px" class="parameters_annotations">
173
+ </colgroup>
122
174
  <tbody>
123
175
  <tr>
124
- <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
125
- <td>format of pixels in the surface to create</td>
126
- </tr>
127
- <tr>
128
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
129
- <td>width of the surface, in pixels</td>
176
+ <td class="parameter_name"><p>format</p></td>
177
+ <td class="parameter_description"><p>format of pixels in the surface to create</p></td>
178
+ <td class="parameter_annotations"> </td>
130
179
  </tr>
131
180
  <tr>
132
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
133
- <td>height of the surface, in pixels</td>
181
+ <td class="parameter_name"><p>width</p></td>
182
+ <td class="parameter_description"><p>width of the surface, in pixels</p></td>
183
+ <td class="parameter_annotations"> </td>
134
184
  </tr>
135
185
  <tr>
136
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
137
- <td>the newly created surface</td>
186
+ <td class="parameter_name"><p>height</p></td>
187
+ <td class="parameter_description"><p>height of the surface, in pixels</p></td>
188
+ <td class="parameter_annotations"> </td>
138
189
  </tr>
139
190
  </tbody>
140
191
  </table></div>
192
+ </div>
193
+ <div class="refsect3">
194
+ <a name="id-1.5.9.7.3.6"></a><h4>Returns</h4>
195
+ <p> the newly created surface</p>
196
+ <p></p>
197
+ </div>
141
198
  <p class="since">Since 1.2</p>
142
199
  </div>
143
200
  <hr>
144
201
  <div class="refsect2">
145
- <a name="cairo-win32-surface-create-with-ddb"></a><h3>cairo_win32_surface_create_with_ddb ()</h3>
146
- <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_win32_surface_create_with_ddb (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>,
147
- <em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
148
- <em class="parameter"><code><span class="type">int</span> width</code></em>,
149
- <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
150
- <p>
151
- Creates a device-dependent-bitmap surface not associated with
202
+ <a name="cairo-win32-surface-create-with-ddb"></a><h3>cairo_win32_surface_create_with_ddb ()</h3>
203
+ <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> *
204
+ cairo_win32_surface_create_with_ddb (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>,
205
+ <em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</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>Creates a device-dependent-bitmap surface not associated with
152
209
  any particular existing surface or device context. The created
153
- bitmap will be uninitialized.
154
- </p>
155
- <div class="variablelist"><table border="0">
156
- <col align="left" valign="top">
210
+ bitmap will be uninitialized.</p>
211
+ <div class="refsect3">
212
+ <a name="id-1.5.9.7.4.5"></a><h4>Parameters</h4>
213
+ <div class="informaltable"><table width="100%" border="0">
214
+ <colgroup>
215
+ <col width="150px" class="parameters_name">
216
+ <col class="parameters_description">
217
+ <col width="200px" class="parameters_annotations">
218
+ </colgroup>
157
219
  <tbody>
158
220
  <tr>
159
- <td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
160
- <td>a DC compatible with the surface to create</td>
161
- </tr>
162
- <tr>
163
- <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
164
- <td>format of pixels in the surface to create</td>
221
+ <td class="parameter_name"><p>hdc</p></td>
222
+ <td class="parameter_description"><p>a DC compatible with the surface to create</p></td>
223
+ <td class="parameter_annotations"> </td>
165
224
  </tr>
166
225
  <tr>
167
- <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
168
- <td>width of the surface, in pixels</td>
226
+ <td class="parameter_name"><p>format</p></td>
227
+ <td class="parameter_description"><p>format of pixels in the surface to create</p></td>
228
+ <td class="parameter_annotations"> </td>
169
229
  </tr>
170
230
  <tr>
171
- <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
172
- <td>height of the surface, in pixels</td>
231
+ <td class="parameter_name"><p>width</p></td>
232
+ <td class="parameter_description"><p>width of the surface, in pixels</p></td>
233
+ <td class="parameter_annotations"> </td>
173
234
  </tr>
174
235
  <tr>
175
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
176
- <td>the newly created surface</td>
236
+ <td class="parameter_name"><p>height</p></td>
237
+ <td class="parameter_description"><p>height of the surface, in pixels</p></td>
238
+ <td class="parameter_annotations"> </td>
177
239
  </tr>
178
240
  </tbody>
179
241
  </table></div>
242
+ </div>
243
+ <div class="refsect3">
244
+ <a name="id-1.5.9.7.4.6"></a><h4>Returns</h4>
245
+ <p> the newly created surface</p>
246
+ <p></p>
247
+ </div>
180
248
  <p class="since">Since 1.4</p>
181
249
  </div>
182
250
  <hr>
183
251
  <div class="refsect2">
184
- <a name="cairo-win32-printing-surface-create"></a><h3>cairo_win32_printing_surface_create ()</h3>
185
- <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_win32_printing_surface_create (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);</pre>
186
- <p>
187
- Creates a cairo surface that targets the given DC. The DC will be
252
+ <a name="cairo-win32-printing-surface-create"></a><h3>cairo_win32_printing_surface_create ()</h3>
253
+ <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> *
254
+ cairo_win32_printing_surface_create (<em class="parameter"><code><span class="type">HDC</span> hdc</code></em>);</pre>
255
+ <p>Creates a cairo surface that targets the given DC. The DC will be
188
256
  queried for its initial clip extents, and this will be used as the
189
257
  size of the cairo surface. The DC should be a printing DC;
190
258
  antialiasing will be ignored, and GDI will be used as much as
191
- possible to draw to the surface.
192
- </p>
193
- <p>
194
- The returned surface will be wrapped using the paginated surface to
195
- provide correct complex rendering behaviour; <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-show-page" title="cairo_surface_show_page ()"><code class="function">cairo_surface_show_page()</code></a> and
196
- associated methods must be used for correct output.
197
- </p>
198
- <div class="variablelist"><table border="0">
199
- <col align="left" valign="top">
200
- <tbody>
201
- <tr>
202
- <td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
203
- <td>the DC to create a surface for</td>
204
- </tr>
205
- <tr>
206
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
207
- <td>the newly created surface</td>
208
- </tr>
209
- </tbody>
259
+ possible to draw to the surface.</p>
260
+ <p>The returned surface will be wrapped using the paginated surface to
261
+ provide correct complex rendering behaviour; <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-show-page" title="cairo_surface_show_page ()"><code class="function">cairo_surface_show_page()</code></a> and
262
+ associated methods must be used for correct output.</p>
263
+ <div class="refsect3">
264
+ <a name="id-1.5.9.7.5.6"></a><h4>Parameters</h4>
265
+ <div class="informaltable"><table width="100%" border="0">
266
+ <colgroup>
267
+ <col width="150px" class="parameters_name">
268
+ <col class="parameters_description">
269
+ <col width="200px" class="parameters_annotations">
270
+ </colgroup>
271
+ <tbody><tr>
272
+ <td class="parameter_name"><p>hdc</p></td>
273
+ <td class="parameter_description"><p>the DC to create a surface for</p></td>
274
+ <td class="parameter_annotations"> </td>
275
+ </tr></tbody>
210
276
  </table></div>
277
+ </div>
278
+ <div class="refsect3">
279
+ <a name="id-1.5.9.7.5.7"></a><h4>Returns</h4>
280
+ <p> the newly created surface</p>
281
+ <p></p>
282
+ </div>
211
283
  <p class="since">Since 1.6</p>
212
284
  </div>
213
285
  <hr>
214
286
  <div class="refsect2">
215
- <a name="cairo-win32-surface-get-dc"></a><h3>cairo_win32_surface_get_dc ()</h3>
216
- <pre class="programlisting"><span class="returnvalue">HDC</span> cairo_win32_surface_get_dc (<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>
217
- <p>
218
- Returns the HDC associated with this surface, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none.
219
- Also returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the surface is not a win32 surface.
220
- </p>
221
- <p>
222
- A call to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-flush" title="cairo_surface_flush ()"><code class="function">cairo_surface_flush()</code></a> is required before using the HDC to
287
+ <a name="cairo-win32-surface-get-dc"></a><h3>cairo_win32_surface_get_dc ()</h3>
288
+ <pre class="programlisting"><span class="returnvalue">HDC</span>
289
+ cairo_win32_surface_get_dc (<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>
290
+ <p>Returns the HDC associated with this surface, or <code class="literal">NULL</code> if none.
291
+ Also returns <code class="literal">NULL</code> if the surface is not a win32 surface.</p>
292
+ <p>A call to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-flush" title="cairo_surface_flush ()"><code class="function">cairo_surface_flush()</code></a> is required before using the HDC to
223
293
  ensure that all pending drawing operations are finished and to
224
294
  restore any temporary modification cairo has made to its state. A
225
- call to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-mark-dirty" title="cairo_surface_mark_dirty ()"><code class="function">cairo_surface_mark_dirty()</code></a> is required after the state or
226
- the content of the HDC has been modified.
227
- </p>
228
- <div class="variablelist"><table border="0">
229
- <col align="left" valign="top">
230
- <tbody>
231
- <tr>
232
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
233
- <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>
234
- </td>
235
- </tr>
236
- <tr>
237
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
238
- <td>HDC or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no HDC available.</td>
239
- </tr>
240
- </tbody>
295
+ call to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-mark-dirty" title="cairo_surface_mark_dirty ()"><code class="function">cairo_surface_mark_dirty()</code></a> is required after the state or
296
+ the content of the HDC has been modified.</p>
297
+ <div class="refsect3">
298
+ <a name="id-1.5.9.7.6.6"></a><h4>Parameters</h4>
299
+ <div class="informaltable"><table width="100%" border="0">
300
+ <colgroup>
301
+ <col width="150px" class="parameters_name">
302
+ <col class="parameters_description">
303
+ <col width="200px" class="parameters_annotations">
304
+ </colgroup>
305
+ <tbody><tr>
306
+ <td class="parameter_name"><p>surface</p></td>
307
+ <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></p></td>
308
+ <td class="parameter_annotations"> </td>
309
+ </tr></tbody>
241
310
  </table></div>
311
+ </div>
312
+ <div class="refsect3">
313
+ <a name="id-1.5.9.7.6.7"></a><h4>Returns</h4>
314
+ <p> HDC or <code class="literal">NULL</code> if no HDC available.</p>
315
+ <p></p>
316
+ </div>
242
317
  <p class="since">Since 1.2</p>
243
318
  </div>
244
319
  <hr>
245
320
  <div class="refsect2">
246
- <a name="cairo-win32-surface-get-image"></a><h3>cairo_win32_surface_get_image ()</h3>
247
- <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_win32_surface_get_image (<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>
248
- <p>
249
- Returns 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> image surface that refers to the same bits
321
+ <a name="cairo-win32-surface-get-image"></a><h3>cairo_win32_surface_get_image ()</h3>
322
+ <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> *
323
+ cairo_win32_surface_get_image (<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>
324
+ <p>Returns 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> image surface that refers to the same bits
250
325
  as the DIB of the Win32 surface. If the passed-in win32 surface
251
- is not a DIB surface, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
252
- </p>
253
- <div class="variablelist"><table border="0">
254
- <col align="left" valign="top">
255
- <tbody>
256
- <tr>
257
- <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
258
- <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>
259
- </td>
260
- </tr>
261
- <tr>
262
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
263
- <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> (owned by the win32 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>),
264
- or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the win32 surface is not a DIB.</td>
265
- </tr>
266
- </tbody>
326
+ is not a DIB surface, <code class="literal">NULL</code> is returned.</p>
327
+ <div class="refsect3">
328
+ <a name="id-1.5.9.7.7.5"></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>
335
+ <tbody><tr>
336
+ <td class="parameter_name"><p>surface</p></td>
337
+ <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></p></td>
338
+ <td class="parameter_annotations"> </td>
339
+ </tr></tbody>
267
340
  </table></div>
341
+ </div>
342
+ <div class="refsect3">
343
+ <a name="id-1.5.9.7.7.6"></a><h4>Returns</h4>
344
+ <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> (owned by the win32 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>),
345
+ or <code class="literal">NULL</code> if the win32 surface is not a DIB.</p>
346
+ <p></p>
347
+ </div>
268
348
  <p class="since">Since 1.4</p>
269
349
  </div>
270
350
  </div>
271
351
  <div class="refsect1">
352
+ <a name="cairo-Win32-Surfaces.other_details"></a><h2>Types and Values</h2>
353
+ <div class="refsect2">
354
+ <a name="CAIRO-HAS-WIN32-SURFACE:CAPS"></a><h3>CAIRO_HAS_WIN32_SURFACE</h3>
355
+ <pre class="programlisting">#define CAIRO_HAS_WIN32_SURFACE 1
356
+ </pre>
357
+ <p>Defined if the Microsoft Windows surface backend is available.
358
+ This macro can be used to conditionally compile backend-specific code.</p>
359
+ <p class="since">Since 1.0</p>
360
+ </div>
361
+ </div>
362
+ <div class="refsect1">
272
363
  <a name="cairo-Win32-Surfaces.see-also"></a><h2>See Also</h2>
273
- <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
364
+ <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>
274
365
  </div>
275
366
  </div>
276
367
  <div class="footer">
277
368
  <hr>
278
- Generated by GTK-Doc V1.18</div>
369
+ Generated by GTK-Doc V1.20</div>
279
370
  </body>
280
371
  </html>