cairo 1.14.0-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 (636) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS +7 -0
  3. data/COPYING +59 -0
  4. data/GPL +340 -0
  5. data/Gemfile +5 -0
  6. data/NEWS +429 -0
  7. data/README.rdoc +120 -0
  8. data/Rakefile +620 -0
  9. data/ext/cairo/cairo.def +140 -0
  10. data/ext/cairo/depend +3 -0
  11. data/ext/cairo/extconf.rb +202 -0
  12. data/ext/cairo/rb_cairo.c +111 -0
  13. data/ext/cairo/rb_cairo.h +348 -0
  14. data/ext/cairo/rb_cairo_constants.c +673 -0
  15. data/ext/cairo/rb_cairo_context.c +1741 -0
  16. data/ext/cairo/rb_cairo_device.c +475 -0
  17. data/ext/cairo/rb_cairo_exception.c +446 -0
  18. data/ext/cairo/rb_cairo_font_extents.c +200 -0
  19. data/ext/cairo/rb_cairo_font_face.c +726 -0
  20. data/ext/cairo/rb_cairo_font_options.c +197 -0
  21. data/ext/cairo/rb_cairo_glyph.c +161 -0
  22. data/ext/cairo/rb_cairo_io.c +166 -0
  23. data/ext/cairo/rb_cairo_io.h +44 -0
  24. data/ext/cairo/rb_cairo_matrix.c +366 -0
  25. data/ext/cairo/rb_cairo_path.c +459 -0
  26. data/ext/cairo/rb_cairo_pattern.c +1192 -0
  27. data/ext/cairo/rb_cairo_private.c +255 -0
  28. data/ext/cairo/rb_cairo_private.h +129 -0
  29. data/ext/cairo/rb_cairo_rectangle.c +83 -0
  30. data/ext/cairo/rb_cairo_region.c +385 -0
  31. data/ext/cairo/rb_cairo_scaled_font.c +235 -0
  32. data/ext/cairo/rb_cairo_surface.c +2284 -0
  33. data/ext/cairo/rb_cairo_text_cluster.c +151 -0
  34. data/ext/cairo/rb_cairo_text_extents.c +221 -0
  35. data/lib/2.0/cairo.so +0 -0
  36. data/lib/2.1/cairo.so +0 -0
  37. data/lib/2.2/cairo.so +0 -0
  38. data/lib/cairo.rb +154 -0
  39. data/lib/cairo/color.rb +267 -0
  40. data/lib/cairo/colors.rb +656 -0
  41. data/lib/cairo/constants.rb +24 -0
  42. data/lib/cairo/context.rb +29 -0
  43. data/lib/cairo/context/blur.rb +45 -0
  44. data/lib/cairo/context/circle.rb +9 -0
  45. data/lib/cairo/context/color.rb +11 -0
  46. data/lib/cairo/context/path.rb +117 -0
  47. data/lib/cairo/context/rectangle.rb +33 -0
  48. data/lib/cairo/context/triangle.rb +12 -0
  49. data/lib/cairo/device.rb +13 -0
  50. data/lib/cairo/paper.rb +183 -0
  51. data/lib/cairo/papers.rb +65 -0
  52. data/lib/cairo/path.rb +15 -0
  53. data/lib/cairo/pattern.rb +12 -0
  54. data/lib/cairo/point.rb +7 -0
  55. data/lib/cairo/surface.rb +13 -0
  56. data/samples/agg/aa_test.rb +304 -0
  57. data/samples/blur.rb +46 -0
  58. data/samples/pac-nomralize.rb +170 -0
  59. data/samples/pac-tee.rb +170 -0
  60. data/samples/pac.rb +98 -0
  61. data/samples/png.rb +44 -0
  62. data/samples/scalable.rb +55 -0
  63. data/samples/text-on-path.rb +59 -0
  64. data/samples/text2.rb +130 -0
  65. data/test/cairo-test-utils.rb +44 -0
  66. data/test/run-test.rb +29 -0
  67. data/test/test_color.rb +17 -0
  68. data/test/test_constants.rb +27 -0
  69. data/test/test_context.rb +105 -0
  70. data/test/test_exception.rb +36 -0
  71. data/test/test_font_extents.rb +36 -0
  72. data/test/test_font_face.rb +257 -0
  73. data/test/test_font_options.rb +13 -0
  74. data/test/test_image_surface.rb +28 -0
  75. data/test/test_paper.rb +81 -0
  76. data/test/test_quartz_image_surface.rb +13 -0
  77. data/test/test_raster_source_pattern.rb +162 -0
  78. data/test/test_recording_surface.rb +19 -0
  79. data/test/test_region.rb +102 -0
  80. data/test/test_scaled_font.rb +34 -0
  81. data/test/test_script_device.rb +46 -0
  82. data/test/test_script_surface.rb +13 -0
  83. data/test/test_surface.rb +61 -0
  84. data/test/test_tee_surface.rb +32 -0
  85. data/test/test_text_cluster.rb +32 -0
  86. data/test/test_text_extents.rb +40 -0
  87. data/test/test_text_to_glyphs_data.rb +51 -0
  88. data/test/test_xml_device.rb +22 -0
  89. data/test/test_xml_surface.rb +34 -0
  90. data/vendor/local/bin/fc-cache.exe +0 -0
  91. data/vendor/local/bin/fc-cat.exe +0 -0
  92. data/vendor/local/bin/fc-list.exe +0 -0
  93. data/vendor/local/bin/fc-match.exe +0 -0
  94. data/vendor/local/bin/fc-pattern.exe +0 -0
  95. data/vendor/local/bin/fc-query.exe +0 -0
  96. data/vendor/local/bin/fc-scan.exe +0 -0
  97. data/vendor/local/bin/fc-validate.exe +0 -0
  98. data/vendor/local/bin/freetype-config +163 -0
  99. data/vendor/local/bin/libcairo-2.dll +0 -0
  100. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  101. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  102. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  103. data/vendor/local/bin/libfreetype-6.dll +0 -0
  104. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  105. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  106. data/vendor/local/bin/libpng-config +127 -0
  107. data/vendor/local/bin/libpng16-16.dll +0 -0
  108. data/vendor/local/bin/libpng16-config +127 -0
  109. data/vendor/local/bin/libstdc++-6.dll +0 -0
  110. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  111. data/vendor/local/bin/libxml2-2.dll +0 -0
  112. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  113. data/vendor/local/bin/pngfix.exe +0 -0
  114. data/vendor/local/bin/xml2-config +106 -0
  115. data/vendor/local/bin/xmlcatalog.exe +0 -0
  116. data/vendor/local/bin/xmllint.exe +0 -0
  117. data/vendor/local/bin/zlib1.dll +0 -0
  118. data/vendor/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +81 -0
  119. data/vendor/local/etc/fonts/conf.d/20-unhint-small-vera.conf +48 -0
  120. data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +546 -0
  121. data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +24 -0
  122. data/vendor/local/etc/fonts/conf.d/40-nonlatin.conf +231 -0
  123. data/vendor/local/etc/fonts/conf.d/45-latin.conf +189 -0
  124. data/vendor/local/etc/fonts/conf.d/49-sansserif.conf +21 -0
  125. data/vendor/local/etc/fonts/conf.d/50-user.conf +15 -0
  126. data/vendor/local/etc/fonts/conf.d/51-local.conf +6 -0
  127. data/vendor/local/etc/fonts/conf.d/60-latin.conf +70 -0
  128. data/vendor/local/etc/fonts/conf.d/65-fonts-persian.conf +419 -0
  129. data/vendor/local/etc/fonts/conf.d/65-nonlatin.conf +196 -0
  130. data/vendor/local/etc/fonts/conf.d/69-unifont.conf +28 -0
  131. data/vendor/local/etc/fonts/conf.d/80-delicious.conf +19 -0
  132. data/vendor/local/etc/fonts/conf.d/90-synthetic.conf +64 -0
  133. data/vendor/local/etc/fonts/conf.d/README +23 -0
  134. data/vendor/local/etc/fonts/fonts.conf +155 -0
  135. data/vendor/local/include/cairo/cairo-deprecated.h +123 -0
  136. data/vendor/local/include/cairo/cairo-features.h +31 -0
  137. data/vendor/local/include/cairo/cairo-ft.h +118 -0
  138. data/vendor/local/include/cairo/cairo-gobject.h +192 -0
  139. data/vendor/local/include/cairo/cairo-pdf.h +94 -0
  140. data/vendor/local/include/cairo/cairo-ps.h +116 -0
  141. data/vendor/local/include/cairo/cairo-script-interpreter.h +124 -0
  142. data/vendor/local/include/cairo/cairo-script.h +98 -0
  143. data/vendor/local/include/cairo/cairo-svg.h +84 -0
  144. data/vendor/local/include/cairo/cairo-version.h +8 -0
  145. data/vendor/local/include/cairo/cairo-win32.h +112 -0
  146. data/vendor/local/include/cairo/cairo.h +3153 -0
  147. data/vendor/local/include/fontconfig/fcfreetype.h +59 -0
  148. data/vendor/local/include/fontconfig/fcprivate.h +124 -0
  149. data/vendor/local/include/fontconfig/fontconfig.h +1010 -0
  150. data/vendor/local/include/freetype2/config/ftconfig.h +706 -0
  151. data/vendor/local/include/freetype2/config/ftheader.h +832 -0
  152. data/vendor/local/include/freetype2/config/ftmodule.h +20 -0
  153. data/vendor/local/include/freetype2/config/ftoption.h +846 -0
  154. data/vendor/local/include/freetype2/config/ftstdlib.h +174 -0
  155. data/vendor/local/include/freetype2/freetype.h +4076 -0
  156. data/vendor/local/include/freetype2/ft2build.h +42 -0
  157. data/vendor/local/include/freetype2/ftadvanc.h +182 -0
  158. data/vendor/local/include/freetype2/ftautoh.h +402 -0
  159. data/vendor/local/include/freetype2/ftbbox.h +102 -0
  160. data/vendor/local/include/freetype2/ftbdf.h +210 -0
  161. data/vendor/local/include/freetype2/ftbitmap.h +227 -0
  162. data/vendor/local/include/freetype2/ftbzip2.h +102 -0
  163. data/vendor/local/include/freetype2/ftcache.h +1057 -0
  164. data/vendor/local/include/freetype2/ftcffdrv.h +254 -0
  165. data/vendor/local/include/freetype2/ftchapters.h +121 -0
  166. data/vendor/local/include/freetype2/ftcid.h +166 -0
  167. data/vendor/local/include/freetype2/fterrdef.h +249 -0
  168. data/vendor/local/include/freetype2/fterrors.h +198 -0
  169. data/vendor/local/include/freetype2/ftgasp.h +128 -0
  170. data/vendor/local/include/freetype2/ftglyph.h +620 -0
  171. data/vendor/local/include/freetype2/ftgxval.h +358 -0
  172. data/vendor/local/include/freetype2/ftgzip.h +149 -0
  173. data/vendor/local/include/freetype2/ftimage.h +1322 -0
  174. data/vendor/local/include/freetype2/ftincrem.h +353 -0
  175. data/vendor/local/include/freetype2/ftlcdfil.h +251 -0
  176. data/vendor/local/include/freetype2/ftlist.h +277 -0
  177. data/vendor/local/include/freetype2/ftlzw.h +99 -0
  178. data/vendor/local/include/freetype2/ftmac.h +274 -0
  179. data/vendor/local/include/freetype2/ftmm.h +377 -0
  180. data/vendor/local/include/freetype2/ftmodapi.h +641 -0
  181. data/vendor/local/include/freetype2/ftmoderr.h +194 -0
  182. data/vendor/local/include/freetype2/ftotval.h +203 -0
  183. data/vendor/local/include/freetype2/ftoutln.h +572 -0
  184. data/vendor/local/include/freetype2/ftpfr.h +172 -0
  185. data/vendor/local/include/freetype2/ftrender.h +238 -0
  186. data/vendor/local/include/freetype2/ftsizes.h +159 -0
  187. data/vendor/local/include/freetype2/ftsnames.h +200 -0
  188. data/vendor/local/include/freetype2/ftstroke.h +751 -0
  189. data/vendor/local/include/freetype2/ftsynth.h +81 -0
  190. data/vendor/local/include/freetype2/ftsystem.h +347 -0
  191. data/vendor/local/include/freetype2/fttrigon.h +350 -0
  192. data/vendor/local/include/freetype2/ftttdrv.h +170 -0
  193. data/vendor/local/include/freetype2/fttypes.h +598 -0
  194. data/vendor/local/include/freetype2/ftwinfnt.h +275 -0
  195. data/vendor/local/include/freetype2/ftxf86.h +83 -0
  196. data/vendor/local/include/freetype2/t1tables.h +662 -0
  197. data/vendor/local/include/freetype2/ttnameid.h +1237 -0
  198. data/vendor/local/include/freetype2/tttables.h +787 -0
  199. data/vendor/local/include/freetype2/tttags.h +111 -0
  200. data/vendor/local/include/freetype2/ttunpat.h +59 -0
  201. data/vendor/local/include/libpng16/png.h +3276 -0
  202. data/vendor/local/include/libpng16/pngconf.h +644 -0
  203. data/vendor/local/include/libpng16/pnglibconf.h +208 -0
  204. data/vendor/local/include/libxml2/libxml/DOCBparser.h +96 -0
  205. data/vendor/local/include/libxml2/libxml/HTMLparser.h +306 -0
  206. data/vendor/local/include/libxml2/libxml/HTMLtree.h +147 -0
  207. data/vendor/local/include/libxml2/libxml/SAX.h +173 -0
  208. data/vendor/local/include/libxml2/libxml/SAX2.h +178 -0
  209. data/vendor/local/include/libxml2/libxml/c14n.h +126 -0
  210. data/vendor/local/include/libxml2/libxml/catalog.h +182 -0
  211. data/vendor/local/include/libxml2/libxml/chvalid.h +230 -0
  212. data/vendor/local/include/libxml2/libxml/debugXML.h +217 -0
  213. data/vendor/local/include/libxml2/libxml/dict.h +80 -0
  214. data/vendor/local/include/libxml2/libxml/encoding.h +240 -0
  215. data/vendor/local/include/libxml2/libxml/entities.h +151 -0
  216. data/vendor/local/include/libxml2/libxml/globals.h +509 -0
  217. data/vendor/local/include/libxml2/libxml/hash.h +233 -0
  218. data/vendor/local/include/libxml2/libxml/list.h +137 -0
  219. data/vendor/local/include/libxml2/libxml/nanoftp.h +163 -0
  220. data/vendor/local/include/libxml2/libxml/nanohttp.h +81 -0
  221. data/vendor/local/include/libxml2/libxml/parser.h +1241 -0
  222. data/vendor/local/include/libxml2/libxml/parserInternals.h +644 -0
  223. data/vendor/local/include/libxml2/libxml/pattern.h +100 -0
  224. data/vendor/local/include/libxml2/libxml/relaxng.h +217 -0
  225. data/vendor/local/include/libxml2/libxml/schemasInternals.h +958 -0
  226. data/vendor/local/include/libxml2/libxml/schematron.h +142 -0
  227. data/vendor/local/include/libxml2/libxml/threads.h +84 -0
  228. data/vendor/local/include/libxml2/libxml/tree.h +1310 -0
  229. data/vendor/local/include/libxml2/libxml/uri.h +94 -0
  230. data/vendor/local/include/libxml2/libxml/valid.h +458 -0
  231. data/vendor/local/include/libxml2/libxml/xinclude.h +129 -0
  232. data/vendor/local/include/libxml2/libxml/xlink.h +189 -0
  233. data/vendor/local/include/libxml2/libxml/xmlIO.h +366 -0
  234. data/vendor/local/include/libxml2/libxml/xmlautomata.h +146 -0
  235. data/vendor/local/include/libxml2/libxml/xmlerror.h +945 -0
  236. data/vendor/local/include/libxml2/libxml/xmlexports.h +162 -0
  237. data/vendor/local/include/libxml2/libxml/xmlmemory.h +224 -0
  238. data/vendor/local/include/libxml2/libxml/xmlmodule.h +57 -0
  239. data/vendor/local/include/libxml2/libxml/xmlreader.h +428 -0
  240. data/vendor/local/include/libxml2/libxml/xmlregexp.h +222 -0
  241. data/vendor/local/include/libxml2/libxml/xmlsave.h +88 -0
  242. data/vendor/local/include/libxml2/libxml/xmlschemas.h +246 -0
  243. data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +151 -0
  244. data/vendor/local/include/libxml2/libxml/xmlstring.h +140 -0
  245. data/vendor/local/include/libxml2/libxml/xmlunicode.h +202 -0
  246. data/vendor/local/include/libxml2/libxml/xmlversion.h +489 -0
  247. data/vendor/local/include/libxml2/libxml/xmlwriter.h +488 -0
  248. data/vendor/local/include/libxml2/libxml/xpath.h +557 -0
  249. data/vendor/local/include/libxml2/libxml/xpathInternals.h +632 -0
  250. data/vendor/local/include/libxml2/libxml/xpointer.h +114 -0
  251. data/vendor/local/include/pixman-1/pixman-version.h +50 -0
  252. data/vendor/local/include/pixman-1/pixman.h +1111 -0
  253. data/vendor/local/include/png.h +3276 -0
  254. data/vendor/local/include/pngconf.h +644 -0
  255. data/vendor/local/include/pnglibconf.h +208 -0
  256. data/vendor/local/include/zconf.h +511 -0
  257. data/vendor/local/include/zlib.h +1768 -0
  258. data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
  259. data/vendor/local/lib/fontconfig.def +207 -0
  260. data/vendor/local/lib/libcairo-gobject.a +0 -0
  261. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  262. data/vendor/local/lib/libcairo-gobject.la +41 -0
  263. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  264. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  265. data/vendor/local/lib/libcairo-script-interpreter.la +41 -0
  266. data/vendor/local/lib/libcairo.a +0 -0
  267. data/vendor/local/lib/libcairo.dll.a +0 -0
  268. data/vendor/local/lib/libcairo.la +41 -0
  269. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  270. data/vendor/local/lib/libfontconfig.la +41 -0
  271. data/vendor/local/lib/libfreetype.a +0 -0
  272. data/vendor/local/lib/libfreetype.dll.a +0 -0
  273. data/vendor/local/lib/libfreetype.la +41 -0
  274. data/vendor/local/lib/libpixman-1.a +0 -0
  275. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  276. data/vendor/local/lib/libpixman-1.la +41 -0
  277. data/vendor/local/lib/libpng.a +0 -0
  278. data/vendor/local/lib/libpng.dll.a +0 -0
  279. data/vendor/local/lib/libpng.la +41 -0
  280. data/vendor/local/lib/libpng16.a +0 -0
  281. data/vendor/local/lib/libpng16.dll.a +0 -0
  282. data/vendor/local/lib/libpng16.la +41 -0
  283. data/vendor/local/lib/libxml2.a +0 -0
  284. data/vendor/local/lib/libxml2.dll.a +0 -0
  285. data/vendor/local/lib/libxml2.la +41 -0
  286. data/vendor/local/lib/libz.a +0 -0
  287. data/vendor/local/lib/libz.dll.a +0 -0
  288. data/vendor/local/lib/pkgconfig/cairo-fc.pc +12 -0
  289. data/vendor/local/lib/pkgconfig/cairo-ft.pc +12 -0
  290. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +12 -0
  291. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +12 -0
  292. data/vendor/local/lib/pkgconfig/cairo-png.pc +12 -0
  293. data/vendor/local/lib/pkgconfig/cairo-ps.pc +12 -0
  294. data/vendor/local/lib/pkgconfig/cairo-script.pc +12 -0
  295. data/vendor/local/lib/pkgconfig/cairo-svg.pc +12 -0
  296. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +12 -0
  297. data/vendor/local/lib/pkgconfig/cairo-win32.pc +12 -0
  298. data/vendor/local/lib/pkgconfig/cairo.pc +13 -0
  299. data/vendor/local/lib/pkgconfig/fontconfig.pc +18 -0
  300. data/vendor/local/lib/pkgconfig/freetype2.pc +14 -0
  301. data/vendor/local/lib/pkgconfig/libpng.pc +11 -0
  302. data/vendor/local/lib/pkgconfig/libpng16.pc +11 -0
  303. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +13 -0
  304. data/vendor/local/lib/pkgconfig/pixman-1.pc +11 -0
  305. data/vendor/local/lib/pkgconfig/zlib.pc +13 -0
  306. data/vendor/local/lib/xml2Conf.sh +8 -0
  307. data/vendor/local/share/aclocal/freetype2.m4 +194 -0
  308. data/vendor/local/share/aclocal/libxml.m4 +188 -0
  309. data/vendor/local/share/doc/libxml2-2.9.2/Copyright +23 -0
  310. data/vendor/local/share/doc/libxml2-2.9.2/examples/testHTML.c +880 -0
  311. data/vendor/local/share/doc/libxml2-2.9.2/examples/testSAX.c +1198 -0
  312. data/vendor/local/share/doc/libxml2-2.9.2/examples/testXPath.c +229 -0
  313. data/vendor/local/share/doc/libxml2-2.9.2/examples/xmllint.c +3801 -0
  314. data/vendor/local/share/doc/libxml2-2.9.2/html/DOM.gif +0 -0
  315. data/vendor/local/share/doc/libxml2-2.9.2/html/FAQ.html +299 -0
  316. data/vendor/local/share/doc/libxml2-2.9.2/html/Libxml2-Logo-180x168.gif +0 -0
  317. data/vendor/local/share/doc/libxml2-2.9.2/html/Libxml2-Logo-90x34.gif +0 -0
  318. data/vendor/local/share/doc/libxml2-2.9.2/html/encoding.html +217 -0
  319. data/vendor/local/share/doc/libxml2-2.9.2/html/examples.xml +751 -0
  320. data/vendor/local/share/doc/libxml2-2.9.2/html/examples.xsl +174 -0
  321. data/vendor/local/share/doc/libxml2-2.9.2/html/html/book1.html +13 -0
  322. data/vendor/local/share/doc/libxml2-2.9.2/html/html/home.png +0 -0
  323. data/vendor/local/share/doc/libxml2-2.9.2/html/html/index.html +13 -0
  324. data/vendor/local/share/doc/libxml2-2.9.2/html/html/left.png +0 -0
  325. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-DOCBparser.html +51 -0
  326. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-HTMLparser.html +184 -0
  327. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-HTMLtree.html +73 -0
  328. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-SAX.html +125 -0
  329. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-SAX2.html +128 -0
  330. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-c14n.html +38 -0
  331. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-catalog.html +142 -0
  332. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-chvalid.html +72 -0
  333. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-debugXML.html +120 -0
  334. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-dict.html +58 -0
  335. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-encoding.html +124 -0
  336. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-entities.html +79 -0
  337. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-globals.html +152 -0
  338. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-hash.html +116 -0
  339. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-lib.html +13 -0
  340. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-list.html +120 -0
  341. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-nanoftp.html +94 -0
  342. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-nanohttp.html +65 -0
  343. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-parser.html +559 -0
  344. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-parserInternals.html +322 -0
  345. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-pattern.html +76 -0
  346. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-relaxng.html +162 -0
  347. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-schemasInternals.html +373 -0
  348. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-schematron.html +81 -0
  349. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-threads.html +72 -0
  350. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-tree.html +990 -0
  351. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-uri.html +73 -0
  352. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-valid.html +289 -0
  353. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xinclude.html +59 -0
  354. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xlink.html +82 -0
  355. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlIO.html +212 -0
  356. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlautomata.html +85 -0
  357. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlerror.html +865 -0
  358. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlexports.html +20 -0
  359. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlmemory.html +107 -0
  360. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlmodule.html +38 -0
  361. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlreader.html +330 -0
  362. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlregexp.html +143 -0
  363. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlsave.html +60 -0
  364. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlschemas.html +185 -0
  365. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlschemastypes.html +123 -0
  366. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlstring.html +108 -0
  367. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlunicode.html +512 -0
  368. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlversion.html +63 -0
  369. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlwriter.html +261 -0
  370. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpath.html +316 -0
  371. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpathInternals.html +394 -0
  372. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpointer.html +83 -0
  373. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xzlib.html +16 -0
  374. data/vendor/local/share/doc/libxml2-2.9.2/html/html/right.png +0 -0
  375. data/vendor/local/share/doc/libxml2-2.9.2/html/html/up.png +0 -0
  376. data/vendor/local/share/doc/libxml2-2.9.2/html/index.html +14 -0
  377. data/vendor/local/share/doc/libxml2-2.9.2/html/io1.c +166 -0
  378. data/vendor/local/share/doc/libxml2-2.9.2/html/io1.res +5 -0
  379. data/vendor/local/share/doc/libxml2-2.9.2/html/io2.c +58 -0
  380. data/vendor/local/share/doc/libxml2-2.9.2/html/io2.res +2 -0
  381. data/vendor/local/share/doc/libxml2-2.9.2/html/libxml.gif +0 -0
  382. data/vendor/local/share/doc/libxml2-2.9.2/html/parse1.c +56 -0
  383. data/vendor/local/share/doc/libxml2-2.9.2/html/parse2.c +72 -0
  384. data/vendor/local/share/doc/libxml2-2.9.2/html/parse3.c +60 -0
  385. data/vendor/local/share/doc/libxml2-2.9.2/html/parse4.c +143 -0
  386. data/vendor/local/share/doc/libxml2-2.9.2/html/reader1.c +107 -0
  387. data/vendor/local/share/doc/libxml2-2.9.2/html/reader1.res +14 -0
  388. data/vendor/local/share/doc/libxml2-2.9.2/html/reader2.c +122 -0
  389. data/vendor/local/share/doc/libxml2-2.9.2/html/reader3.c +120 -0
  390. data/vendor/local/share/doc/libxml2-2.9.2/html/reader3.res +13 -0
  391. data/vendor/local/share/doc/libxml2-2.9.2/html/reader4.c +122 -0
  392. data/vendor/local/share/doc/libxml2-2.9.2/html/reader4.res +3 -0
  393. data/vendor/local/share/doc/libxml2-2.9.2/html/redhat.gif +0 -0
  394. data/vendor/local/share/doc/libxml2-2.9.2/html/smallfootonly.gif +0 -0
  395. data/vendor/local/share/doc/libxml2-2.9.2/html/structure.gif +0 -0
  396. data/vendor/local/share/doc/libxml2-2.9.2/html/test1.xml +1 -0
  397. data/vendor/local/share/doc/libxml2-2.9.2/html/test2.xml +13 -0
  398. data/vendor/local/share/doc/libxml2-2.9.2/html/test3.xml +39 -0
  399. data/vendor/local/share/doc/libxml2-2.9.2/html/testWriter.c +1198 -0
  400. data/vendor/local/share/doc/libxml2-2.9.2/html/tree1.c +94 -0
  401. data/vendor/local/share/doc/libxml2-2.9.2/html/tree1.res +4 -0
  402. data/vendor/local/share/doc/libxml2-2.9.2/html/tree2.c +118 -0
  403. data/vendor/local/share/doc/libxml2-2.9.2/html/tree2.res +18 -0
  404. data/vendor/local/share/doc/libxml2-2.9.2/html/tst.xml +7 -0
  405. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apa.html +8 -0
  406. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apb.html +14 -0
  407. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apc.html +82 -0
  408. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apd.html +76 -0
  409. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ape.html +78 -0
  410. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apf.html +67 -0
  411. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apg.html +75 -0
  412. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/aph.html +76 -0
  413. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/api.html +4 -0
  414. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s02.html +14 -0
  415. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s03.html +47 -0
  416. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s04.html +54 -0
  417. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s05.html +55 -0
  418. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s06.html +35 -0
  419. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s07.html +30 -0
  420. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s08.html +38 -0
  421. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s09.html +63 -0
  422. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/blank.png +0 -0
  423. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/1.png +0 -0
  424. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/10.png +0 -0
  425. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/2.png +0 -0
  426. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/3.png +0 -0
  427. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/4.png +0 -0
  428. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/5.png +0 -0
  429. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/6.png +0 -0
  430. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/7.png +0 -0
  431. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/8.png +0 -0
  432. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/9.png +0 -0
  433. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/caution.png +0 -0
  434. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/draft.png +0 -0
  435. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/home.png +0 -0
  436. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/important.png +0 -0
  437. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/next.png +0 -0
  438. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/note.png +0 -0
  439. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/prev.png +0 -0
  440. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/tip.png +0 -0
  441. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-blank.png +0 -0
  442. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-minus.png +0 -0
  443. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-plus.png +0 -0
  444. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/up.png +0 -0
  445. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/warning.png +0 -0
  446. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeaddattribute.c +64 -0
  447. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeaddkeyword.c +75 -0
  448. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeconvert.c +73 -0
  449. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includegetattribute.c +72 -0
  450. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includekeyword.c +79 -0
  451. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includexpath.c +74 -0
  452. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/index.html +14 -0
  453. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ix01.html +1 -0
  454. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/xmltutorial.pdf +1336 -0
  455. data/vendor/local/share/doc/libxml2-2.9.2/html/w3c.png +0 -0
  456. data/vendor/local/share/doc/libxml2-2.9.2/html/writer.xml +2 -0
  457. data/vendor/local/share/doc/libxml2-2.9.2/html/xml.html +5995 -0
  458. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath1.c +250 -0
  459. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath1.res +5 -0
  460. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath2.c +190 -0
  461. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath2.res +30 -0
  462. data/vendor/local/share/fontconfig/conf.avail/10-autohint.conf +14 -0
  463. data/vendor/local/share/fontconfig/conf.avail/10-no-sub-pixel.conf +14 -0
  464. data/vendor/local/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf +81 -0
  465. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf +14 -0
  466. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf +14 -0
  467. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf +14 -0
  468. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf +14 -0
  469. data/vendor/local/share/fontconfig/conf.avail/10-unhinted.conf +14 -0
  470. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-default.conf +16 -0
  471. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf +16 -0
  472. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-light.conf +16 -0
  473. data/vendor/local/share/fontconfig/conf.avail/20-unhint-small-vera.conf +48 -0
  474. data/vendor/local/share/fontconfig/conf.avail/25-unhint-nonlatin.conf +128 -0
  475. data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +546 -0
  476. data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +24 -0
  477. data/vendor/local/share/fontconfig/conf.avail/40-nonlatin.conf +231 -0
  478. data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +189 -0
  479. data/vendor/local/share/fontconfig/conf.avail/49-sansserif.conf +21 -0
  480. data/vendor/local/share/fontconfig/conf.avail/50-user.conf +15 -0
  481. data/vendor/local/share/fontconfig/conf.avail/51-local.conf +6 -0
  482. data/vendor/local/share/fontconfig/conf.avail/60-latin.conf +70 -0
  483. data/vendor/local/share/fontconfig/conf.avail/65-fonts-persian.conf +419 -0
  484. data/vendor/local/share/fontconfig/conf.avail/65-khmer.conf +16 -0
  485. data/vendor/local/share/fontconfig/conf.avail/65-nonlatin.conf +196 -0
  486. data/vendor/local/share/fontconfig/conf.avail/69-unifont.conf +28 -0
  487. data/vendor/local/share/fontconfig/conf.avail/70-no-bitmaps.conf +12 -0
  488. data/vendor/local/share/fontconfig/conf.avail/70-yes-bitmaps.conf +12 -0
  489. data/vendor/local/share/fontconfig/conf.avail/80-delicious.conf +19 -0
  490. data/vendor/local/share/fontconfig/conf.avail/90-synthetic.conf +64 -0
  491. data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +122 -0
  492. data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +53 -0
  493. data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +123 -0
  494. data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +121 -0
  495. data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +117 -0
  496. data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +75 -0
  497. data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +120 -0
  498. data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +92 -0
  499. data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +93 -0
  500. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +397 -0
  501. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +428 -0
  502. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +452 -0
  503. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +342 -0
  504. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +315 -0
  505. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1194 -0
  506. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +577 -0
  507. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +129 -0
  508. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +197 -0
  509. data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +600 -0
  510. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +226 -0
  511. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +810 -0
  512. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +302 -0
  513. data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +360 -0
  514. data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +394 -0
  515. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +156 -0
  516. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +677 -0
  517. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
  518. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +326 -0
  519. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +280 -0
  520. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +527 -0
  521. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +535 -0
  522. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +170 -0
  523. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +636 -0
  524. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +380 -0
  525. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +653 -0
  526. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +559 -0
  527. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2231 -0
  528. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +956 -0
  529. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1637 -0
  530. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2695 -0
  531. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +53 -0
  532. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +53 -0
  533. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +44 -0
  534. data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +74 -0
  535. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1138 -0
  536. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +747 -0
  537. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  538. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +177 -0
  539. data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +193 -0
  540. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +179 -0
  541. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +123 -0
  542. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +107 -0
  543. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +128 -0
  544. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +1122 -0
  545. data/vendor/local/share/gtk-doc/html/cairo/index.html +157 -0
  546. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +833 -0
  547. data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +73 -0
  548. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  549. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  550. data/vendor/local/share/gtk-doc/html/cairo/style.css +266 -0
  551. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  552. data/vendor/local/share/gtk-doc/html/libxml2/general.html +38 -0
  553. data/vendor/local/share/gtk-doc/html/libxml2/home.png +0 -0
  554. data/vendor/local/share/gtk-doc/html/libxml2/index.html +67 -0
  555. data/vendor/local/share/gtk-doc/html/libxml2/left.png +0 -0
  556. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html +138 -0
  557. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +373 -0
  558. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html +172 -0
  559. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX.html +243 -0
  560. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html +247 -0
  561. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-c14n.html +91 -0
  562. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-catalog.html +278 -0
  563. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html +241 -0
  564. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html +225 -0
  565. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +134 -0
  566. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +218 -0
  567. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +166 -0
  568. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-globals.html +383 -0
  569. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-hash.html +214 -0
  570. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-list.html +226 -0
  571. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +187 -0
  572. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html +142 -0
  573. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +766 -0
  574. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +688 -0
  575. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-pattern.html +166 -0
  576. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html +278 -0
  577. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html +860 -0
  578. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schematron.html +166 -0
  579. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-threads.html +161 -0
  580. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +1597 -0
  581. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-uri.html +154 -0
  582. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-valid.html +528 -0
  583. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html +169 -0
  584. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xlink.html +160 -0
  585. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +347 -0
  586. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html +176 -0
  587. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +953 -0
  588. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html +87 -0
  589. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html +186 -0
  590. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +97 -0
  591. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +565 -0
  592. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html +280 -0
  593. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +133 -0
  594. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +314 -0
  595. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +237 -0
  596. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html +217 -0
  597. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html +887 -0
  598. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +292 -0
  599. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +479 -0
  600. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +542 -0
  601. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +787 -0
  602. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html +171 -0
  603. data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +3573 -0
  604. data/vendor/local/share/gtk-doc/html/libxml2/right.png +0 -0
  605. data/vendor/local/share/gtk-doc/html/libxml2/style.css +66 -0
  606. data/vendor/local/share/gtk-doc/html/libxml2/up.png +0 -0
  607. data/vendor/local/share/license/cairo/AUTHORS +115 -0
  608. data/vendor/local/share/license/cairo/COPYING +33 -0
  609. data/vendor/local/share/license/cairo/COPYING-LGPL-2.1 +510 -0
  610. data/vendor/local/share/license/cairo/COPYING-MPL-1.1 +470 -0
  611. data/vendor/local/share/license/cairo/README +204 -0
  612. data/vendor/local/share/license/cairo/README.win32 +66 -0
  613. data/vendor/local/share/license/fontconfig/AUTHORS +3 -0
  614. data/vendor/local/share/license/fontconfig/COPYING +28 -0
  615. data/vendor/local/share/license/fontconfig/README +1484 -0
  616. data/vendor/local/share/license/freetype/README +83 -0
  617. data/vendor/local/share/license/freetype/README.git +50 -0
  618. data/vendor/local/share/license/libpng/README +215 -0
  619. data/vendor/local/share/license/libxml2/AUTHORS +5 -0
  620. data/vendor/local/share/license/libxml2/COPYING +23 -0
  621. data/vendor/local/share/license/libxml2/README +39 -0
  622. data/vendor/local/share/license/libxml2/README.tests +39 -0
  623. data/vendor/local/share/license/pixman/AUTHORS +0 -0
  624. data/vendor/local/share/license/pixman/COPYING +42 -0
  625. data/vendor/local/share/license/pixman/README +116 -0
  626. data/vendor/local/share/license/zlib/README +115 -0
  627. data/vendor/local/share/man/man1/freetype-config.1 +108 -0
  628. data/vendor/local/share/man/man1/xml2-config.1 +30 -0
  629. data/vendor/local/share/man/man1/xmlcatalog.1 +340 -0
  630. data/vendor/local/share/man/man1/xmllint.1 +647 -0
  631. data/vendor/local/share/man/man3/libpng.3 +6217 -0
  632. data/vendor/local/share/man/man3/libpngpf.3 +18 -0
  633. data/vendor/local/share/man/man3/libxml.3 +71 -0
  634. data/vendor/local/share/man/man5/png.5 +74 -0
  635. data/vendor/local/share/xml/fontconfig/fonts.dtd +233 -0
  636. metadata +774 -0
