cairo 1.12.9-x86-mingw32 → 1.14.0-x86-mingw32

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

Potentially problematic release.


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

Files changed (317) hide show
  1. checksums.yaml +4 -4
  2. data/NEWS +27 -0
  3. data/README.rdoc +7 -7
  4. data/Rakefile +72 -23
  5. data/ext/cairo/extconf.rb +3 -3
  6. data/ext/cairo/rb_cairo.h +3 -3
  7. data/ext/cairo/rb_cairo_constants.c +8 -0
  8. data/ext/cairo/rb_cairo_context.c +63 -1
  9. data/ext/cairo/rb_cairo_exception.c +17 -0
  10. data/ext/cairo/rb_cairo_font_face.c +13 -0
  11. data/ext/cairo/rb_cairo_private.c +14 -1
  12. data/ext/cairo/rb_cairo_private.h +12 -1
  13. data/ext/cairo/rb_cairo_surface.c +47 -23
  14. data/lib/2.0/cairo.so +0 -0
  15. data/lib/2.1/cairo.so +0 -0
  16. data/lib/2.2/cairo.so +0 -0
  17. data/lib/cairo/surface.rb +3 -1
  18. data/test/cairo-test-utils.rb +5 -0
  19. data/test/test_constants.rb +11 -0
  20. data/test/test_context.rb +1 -1
  21. data/test/test_exception.rb +9 -0
  22. data/test/test_font_face.rb +1 -1
  23. data/test/test_quartz_image_surface.rb +13 -0
  24. data/test/test_surface.rb +10 -0
  25. data/vendor/local/bin/fc-cache.exe +0 -0
  26. data/vendor/local/bin/fc-cat.exe +0 -0
  27. data/vendor/local/bin/fc-list.exe +0 -0
  28. data/vendor/local/bin/fc-match.exe +0 -0
  29. data/vendor/local/bin/fc-pattern.exe +0 -0
  30. data/vendor/local/bin/fc-query.exe +0 -0
  31. data/vendor/local/bin/fc-scan.exe +0 -0
  32. data/vendor/local/bin/fc-validate.exe +0 -0
  33. data/vendor/local/bin/freetype-config +6 -6
  34. data/vendor/local/bin/libcairo-2.dll +0 -0
  35. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  36. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  37. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  38. data/vendor/local/bin/libfreetype-6.dll +0 -0
  39. data/vendor/local/bin/libgcc_s_sjlj-1.dll +0 -0
  40. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  41. data/vendor/local/bin/libpng-config +2 -2
  42. data/vendor/local/bin/libpng16-16.dll +0 -0
  43. data/vendor/local/bin/libpng16-config +2 -2
  44. data/vendor/local/bin/libstdc++-6.dll +0 -0
  45. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  46. data/vendor/local/bin/libxml2-2.dll +0 -0
  47. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  48. data/vendor/local/bin/pngfix.exe +0 -0
  49. data/vendor/local/bin/xml2-config +2 -2
  50. data/vendor/local/bin/xmlcatalog.exe +0 -0
  51. data/vendor/local/bin/xmllint.exe +0 -0
  52. data/vendor/local/bin/zlib1.dll +0 -0
  53. data/vendor/local/include/cairo/cairo-version.h +2 -2
  54. data/vendor/local/include/cairo/cairo.h +36 -0
  55. data/vendor/local/include/libpng16/png.h +38 -24
  56. data/vendor/local/include/libpng16/pngconf.h +3 -3
  57. data/vendor/local/include/libpng16/pnglibconf.h +2 -3
  58. data/vendor/local/include/libxml2/libxml/SAX2.h +4 -2
  59. data/vendor/local/include/libxml2/libxml/entities.h +3 -3
  60. data/vendor/local/include/libxml2/libxml/globals.h +12 -5
  61. data/vendor/local/include/libxml2/libxml/relaxng.h +6 -2
  62. data/vendor/local/include/libxml2/libxml/tree.h +49 -42
  63. data/vendor/local/include/libxml2/libxml/xmlIO.h +1 -1
  64. data/vendor/local/include/libxml2/libxml/xmlerror.h +1 -1
  65. data/vendor/local/include/libxml2/libxml/xmlversion.h +4 -4
  66. data/vendor/local/include/pixman-1/pixman-version.h +2 -2
  67. data/vendor/local/include/png.h +38 -24
  68. data/vendor/local/include/pngconf.h +3 -3
  69. data/vendor/local/include/pnglibconf.h +2 -3
  70. data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
  71. data/vendor/local/lib/libcairo-gobject.a +0 -0
  72. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  73. data/vendor/local/lib/libcairo-gobject.la +6 -6
  74. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  75. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  76. data/vendor/local/lib/libcairo-script-interpreter.la +6 -6
  77. data/vendor/local/lib/libcairo.a +0 -0
  78. data/vendor/local/lib/libcairo.dll.a +0 -0
  79. data/vendor/local/lib/libcairo.la +6 -6
  80. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  81. data/vendor/local/lib/libfontconfig.la +2 -2
  82. data/vendor/local/lib/libfreetype.a +0 -0
  83. data/vendor/local/lib/libfreetype.dll.a +0 -0
  84. data/vendor/local/lib/libfreetype.la +2 -2
  85. data/vendor/local/lib/libpixman-1.a +0 -0
  86. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  87. data/vendor/local/lib/libpixman-1.la +3 -3
  88. data/vendor/local/lib/libpng.a +0 -0
  89. data/vendor/local/lib/libpng.dll.a +0 -0
  90. data/vendor/local/lib/libpng.la +4 -4
  91. data/vendor/local/lib/libpng16.a +0 -0
  92. data/vendor/local/lib/libpng16.dll.a +0 -0
  93. data/vendor/local/lib/libpng16.la +4 -4
  94. data/vendor/local/lib/libxml2.a +0 -0
  95. data/vendor/local/lib/libxml2.dll.a +0 -0
  96. data/vendor/local/lib/libxml2.la +3 -3
  97. data/vendor/local/lib/libz.a +0 -0
  98. data/vendor/local/lib/libz.dll.a +0 -0
  99. data/vendor/local/lib/pkgconfig/cairo-fc.pc +2 -2
  100. data/vendor/local/lib/pkgconfig/cairo-ft.pc +2 -2
  101. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +3 -3
  102. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +2 -2
  103. data/vendor/local/lib/pkgconfig/cairo-png.pc +2 -2
  104. data/vendor/local/lib/pkgconfig/cairo-ps.pc +2 -2
  105. data/vendor/local/lib/pkgconfig/cairo-script.pc +2 -2
  106. data/vendor/local/lib/pkgconfig/cairo-svg.pc +2 -2
  107. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +2 -2
  108. data/vendor/local/lib/pkgconfig/cairo-win32.pc +2 -2
  109. data/vendor/local/lib/pkgconfig/cairo.pc +3 -3
  110. data/vendor/local/lib/pkgconfig/fontconfig.pc +3 -3
  111. data/vendor/local/lib/pkgconfig/freetype2.pc +4 -4
  112. data/vendor/local/lib/pkgconfig/libpng.pc +2 -2
  113. data/vendor/local/lib/pkgconfig/libpng16.pc +2 -2
  114. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +3 -3
  115. data/vendor/local/lib/pkgconfig/pixman-1.pc +2 -2
  116. data/vendor/local/lib/pkgconfig/zlib.pc +3 -3
  117. data/vendor/local/lib/xml2Conf.sh +3 -3
  118. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/Copyright +0 -0
  119. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testHTML.c +0 -0
  120. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testSAX.c +0 -0
  121. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/testXPath.c +0 -0
  122. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/examples/xmllint.c +35 -10
  123. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/DOM.gif +0 -0
  124. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/FAQ.html +34 -17
  125. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-180x168.gif +0 -0
  126. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/Libxml2-Logo-90x34.gif +0 -0
  127. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/encoding.html +20 -10
  128. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xml +0 -0
  129. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/examples.xsl +0 -0
  130. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/book1.html +0 -0
  131. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/home.png +0 -0
  132. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/index.html +0 -0
  133. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/left.png +0 -0
  134. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-DOCBparser.html +0 -0
  135. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLparser.html +0 -0
  136. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-HTMLtree.html +0 -0
  137. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX.html +0 -0
  138. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-SAX2.html +0 -0
  139. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-c14n.html +0 -0
  140. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-catalog.html +0 -0
  141. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-chvalid.html +0 -0
  142. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-debugXML.html +0 -0
  143. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-dict.html +0 -0
  144. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-encoding.html +0 -0
  145. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-entities.html +4 -4
  146. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-globals.html +0 -0
  147. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-hash.html +0 -0
  148. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-lib.html +0 -0
  149. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-list.html +0 -0
  150. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanoftp.html +0 -0
  151. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-nanohttp.html +0 -0
  152. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parser.html +0 -0
  153. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-parserInternals.html +0 -0
  154. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-pattern.html +0 -0
  155. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-relaxng.html +0 -0
  156. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schemasInternals.html +0 -0
  157. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-schematron.html +0 -0
  158. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-threads.html +0 -0
  159. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-tree.html +72 -72
  160. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-uri.html +0 -0
  161. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-valid.html +0 -0
  162. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xinclude.html +0 -0
  163. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xlink.html +0 -0
  164. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlIO.html +0 -0
  165. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlautomata.html +0 -0
  166. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlerror.html +1 -1
  167. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlexports.html +0 -0
  168. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmemory.html +0 -0
  169. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlmodule.html +0 -0
  170. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlreader.html +0 -0
  171. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlregexp.html +0 -0
  172. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlsave.html +0 -0
  173. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemas.html +0 -0
  174. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlschemastypes.html +2 -2
  175. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlstring.html +0 -0
  176. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlunicode.html +0 -0
  177. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlversion.html +0 -0
  178. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xmlwriter.html +0 -0
  179. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpath.html +0 -0
  180. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpathInternals.html +0 -0
  181. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xpointer.html +0 -0
  182. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/libxml-xzlib.html +0 -0
  183. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/right.png +0 -0
  184. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/html/up.png +0 -0
  185. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/index.html +0 -0
  186. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.c +0 -0
  187. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io1.res +0 -0
  188. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.c +0 -0
  189. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/io2.res +0 -0
  190. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/libxml.gif +0 -0
  191. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse1.c +0 -0
  192. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse2.c +0 -0
  193. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse3.c +0 -0
  194. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/parse4.c +0 -0
  195. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.c +0 -0
  196. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader1.res +0 -0
  197. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader2.c +0 -0
  198. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.c +0 -0
  199. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader3.res +0 -0
  200. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.c +0 -0
  201. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/reader4.res +0 -0
  202. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/redhat.gif +0 -0
  203. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/smallfootonly.gif +0 -0
  204. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/structure.gif +0 -0
  205. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test1.xml +0 -0
  206. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test2.xml +0 -0
  207. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/test3.xml +0 -0
  208. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/testWriter.c +0 -0
  209. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.c +0 -0
  210. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree1.res +0 -0
  211. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.c +0 -0
  212. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tree2.res +0 -0
  213. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tst.xml +0 -0
  214. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apa.html +0 -0
  215. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apb.html +0 -0
  216. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apc.html +0 -0
  217. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apd.html +0 -0
  218. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ape.html +0 -0
  219. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apf.html +0 -0
  220. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/apg.html +0 -0
  221. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/aph.html +0 -0
  222. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/api.html +0 -0
  223. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s02.html +0 -0
  224. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s03.html +0 -0
  225. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s04.html +0 -0
  226. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s05.html +0 -0
  227. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s06.html +0 -0
  228. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s07.html +0 -0
  229. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s08.html +0 -0
  230. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ar01s09.html +0 -0
  231. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/blank.png +0 -0
  232. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/1.png +0 -0
  233. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/10.png +0 -0
  234. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/2.png +0 -0
  235. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/3.png +0 -0
  236. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/4.png +0 -0
  237. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/5.png +0 -0
  238. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/6.png +0 -0
  239. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/7.png +0 -0
  240. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/8.png +0 -0
  241. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/callouts/9.png +0 -0
  242. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/caution.png +0 -0
  243. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/draft.png +0 -0
  244. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/home.png +0 -0
  245. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/important.png +0 -0
  246. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/next.png +0 -0
  247. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/note.png +0 -0
  248. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/prev.png +0 -0
  249. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/tip.png +0 -0
  250. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-blank.png +0 -0
  251. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-minus.png +0 -0
  252. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/toc-plus.png +0 -0
  253. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/up.png +0 -0
  254. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/images/warning.png +0 -0
  255. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddattribute.c +0 -0
  256. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeaddkeyword.c +0 -0
  257. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includeconvert.c +0 -0
  258. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includegetattribute.c +0 -0
  259. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includekeyword.c +0 -0
  260. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/includexpath.c +0 -0
  261. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/index.html +0 -0
  262. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/ix01.html +0 -0
  263. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/tutorial/xmltutorial.pdf +0 -0
  264. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/w3c.png +0 -0
  265. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/writer.xml +0 -0
  266. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xml.html +284 -4
  267. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.c +0 -0
  268. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath1.res +0 -0
  269. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.c +0 -0
  270. data/vendor/local/share/doc/{libxml2-2.9.1 → libxml2-2.9.2}/html/xpath2.res +0 -0
  271. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +11 -3
  272. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +12 -29
  273. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +11 -27
  274. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +22 -3
  275. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +43 -100
  276. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +26 -51
  277. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +4 -13
  278. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +10 -23
  279. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +8 -8
  280. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +3 -3
  281. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +7 -17
  282. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +14 -14
  283. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
  284. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +1 -1
  285. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +5 -5
  286. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +2 -2
  287. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +1 -1
  288. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +86 -49
  289. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +4 -4
  290. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +2 -2
  291. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +71 -119
  292. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +72 -159
  293. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +146 -58
  294. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +22 -46
  295. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +3 -1
  296. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +11 -11
  297. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +25 -0
  298. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  299. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +9 -0
  300. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +47 -0
  301. data/vendor/local/share/gtk-doc/html/cairo/index.html +4 -1
  302. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +26 -0
  303. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  304. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  305. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  306. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +4 -4
  307. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +73 -73
  308. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +1 -1
  309. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +2 -2
  310. data/vendor/local/share/license/cairo/AUTHORS +5 -1
  311. data/vendor/local/share/license/cairo/README +20 -10
  312. data/vendor/local/share/license/libpng/README +20 -7
  313. data/vendor/local/share/man/man1/xmllint.1 +2 -5
  314. data/vendor/local/share/man/man3/libpng.3 +92 -220
  315. data/vendor/local/share/man/man3/libpngpf.3 +2 -2
  316. data/vendor/local/share/man/man5/png.5 +1 -1
  317. metadata +254 -248
@@ -157,7 +157,7 @@ and can be used with functions such as <a class="link" href="cairo-Win32-Fonts.h
157
157
  <tr>
158
158
  <td><p><span class="term"><em class="parameter"><code>logfont</code></em> :</span></p></td>
159
159
  <td>A <span class="type">LOGFONTW</span> structure specifying the font to use.
160
- If <em class="parameter"><code>font</code></em> is <code class="literal">NULL</code> then the lfHeight, lfWidth, lfOrientation and lfEscapement
160
+ If <em class="parameter"><code>font</code></em> is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> then the lfHeight, lfWidth, lfOrientation and lfEscapement
161
161
  fields of this structure are ignored. Otherwise lfWidth, lfOrientation and
162
162
  lfEscapement must be zero.</td>
163
163
  </tr>
@@ -215,8 +215,8 @@ associated methods must be used for correct output.
215
215
  <a name="cairo-win32-surface-get-dc"></a><h3>cairo_win32_surface_get_dc ()</h3>
216
216
  <pre class="programlisting"><span class="returnvalue">HDC</span> cairo_win32_surface_get_dc (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
217
217
  <p>
218
- Returns the HDC associated with this surface, or <code class="literal">NULL</code> if none.
219
- Also returns <code class="literal">NULL</code> if the surface is not a win32 surface.
218
+ Returns the HDC associated with this surface, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none.
219
+ Also returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the surface is not a win32 surface.
220
220
  </p>
221
221
  <p>
222
222
  A call to <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-flush" title="cairo_surface_flush ()"><code class="function">cairo_surface_flush()</code></a> is required before using the HDC to
@@ -235,7 +235,7 @@ the content of the HDC has been modified.
235
235
  </tr>
236
236
  <tr>
237
237
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
238
- <td>HDC or <code class="literal">NULL</code> if no HDC available.</td>
238
+ <td>HDC or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if no HDC available.</td>
239
239
  </tr>
240
240
  </tbody>
241
241
  </table></div>
@@ -248,7 +248,7 @@ the content of the HDC has been modified.
248
248
  <p>
249
249
  Returns a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> image surface that refers to the same bits
250
250
  as the DIB of the Win32 surface. If the passed-in win32 surface
251
- is not a DIB surface, <code class="literal">NULL</code> is returned.
251
+ is not a DIB surface, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> is returned.
252
252
  </p>
253
253
  <div class="variablelist"><table border="0">
254
254
  <col align="left" valign="top">
@@ -261,7 +261,7 @@ is not a DIB surface, <code class="literal">NULL</code> is returned.
261
261
  <tr>
262
262
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
263
263
  <td>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> (owned by the win32 <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>),
264
- or <code class="literal">NULL</code> if the win32 surface is not a DIB.</td>
264
+ or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if the win32 surface is not a DIB.</td>
265
265
  </tr>
266
266
  </tbody>
267
267
  </table></div>
@@ -363,7 +363,7 @@ constructor.
363
363
  </tr>
364
364
  <tr>
365
365
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
366
- <td>the Visual or <code class="literal">NULL</code> if there is no appropriate Visual for
366
+ <td>the Visual or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if there is no appropriate Visual for
367
367
  <em class="parameter"><code>surface</code></em>.</td>
368
368
  </tr>
369
369
  </tbody>
@@ -449,7 +449,7 @@ Get the number of bits used to represent each pixel value.
449
449
  <p>
450
450
  Restricts all future Xlib surfaces for this devices to the specified version
451
451
  of the RENDER extension. This function exists solely for debugging purpose.
452
- It let's you find out how cairo would behave with an older version of
452
+ It lets you find out how cairo would behave with an older version of
453
453
  the RENDER extension.
454
454
  </p>
455
455
  <p>
@@ -150,7 +150,7 @@ value is the format passed to that constructor.
150
150
  <tr>
151
151
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
152
152
  <td>the XRenderPictFormat* associated with <em class="parameter"><code>surface</code></em>,
153
- or <code class="literal">NULL</code> if the surface is not an xlib surface
153
+ 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 is not an xlib surface
154
154
  or if the X Render extension is not available.</td>
155
155
  </tr>
156
156
  </tbody>
@@ -54,6 +54,17 @@ unsigned <span class="returnvalue">int</span> <a class="link" href="cairo
54
54
  <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>);