@@ -0,0 +1,1637 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>cairo_surface_t</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-cairo-device-t.html" title="cairo_device_t">
10
+ <link rel="next" href="cairo-Image-Surfaces.html" title="Image Surfaces">
11
+ <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
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-cairo-device-t.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-Image-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-cairo-surface-t.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-cairo-surface-t.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="cairo-cairo-surface-t"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="cairo-cairo-surface-t.top_of_page"></a>cairo_surface_t</span></h2>
34
+ <p>cairo_surface_t — Base class for surfaces</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="cairo-cairo-surface-t.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">#define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-HAS-MIME-SURFACE:CAPS" title="CAIRO_HAS_MIME_SURFACE">CAIRO_HAS_MIME_SURFACE</a>
41
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2:CAPS" title="CAIRO_MIME_TYPE_JBIG2">CAIRO_MIME_TYPE_JBIG2</a>
42
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL">CAIRO_MIME_TYPE_JBIG2_GLOBAL</a>
43
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID">CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</a>
44
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JP2:CAPS" title="CAIRO_MIME_TYPE_JP2">CAIRO_MIME_TYPE_JP2</a>
45
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG">CAIRO_MIME_TYPE_JPEG</a>
46
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-PNG:CAPS" title="CAIRO_MIME_TYPE_PNG">CAIRO_MIME_TYPE_PNG</a>
47
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI">CAIRO_MIME_TYPE_URI</a>
48
+ #define <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-UNIQUE-ID:CAPS" title="CAIRO_MIME_TYPE_UNIQUE_ID">CAIRO_MIME_TYPE_UNIQUE_ID</a>
49
+ typedef <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a>;
50
+ enum <a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t">cairo_content_t</a>;
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-cairo-surface-t.html#cairo-surface-create-similar" title="cairo_surface_create_similar ()">cairo_surface_create_similar</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> *other</code></em>,
52
+ <em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> content</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
+ <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-cairo-surface-t.html#cairo-surface-create-similar-image" title="cairo_surface_create_similar_image ()">cairo_surface_create_similar_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> *other</code></em>,
56
+ <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>,
57
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
58
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);
59
+ <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-cairo-surface-t.html#cairo-surface-create-for-rectangle" title="cairo_surface_create_for_rectangle ()">cairo_surface_create_for_rectangle</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> *target</code></em>,
60
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
61
+ <em class="parameter"><code><span class="type">double</span> y</code></em>,
62
+ <em class="parameter"><code><span class="type">double</span> width</code></em>,
63
+ <em class="parameter"><code><span class="type">double</span> height</code></em>);
64
+ <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-cairo-surface-t.html#cairo-surface-reference" title="cairo_surface_reference ()">cairo_surface_reference</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">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()">cairo_surface_destroy</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
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()">cairo_surface_status</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>);
67
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-finish" title="cairo_surface_finish ()">cairo_surface_finish</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>);
68
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-flush" title="cairo_surface_flush ()">cairo_surface_flush</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>);
69
+ <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a> * <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-device" title="cairo_surface_get_device ()">cairo_surface_get_device</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>);
70
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-font-options" title="cairo_surface_get_font_options ()">cairo_surface_get_font_options</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>,
71
+ <em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);
72
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="returnvalue">cairo_content_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-content" title="cairo_surface_get_content ()">cairo_surface_get_content</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>);
73
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-mark-dirty" title="cairo_surface_mark_dirty ()">cairo_surface_mark_dirty</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>);
74
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-mark-dirty-rectangle" title="cairo_surface_mark_dirty_rectangle ()">cairo_surface_mark_dirty_rectangle</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>,
75
+ <em class="parameter"><code><span class="type">int</span> x</code></em>,
76
+ <em class="parameter"><code><span class="type">int</span> y</code></em>,
77
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
78
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);
79
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-device-offset" title="cairo_surface_set_device_offset ()">cairo_surface_set_device_offset</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>,
80
+ <em class="parameter"><code><span class="type">double</span> x_offset</code></em>,
81
+ <em class="parameter"><code><span class="type">double</span> y_offset</code></em>);
82
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-device-offset" title="cairo_surface_get_device_offset ()">cairo_surface_get_device_offset</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>,
83
+ <em class="parameter"><code><span class="type">double</span> *x_offset</code></em>,
84
+ <em class="parameter"><code><span class="type">double</span> *y_offset</code></em>);
85
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-device-scale" title="cairo_surface_get_device_scale ()">cairo_surface_get_device_scale</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>,
86
+ <em class="parameter"><code><span class="type">double</span> *x_scale</code></em>,
87
+ <em class="parameter"><code><span class="type">double</span> *y_scale</code></em>);
88
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-device-scale" title="cairo_surface_set_device_scale ()">cairo_surface_set_device_scale</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>,
89
+ <em class="parameter"><code><span class="type">double</span> x_scale</code></em>,
90
+ <em class="parameter"><code><span class="type">double</span> y_scale</code></em>);
91
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-fallback-resolution" title="cairo_surface_set_fallback_resolution ()">cairo_surface_set_fallback_resolution</a>
92
+ (<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>,
93
+ <em class="parameter"><code><span class="type">double</span> x_pixels_per_inch</code></em>,
94
+ <em class="parameter"><code><span class="type">double</span> y_pixels_per_inch</code></em>);
95
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-fallback-resolution" title="cairo_surface_get_fallback_resolution ()">cairo_surface_get_fallback_resolution</a>
96
+ (<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>,
97
+ <em class="parameter"><code><span class="type">double</span> *x_pixels_per_inch</code></em>,
98
+ <em class="parameter"><code><span class="type">double</span> *y_pixels_per_inch</code></em>);
99
+ enum <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-type-t" title="enum cairo_surface_type_t">cairo_surface_type_t</a>;
100
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-type-t" title="enum cairo_surface_type_t"><span class="returnvalue">cairo_surface_type_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-type" title="cairo_surface_get_type ()">cairo_surface_get_type</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>);
101
+ unsigned <span class="returnvalue">int</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-reference-count" title="cairo_surface_get_reference_count ()">cairo_surface_get_reference_count</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>);
102
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-user-data" title="cairo_surface_set_user_data ()">cairo_surface_set_user_data</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>,
103
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>,
104
+ <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
105
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> destroy</code></em>);
106
+ <span class="returnvalue">void</span> * <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-user-data" title="cairo_surface_get_user_data ()">cairo_surface_get_user_data</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>,
107
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>);
108
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-copy-page" title="cairo_surface_copy_page ()">cairo_surface_copy_page</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>);
109
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-show-page" title="cairo_surface_show_page ()">cairo_surface_show_page</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>);
110
+ <a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-has-show-text-glyphs" title="cairo_surface_has_show_text_glyphs ()">cairo_surface_has_show_text_glyphs</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>);
111
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-mime-data" title="cairo_surface_set_mime_data ()">cairo_surface_set_mime_data</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>,
112
+ <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
113
+ <em class="parameter"><code>const unsigned <span class="type">char</span> *data</code></em>,
114
+ <em class="parameter"><code><span class="type">unsigned long </span> length</code></em>,
115
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> destroy</code></em>,
116
+ <em class="parameter"><code><span class="type">void</span> *closure</code></em>);
117
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-mime-data" title="cairo_surface_get_mime_data ()">cairo_surface_get_mime_data</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>,
118
+ <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
119
+ <em class="parameter"><code>const unsigned <span class="type">char</span> **data</code></em>,
120
+ <em class="parameter"><code>unsigned <span class="type">long</span> *length</code></em>);
121
+ <a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-supports-mime-type" title="cairo_surface_supports_mime_type ()">cairo_surface_supports_mime_type</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>,
122
+ <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>);
123
+ <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-cairo-surface-t.html#cairo-surface-map-to-image" title="cairo_surface_map_to_image ()">cairo_surface_map_to_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>,
124
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *extents</code></em>);
125
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-unmap-image" title="cairo_surface_unmap_image ()">cairo_surface_unmap_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>,
126
+ <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> *image</code></em>);
127
+ </pre>
128
+ </div>
129
+ <div class="refsect1">
130
+ <a name="cairo-cairo-surface-t.description"></a><h2>Description</h2>
131
+ <p>
132
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> is the abstract type representing all different drawing
133
+ targets that cairo can render to. The actual drawings are
134
+ performed using a cairo <em class="firstterm">context</em>.
135
+ </p>
136
+ <p>
137
+ A cairo surface is created by using <em class="firstterm">backend</em>-specific
138
+ constructors, typically of the form
139
+ <code class="function">cairo_<span class="emphasis"><em>backend</em></span>_surface_create()</code>.
140
+ </p>
141
+ <p>
142
+ Most surface types allow accessing the surface without using Cairo
143
+ functions. If you do this, keep in mind that it is mandatory that you call
144
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-flush" title="cairo_surface_flush ()"><code class="function">cairo_surface_flush()</code></a> before reading from or writing to the surface and that
145
+ you must use <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> after modifying it.
146
+ </p>
147
+ <div class="example">
148
+ <a name="idp17907312"></a><p class="title"><b>Example 1. Directly modifying an image surface</b></p>
149
+ <div class="example-contents"><pre class="programlisting">
150
+ void
151
+ modify_image_surface (cairo_surface_t *surface)
152
+ {
153
+ unsigned char *data;
154
+ int width, height, stride;
155
+
156
+ // flush to ensure all writing to the image was done
157
+ cairo_surface_flush (surface);
158
+
159
+ // modify the image
160
+ data = cairo_image_surface_get_data (surface);
161
+ width = cairo_image_surface_get_width (surface);
162
+ height = cairo_image_surface_get_height (surface);
163
+ stride = cairo_image_surface_get_stride (surface);
164
+ modify_image_data (data, width, height, stride);
165
+
166
+ // mark the image dirty so Cairo clears its caches.
167
+ cairo_surface_mark_dirty (surface);
168
+ }
169
+ </pre></div>
170
+ </div>
171
+ <p><br class="example-break">
172
+ Note that for other surface types it might be necessary to acquire the
173
+ surface's device first. See <a class="link" href="cairo-cairo-device-t.html#cairo-device-acquire" title="cairo_device_acquire ()"><code class="function">cairo_device_acquire()</code></a> for a discussion of
174
+ devices.
175
+ </p>
176
+ </div>
177
+ <div class="refsect1">
178
+ <a name="cairo-cairo-surface-t.details"></a><h2>Details</h2>
179
+ <div class="refsect2">
180
+ <a name="CAIRO-HAS-MIME-SURFACE:CAPS"></a><h3>CAIRO_HAS_MIME_SURFACE</h3>
181
+ <pre class="programlisting">#define CAIRO_HAS_MIME_SURFACE 1
182
+ </pre>
183
+ <p>
184
+ </p>
185
+ </div>
186
+ <hr>
187
+ <div class="refsect2">
188
+ <a name="CAIRO-MIME-TYPE-JBIG2:CAPS"></a><h3>CAIRO_MIME_TYPE_JBIG2</h3>
189
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_JBIG2 "application/x-cairo.jbig2"
190
+ </pre>
191
+ <p>
192
+ </p>
193
+ </div>
194
+ <hr>
195
+ <div class="refsect2">
196
+ <a name="CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS"></a><h3>CAIRO_MIME_TYPE_JBIG2_GLOBAL</h3>
197
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_JBIG2_GLOBAL "application/x-cairo.jbig2-global"
198
+ </pre>
199
+ <p>
200
+ </p>
201
+ </div>
202
+ <hr>
203
+ <div class="refsect2">
204
+ <a name="CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS"></a><h3>CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</h3>
205
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID "application/x-cairo.jbig2-global-id"
206
+ </pre>
207
+ <p>
208
+ </p>
209
+ </div>
210
+ <hr>
211
+ <div class="refsect2">
212
+ <a name="CAIRO-MIME-TYPE-JP2:CAPS"></a><h3>CAIRO_MIME_TYPE_JP2</h3>
213
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_JP2 "image/jp2"
214
+ </pre>
215
+ <p>
216
+ The Joint Photographic Experts Group (JPEG) 2000 image coding standard (ISO/IEC 15444-1).
217
+ </p>
218
+ <p class="since">Since 1.10</p>
219
+ </div>
220
+ <hr>
221
+ <div class="refsect2">
222
+ <a name="CAIRO-MIME-TYPE-JPEG:CAPS"></a><h3>CAIRO_MIME_TYPE_JPEG</h3>
223
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_JPEG "image/jpeg"
224
+ </pre>
225
+ <p>
226
+ The Joint Photographic Experts Group (JPEG) image coding standard (ISO/IEC 10918-1).
227
+ </p>
228
+ <p class="since">Since 1.10</p>
229
+ </div>
230
+ <hr>
231
+ <div class="refsect2">
232
+ <a name="CAIRO-MIME-TYPE-PNG:CAPS"></a><h3>CAIRO_MIME_TYPE_PNG</h3>
233
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_PNG "image/png"
234
+ </pre>
235
+ <p>
236
+ The Portable Network Graphics image file format (ISO/IEC 15948).
237
+ </p>
238
+ <p class="since">Since 1.10</p>
239
+ </div>
240
+ <hr>
241
+ <div class="refsect2">
242
+ <a name="CAIRO-MIME-TYPE-URI:CAPS"></a><h3>CAIRO_MIME_TYPE_URI</h3>
243
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_URI "text/x-uri"
244
+ </pre>
245
+ <p>
246
+ URI for an image file (unofficial MIME type).
247
+ </p>
248
+ <p class="since">Since 1.10</p>
249
+ </div>
250
+ <hr>
251
+ <div class="refsect2">
252
+ <a name="CAIRO-MIME-TYPE-UNIQUE-ID:CAPS"></a><h3>CAIRO_MIME_TYPE_UNIQUE_ID</h3>
253
+ <pre class="programlisting">#define CAIRO_MIME_TYPE_UNIQUE_ID "application/x-cairo.uuid"
254
+ </pre>
255
+ <p>
256
+ Unique identifier for a surface (cairo specific MIME type).
257
+ </p>
258
+ <p class="since">Since 1.12</p>
259
+ </div>
260
+ <hr>
261
+ <div class="refsect2">
262
+ <a name="cairo-surface-t"></a><h3>cairo_surface_t</h3>
263
+ <pre class="programlisting">typedef struct _cairo_surface cairo_surface_t;
264
+ </pre>
265
+ <p>
266
+ 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> represents an image, either as the destination
267
+ of a drawing operation or as source when drawing onto another
268
+ surface. To draw to 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>, create a cairo context
269
+ with the surface as the target, using <a class="link" href="cairo-cairo-t.html#cairo-create" title="cairo_create ()"><code class="function">cairo_create()</code></a>.
270
+ </p>
271
+ <p>
272
+ There are different subtypes of <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
273
+ different drawing backends; for example, <a class="link" href="cairo-Image-Surfaces.html#cairo-image-surface-create" title="cairo_image_surface_create ()"><code class="function">cairo_image_surface_create()</code></a>
274
+ creates a bitmap image in memory.
275
+ The type of a surface can be queried with <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-type" title="cairo_surface_get_type ()"><code class="function">cairo_surface_get_type()</code></a>.
276
+ </p>
277
+ <p>
278
+ The initial contents of a surface after creation depend upon the manner
279
+ of its creation. If cairo creates the surface and backing storage for
280
+ the user, it will be initially cleared; for example,
281
+ <a class="link" href="cairo-Image-Surfaces.html#cairo-image-surface-create" title="cairo_image_surface_create ()"><code class="function">cairo_image_surface_create()</code></a> and <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-create-similar" title="cairo_surface_create_similar ()"><code class="function">cairo_surface_create_similar()</code></a>.
282
+ Alternatively, if the user passes in a reference to some backing storage
283
+ and asks cairo to wrap that in 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>, then the contents are
284
+ not modified; for example, <a class="link" href="cairo-Image-Surfaces.html#cairo-image-surface-create-for-data" title="cairo_image_surface_create_for_data ()"><code class="function">cairo_image_surface_create_for_data()</code></a> and
285
+ <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>.
286
+ </p>
287
+ <p>
288
+ Memory management of <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> is done with
289
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a> and <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a>.
290
+ </p>
291
+ <p class="since">Since 1.0</p>
292
+ </div>
293
+ <hr>
294
+ <div class="refsect2">
295
+ <a name="cairo-content-t"></a><h3>enum cairo_content_t</h3>
296
+ <pre class="programlisting">typedef enum {
297
+ CAIRO_CONTENT_COLOR = 0x1000,
298
+ CAIRO_CONTENT_ALPHA = 0x2000,
299
+ CAIRO_CONTENT_COLOR_ALPHA = 0x3000
300
+ } cairo_content_t;
301
+ </pre>
302
+ <p>
303
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> is used to describe the content that a surface will
304
+ contain, whether color information, alpha information (translucence
305
+ vs. opacity), or both.
306
+ </p>
307
+ <p>
308
+ Note: The large values here are designed to keep <a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a>
309
+ values distinct from <a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> values so that the
310
+ implementation can detect the error if users confuse the two types.
311
+ </p>
312
+ <div class="variablelist"><table border="0">
313
+ <col align="left" valign="top">
314
+ <tbody>
315
+ <tr>
316
+ <td><p><a name="CAIRO-CONTENT-COLOR:CAPS"></a><span class="term"><code class="literal">CAIRO_CONTENT_COLOR</code></span></p></td>
317
+ <td>The surface will hold color content only. (Since 1.0)
318
+ </td>
319
+ </tr>
320
+ <tr>
321
+ <td><p><a name="CAIRO-CONTENT-ALPHA:CAPS"></a><span class="term"><code class="literal">CAIRO_CONTENT_ALPHA</code></span></p></td>
322
+ <td>The surface will hold alpha content only. (Since 1.0)
323
+ </td>
324
+ </tr>
325
+ <tr>
326
+ <td><p><a name="CAIRO-CONTENT-COLOR-ALPHA:CAPS"></a><span class="term"><code class="literal">CAIRO_CONTENT_COLOR_ALPHA</code></span></p></td>
327
+ <td>The surface will hold color and alpha content. (Since 1.0)
328
+ </td>
329
+ </tr>
330
+ </tbody>
331
+ </table></div>
332
+ <p class="since">Since 1.0</p>
333
+ </div>
334
+ <hr>
335
+ <div class="refsect2">
336
+ <a name="cairo-surface-create-similar"></a><h3>cairo_surface_create_similar ()</h3>
337
+ <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_surface_create_similar (<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> *other</code></em>,
338
+ <em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> content</code></em>,
339
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
340
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
341
+ <p>
342
+ Create a new surface that is as compatible as possible with an
343
+ existing surface. For example the new surface will have the same
344
+ fallback resolution and font options as <em class="parameter"><code>other</code></em>. Generally, the new
345
+ surface will also use the same backend as <em class="parameter"><code>other</code></em>, unless that is
346
+ not possible for some reason. The type of the returned surface may
347
+ be examined with <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-type" title="cairo_surface_get_type ()"><code class="function">cairo_surface_get_type()</code></a>.
348
+ </p>
349
+ <p>
350
+ Initially the surface contents are all 0 (transparent if contents
351
+ have transparency, black otherwise.)
352
+ </p>
353
+ <p>
354
+ Use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-create-similar-image" title="cairo_surface_create_similar_image ()"><code class="function">cairo_surface_create_similar_image()</code></a> if you need an image surface
355
+ which can be painted quickly to the target surface.
356
+ </p>
357
+ <div class="variablelist"><table border="0">
358
+ <col align="left" valign="top">
359
+ <tbody>
360
+ <tr>
361
+ <td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
362
+ <td>an existing surface used to select the backend of the new surface</td>
363
+ </tr>
364
+ <tr>
365
+ <td><p><span class="term"><em class="parameter"><code>content</code></em> :</span></p></td>
366
+ <td>the content for the new surface</td>
367
+ </tr>
368
+ <tr>
369
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
370
+ <td>width of the new surface, (in device-space units)</td>
371
+ </tr>
372
+ <tr>
373
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
374
+ <td>height of the new surface (in device-space units)</td>
375
+ </tr>
376
+ <tr>
377
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
378
+ <td>a pointer to the newly allocated surface. The caller
379
+ owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
380
+ with it.
381
+ This function always returns a valid pointer, but it will return a
382
+ pointer to a "nil" surface if <em class="parameter"><code>other</code></em> is already in an error state
383
+ or any other error occurs.</td>
384
+ </tr>
385
+ </tbody>
386
+ </table></div>
387
+ <p class="since">Since 1.0</p>
388
+ </div>
389
+ <hr>
390
+ <div class="refsect2">
391
+ <a name="cairo-surface-create-similar-image"></a><h3>cairo_surface_create_similar_image ()</h3>
392
+ <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_surface_create_similar_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> *other</code></em>,
393
+ <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>,
394
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
395
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
396
+ <p>
397
+ Create a new image surface that is as compatible as possible for uploading
398
+ to and the use in conjunction with an existing surface. However, this surface
399
+ can still be used like any normal image surface.
400
+ </p>
401
+ <p>
402
+ Initially the surface contents are all 0 (transparent if contents
403
+ have transparency, black otherwise.)
404
+ </p>
405
+ <p>
406
+ Use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-create-similar" title="cairo_surface_create_similar ()"><code class="function">cairo_surface_create_similar()</code></a> if you don't need an image surface.
407
+ </p>
408
+ <div class="variablelist"><table border="0">
409
+ <col align="left" valign="top">
410
+ <tbody>
411
+ <tr>
412
+ <td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
413
+ <td>an existing surface used to select the preference of the new surface</td>
414
+ </tr>
415
+ <tr>
416
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
417
+ <td>the format for the new surface</td>
418
+ </tr>
419
+ <tr>
420
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
421
+ <td>width of the new surface, (in device-space units)</td>
422
+ </tr>
423
+ <tr>
424
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
425
+ <td>height of the new surface (in device-space units)</td>
426
+ </tr>
427
+ <tr>
428
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
429
+ <td>a pointer to the newly allocated image surface. The caller
430
+ owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
431
+ with it.
432
+ This function always returns a valid pointer, but it will return a
433
+ pointer to a "nil" surface if <em class="parameter"><code>other</code></em> is already in an error state
434
+ or any other error occurs.</td>
435
+ </tr>
436
+ </tbody>
437
+ </table></div>
438
+ <p class="since">Since 1.12</p>
439
+ </div>
440
+ <hr>
441
+ <div class="refsect2">
442
+ <a name="cairo-surface-create-for-rectangle"></a><h3>cairo_surface_create_for_rectangle ()</h3>
443
+ <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_surface_create_for_rectangle (<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> *target</code></em>,
444
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
445
+ <em class="parameter"><code><span class="type">double</span> y</code></em>,
446
+ <em class="parameter"><code><span class="type">double</span> width</code></em>,
447
+ <em class="parameter"><code><span class="type">double</span> height</code></em>);</pre>
448
+ <p>
449
+ Create a new surface that is a rectangle within the target surface.
450
+ All operations drawn to this surface are then clipped and translated
451
+ onto the target surface. Nothing drawn via this sub-surface outside of
452
+ its bounds is drawn onto the target surface, making this a useful method
453
+ for passing constrained child surfaces to library routines that draw
454
+ directly onto the parent surface, i.e. with no further backend allocations,
455
+ double buffering or copies.
456
+ </p>
457
+ <p>
458
+ </p>
459
+ <div class="note" style="margin-left: 0.5in; margin-right: 0.5in;">
460
+ <h3 class="title">Note</h3>
461
+ <p>The semantics of subsurfaces have not been finalized yet
462
+ unless the rectangle is in full device units, is contained within
463
+ the extents of the target surface, and the target or subsurface's
464
+ device transforms are not changed.</p>
465
+ </div>
466
+ <p>
467
+ </p>
468
+ <div class="variablelist"><table border="0">
469
+ <col align="left" valign="top">
470
+ <tbody>
471
+ <tr>
472
+ <td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td>
473
+ <td>an existing surface for which the sub-surface will point to</td>
474
+ </tr>
475
+ <tr>
476
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
477
+ <td>the x-origin of the sub-surface from the top-left of the target surface (in device-space units)</td>
478
+ </tr>
479
+ <tr>
480
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
481
+ <td>the y-origin of the sub-surface from the top-left of the target surface (in device-space units)</td>
482
+ </tr>
483
+ <tr>
484
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
485
+ <td>width of the sub-surface (in device-space units)</td>
486
+ </tr>
487
+ <tr>
488
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
489
+ <td>height of the sub-surface (in device-space units)</td>
490
+ </tr>
491
+ <tr>
492
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
493
+ <td>a pointer to the newly allocated surface. The caller
494
+ owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
495
+ with it.
496
+ This function always returns a valid pointer, but it will return a
497
+ pointer to a "nil" surface if <em class="parameter"><code>other</code></em> is already in an error state
498
+ or any other error occurs.</td>
499
+ </tr>
500
+ </tbody>
501
+ </table></div>
502
+ <p class="since">Since 1.10</p>
503
+ </div>
504
+ <hr>
505
+ <div class="refsect2">
506
+ <a name="cairo-surface-reference"></a><h3>cairo_surface_reference ()</h3>
507
+ <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_surface_reference (<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>
508
+ <p>
509
+ Increases the reference count on <em class="parameter"><code>surface</code></em> by one. This prevents
510
+ <em class="parameter"><code>surface</code></em> from being destroyed until a matching call to
511
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> is made.
512
+ </p>
513
+ <p>
514
+ The number of references to 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> can be get using
515
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-reference-count" title="cairo_surface_get_reference_count ()"><code class="function">cairo_surface_get_reference_count()</code></a>.
516
+ </p>
517
+ <div class="variablelist"><table border="0">
518
+ <col align="left" valign="top">
519
+ <tbody>
520
+ <tr>
521
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
522
+ <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>
523
+ </td>
524
+ </tr>
525
+ <tr>
526
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
527
+ <td>the referenced <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>.</td>
528
+ </tr>
529
+ </tbody>
530
+ </table></div>
531
+ <p class="since">Since 1.0</p>
532
+ </div>
533
+ <hr>
534
+ <div class="refsect2">
535
+ <a name="cairo-surface-destroy"></a><h3>cairo_surface_destroy ()</h3>
536
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_destroy (<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>
537
+ <p>
538
+ Decreases the reference count on <em class="parameter"><code>surface</code></em> by one. If the result is
539
+ zero, then <em class="parameter"><code>surface</code></em> and all associated resources are freed. See
540
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a>.
541
+ </p>
542
+ <div class="variablelist"><table border="0">
543
+ <col align="left" valign="top">
544
+ <tbody><tr>
545
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
546
+ <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>
547
+ </td>
548
+ </tr></tbody>
549
+ </table></div>
550
+ <p class="since">Since 1.0</p>
551
+ </div>
552
+ <hr>
553
+ <div class="refsect2">
554
+ <a name="cairo-surface-status"></a><h3>cairo_surface_status ()</h3>
555
+ <pre class="programlisting"><a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> cairo_surface_status (<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>
557
+ Checks whether an error has previously occurred for this
558
+ surface.
559
+ </p>
560
+ <div class="variablelist"><table border="0">
561
+ <col align="left" valign="top">
562
+ <tbody>
563
+ <tr>
564
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
565
+ <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>
566
+ </td>
567
+ </tr>
568
+ <tr>
569
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
570
+ <td>
571
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NULL-POINTER:CAPS"><code class="literal">CAIRO_STATUS_NULL_POINTER</code></a>,
572
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>, <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-READ-ERROR:CAPS"><code class="literal">CAIRO_STATUS_READ_ERROR</code></a>,
573
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-INVALID-CONTENT:CAPS"><code class="literal">CAIRO_STATUS_INVALID_CONTENT</code></a>, <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-INVALID-FORMAT:CAPS"><code class="literal">CAIRO_STATUS_INVALID_FORMAT</code></a>, or
574
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-INVALID-VISUAL:CAPS"><code class="literal">CAIRO_STATUS_INVALID_VISUAL</code></a>.</td>
575
+ </tr>
576
+ </tbody>
577
+ </table></div>
578
+ <p class="since">Since 1.0</p>
579
+ </div>
580
+ <hr>
581
+ <div class="refsect2">
582
+ <a name="cairo-surface-finish"></a><h3>cairo_surface_finish ()</h3>
583
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_finish (<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>
585
+ This function finishes the surface and drops all references to
586
+ external resources. For example, for the Xlib backend it means
587
+ that cairo will no longer access the drawable, which can be freed.
588
+ After calling <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-finish" title="cairo_surface_finish ()"><code class="function">cairo_surface_finish()</code></a> the only valid operations on a
589
+ surface are getting and setting user, referencing and
590
+ destroying, and flushing and finishing it.
591
+ Further drawing to the surface will not affect the
592
+ surface but will instead trigger a <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SURFACE-FINISHED:CAPS"><code class="literal">CAIRO_STATUS_SURFACE_FINISHED</code></a>
593
+ error.
594
+ </p>
595
+ <p>
596
+ When the last call to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> decreases the
597
+ reference count to zero, cairo will call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-finish" title="cairo_surface_finish ()"><code class="function">cairo_surface_finish()</code></a> if
598
+ it hasn't been called already, before freeing the resources
599
+ associated with the surface.
600
+ </p>
601
+ <div class="variablelist"><table border="0">
602
+ <col align="left" valign="top">
603
+ <tbody><tr>
604
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
605
+ <td>the <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> to finish</td>
606
+ </tr></tbody>
607
+ </table></div>
608
+ <p class="since">Since 1.0</p>
609
+ </div>
610
+ <hr>
611
+ <div class="refsect2">
612
+ <a name="cairo-surface-flush"></a><h3>cairo_surface_flush ()</h3>
613
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_flush (<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>
614
+ <p>
615
+ Do any pending drawing for the surface and also restore any
616
+ temporary modifications cairo has made to the surface's
617
+ state. This function must be called before switching from
618
+ drawing on the surface with cairo to drawing on it directly
619
+ with native APIs. If the surface doesn't support direct access,
620
+ then this function does nothing.
621
+ </p>
622
+ <div class="variablelist"><table border="0">
623
+ <col align="left" valign="top">
624
+ <tbody><tr>
625
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
626
+ <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>
627
+ </td>
628
+ </tr></tbody>
629
+ </table></div>
630
+ <p class="since">Since 1.0</p>
631
+ </div>
632
+ <hr>
633
+ <div class="refsect2">
634
+ <a name="cairo-surface-get-device"></a><h3>cairo_surface_get_device ()</h3>
635
+ <pre class="programlisting"><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a> * cairo_surface_get_device (<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>
636
+ <p>
637
+ This function returns the device for a <em class="parameter"><code>surface</code></em>.
638
+ See <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a>.
639
+ </p>
640
+ <div class="variablelist"><table border="0">
641
+ <col align="left" valign="top">
642
+ <tbody>
643
+ <tr>
644
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
645
+ <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>
646
+ </td>
647
+ </tr>
648
+ <tr>
649
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
650
+ <td>The device for <em class="parameter"><code>surface</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the surface does
651
+ not have an associated device.</td>
652
+ </tr>
653
+ </tbody>
654
+ </table></div>
655
+ <p class="since">Since 1.10</p>
656
+ </div>
657
+ <hr>
658
+ <div class="refsect2">
659
+ <a name="cairo-surface-get-font-options"></a><h3>cairo_surface_get_font_options ()</h3>
660
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_get_font_options (<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>,
661
+ <em class="parameter"><code><a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> *options</code></em>);</pre>
662
+ <p>
663
+ Retrieves the default font rendering options for the surface.
664
+ This allows display surfaces to report the correct subpixel order
665
+ for rendering on them, print surfaces to disable hinting of
666
+ metrics and so forth. The result can then be used with
667
+ <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.
668
+ </p>
669
+ <div class="variablelist"><table border="0">
670
+ <col align="left" valign="top">
671
+ <tbody>
672
+ <tr>
673
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
674
+ <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>
675
+ </td>
676
+ </tr>
677
+ <tr>
678
+ <td><p><span class="term"><em class="parameter"><code>options</code></em> :</span></p></td>
679
+ <td>a <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-t" title="cairo_font_options_t"><span class="type">cairo_font_options_t</span></a> object into which to store
680
+ the retrieved options. All existing values are overwritten</td>
681
+ </tr>
682
+ </tbody>
683
+ </table></div>
684
+ <p class="since">Since 1.0</p>
685
+ </div>
686
+ <hr>
687
+ <div class="refsect2">
688
+ <a name="cairo-surface-get-content"></a><h3>cairo_surface_get_content ()</h3>
689
+ <pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="returnvalue">cairo_content_t</span></a> cairo_surface_get_content (<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>
690
+ <p>
691
+ This function returns the content type of <em class="parameter"><code>surface</code></em> which indicates
692
+ whether the surface contains color and/or alpha information. See
693
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a>.
694
+ </p>
695
+ <div class="variablelist"><table border="0">
696
+ <col align="left" valign="top">
697
+ <tbody>
698
+ <tr>
699
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
700
+ <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>
701
+ </td>
702
+ </tr>
703
+ <tr>
704
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
705
+ <td>The content type of <em class="parameter"><code>surface</code></em>.</td>
706
+ </tr>
707
+ </tbody>
708
+ </table></div>
709
+ <p class="since">Since 1.2</p>
710
+ </div>
711
+ <hr>
712
+ <div class="refsect2">
713
+ <a name="cairo-surface-mark-dirty"></a><h3>cairo_surface_mark_dirty ()</h3>
714
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_mark_dirty (<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>
715
+ <p>
716
+ Tells cairo that drawing has been done to surface using means other
717
+ than cairo, and that cairo should reread any cached areas. Note
718
+ that you must call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-flush" title="cairo_surface_flush ()"><code class="function">cairo_surface_flush()</code></a> before doing such drawing.
719
+ </p>
720
+ <div class="variablelist"><table border="0">
721
+ <col align="left" valign="top">
722
+ <tbody><tr>
723
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
724
+ <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>
725
+ </td>
726
+ </tr></tbody>
727
+ </table></div>
728
+ <p class="since">Since 1.0</p>
729
+ </div>
730
+ <hr>
731
+ <div class="refsect2">
732
+ <a name="cairo-surface-mark-dirty-rectangle"></a><h3>cairo_surface_mark_dirty_rectangle ()</h3>
733
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_mark_dirty_rectangle (<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>,
734
+ <em class="parameter"><code><span class="type">int</span> x</code></em>,
735
+ <em class="parameter"><code><span class="type">int</span> y</code></em>,
736
+ <em class="parameter"><code><span class="type">int</span> width</code></em>,
737
+ <em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
738
+ <p>
739
+ Like <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>, but drawing has been done only to
740
+ the specified rectangle, so that cairo can retain cached contents
741
+ for other parts of the surface.
742
+ </p>
743
+ <p>
744
+ Any cached clip set on the surface will be reset by this function,
745
+ to make sure that future cairo calls have the clip set that they
746
+ expect.
747
+ </p>
748
+ <div class="variablelist"><table border="0">
749
+ <col align="left" valign="top">
750
+ <tbody>
751
+ <tr>
752
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
753
+ <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>
754
+ </td>
755
+ </tr>
756
+ <tr>
757
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
758
+ <td>X coordinate of dirty rectangle</td>
759
+ </tr>
760
+ <tr>
761
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
762
+ <td>Y coordinate of dirty rectangle</td>
763
+ </tr>
764
+ <tr>
765
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
766
+ <td>width of dirty rectangle</td>
767
+ </tr>
768
+ <tr>
769
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
770
+ <td>height of dirty rectangle</td>
771
+ </tr>
772
+ </tbody>
773
+ </table></div>
774
+ <p class="since">Since 1.0</p>
775
+ </div>
776
+ <hr>
777
+ <div class="refsect2">
778
+ <a name="cairo-surface-set-device-offset"></a><h3>cairo_surface_set_device_offset ()</h3>
779
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_set_device_offset (<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>,
780
+ <em class="parameter"><code><span class="type">double</span> x_offset</code></em>,
781
+ <em class="parameter"><code><span class="type">double</span> y_offset</code></em>);</pre>
782
+ <p>
783
+ Sets an offset that is added to the device coordinates determined
784
+ by the CTM when drawing to <em class="parameter"><code>surface</code></em>. One use case for this function
785
+ is when we want to create 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> that redirects drawing
786
+ for a portion of an onscreen surface to an offscreen surface in a
787
+ way that is completely invisible to the user of the cairo
788
+ API. Setting a transformation via <a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate ()"><code class="function">cairo_translate()</code></a> isn't
789
+ sufficient to do this, since functions like
790
+ <a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user ()"><code class="function">cairo_device_to_user()</code></a> will expose the hidden offset.
791
+ </p>
792
+ <p>
793
+ Note that the offset affects drawing to the surface as well as
794
+ using the surface in a source pattern.
795
+ </p>
796
+ <div class="variablelist"><table border="0">
797
+ <col align="left" valign="top">
798
+ <tbody>
799
+ <tr>
800
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
801
+ <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>
802
+ </td>
803
+ </tr>
804
+ <tr>
805
+ <td><p><span class="term"><em class="parameter"><code>x_offset</code></em> :</span></p></td>
806
+ <td>the offset in the X direction, in device units</td>
807
+ </tr>
808
+ <tr>
809
+ <td><p><span class="term"><em class="parameter"><code>y_offset</code></em> :</span></p></td>
810
+ <td>the offset in the Y direction, in device units</td>
811
+ </tr>
812
+ </tbody>
813
+ </table></div>
814
+ <p class="since">Since 1.0</p>
815
+ </div>
816
+ <hr>
817
+ <div class="refsect2">
818
+ <a name="cairo-surface-get-device-offset"></a><h3>cairo_surface_get_device_offset ()</h3>
819
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_get_device_offset (<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>,
820
+ <em class="parameter"><code><span class="type">double</span> *x_offset</code></em>,
821
+ <em class="parameter"><code><span class="type">double</span> *y_offset</code></em>);</pre>
822
+ <p>
823
+ This function returns the previous device offset set by
824
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-device-offset" title="cairo_surface_set_device_offset ()"><code class="function">cairo_surface_set_device_offset()</code></a>.
825
+ </p>
826
+ <div class="variablelist"><table border="0">
827
+ <col align="left" valign="top">
828
+ <tbody>
829
+ <tr>
830
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
831
+ <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>
832
+ </td>
833
+ </tr>
834
+ <tr>
835
+ <td><p><span class="term"><em class="parameter"><code>x_offset</code></em> :</span></p></td>
836
+ <td>the offset in the X direction, in device units</td>
837
+ </tr>
838
+ <tr>
839
+ <td><p><span class="term"><em class="parameter"><code>y_offset</code></em> :</span></p></td>
840
+ <td>the offset in the Y direction, in device units</td>
841
+ </tr>
842
+ </tbody>
843
+ </table></div>
844
+ <p class="since">Since 1.2</p>
845
+ </div>
846
+ <hr>
847
+ <div class="refsect2">
848
+ <a name="cairo-surface-get-device-scale"></a><h3>cairo_surface_get_device_scale ()</h3>
849
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_get_device_scale (<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>,
850
+ <em class="parameter"><code><span class="type">double</span> *x_scale</code></em>,
851
+ <em class="parameter"><code><span class="type">double</span> *y_scale</code></em>);</pre>
852
+ <p>
853
+ This function returns the previous device offset set by
854
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-device-scale" title="cairo_surface_set_device_scale ()"><code class="function">cairo_surface_set_device_scale()</code></a>.
855
+ </p>
856
+ <div class="variablelist"><table border="0">
857
+ <col align="left" valign="top">
858
+ <tbody>
859
+ <tr>
860
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
861
+ <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>
862
+ </td>
863
+ </tr>
864
+ <tr>
865
+ <td><p><span class="term"><em class="parameter"><code>x_scale</code></em> :</span></p></td>
866
+ <td>the scale in the X direction, in device units</td>
867
+ </tr>
868
+ <tr>
869
+ <td><p><span class="term"><em class="parameter"><code>y_scale</code></em> :</span></p></td>
870
+ <td>the scale in the Y direction, in device units</td>
871
+ </tr>
872
+ </tbody>
873
+ </table></div>
874
+ <p class="since">Since 1.14</p>
875
+ </div>
876
+ <hr>
877
+ <div class="refsect2">
878
+ <a name="cairo-surface-set-device-scale"></a><h3>cairo_surface_set_device_scale ()</h3>
879
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_set_device_scale (<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>,
880
+ <em class="parameter"><code><span class="type">double</span> x_scale</code></em>,
881
+ <em class="parameter"><code><span class="type">double</span> y_scale</code></em>);</pre>
882
+ <p>
883
+ Sets a scale that is multiplied to the device coordinates determined
884
+ by the CTM when drawing to <em class="parameter"><code>surface</code></em>. One common use for this is to
885
+ render to very high resolution display devices at a scale factor, so
886
+ that code that assumes 1 pixel will be a certain size will still work.
887
+ Setting a transformation via <a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate ()"><code class="function">cairo_translate()</code></a> isn't
888
+ sufficient to do this, since functions like
889
+ <a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user ()"><code class="function">cairo_device_to_user()</code></a> will expose the hidden scale.
890
+ </p>
891
+ <p>
892
+ Note that the scale affects drawing to the surface as well as
893
+ using the surface in a source pattern.
894
+ </p>
895
+ <div class="variablelist"><table border="0">
896
+ <col align="left" valign="top">
897
+ <tbody>
898
+ <tr>
899
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
900
+ <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>
901
+ </td>
902
+ </tr>
903
+ <tr>
904
+ <td><p><span class="term"><em class="parameter"><code>x_scale</code></em> :</span></p></td>
905
+ <td>a scale factor in the X direction</td>
906
+ </tr>
907
+ <tr>
908
+ <td><p><span class="term"><em class="parameter"><code>y_scale</code></em> :</span></p></td>
909
+ <td>a scale factor in the Y direction</td>
910
+ </tr>
911
+ </tbody>
912
+ </table></div>
913
+ <p class="since">Since 1.14</p>
914
+ </div>
915
+ <hr>
916
+ <div class="refsect2">
917
+ <a name="cairo-surface-set-fallback-resolution"></a><h3>cairo_surface_set_fallback_resolution ()</h3>
918
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_set_fallback_resolution
919
+ (<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>,
920
+ <em class="parameter"><code><span class="type">double</span> x_pixels_per_inch</code></em>,
921
+ <em class="parameter"><code><span class="type">double</span> y_pixels_per_inch</code></em>);</pre>
922
+ <p>
923
+ Set the horizontal and vertical resolution for image fallbacks.
924
+ </p>
925
+ <p>
926
+ When certain operations aren't supported natively by a backend,
927
+ cairo will fallback by rendering operations to an image and then
928
+ overlaying that image onto the output. For backends that are
929
+ natively vector-oriented, this function can be used to set the
930
+ resolution used for these image fallbacks, (larger values will
931
+ result in more detailed images, but also larger file sizes).
932
+ </p>
933
+ <p>
934
+ Some examples of natively vector-oriented backends are the ps, pdf,
935
+ and svg backends.
936
+ </p>
937
+ <p>
938
+ For backends that are natively raster-oriented, image fallbacks are
939
+ still possible, but they are always performed at the native
940
+ device resolution. So this function has no effect on those
941
+ backends.
942
+ </p>
943
+ <p>
944
+ Note: The fallback resolution only takes effect at the time of
945
+ completing a page (with <a class="link" href="cairo-cairo-t.html#cairo-show-page" title="cairo_show_page ()"><code class="function">cairo_show_page()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-copy-page" title="cairo_copy_page ()"><code class="function">cairo_copy_page()</code></a>) so
946
+ there is currently no way to have more than one fallback resolution
947
+ in effect on a single page.
948
+ </p>
949
+ <p>
950
+ The default fallback resoultion is 300 pixels per inch in both
951
+ dimensions.
952
+ </p>
953
+ <div class="variablelist"><table border="0">
954
+ <col align="left" valign="top">
955
+ <tbody>
956
+ <tr>
957
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
958
+ <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>
959
+ </td>
960
+ </tr>
961
+ <tr>
962
+ <td><p><span class="term"><em class="parameter"><code>x_pixels_per_inch</code></em> :</span></p></td>
963
+ <td>horizontal setting for pixels per inch</td>
964
+ </tr>
965
+ <tr>
966
+ <td><p><span class="term"><em class="parameter"><code>y_pixels_per_inch</code></em> :</span></p></td>
967
+ <td>vertical setting for pixels per inch</td>
968
+ </tr>
969
+ </tbody>
970
+ </table></div>
971
+ <p class="since">Since 1.2</p>
972
+ </div>
973
+ <hr>
974
+ <div class="refsect2">
975
+ <a name="cairo-surface-get-fallback-resolution"></a><h3>cairo_surface_get_fallback_resolution ()</h3>
976
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_get_fallback_resolution
977
+ (<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>,
978
+ <em class="parameter"><code><span class="type">double</span> *x_pixels_per_inch</code></em>,
979
+ <em class="parameter"><code><span class="type">double</span> *y_pixels_per_inch</code></em>);</pre>
980
+ <p>
981
+ This function returns the previous fallback resolution set by
982
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-fallback-resolution" title="cairo_surface_set_fallback_resolution ()"><code class="function">cairo_surface_set_fallback_resolution()</code></a>, or default fallback
983
+ resolution if never set.
984
+ </p>
985
+ <div class="variablelist"><table border="0">
986
+ <col align="left" valign="top">
987
+ <tbody>
988
+ <tr>
989
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
990
+ <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>
991
+ </td>
992
+ </tr>
993
+ <tr>
994
+ <td><p><span class="term"><em class="parameter"><code>x_pixels_per_inch</code></em> :</span></p></td>
995
+ <td>horizontal pixels per inch</td>
996
+ </tr>
997
+ <tr>
998
+ <td><p><span class="term"><em class="parameter"><code>y_pixels_per_inch</code></em> :</span></p></td>
999
+ <td>vertical pixels per inch</td>
1000
+ </tr>
1001
+ </tbody>
1002
+ </table></div>
1003
+ <p class="since">Since 1.8</p>
1004
+ </div>
1005
+ <hr>
1006
+ <div class="refsect2">
1007
+ <a name="cairo-surface-type-t"></a><h3>enum cairo_surface_type_t</h3>
1008
+ <pre class="programlisting">typedef enum {
1009
+ CAIRO_SURFACE_TYPE_IMAGE,
1010
+ CAIRO_SURFACE_TYPE_PDF,
1011
+ CAIRO_SURFACE_TYPE_PS,
1012
+ CAIRO_SURFACE_TYPE_XLIB,
1013
+ CAIRO_SURFACE_TYPE_XCB,
1014
+ CAIRO_SURFACE_TYPE_GLITZ,
1015
+ CAIRO_SURFACE_TYPE_QUARTZ,
1016
+ CAIRO_SURFACE_TYPE_WIN32,
1017
+ CAIRO_SURFACE_TYPE_BEOS,
1018
+ CAIRO_SURFACE_TYPE_DIRECTFB,
1019
+ CAIRO_SURFACE_TYPE_SVG,
1020
+ CAIRO_SURFACE_TYPE_OS2,
1021
+ CAIRO_SURFACE_TYPE_WIN32_PRINTING,
1022
+ CAIRO_SURFACE_TYPE_QUARTZ_IMAGE,
1023
+ CAIRO_SURFACE_TYPE_SCRIPT,
1024
+ CAIRO_SURFACE_TYPE_QT,
1025
+ CAIRO_SURFACE_TYPE_RECORDING,
1026
+ CAIRO_SURFACE_TYPE_VG,
1027
+ CAIRO_SURFACE_TYPE_GL,
1028
+ CAIRO_SURFACE_TYPE_DRM,
1029
+ CAIRO_SURFACE_TYPE_TEE,
1030
+ CAIRO_SURFACE_TYPE_XML,
1031
+ CAIRO_SURFACE_TYPE_SKIA,
1032
+ CAIRO_SURFACE_TYPE_SUBSURFACE,
1033
+ CAIRO_SURFACE_TYPE_COGL
1034
+ } cairo_surface_type_t;
1035
+ </pre>
1036
+ <p>
1037
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-type-t" title="enum cairo_surface_type_t"><span class="type">cairo_surface_type_t</span></a> is used to describe the type of a given
1038
+ surface. The surface types are also known as "backends" or "surface
1039
+ backends" within cairo.
1040
+ </p>
1041
+ <p>
1042
+ The type of a surface is determined by the function used to create
1043
+ it, which will generally be of the form
1044
+ <code class="function">cairo_<span class="emphasis"><em>type</em></span>_surface_create()</code>,
1045
+ (though see <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-create-similar" title="cairo_surface_create_similar ()"><code class="function">cairo_surface_create_similar()</code></a> as well).
1046
+ </p>
1047
+ <p>
1048
+ The surface type can be queried with <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-get-type" title="cairo_surface_get_type ()"><code class="function">cairo_surface_get_type()</code></a>
1049
+ </p>
1050
+ <p>
1051
+ The various <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> functions can be used with surfaces of
1052
+ any type, but some backends also provide type-specific functions
1053
+ that must only be called with a surface of the appropriate
1054
+ type. These functions have names that begin with
1055
+ <code class="literal">cairo_<span class="emphasis"><em>type</em></span>_surface</code> such as <a class="link" href="cairo-Image-Surfaces.html#cairo-image-surface-get-width" title="cairo_image_surface_get_width ()"><code class="function">cairo_image_surface_get_width()</code></a>.
1056
+ </p>
1057
+ <p>
1058
+ The behavior of calling a type-specific function with a surface of
1059
+ the wrong type is undefined.
1060
+ </p>
1061
+ <p>
1062
+ New entries may be added in future versions.
1063
+ </p>
1064
+ <div class="variablelist"><table border="0">
1065
+ <col align="left" valign="top">
1066
+ <tbody>
1067
+ <tr>
1068
+ <td><p><a name="CAIRO-SURFACE-TYPE-IMAGE:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_IMAGE</code></span></p></td>
1069
+ <td>The surface is of type image, since 1.2
1070
+ </td>
1071
+ </tr>
1072
+ <tr>
1073
+ <td><p><a name="CAIRO-SURFACE-TYPE-PDF:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_PDF</code></span></p></td>
1074
+ <td>The surface is of type pdf, since 1.2
1075
+ </td>
1076
+ </tr>
1077
+ <tr>
1078
+ <td><p><a name="CAIRO-SURFACE-TYPE-PS:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_PS</code></span></p></td>
1079
+ <td>The surface is of type ps, since 1.2
1080
+ </td>
1081
+ </tr>
1082
+ <tr>
1083
+ <td><p><a name="CAIRO-SURFACE-TYPE-XLIB:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_XLIB</code></span></p></td>
1084
+ <td>The surface is of type xlib, since 1.2
1085
+ </td>
1086
+ </tr>
1087
+ <tr>
1088
+ <td><p><a name="CAIRO-SURFACE-TYPE-XCB:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_XCB</code></span></p></td>
1089
+ <td>The surface is of type xcb, since 1.2
1090
+ </td>
1091
+ </tr>
1092
+ <tr>
1093
+ <td><p><a name="CAIRO-SURFACE-TYPE-GLITZ:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_GLITZ</code></span></p></td>
1094
+ <td>The surface is of type glitz, since 1.2
1095
+ </td>
1096
+ </tr>
1097
+ <tr>
1098
+ <td><p><a name="CAIRO-SURFACE-TYPE-QUARTZ:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_QUARTZ</code></span></p></td>
1099
+ <td>The surface is of type quartz, since 1.2
1100
+ </td>
1101
+ </tr>
1102
+ <tr>
1103
+ <td><p><a name="CAIRO-SURFACE-TYPE-WIN32:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></span></p></td>
1104
+ <td>The surface is of type win32, since 1.2
1105
+ </td>
1106
+ </tr>
1107
+ <tr>
1108
+ <td><p><a name="CAIRO-SURFACE-TYPE-BEOS:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_BEOS</code></span></p></td>
1109
+ <td>The surface is of type beos, since 1.2
1110
+ </td>
1111
+ </tr>
1112
+ <tr>
1113
+ <td><p><a name="CAIRO-SURFACE-TYPE-DIRECTFB:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_DIRECTFB</code></span></p></td>
1114
+ <td>The surface is of type directfb, since 1.2
1115
+ </td>
1116
+ </tr>
1117
+ <tr>
1118
+ <td><p><a name="CAIRO-SURFACE-TYPE-SVG:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_SVG</code></span></p></td>
1119
+ <td>The surface is of type svg, since 1.2
1120
+ </td>
1121
+ </tr>
1122
+ <tr>
1123
+ <td><p><a name="CAIRO-SURFACE-TYPE-OS2:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_OS2</code></span></p></td>
1124
+ <td>The surface is of type os2, since 1.4
1125
+ </td>
1126
+ </tr>
1127
+ <tr>
1128
+ <td><p><a name="CAIRO-SURFACE-TYPE-WIN32-PRINTING:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_WIN32_PRINTING</code></span></p></td>
1129
+ <td>The surface is a win32 printing surface, since 1.6
1130
+ </td>
1131
+ </tr>
1132
+ <tr>
1133
+ <td><p><a name="CAIRO-SURFACE-TYPE-QUARTZ-IMAGE:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_QUARTZ_IMAGE</code></span></p></td>
1134
+ <td>The surface is of type quartz_image, since 1.6
1135
+ </td>
1136
+ </tr>
1137
+ <tr>
1138
+ <td><p><a name="CAIRO-SURFACE-TYPE-SCRIPT:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_SCRIPT</code></span></p></td>
1139
+ <td>The surface is of type script, since 1.10
1140
+ </td>
1141
+ </tr>
1142
+ <tr>
1143
+ <td><p><a name="CAIRO-SURFACE-TYPE-QT:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_QT</code></span></p></td>
1144
+ <td>The surface is of type Qt, since 1.10
1145
+ </td>
1146
+ </tr>
1147
+ <tr>
1148
+ <td><p><a name="CAIRO-SURFACE-TYPE-RECORDING:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_RECORDING</code></span></p></td>
1149
+ <td>The surface is of type recording, since 1.10
1150
+ </td>
1151
+ </tr>
1152
+ <tr>
1153
+ <td><p><a name="CAIRO-SURFACE-TYPE-VG:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_VG</code></span></p></td>
1154
+ <td>The surface is a OpenVG surface, since 1.10
1155
+ </td>
1156
+ </tr>
1157
+ <tr>
1158
+ <td><p><a name="CAIRO-SURFACE-TYPE-GL:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_GL</code></span></p></td>
1159
+ <td>The surface is of type OpenGL, since 1.10
1160
+ </td>
1161
+ </tr>
1162
+ <tr>
1163
+ <td><p><a name="CAIRO-SURFACE-TYPE-DRM:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_DRM</code></span></p></td>
1164
+ <td>The surface is of type Direct Render Manager, since 1.10
1165
+ </td>
1166
+ </tr>
1167
+ <tr>
1168
+ <td><p><a name="CAIRO-SURFACE-TYPE-TEE:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_TEE</code></span></p></td>
1169
+ <td>The surface is of type 'tee' (a multiplexing surface), since 1.10
1170
+ </td>
1171
+ </tr>
1172
+ <tr>
1173
+ <td><p><a name="CAIRO-SURFACE-TYPE-XML:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_XML</code></span></p></td>
1174
+ <td>The surface is of type XML (for debugging), since 1.10
1175
+ </td>
1176
+ </tr>
1177
+ <tr>
1178
+ <td><p><a name="CAIRO-SURFACE-TYPE-SKIA:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_SKIA</code></span></p></td>
1179
+ <td>The surface is of type Skia, since 1.10
1180
+ </td>
1181
+ </tr>
1182
+ <tr>
1183
+ <td><p><a name="CAIRO-SURFACE-TYPE-SUBSURFACE:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_SUBSURFACE</code></span></p></td>
1184
+ <td>The surface is a subsurface created with
1185
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-create-for-rectangle" title="cairo_surface_create_for_rectangle ()"><code class="function">cairo_surface_create_for_rectangle()</code></a>, since 1.10
1186
+ </td>
1187
+ </tr>
1188
+ <tr>
1189
+ <td><p><a name="CAIRO-SURFACE-TYPE-COGL:CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_COGL</code></span></p></td>
1190
+ <td>This surface is of type Cogl, since 1.12
1191
+ </td>
1192
+ </tr>
1193
+ </tbody>
1194
+ </table></div>
1195
+ <p class="since">Since 1.2</p>
1196
+ </div>
1197
+ <hr>
1198
+ <div class="refsect2">
1199
+ <a name="cairo-surface-get-type"></a><h3>cairo_surface_get_type ()</h3>
1200
+ <pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-type-t" title="enum cairo_surface_type_t"><span class="returnvalue">cairo_surface_type_t</span></a> cairo_surface_get_type (<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>
1201
+ <p>
1202
+ This function returns the type of the backend used to create
1203
+ a surface. See <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-type-t" title="enum cairo_surface_type_t"><span class="type">cairo_surface_type_t</span></a> for available types.
1204
+ </p>
1205
+ <div class="variablelist"><table border="0">
1206
+ <col align="left" valign="top">
1207
+ <tbody>
1208
+ <tr>
1209
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1210
+ <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>
1211
+ </td>
1212
+ </tr>
1213
+ <tr>
1214
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1215
+ <td>The type of <em class="parameter"><code>surface</code></em>.</td>
1216
+ </tr>
1217
+ </tbody>
1218
+ </table></div>
1219
+ <p class="since">Since 1.2</p>
1220
+ </div>
1221
+ <hr>
1222
+ <div class="refsect2">
1223
+ <a name="cairo-surface-get-reference-count"></a><h3>cairo_surface_get_reference_count ()</h3>
1224
+ <pre class="programlisting">unsigned <span class="returnvalue">int</span> cairo_surface_get_reference_count (<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>
1225
+ <p>
1226
+ Returns the current reference count of <em class="parameter"><code>surface</code></em>.
1227
+ </p>
1228
+ <div class="variablelist"><table border="0">
1229
+ <col align="left" valign="top">
1230
+ <tbody>
1231
+ <tr>
1232
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1233
+ <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>
1234
+ </td>
1235
+ </tr>
1236
+ <tr>
1237
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1238
+ <td>the current reference count of <em class="parameter"><code>surface</code></em>. If the
1239
+ object is a nil object, 0 will be returned.</td>
1240
+ </tr>
1241
+ </tbody>
1242
+ </table></div>
1243
+ <p class="since">Since 1.4</p>
1244
+ </div>
1245
+ <hr>
1246
+ <div class="refsect2">
1247
+ <a name="cairo-surface-set-user-data"></a><h3>cairo_surface_set_user_data ()</h3>
1248
+ <pre class="programlisting"><a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> cairo_surface_set_user_data (<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>,
1249
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>,
1250
+ <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
1251
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> destroy</code></em>);</pre>
1252
+ <p>
1253
+ Attach user data to <em class="parameter"><code>surface</code></em>. To remove user data from a surface,
1254
+ call this function with the key that was used to set it and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1255
+ for <em class="parameter"><code>data</code></em>.
1256
+ </p>
1257
+ <div class="variablelist"><table border="0">
1258
+ <col align="left" valign="top">
1259
+ <tbody>
1260
+ <tr>
1261
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1262
+ <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>
1263
+ </td>
1264
+ </tr>
1265
+ <tr>
1266
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
1267
+ <td>the address of a <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> to attach the user data to</td>
1268
+ </tr>
1269
+ <tr>
1270
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1271
+ <td>the user data to attach to the surface</td>
1272
+ </tr>
1273
+ <tr>
1274
+ <td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
1275
+ <td>a <a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
1276
+ surface is destroyed or when new user data is attached using the
1277
+ same key.</td>
1278
+ </tr>
1279
+ <tr>
1280
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1281
+ <td>
1282
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if a
1283
+ slot could not be allocated for the user data.</td>
1284
+ </tr>
1285
+ </tbody>
1286
+ </table></div>
1287
+ <p class="since">Since 1.0</p>
1288
+ </div>
1289
+ <hr>
1290
+ <div class="refsect2">
1291
+ <a name="cairo-surface-get-user-data"></a><h3>cairo_surface_get_user_data ()</h3>
1292
+ <pre class="programlisting"><span class="returnvalue">void</span> * cairo_surface_get_user_data (<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>,
1293
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>);</pre>
1294
+ <p>
1295
+ Return user data previously attached to <em class="parameter"><code>surface</code></em> using the specified
1296
+ key. If no user data has been attached with the given key this
1297
+ function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
1298
+ </p>
1299
+ <div class="variablelist"><table border="0">
1300
+ <col align="left" valign="top">
1301
+ <tbody>
1302
+ <tr>
1303
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1304
+ <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>
1305
+ </td>
1306
+ </tr>
1307
+ <tr>
1308
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
1309
+ <td>the address of the <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> the user data was
1310
+ attached to</td>
1311
+ </tr>
1312
+ <tr>
1313
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1314
+ <td>the user data previously attached or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
1315
+ </tr>
1316
+ </tbody>
1317
+ </table></div>
1318
+ <p class="since">Since 1.0</p>
1319
+ </div>
1320
+ <hr>
1321
+ <div class="refsect2">
1322
+ <a name="cairo-surface-copy-page"></a><h3>cairo_surface_copy_page ()</h3>
1323
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_copy_page (<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>
1324
+ <p>
1325
+ Emits the current page for backends that support multiple pages,
1326
+ but doesn't clear it, so that the contents of the current page will
1327
+ be retained for the next page. Use <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> if you
1328
+ want to get an empty page after the emission.
1329
+ </p>
1330
+ <p>
1331
+ There is a convenience function for this that takes a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>,
1332
+ namely <a class="link" href="cairo-cairo-t.html#cairo-copy-page" title="cairo_copy_page ()"><code class="function">cairo_copy_page()</code></a>.
1333
+ </p>
1334
+ <div class="variablelist"><table border="0">
1335
+ <col align="left" valign="top">
1336
+ <tbody><tr>
1337
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1338
+ <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>
1339
+ </td>
1340
+ </tr></tbody>
1341
+ </table></div>
1342
+ <p class="since">Since 1.6</p>
1343
+ </div>
1344
+ <hr>
1345
+ <div class="refsect2">
1346
+ <a name="cairo-surface-show-page"></a><h3>cairo_surface_show_page ()</h3>
1347
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_show_page (<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>
1348
+ <p>
1349
+ Emits and clears the current page for backends that support multiple
1350
+ pages. Use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-copy-page" title="cairo_surface_copy_page ()"><code class="function">cairo_surface_copy_page()</code></a> if you don't want to clear the page.
1351
+ </p>
1352
+ <p>
1353
+ There is a convenience function for this that takes a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>,
1354
+ namely <a class="link" href="cairo-cairo-t.html#cairo-show-page" title="cairo_show_page ()"><code class="function">cairo_show_page()</code></a>.
1355
+ </p>
1356
+ <div class="variablelist"><table border="0">
1357
+ <col align="left" valign="top">
1358
+ <tbody><tr>
1359
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1360
+ <td>a <span class="type">cairo_Surface_t</span>
1361
+ </td>
1362
+ </tr></tbody>
1363
+ </table></div>
1364
+ <p class="since">Since 1.6</p>
1365
+ </div>
1366
+ <hr>
1367
+ <div class="refsect2">
1368
+ <a name="cairo-surface-has-show-text-glyphs"></a><h3>cairo_surface_has_show_text_glyphs ()</h3>
1369
+ <pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> cairo_surface_has_show_text_glyphs (<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>
1370
+ <p>
1371
+ Returns whether the surface supports
1372
+ sophisticated <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> operations. That is,
1373
+ whether it actually uses the provided text and cluster data
1374
+ to a <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> call.
1375
+ </p>
1376
+ <p>
1377
+ Note: Even if this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>, a
1378
+ <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> operation targeted at <em class="parameter"><code>surface</code></em> will
1379
+ still succeed. It just will
1380
+ act like a <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> operation. Users can use this
1381
+ function to avoid computing UTF-8 text and cluster mapping if the
1382
+ target surface does not use it.
1383
+ </p>
1384
+ <div class="variablelist"><table border="0">
1385
+ <col align="left" valign="top">
1386
+ <tbody>
1387
+ <tr>
1388
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1389
+ <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>
1390
+ </td>
1391
+ </tr>
1392
+ <tr>
1393
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1394
+ <td>
1395
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>surface</code></em> supports
1396
+ <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a>, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
1397
+ </tr>
1398
+ </tbody>
1399
+ </table></div>
1400
+ <p class="since">Since 1.8</p>
1401
+ </div>
1402
+ <hr>
1403
+ <div class="refsect2">
1404
+ <a name="cairo-surface-set-mime-data"></a><h3>cairo_surface_set_mime_data ()</h3>
1405
+ <pre class="programlisting"><a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> cairo_surface_set_mime_data (<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>,
1406
+ <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
1407
+ <em class="parameter"><code>const unsigned <span class="type">char</span> *data</code></em>,
1408
+ <em class="parameter"><code><span class="type">unsigned long </span> length</code></em>,
1409
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> destroy</code></em>,
1410
+ <em class="parameter"><code><span class="type">void</span> *closure</code></em>);</pre>
1411
+ <p>
1412
+ Attach an image in the format <em class="parameter"><code>mime_type</code></em> to <em class="parameter"><code>surface</code></em>. To remove
1413
+ the data from a surface, call this function with same mime type
1414
+ and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for <em class="parameter"><code>data</code></em>.
1415
+ </p>
1416
+ <p>
1417
+ The attached image (or filename) data can later be used by backends
1418
+ which support it (currently: PDF, PS, SVG and Win32 Printing
1419
+ surfaces) to emit this data instead of making a snapshot of the
1420
+ <em class="parameter"><code>surface</code></em>. This approach tends to be faster and requires less
1421
+ memory and disk space.
1422
+ </p>
1423
+ <p>
1424
+ The recognized MIME types are the following: <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>,
1425
+ <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-PNG:CAPS" title="CAIRO_MIME_TYPE_PNG"><code class="literal">CAIRO_MIME_TYPE_PNG</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JP2:CAPS" title="CAIRO_MIME_TYPE_JP2"><code class="literal">CAIRO_MIME_TYPE_JP2</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a>,
1426
+ <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-UNIQUE-ID:CAPS" title="CAIRO_MIME_TYPE_UNIQUE_ID"><code class="literal">CAIRO_MIME_TYPE_UNIQUE_ID</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2:CAPS" title="CAIRO_MIME_TYPE_JBIG2"><code class="literal">CAIRO_MIME_TYPE_JBIG2</code></a>,
1427
+ <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JBIG2-GLOBAL-ID:CAPS" title="CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID"><code class="literal">CAIRO_MIME_TYPE_JBIG2_GLOBAL_ID</code></a>.
1428
+ </p>
1429
+ <p>
1430
+ See corresponding backend surface docs for details about which MIME
1431
+ types it can handle. Caution: the associated MIME data will be
1432
+ discarded if you draw on the surface afterwards. Use this function
1433
+ with care.
1434
+ </p>
1435
+ <p>
1436
+ Even if a backend supports a MIME type, that does not mean cairo
1437
+ will always be able to use the attached MIME data. For example, if
1438
+ the backend does not natively support the compositing operation used
1439
+ to apply the MIME data to the backend. In that case, the MIME data
1440
+ will be ignored. Therefore, to apply an image in all cases, it is best
1441
+ to create an image surface which contains the decoded image data and
1442
+ then attach the MIME data to that. This ensures the image will always
1443
+ be used while still allowing the MIME data to be used whenever
1444
+ possible.
1445
+ </p>
1446
+ <div class="variablelist"><table border="0">
1447
+ <col align="left" valign="top">
1448
+ <tbody>
1449
+ <tr>
1450
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1451
+ <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>
1452
+ </td>
1453
+ </tr>
1454
+ <tr>
1455
+ <td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
1456
+ <td>the MIME type of the image data</td>
1457
+ </tr>
1458
+ <tr>
1459
+ <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1460
+ <td>the image data to attach to the surface</td>
1461
+ </tr>
1462
+ <tr>
1463
+ <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1464
+ <td>the length of the image data</td>
1465
+ </tr>
1466
+ <tr>
1467
+ <td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
1468
+ <td>a <a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
1469
+ surface is destroyed or when new image data is attached using the
1470
+ same mime type.</td>
1471
+ </tr>
1472
+ <tr>
1473
+ <td><p><span class="term"><em class="parameter"><code>closure</code></em> :</span></p></td>
1474
+ <td>the data to be passed to the <em class="parameter"><code>destroy</code></em> notifier</td>
1475
+ </tr>
1476
+ <tr>
1477
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1478
+ <td>
1479
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if a
1480
+ slot could not be allocated for the user data.</td>
1481
+ </tr>
1482
+ </tbody>
1483
+ </table></div>
1484
+ <p class="since">Since 1.10</p>
1485
+ </div>
1486
+ <hr>
1487
+ <div class="refsect2">
1488
+ <a name="cairo-surface-get-mime-data"></a><h3>cairo_surface_get_mime_data ()</h3>
1489
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_get_mime_data (<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>,
1490
+ <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>,
1491
+ <em class="parameter"><code>const unsigned <span class="type">char</span> **data</code></em>,
1492
+ <em class="parameter"><code>unsigned <span class="type">long</span> *length</code></em>);</pre>
1493
+ <p>
1494
+ Return mime data previously attached to <em class="parameter"><code>surface</code></em> using the
1495
+ specified mime type. If no data has been attached with the given
1496
+ mime type, <em class="parameter"><code>data</code></em> is set <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
1497
+ </p>
1498
+ <div class="variablelist"><table border="0">
1499
+ <col align="left" valign="top">
1500
+ <tbody>
1501
+ <tr>
1502
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1503
+ <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>
1504
+ </td>
1505
+ </tr>
1506
+ <tr>
1507
+ <td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
1508
+ <td>the mime type of the image data</td>
1509
+ </tr>
1510
+ <tr>
1511
+ <td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
1512
+ <td>the image data to attached to the surface</td>
1513
+ </tr>
1514
+ <tr>
1515
+ <td><p><span class="term"><em class="parameter"><code>length</code></em> :</span></p></td>
1516
+ <td>the length of the image data</td>
1517
+ </tr>
1518
+ </tbody>
1519
+ </table></div>
1520
+ <p class="since">Since 1.10</p>
1521
+ </div>
1522
+ <hr>
1523
+ <div class="refsect2">
1524
+ <a name="cairo-surface-supports-mime-type"></a><h3>cairo_surface_supports_mime_type ()</h3>
1525
+ <pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> cairo_surface_supports_mime_type (<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>,
1526
+ <em class="parameter"><code>const <span class="type">char</span> *mime_type</code></em>);</pre>
1527
+ <p>
1528
+ Return whether <em class="parameter"><code>surface</code></em> supports <em class="parameter"><code>mime_type</code></em>.
1529
+ </p>
1530
+ <div class="variablelist"><table border="0">
1531
+ <col align="left" valign="top">
1532
+ <tbody>
1533
+ <tr>
1534
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1535
+ <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>
1536
+ </td>
1537
+ </tr>
1538
+ <tr>
1539
+ <td><p><span class="term"><em class="parameter"><code>mime_type</code></em> :</span></p></td>
1540
+ <td>the mime type</td>
1541
+ </tr>
1542
+ <tr>
1543
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1544
+ <td>
1545
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>surface</code></em> supports
1546
+ <em class="parameter"><code>mime_type</code></em>, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise</td>
1547
+ </tr>
1548
+ </tbody>
1549
+ </table></div>
1550
+ <p class="since">Since 1.12</p>
1551
+ </div>
1552
+ <hr>
1553
+ <div class="refsect2">
1554
+ <a name="cairo-surface-map-to-image"></a><h3>cairo_surface_map_to_image ()</h3>
1555
+ <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_surface_map_to_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>,
1556
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *extents</code></em>);</pre>
1557
+ <p>
1558
+ Returns an image surface that is the most efficient mechanism for
1559
+ modifying the backing store of the target surface. The region retrieved
1560
+ may be limited to the <em class="parameter"><code>extents</code></em> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> for the whole surface
1561
+ </p>
1562
+ <p>
1563
+ Note, the use of the original surface as a target or source whilst
1564
+ it is mapped is undefined. The result of mapping the surface
1565
+ multiple times is undefined. Calling <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> or
1566
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-finish" title="cairo_surface_finish ()"><code class="function">cairo_surface_finish()</code></a> on the resulting image surface results in
1567
+ undefined behavior. Changing the device transform of the image
1568
+ surface or of <em class="parameter"><code>surface</code></em> before the image surface is unmapped results
1569
+ in undefined behavior.
1570
+ </p>
1571
+ <div class="variablelist"><table border="0">
1572
+ <col align="left" valign="top">
1573
+ <tbody>
1574
+ <tr>
1575
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1576
+ <td>an existing surface used to extract the image from</td>
1577
+ </tr>
1578
+ <tr>
1579
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
1580
+ <td>limit the extraction to an rectangular region</td>
1581
+ </tr>
1582
+ <tr>
1583
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1584
+ <td>a pointer to the newly allocated image surface. The caller
1585
+ must use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-unmap-image" title="cairo_surface_unmap_image ()"><code class="function">cairo_surface_unmap_image()</code></a> to destroy this image surface.
1586
+ This function always returns a valid pointer, but it will return a
1587
+ pointer to a "nil" surface if <em class="parameter"><code>other</code></em> is already in an error state
1588
+ or any other error occurs. If the returned pointer does not have an
1589
+ error status, it is guaranteed to be an image surface whose format
1590
+ is not <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-INVALID:CAPS"><code class="literal">CAIRO_FORMAT_INVALID</code></a>.</td>
1591
+ </tr>
1592
+ </tbody>
1593
+ </table></div>
1594
+ <p class="since">Since 1.12</p>
1595
+ </div>
1596
+ <hr>
1597
+ <div class="refsect2">
1598
+ <a name="cairo-surface-unmap-image"></a><h3>cairo_surface_unmap_image ()</h3>
1599
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_surface_unmap_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>,
1600
+ <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> *image</code></em>);</pre>
1601
+ <p>
1602
+ Unmaps the image surface as returned from #<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-map-to-image" title="cairo_surface_map_to_image ()"><code class="function">cairo_surface_map_to_image()</code></a>.
1603
+ </p>
1604
+ <p>
1605
+ The content of the image will be uploaded to the target surface.
1606
+ Afterwards, the image is destroyed.
1607
+ </p>
1608
+ <p>
1609
+ Using an image surface which wasn't returned by <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-map-to-image" title="cairo_surface_map_to_image ()"><code class="function">cairo_surface_map_to_image()</code></a>
1610
+ results in undefined behavior.
1611
+ </p>
1612
+ <div class="variablelist"><table border="0">
1613
+ <col align="left" valign="top">
1614
+ <tbody>
1615
+ <tr>
1616
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
1617
+ <td>the surface passed to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-map-to-image" title="cairo_surface_map_to_image ()"><code class="function">cairo_surface_map_to_image()</code></a>.</td>
1618
+ </tr>
1619
+ <tr>
1620
+ <td><p><span class="term"><em class="parameter"><code>image</code></em> :</span></p></td>
1621
+ <td>the currently mapped image</td>
1622
+ </tr>
1623
+ </tbody>
1624
+ </table></div>
1625
+ <p class="since">Since 1.12</p>
1626
+ </div>
1627
+ </div>
1628
+ <div class="refsect1">
1629
+ <a name="cairo-cairo-surface-t.see-also"></a><h2>See Also</h2>
1630
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>, <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1631
+ </div>
1632
+ </div>
1633
+ <div class="footer">
1634
+ <hr>
1635
+ Generated by GTK-Doc V1.18</div>
1636
+ </body>
1637
+ </html>