55
55
  <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-device-t.html#cairo-device-acquire" title="cairo_device_acquire ()">cairo_device_acquire</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
56
56
  <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-release" title="cairo_device_release ()">cairo_device_release</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
57
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-observer-elapsed" title="cairo_device_observer_elapsed ()">cairo_device_observer_elapsed</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
58
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-observer-fill-elapsed" title="cairo_device_observer_fill_elapsed ()">cairo_device_observer_fill_elapsed</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
59
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-observer-glyphs-elapsed" title="cairo_device_observer_glyphs_elapsed ()">cairo_device_observer_glyphs_elapsed</a>
60
+ (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
61
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-observer-mask-elapsed" title="cairo_device_observer_mask_elapsed ()">cairo_device_observer_mask_elapsed</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
62
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-observer-paint-elapsed" title="cairo_device_observer_paint_elapsed ()">cairo_device_observer_paint_elapsed</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
63
+ <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-device-t.html#cairo-device-observer-print" title="cairo_device_observer_print ()">cairo_device_observer_print</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>,
64
+ <em class="parameter"><code><a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> write_func</code></em>,
65
+ <em class="parameter"><code><span class="type">void</span> *closure</code></em>);
66
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-device-t.html#cairo-device-observer-stroke-elapsed" title="cairo_device_observer_stroke_elapsed ()">cairo_device_observer_stroke_elapsed</a>
67
+ (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);
57
68
  </pre>
58
69
  </div>
59
70
  <div class="refsect1">
@@ -85,55 +96,28 @@ be used by applications.
85
96
  Putting this all together, a function that works with devices should
86
97
  look something like this:
87
98
  </p>
88
- <div class="informalexample">
89
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
90
- <tbody>
91
- <tr>
92
- <td class="listing_lines" align="right"><pre>1
93
- 2
94
- 3
95
- 4
96
- 5
97
- 6
98
- 7
99
- 8
100
- 9
101
- 10
102
- 11
103
- 12
104
- 13
105
- 14
106
- 15
107
- 16
108
- 17
109
- 18
110
- 19
111
- 20</pre></td>
112
- <td class="listing_code"><pre class="programlisting"><span class="gtkdoc kwb">void</span>
113
- <span class="function">my_device_modifying_function</span> <span class="gtkdoc opt">(</span>cairo_device_t <span class="gtkdoc opt">*</span>device<span class="gtkdoc opt">)</span>
114
- <span class="gtkdoc opt">{</span>
115
- cairo_status_t status<span class="gtkdoc opt">;</span>
99
+ <div class="informalexample"><pre class="programlisting">
100
+ void
101
+ my_device_modifying_function (cairo_device_t *device)
102
+ {
103
+ cairo_status_t status;
116
104
 
117
- <span class="gtkdoc slc">// Ensure the device is properly reset</span>
118
- <span class="function"><a href="../cairo/cairo-cairo-device-t.html#cairo-device-flush">cairo_device_flush</a></span> <span class="gtkdoc opt">(</span>device<span class="gtkdoc opt">);</span>
119
- <span class="gtkdoc slc">// Try to acquire the device</span>
120
- status <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-cairo-device-t.html#cairo-device-acquire">cairo_device_acquire</a></span> <span class="gtkdoc opt">(</span>device<span class="gtkdoc opt">);</span>
121
- <span class="keyword">if</span> <span class="gtkdoc opt">(</span>status <span class="gtkdoc opt">!=</span> CAIRO_STATUS_SUCCESS<span class="gtkdoc opt">) {</span>
122
- <span class="function">printf</span> <span class="gtkdoc opt">(</span><span class="string">&quot;Failed to acquire the device: %s</span><span class="gtkdoc esc">\n</span><span class="string">&quot;</span><span class="gtkdoc opt">,</span> <span class="function"><a href="../cairo/cairo-Error-handling.html#cairo-status-to-string">cairo_status_to_string</a></span> <span class="gtkdoc opt">(</span>status<span class="gtkdoc opt">));</span>
123
- <span class="keyword">return</span><span class="gtkdoc opt">;</span>
124
- <span class="gtkdoc opt">}</span>
105
+ // Ensure the device is properly reset
106
+ cairo_device_flush (device);
107
+ // Try to acquire the device
108
+ status = cairo_device_acquire (device);
109
+ if (status != CAIRO_STATUS_SUCCESS) {
110
+ printf ("Failed to acquire the device: %s\n", cairo_status_to_string (status));
111
+ return;
112
+ }
125
113
 
126
- <span class="gtkdoc slc">// Do the custom operations on the device here.</span>
127
- <span class="gtkdoc slc">// But do not call any Cairo functions that might acquire devices.</span>
114
+ // Do the custom operations on the device here.
115
+ // But do not call any Cairo functions that might acquire devices.
128
116
 
129
- <span class="gtkdoc slc">// Release the device when done.</span>
130
- <span class="function"><a href="../cairo/cairo-cairo-device-t.html#cairo-device-release">cairo_device_release</a></span> <span class="gtkdoc opt">(</span>device<span class="gtkdoc opt">);</span>
131
- <span class="gtkdoc opt">}</span></pre></td>
132
- </tr>
133
- </tbody>
134
- </table>
135
- </div>
136
-
117
+ // Release the device when done.
118
+ cairo_device_release (device);
119
+ }
120
+ </pre></div>
137
121
  <p>
138
122
  </p>
139
123
  <p>
@@ -449,7 +433,7 @@ object is a nil object, 0 will be returned.</td>
449
433
  <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>
450
434
  <p>
451
435
  Attach user data to <em class="parameter"><code>device</code></em>. To remove user data from a surface,
452
- call this function with the key that was used to set it and <code class="literal">NULL</code>
436
+ 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>
453
437
  for <em class="parameter"><code>data</code></em>.
454
438
  </p>
455
439
  <div class="variablelist"><table border="0">
@@ -493,7 +477,7 @@ slot could not be allocated for the user data.</td>
493
477
  <p>
494
478
  Return user data previously attached to <em class="parameter"><code>device</code></em> using the
495
479
  specified key. If no user data has been attached with the given
496
- key this function returns <code class="literal">NULL</code>.
480
+ key this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
497
481
  </p>
498
482
  <div class="variablelist"><table border="0">
499
483
  <col align="left" valign="top">
@@ -510,7 +494,7 @@ attached to</td>
510
494
  </tr>
511
495
  <tr>
512
496
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
513
- <td>the user data previously attached or <code class="literal">NULL</code>.</td>
497
+ <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>
514
498
  </tr>
515
499
  </tbody>
516
500
  </table></div>
@@ -586,6 +570,59 @@ that function for details.
586
570
  </table></div>
587
571
  <p class="since">Since 1.10</p>
588
572
  </div>
573
+ <hr>
574
+ <div class="refsect2">
575
+ <a name="cairo-device-observer-elapsed"></a><h3>cairo_device_observer_elapsed ()</h3>
576
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_device_observer_elapsed (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
577
+ <p>
578
+ </p>
579
+ </div>
580
+ <hr>
581
+ <div class="refsect2">
582
+ <a name="cairo-device-observer-fill-elapsed"></a><h3>cairo_device_observer_fill_elapsed ()</h3>
583
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_device_observer_fill_elapsed (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
584
+ <p>
585
+ </p>
586
+ </div>
587
+ <hr>
588
+ <div class="refsect2">
589
+ <a name="cairo-device-observer-glyphs-elapsed"></a><h3>cairo_device_observer_glyphs_elapsed ()</h3>
590
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_device_observer_glyphs_elapsed
591
+ (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
592
+ <p>
593
+ </p>
594
+ </div>
595
+ <hr>
596
+ <div class="refsect2">
597
+ <a name="cairo-device-observer-mask-elapsed"></a><h3>cairo_device_observer_mask_elapsed ()</h3>
598
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_device_observer_mask_elapsed (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
599
+ <p>
600
+ </p>
601
+ </div>
602
+ <hr>
603
+ <div class="refsect2">
604
+ <a name="cairo-device-observer-paint-elapsed"></a><h3>cairo_device_observer_paint_elapsed ()</h3>
605
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_device_observer_paint_elapsed (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
606
+ <p>
607
+ </p>
608
+ </div>
609
+ <hr>
610
+ <div class="refsect2">
611
+ <a name="cairo-device-observer-print"></a><h3>cairo_device_observer_print ()</h3>
612
+ <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_device_observer_print (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>,
613
+ <em class="parameter"><code><a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> write_func</code></em>,
614
+ <em class="parameter"><code><span class="type">void</span> *closure</code></em>);</pre>
615
+ <p>
616
+ </p>
617
+ </div>
618
+ <hr>
619
+ <div class="refsect2">
620
+ <a name="cairo-device-observer-stroke-elapsed"></a><h3>cairo_device_observer_stroke_elapsed ()</h3>
621
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_device_observer_stroke_elapsed
622
+ (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *device</code></em>);</pre>
623
+ <p>
624
+ </p>
625
+ </div>
589
626
  </div>
590
627
  <div class="refsect1">
591
628
  <a name="cairo-cairo-device-t.see-also"></a><h2>See Also</h2>
@@ -110,7 +110,7 @@ The number of references to a <a class="link" href="cairo-cairo-font-face-t.html
110
110
  <tbody>
111
111
  <tr>
112
112
  <td><p><span class="term"><em class="parameter"><code>font_face</code></em> :</span></p></td>
113
- <td>a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, (may be <code class="literal">NULL</code> in which case this
113
+ <td>a <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>, (may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> in which case this
114
114
  function does nothing).</td>
115
115
  </tr>
116
116
  <tr>
@@ -301,7 +301,7 @@ object is a nil object, 0 will be returned.</td>
301
301
  <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>
302
302
  <p>
303
303
  Attach user data to <em class="parameter"><code>font_face</code></em>. To remove user data from a font face,
304
- call this function with the key that was used to set it and <code class="literal">NULL</code>
304
+ 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>
305
305
  for <em class="parameter"><code>data</code></em>.
306
306
  </p>
307
307
  <div class="variablelist"><table border="0">
@@ -344,7 +344,7 @@ slot could not be allocated for the user data.</td>
344
344
  <p>
345
345
  Return user data previously attached to <em class="parameter"><code>font_face</code></em> using the specified
346
346
  key. If no user data has been attached with the given key this
347
- function returns <code class="literal">NULL</code>.
347
+ function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
348
348
  </p>
349
349
  <div class="variablelist"><table border="0">
350
350
  <col align="left" valign="top">
@@ -361,7 +361,7 @@ attached to</td>
361
361
  </tr>
362
362
  <tr>
363
363
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
364
- <td>the user data previously attached or <code class="literal">NULL</code>.</td>
364
+ <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>
365
365
  </tr>
366
366
  </tbody>
367
367
  </table></div>
@@ -276,8 +276,8 @@ Compares two font options objects for equality.
276
276
  <tr>
277
277
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
278
278
  <td>
279
- <code class="literal">TRUE</code> if all fields of the two font options objects match.
280
- Note that this function will return <code class="literal">FALSE</code> if either object is in
279
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if all fields of the two font options objects match.
280
+ Note that this function will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if either object is in
281
281
  error.</td>
282
282
  </tr>
283
283
  </tbody>
@@ -177,8 +177,8 @@ unsigned <span class="returnvalue">int</span> <a class="link" href="cairo
177
177
  <a name="cairo-cairo-pattern-t.description"></a><h2>Description</h2>
178
178
  <p>
179
179
  <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> is the paint with which cairo draws.
180
- The primary use of patterns is as the source for all cairo drawing
181
- operations, although they can also be used as masks, that is, as the
180
+ The primary use of patterns is as the source for all cairo drawing
181
+ operations, although they can also be used as masks, that is, as the
182
182
  brush too.
183
183
  </p>
184
184
  <p>
@@ -359,7 +359,7 @@ pattern.
359
359
  </tr>
360
360
  <tr>
361
361
  <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
362
- <td>return value for the number of color stops, or <code class="literal">NULL</code>
362
+ <td>return value for the number of color stops, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
363
363
  </td>
364
364
  </tr>
365
365
  <tr>
@@ -385,8 +385,9 @@ pattern.</td>
385
385
  <em class="parameter"><code><span class="type">double</span> *alpha</code></em>);</pre>
386
386
  <p>
387
387
  Gets the color and offset information at the given <em class="parameter"><code>index</code></em> for a
388
- gradient pattern. Values of <em class="parameter"><code>index</code></em> are 0 to 1 less than the number
389
- returned by <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-color-stop-count" title="cairo_pattern_get_color_stop_count ()"><code class="function">cairo_pattern_get_color_stop_count()</code></a>.
388
+ gradient pattern. Values of <em class="parameter"><code>index</code></em> range from 0 to n-1
389
+ where n is the number returned
390
+ by <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-color-stop-count" title="cairo_pattern_get_color_stop_count ()"><code class="function">cairo_pattern_get_color_stop_count()</code></a>.
390
391
  </p>
391
392
  <div class="variablelist"><table border="0">
392
393
  <col align="left" valign="top">
@@ -402,27 +403,27 @@ returned by <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-c
402
403
  </tr>
403
404
  <tr>
404
405
  <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
405
- <td>return value for the offset of the stop, or <code class="literal">NULL</code>
406
+ <td>return value for the offset of the stop, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
406
407
  </td>
407
408
  </tr>
408
409
  <tr>
409
410
  <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
410
- <td>return value for red component of color, or <code class="literal">NULL</code>
411
+ <td>return value for red component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
411
412
  </td>
412
413
  </tr>
413
414
  <tr>
414
415
  <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
415
- <td>return value for green component of color, or <code class="literal">NULL</code>
416
+ <td>return value for green component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
416
417
  </td>
417
418
  </tr>
418
419
  <tr>
419
420
  <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
420
- <td>return value for blue component of color, or <code class="literal">NULL</code>
421
+ <td>return value for blue component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
421
422
  </td>
422
423
  </tr>
423
424
  <tr>
424
425
  <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
425
- <td>return value for alpha component of color, or <code class="literal">NULL</code>
426
+ <td>return value for alpha component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
426
427
  </td>
427
428
  </tr>
428
429
  <tr>
@@ -545,22 +546,22 @@ Gets the solid color for a solid color pattern.
545
546
  </tr>
546
547
  <tr>
547
548
  <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
548
- <td>return value for red component of color, or <code class="literal">NULL</code>
549
+ <td>return value for red component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
549
550
  </td>
550
551
  </tr>
551
552
  <tr>
552
553
  <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
553
- <td>return value for green component of color, or <code class="literal">NULL</code>
554
+ <td>return value for green component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
554
555
  </td>
555
556
  </tr>
556
557
  <tr>
557
558
  <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
558
- <td>return value for blue component of color, or <code class="literal">NULL</code>
559
+ <td>return value for blue component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
559
560
  </td>
560
561
  </tr>
561
562
  <tr>
562
563
  <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
563
- <td>return value for alpha component of color, or <code class="literal">NULL</code>
564
+ <td>return value for alpha component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
564
565
  </td>
565
566
  </tr>
566
567
  <tr>
@@ -622,7 +623,7 @@ Gets the surface of a surface pattern. The reference returned in
622
623
  </tr>
623
624
  <tr>
624
625
  <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
625
- <td>return value for surface of pattern, or <code class="literal">NULL</code>
626
+ <td>return value for surface of pattern, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
626
627
  </td>
627
628
  </tr>
628
629
  <tr>
@@ -709,22 +710,22 @@ Gets the gradient endpoints for a linear gradient.
709
710
  </tr>
710
711
  <tr>
711
712
  <td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
712
- <td>return value for the x coordinate of the first point, or <code class="literal">NULL</code>
713
+ <td>return value for the x coordinate of the first point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
713
714
  </td>
714
715
  </tr>
715
716
  <tr>
716
717
  <td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
717
- <td>return value for the y coordinate of the first point, or <code class="literal">NULL</code>
718
+ <td>return value for the y coordinate of the first point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
718
719
  </td>
719
720
  </tr>
720
721
  <tr>
721
722
  <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
722
- <td>return value for the x coordinate of the second point, or <code class="literal">NULL</code>
723
+ <td>return value for the x coordinate of the second point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
723
724
  </td>
724
725
  </tr>
725
726
  <tr>
726
727
  <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
727
- <td>return value for the y coordinate of the second point, or <code class="literal">NULL</code>
728
+ <td>return value for the y coordinate of the second point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
728
729
  </td>
729
730
  </tr>
730
731
  <tr>
@@ -824,32 +825,32 @@ specified as a center coordinate and a radius.
824
825
  </tr>
825
826
  <tr>
826
827
  <td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
827
- <td>return value for the x coordinate of the center of the first circle, or <code class="literal">NULL</code>
828
+ <td>return value for the x coordinate of the center of the first circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
828
829
  </td>
829
830
  </tr>
830
831
  <tr>
831
832
  <td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
832
- <td>return value for the y coordinate of the center of the first circle, or <code class="literal">NULL</code>
833
+ <td>return value for the y coordinate of the center of the first circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
833
834
  </td>
834
835
  </tr>
835
836
  <tr>
836
837
  <td><p><span class="term"><em class="parameter"><code>r0</code></em> :</span></p></td>
837
- <td>return value for the radius of the first circle, or <code class="literal">NULL</code>
838
+ <td>return value for the radius of the first circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
838
839
  </td>
839
840
  </tr>
840
841
  <tr>
841
842
  <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
842
- <td>return value for the x coordinate of the center of the second circle, or <code class="literal">NULL</code>
843
+ <td>return value for the x coordinate of the center of the second circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
843
844
  </td>
844
845
  </tr>
845
846
  <tr>
846
847
  <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
847
- <td>return value for the y coordinate of the center of the second circle, or <code class="literal">NULL</code>
848
+ <td>return value for the y coordinate of the center of the second circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
848
849
  </td>
849
850
  </tr>
850
851
  <tr>
851
852
  <td><p><span class="term"><em class="parameter"><code>r1</code></em> :</span></p></td>
852
- <td>return value for the radius of the second circle, or <code class="literal">NULL</code>
853
+ <td>return value for the radius of the second circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
853
854
  </td>
854
855
  </tr>
855
856
  <tr>
@@ -968,63 +969,32 @@ Additional patches may be added with additional calls to
968
969
  </p>
969
970
  <p>
970
971
  </p>
971
- <div class="informalexample">
972
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
973
- <tbody>
974
- <tr>
975
- <td class="listing_lines" align="right"><pre>1
976
- 2
977
- 3
978
- 4
979
- 5
980
- 6
981
- 7
982
- 8
983
- 9
984
- 10
985
- 11
986
- 12
987
- 13
988
- 14
989
- 15
990
- 16
991
- 17
992
- 18
993
- 19
994
- 20
995
- 21
996
- 22
997
- 23
998
- 24</pre></td>
999
- <td class="listing_code"><pre class="programlisting">cairo_pattern_t <span class="gtkdoc opt">*</span>pattern <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-pattern-create-mesh">cairo_pattern_create_mesh</a></span> <span class="gtkdoc opt">();</span>
972
+ <div class="informalexample"><pre class="programlisting">
973
+ cairo_pattern_t *pattern = cairo_pattern_create_mesh ();
1000
974
 
1001
- <span class="comment">/* Add a Coons patch */</span>
1002
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-begin-patch">cairo_mesh_pattern_begin_patch</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">);</span>
1003
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-move-to">cairo_mesh_pattern_move_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1004
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-curve-to">cairo_mesh_pattern_curve_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">30</span><span class="gtkdoc opt">, -</span><span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">60</span><span class="gtkdoc opt">,</span> <span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">100</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1005
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-curve-to">cairo_mesh_pattern_curve_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">60</span><span class="gtkdoc opt">,</span> <span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">130</span><span class="gtkdoc opt">,</span> <span class="number">60</span><span class="gtkdoc opt">,</span> <span class="number">100</span><span class="gtkdoc opt">,</span> <span class="number">100</span><span class="gtkdoc opt">);</span>
1006
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-curve-to">cairo_mesh_pattern_curve_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">60</span><span class="gtkdoc opt">,</span> <span class="number">70</span><span class="gtkdoc opt">,</span> <span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">130</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">100</span><span class="gtkdoc opt">);</span>
1007
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-curve-to">cairo_mesh_pattern_curve_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">70</span><span class="gtkdoc opt">, -</span><span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">30</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1008
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1009
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1010
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">2</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">);</span>
1011
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">3</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1012
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-end-patch">cairo_mesh_pattern_end_patch</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">);</span>
1013
-
1014
- <span class="comment">/* Add a Gouraud-shaded triangle */</span>
1015
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-begin-patch">cairo_mesh_pattern_begin_patch</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">)</span>
1016
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-move-to">cairo_mesh_pattern_move_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">100</span><span class="gtkdoc opt">,</span> <span class="number">100</span><span class="gtkdoc opt">);</span>
1017
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-line-to">cairo_mesh_pattern_line_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">130</span><span class="gtkdoc opt">,</span> <span class="number">130</span><span class="gtkdoc opt">);</span>
1018
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-line-to">cairo_mesh_pattern_line_to</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">130</span><span class="gtkdoc opt">,</span> <span class="number">70</span><span class="gtkdoc opt">);</span>
1019
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1020
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">);</span>
1021
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-set-corner-color-rgb">cairo_mesh_pattern_set_corner_color_rgb</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">,</span> <span class="number">2</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">0</span><span class="gtkdoc opt">,</span> <span class="number">1</span><span class="gtkdoc opt">);</span>
1022
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-mesh-pattern-end-patch">cairo_mesh_pattern_end_patch</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">)</span></pre></td>
1023
- </tr>
1024
- </tbody>
1025
- </table>
1026
- </div>
975
+ /* Add a Coons patch */
976
+ cairo_mesh_pattern_begin_patch (pattern);
977
+ cairo_mesh_pattern_move_to (pattern, 0, 0);
978
+ cairo_mesh_pattern_curve_to (pattern, 30, -30, 60, 30, 100, 0);
979
+ cairo_mesh_pattern_curve_to (pattern, 60, 30, 130, 60, 100, 100);
980
+ cairo_mesh_pattern_curve_to (pattern, 60, 70, 30, 130, 0, 100);
981
+ cairo_mesh_pattern_curve_to (pattern, 30, 70, -30, 30, 0, 0);
982
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 1, 0, 0);
983
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
984
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
985
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 3, 1, 1, 0);
986
+ cairo_mesh_pattern_end_patch (pattern);
1027
987
 
988
+ /* Add a Gouraud-shaded triangle */
989
+ cairo_mesh_pattern_begin_patch (pattern)
990
+ cairo_mesh_pattern_move_to (pattern, 100, 100);
991
+ cairo_mesh_pattern_line_to (pattern, 130, 130);
992
+ cairo_mesh_pattern_line_to (pattern, 130, 70);
993
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 0, 1, 0, 0);
994
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 1, 0, 1, 0);
995
+ cairo_mesh_pattern_set_corner_color_rgb (pattern, 2, 0, 0, 1);
996
+ cairo_mesh_pattern_end_patch (pattern)
997
+ </pre></div>
1028
998
  <p>
1029
999
  </p>
1030
1000
  <p>
@@ -1475,7 +1445,7 @@ during the definition of the first patch.
1475
1445
  </tr>
1476
1446
  <tr>
1477
1447
  <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
1478
- <td>return value for the number patches, or <code class="literal">NULL</code>
1448
+ <td>return value for the number patches, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1479
1449
  </td>
1480
1450
  </tr>
1481
1451
  <tr>
@@ -1499,7 +1469,7 @@ Gets path defining the patch <em class="parameter"><code>patch_num</code></em> f
1499
1469
  pattern.
1500
1470
  </p>
1501
1471
  <p>
1502
- <em class="parameter"><code>patch_num</code></em> can range 0 to 1 less than the number returned by
1472
+ <em class="parameter"><code>patch_num</code></em> can range from 0 to n-1 where n is the number returned by
1503
1473
  <a class="link" href="cairo-cairo-pattern-t.html#cairo-mesh-pattern-get-patch-count" title="cairo_mesh_pattern_get_patch_count ()"><code class="function">cairo_mesh_pattern_get_patch_count()</code></a>.
1504
1474
  </p>
1505
1475
  <div class="variablelist"><table border="0">
@@ -1539,7 +1509,7 @@ Gets the control point <em class="parameter"><code>point_num</code></em> of patc
1539
1509
  pattern.
1540
1510
  </p>
1541
1511
  <p>
1542
- <em class="parameter"><code>patch_num</code></em> can range 0 to 1 less than the number returned by
1512
+ <em class="parameter"><code>patch_num</code></em> can range from 0 to n-1 where n is the number returned by
1543
1513
  <a class="link" href="cairo-cairo-pattern-t.html#cairo-mesh-pattern-get-patch-count" title="cairo_mesh_pattern_get_patch_count ()"><code class="function">cairo_mesh_pattern_get_patch_count()</code></a>.
1544
1514
  </p>
1545
1515
  <p>
@@ -1564,12 +1534,12 @@ control points as explained in <a class="link" href="cairo-cairo-pattern-t.html#
1564
1534
  </tr>
1565
1535
  <tr>
1566
1536
  <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1567
- <td>return value for the x coordinate of the control point, or <code class="literal">NULL</code>
1537
+ <td>return value for the x coordinate of the control point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1568
1538
  </td>
1569
1539
  </tr>
1570
1540
  <tr>
1571
1541
  <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1572
- <td>return value for the y coordinate of the control point, or <code class="literal">NULL</code>
1542
+ <td>return value for the y coordinate of the control point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1573
1543
  </td>
1574
1544
  </tr>
1575
1545
  <tr>
@@ -1600,7 +1570,7 @@ Gets the color information in corner <em class="parameter"><code>corner_num</cod
1600
1570
  <em class="parameter"><code>patch_num</code></em> for a mesh pattern.
1601
1571
  </p>
1602
1572
  <p>
1603
- <em class="parameter"><code>patch_num</code></em> can range 0 to 1 less than the number returned by
1573
+ <em class="parameter"><code>patch_num</code></em> can range from 0 to n-1 where n is the number returned by
1604
1574
  <a class="link" href="cairo-cairo-pattern-t.html#cairo-mesh-pattern-get-patch-count" title="cairo_mesh_pattern_get_patch_count ()"><code class="function">cairo_mesh_pattern_get_patch_count()</code></a>.
1605
1575
  </p>
1606
1576
  <p>
@@ -1625,22 +1595,22 @@ corners as explained in <a class="link" href="cairo-cairo-pattern-t.html#cairo-p
1625
1595
  </tr>
1626
1596
  <tr>
1627
1597
  <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
1628
- <td>return value for red component of color, or <code class="literal">NULL</code>
1598
+ <td>return value for red component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1629
1599
  </td>
1630
1600
  </tr>
1631
1601
  <tr>
1632
1602
  <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
1633
- <td>return value for green component of color, or <code class="literal">NULL</code>
1603
+ <td>return value for green component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1634
1604
  </td>
1635
1605
  </tr>
1636
1606
  <tr>
1637
1607
  <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
1638
- <td>return value for blue component of color, or <code class="literal">NULL</code>
1608
+ <td>return value for blue component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1639
1609
  </td>
1640
1610
  </tr>
1641
1611
  <tr>
1642
1612
  <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
1643
- <td>return value for alpha component of color, or <code class="literal">NULL</code>
1613
+ <td>return value for alpha component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1644
1614
  </td>
1645
1615
  </tr>
1646
1616
  <tr>
@@ -1920,19 +1890,10 @@ creates implicitly. For example:
1920
1890
  </p>
1921
1891
  <p>
1922
1892
  </p>
1923
- <div class="informalexample">
1924
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
1925
- <tbody>
1926
- <tr>
1927
- <td class="listing_lines" align="right"><pre>1
1928
- 2</pre></td>
1929
- <td class="listing_code"><pre class="programlisting"><span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-set-source-surface">cairo_set_source_surface</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> image<span class="gtkdoc opt">,</span> x<span class="gtkdoc opt">,</span> y<span class="gtkdoc opt">);</span>
1930
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-pattern-set-filter">cairo_pattern_set_filter</a></span> <span class="gtkdoc opt">(</span><span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-get-source">cairo_get_source</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">),</span> CAIRO_FILTER_NEAREST<span class="gtkdoc opt">);</span></pre></td>
1931
- </tr>
1932
- </tbody>
1933
- </table>
1934
- </div>
1935
-
1893
+ <div class="informalexample"><pre class="programlisting">
1894
+ cairo_set_source_surface (cr, image, x, y);
1895
+ cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_NEAREST);
1896
+ </pre></div>
1936
1897
  <p>
1937
1898
  </p>
1938
1899
  <div class="variablelist"><table border="0">
@@ -2003,19 +1964,10 @@ it does by default the correct code to use is:
2003
1964
  </p>
2004
1965
  <p>
2005
1966
  </p>
2006
- <div class="informalexample">
2007
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
2008
- <tbody>
2009
- <tr>
2010
- <td class="listing_lines" align="right"><pre>1
2011
- 2</pre></td>
2012
- <td class="listing_code"><pre class="programlisting"><span class="function"><a href="../cairo/cairo-cairo-matrix-t.html#cairo-matrix-init-scale">cairo_matrix_init_scale</a></span> <span class="gtkdoc opt">(&amp;</span>matrix<span class="gtkdoc opt">,</span> <span class="number">0.5</span><span class="gtkdoc opt">,</span> <span class="number">0.5</span><span class="gtkdoc opt">);</span>
2013
- <span class="function"><a href="../cairo/cairo-cairo-pattern-t.html#cairo-pattern-set-matrix">cairo_pattern_set_matrix</a></span> <span class="gtkdoc opt">(</span>pattern<span class="gtkdoc opt">, &amp;</span>matrix<span class="gtkdoc opt">);</span></pre></td>
2014
- </tr>
2015
- </tbody>
2016
- </table>
2017
- </div>
2018
-
1967
+ <div class="informalexample"><pre class="programlisting">
1968
+ cairo_matrix_init_scale (&amp;matrix, 0.5, 0.5);
1969
+ cairo_pattern_set_matrix (pattern, &amp;matrix);
1970
+ </pre></div>
2019
1971
  <p>
2020
1972
  </p>
2021
1973
  <p>
@@ -2199,7 +2151,7 @@ object is a nil object, 0 will be returned.</td>
2199
2151
  <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>
2200
2152
  <p>
2201
2153
  Attach user data to <em class="parameter"><code>pattern</code></em>. To remove user data from a surface,
2202
- call this function with the key that was used to set it and <code class="literal">NULL</code>
2154
+ 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>
2203
2155
  for <em class="parameter"><code>data</code></em>.
2204
2156
  </p>
2205
2157
  <div class="variablelist"><table border="0">
@@ -2243,7 +2195,7 @@ slot could not be allocated for the user data.</td>
2243
2195
  <p>
2244
2196
  Return user data previously attached to <em class="parameter"><code>pattern</code></em> using the
2245
2197
  specified key. If no user data has been attached with the given
2246
- key this function returns <code class="literal">NULL</code>.
2198
+ key this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
2247
2199
  </p>
2248
2200
  <div class="variablelist"><table border="0">
2249
2201
  <col align="left" valign="top">
@@ -2260,7 +2212,7 @@ attached to</td>
2260
2212
  </tr>
2261
2213
  <tr>
2262
2214
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2263
- <td>the user data previously attached or <code class="literal">NULL</code>.</td>
2215
+ <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>
2264
2216
  </tr>
2265
2217
  </tbody>
2266
2218
  </table></div>