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
@@ -120,19 +120,10 @@ using a translate and a scale; for example:
120
120
  </p>
121
121
  <p>
122
122
  </p>
123
- <div class="informalexample">
124
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
125
- <tbody>
126
- <tr>
127
- <td class="listing_lines" align="right"><pre>1
128
- 2</pre></td>
129
- <td class="listing_code"><pre class="programlisting"><span class="function">CGContextTranslateCTM</span> <span class="gtkdoc opt">(</span>cgContext<span class="gtkdoc opt">,</span> <span class="number">0.0</span><span class="gtkdoc opt">,</span> height<span class="gtkdoc opt">);</span>
130
- <span class="function">CGContextScaleCTM</span> <span class="gtkdoc opt">(</span>cgContext<span class="gtkdoc opt">,</span> <span class="number">1.0</span><span class="gtkdoc opt">, -</span><span class="number">1.0</span><span class="gtkdoc opt">);</span></pre></td>
131
- </tr>
132
- </tbody>
133
- </table>
134
- </div>
135
-
123
+ <div class="informalexample"><pre class="programlisting">
124
+ CGContextTranslateCTM (cgContext, 0.0, height);
125
+ CGContextScaleCTM (cgContext, 1.0, -1.0);
126
+ </pre></div>
136
127
  <p>
137
128
  </p>
138
129
  <p>
@@ -64,27 +64,14 @@ identical to the results that would have been obtained if the original
64
64
  operations applied to the recording surface had instead been applied to the
65
65
  target surface, you can use code like this:
66
66
  </p>
67
- <div class="informalexample">
68
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
69
- <tbody>
70
- <tr>
71
- <td class="listing_lines" align="right"><pre>1
72
- 2
73
- 3
74
- 4
75
- 5
76
- 6</pre></td>
77
- <td class="listing_code"><pre class="programlisting">cairo_t <span class="gtkdoc opt">*</span>cr<span class="gtkdoc opt">;</span>
78
-
79
- cr <span class="gtkdoc opt">=</span> <span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-create">cairo_create</a></span> <span class="gtkdoc opt">(</span>target<span class="gtkdoc opt">);</span>
80
- <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> recording_surface<span class="gtkdoc opt">,</span> <span class="number">0.0</span><span class="gtkdoc opt">,</span> <span class="number">0.0</span><span class="gtkdoc opt">);</span>
81
- <span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-paint">cairo_paint</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span>
82
- <span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-destroy">cairo_destroy</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">);</span></pre></td>
83
- </tr>
84
- </tbody>
85
- </table>
86
- </div>
67
+ <div class="informalexample"><pre class="programlisting">
68
+ cairo_t *cr;
87
69
 
70
+ cr = cairo_create (target);
71
+ cairo_set_source_surface (cr, recording_surface, 0.0, 0.0);
72
+ cairo_paint (cr);
73
+ cairo_destroy (cr);
74
+ </pre></div>
88
75
  <p>
89
76
  </p>
90
77
  <p>
@@ -141,7 +128,7 @@ accurate replay.
141
128
  </tr>
142
129
  <tr>
143
130
  <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
144
- <td>the extents to record in pixels, can be <code class="literal">NULL</code> to record
131
+ <td>the extents to record in pixels, can be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to record
145
132
  unbounded operations.</td>
146
133
  </tr>
147
134
  <tr>
@@ -218,8 +205,8 @@ Get the extents of the recording-surface.
218
205
  <tr>
219
206
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
220
207
  <td>
221
- <code class="literal">TRUE</code> if the surface is bounded, of recording type, and
222
- not in an error state, otherwise <code class="literal">FALSE</code>
208
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if the surface is bounded, of recording type, and
209
+ not in an error state, otherwise <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a>
223
210
  </td>
224
211
  </tr>
225
212
  </tbody>
@@ -379,7 +379,7 @@ Checks whether <em class="parameter"><code>region</code></em> is empty.
379
379
  <tr>
380
380
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
381
381
  <td>
382
- <code class="literal">TRUE</code> if <em class="parameter"><code>region</code></em> is empty, <code class="literal">FALSE</code> if it isn't.</td>
382
+ <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>region</code></em> is empty, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it isn't.</td>
383
383
  </tr>
384
384
  </tbody>
385
385
  </table></div>
@@ -413,7 +413,7 @@ Checks whether (<em class="parameter"><code>x</code></em>, <em class="parameter"
413
413
  <tr>
414
414
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
415
415
  <td>
416
- <code class="literal">TRUE</code> if (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) is contained in <em class="parameter"><code>region</code></em>, <code class="literal">FALSE</code> if it is not.</td>
416
+ <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>x</code></em>, <em class="parameter"><code>y</code></em>) is contained in <em class="parameter"><code>region</code></em>, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it is not.</td>
417
417
  </tr>
418
418
  </tbody>
419
419
  </table></div>
@@ -493,27 +493,27 @@ in <em class="parameter"><code>region</code></em>
493
493
  <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_region_equal (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *a</code></em>,
494
494
  <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *b</code></em>);</pre>
495
495
  <p>
496
- Compares whether region_a is equivalent to region_b. <code class="literal">NULL</code> as an argument
497
- is equal to itself, but not to any non-<code class="literal">NULL</code> region.
496
+ Compares whether region_a is equivalent to region_b. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> as an argument
497
+ is equal to itself, but not to any non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> region.
498
498
  </p>
499
499
  <div class="variablelist"><table border="0">
500
500
  <col align="left" valign="top">
501
501
  <tbody>
502
502
  <tr>
503
503
  <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
504
- <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> or <code class="literal">NULL</code>
504
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
505
505
  </td>
506
506
  </tr>
507
507
  <tr>
508
508
  <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
509
- <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> or <code class="literal">NULL</code>
509
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
510
510
  </td>
511
511
  </tr>
512
512
  <tr>
513
513
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
514
514
  <td>
515
- <code class="literal">TRUE</code> if both regions contained the same coverage,
516
- <code class="literal">FALSE</code> if it is not or any region is in an error status.</td>
515
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if both regions contained the same coverage,
516
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it is not or any region is in an error status.</td>
517
517
  </tr>
518
518
  </tbody>
519
519
  </table></div>
@@ -107,7 +107,7 @@ Base64-encoded and emitted.
107
107
  <tbody>
108
108
  <tr>
109
109
  <td><p><span class="term"><em class="parameter"><code>filename</code></em> :</span></p></td>
110
- <td>a filename for the SVG output (must be writable), <code class="literal">NULL</code> may be
110
+ <td>a filename for the SVG output (must be writable), <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> may be
111
111
  used to specify no output. This will generate a SVG surface that
112
112
  may be queried and used as a source, without generating a
113
113
  temporary file.</td>
@@ -149,7 +149,7 @@ incrementally to the stream represented by <em class="parameter"><code>write_fun
149
149
  <tbody>
150
150
  <tr>
151
151
  <td><p><span class="term"><em class="parameter"><code>write_func</code></em> :</span></p></td>
152
- <td>a <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> to accept the output data, may be <code class="literal">NULL</code>
152
+ <td>a <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> to accept the output data, may be <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
153
153
  to indicate a no-op <em class="parameter"><code>write_func</code></em>. With a no-op <em class="parameter"><code>write_func</code></em>,
154
154
  the surface may be queried or used as a source without
155
155
  generating any temporary files.</td>
@@ -271,7 +271,7 @@ Used to retrieve the list of supported versions. See
271
271
  <pre class="programlisting">const <span class="returnvalue">char</span> * cairo_svg_version_to_string (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);</pre>
272
272
  <p>
273
273
  Get the string representation of the given <em class="parameter"><code>version</code></em> id. This function
274
- will return <code class="literal">NULL</code> if <em class="parameter"><code>version</code></em> isn't valid. See <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()"><code class="function">cairo_svg_get_versions()</code></a>
274
+ will return <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if <em class="parameter"><code>version</code></em> isn't valid. See <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()"><code class="function">cairo_svg_get_versions()</code></a>
275
275
  for a way to get the list of valid version ids.
276
276
  </p>
277
277
  <div class="variablelist"><table border="0">
@@ -6,7 +6,7 @@
6
6
  <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
7
  <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
8
  <link rel="up" href="cairo-support.html" title="Utilities">
9
- <link rel="prev" href="cairo-Error-handling.html" title="Error handling">
9
+ <link rel="prev" href="cairo-Version-Information.html" title="Version Information">
10
10
  <link rel="next" href="index-all.html" title="Index">
11
11
  <meta name="generator" content="GTK-Doc V1.18 (XML mode)">
12
12
  <link rel="stylesheet" href="style.css" type="text/css">
@@ -14,7 +14,7 @@
14
14
  <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
15
  <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
16
  <tr valign="middle">
17
- <td><a accesskey="p" href="cairo-Error-handling.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
17
+ <td><a accesskey="p" href="cairo-Version-Information.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
18
  <td><a accesskey="u" href="cairo-support.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
19
  <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
20
  <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
@@ -63,21 +63,11 @@ value as a boolean condition.
63
63
  </p>
64
64
  <p>
65
65
  </p>
66
- <div class="informalexample">
67
- <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
68
- <tbody>
69
- <tr>
70
- <td class="listing_lines" align="right"><pre>1
71
- 2
72
- 3</pre></td>
73
- <td class="listing_code"><pre class="programlisting"><span class="keyword">if</span> <span class="gtkdoc opt">(</span><span class="function"><a href="../cairo/cairo-cairo-t.html#cairo-in-stroke">cairo_in_stroke</a></span> <span class="gtkdoc opt">(</span>cr<span class="gtkdoc opt">,</span> x<span class="gtkdoc opt">,</span> y<span class="gtkdoc opt">)) {</span>
74
- <span class="comment">/* do something */</span>
75
- <span class="gtkdoc opt">}</span></pre></td>
76
- </tr>
77
- </tbody>
78
- </table>
79
- </div>
80
-
66
+ <div class="informalexample"><pre class="programlisting">
67
+ if (cairo_in_stroke (cr, x, y)) {
68
+ /* do something */
69
+ }
70
+ </pre></div>
81
71
  <p>
82
72
  </p>
83
73
  <p class="since">Since 1.0</p>
@@ -260,7 +260,7 @@ Arabic and Indic.
260
260
  </p>
261
261
  <p>
262
262
  The <em class="parameter"><code>num_glyphs</code></em> argument is preset to the number of glyph entries available
263
- in the <em class="parameter"><code>glyphs</code></em> buffer. If the <em class="parameter"><code>glyphs</code></em> buffer is <code class="literal">NULL</code>, the value of
263
+ in the <em class="parameter"><code>glyphs</code></em> buffer. If the <em class="parameter"><code>glyphs</code></em> buffer is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, the value of
264
264
  <em class="parameter"><code>num_glyphs</code></em> will be zero. If the provided glyph array is too short for
265
265
  the conversion (or for convenience), a new glyph array may be allocated
266
266
  using <a class="link" href="cairo-text.html#cairo-glyph-allocate" title="cairo_glyph_allocate ()"><code class="function">cairo_glyph_allocate()</code></a> and placed in <em class="parameter"><code>glyphs</code></em>. Upon return,
@@ -272,10 +272,10 @@ The callback should populate the glyph indices and positions (in font space)
272
272
  assuming that the text is to be shown at the origin.
273
273
  </p>
274
274
  <p>
275
- If <em class="parameter"><code>clusters</code></em> is not <code class="literal">NULL</code>, <em class="parameter"><code>num_clusters</code></em> and <em class="parameter"><code>cluster_flags</code></em> are also
276
- non-<code class="literal">NULL</code>, and cluster mapping should be computed. The semantics of how
275
+ If <em class="parameter"><code>clusters</code></em> is not <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, <em class="parameter"><code>num_clusters</code></em> and <em class="parameter"><code>cluster_flags</code></em> are also
276
+ non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>, and cluster mapping should be computed. The semantics of how
277
277
  cluster array allocation works is similar to the glyph array. That is,
278
- if <em class="parameter"><code>clusters</code></em> initially points to a non-<code class="literal">NULL</code> value, that array may be used
278
+ if <em class="parameter"><code>clusters</code></em> initially points to a non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> value, that array may be used
279
279
  as a cluster buffer, and <em class="parameter"><code>num_clusters</code></em> points to the number of cluster
280
280
  entries available there. If the provided cluster array is too short for
281
281
  the conversion (or for convenience), a new cluster array may be allocated
@@ -325,7 +325,7 @@ glyph value for other purposes.
325
325
  </tr>
326
326
  <tr>
327
327
  <td><p><span class="term"><em class="parameter"><code>clusters</code></em> :</span></p></td>
328
- <td>pointer to array of cluster mapping information to fill, or <code class="literal">NULL</code>
328
+ <td>pointer to array of cluster mapping information to fill, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
329
329
  </td>
330
330
  </tr>
331
331
  <tr>
@@ -464,7 +464,7 @@ is created from it.
464
464
  </tr>
465
465
  <tr>
466
466
  <td><p><span class="term"><em class="parameter"><code>init_func</code></em> :</span></p></td>
467
- <td>The init callback, or <code class="literal">NULL</code>
467
+ <td>The init callback, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
468
468
  </td>
469
469
  </tr>
470
470
  </tbody>
@@ -489,7 +489,7 @@ Gets the scaled-font initialization function of a user-font.
489
489
  <tr>
490
490
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
491
491
  <td>The init callback of <em class="parameter"><code>font_face</code></em>
492
- or <code class="literal">NULL</code> if none set or an error has occurred.</td>
492
+ or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none set or an error has occurred.</td>
493
493
  </tr>
494
494
  </tbody>
495
495
  </table></div>
@@ -513,7 +513,7 @@ is created from it.
513
513
  </p>
514
514
  <p>
515
515
  The render_glyph callback is the only mandatory callback of a user-font.
516
- If the callback is <code class="literal">NULL</code> and a glyph is tried to be rendered using
516
+ If the callback is <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> and a glyph is tried to be rendered using
517
517
  <em class="parameter"><code>font_face</code></em>, a <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-USER-FONT-ERROR:CAPS"><code class="literal">CAIRO_STATUS_USER_FONT_ERROR</code></a> will occur.
518
518
  </p>
519
519
  <div class="variablelist"><table border="0">
@@ -525,7 +525,7 @@ If the callback is <code class="literal">NULL</code> and a glyph is tried to be
525
525
  </tr>
526
526
  <tr>
527
527
  <td><p><span class="term"><em class="parameter"><code>render_glyph_func</code></em> :</span></p></td>
528
- <td>The render_glyph callback, or <code class="literal">NULL</code>
528
+ <td>The render_glyph callback, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
529
529
  </td>
530
530
  </tr>
531
531
  </tbody>
@@ -550,7 +550,7 @@ Gets the glyph rendering function of a user-font.
550
550
  <tr>
551
551
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
552
552
  <td>The render_glyph callback of <em class="parameter"><code>font_face</code></em>
553
- or <code class="literal">NULL</code> if none set or an error has occurred.</td>
553
+ or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none set or an error has occurred.</td>
554
554
  </tr>
555
555
  </tbody>
556
556
  </table></div>
@@ -581,7 +581,7 @@ is created from it.
581
581
  </tr>
582
582
  <tr>
583
583
  <td><p><span class="term"><em class="parameter"><code>unicode_to_glyph_func</code></em> :</span></p></td>
584
- <td>The unicode_to_glyph callback, or <code class="literal">NULL</code>
584
+ <td>The unicode_to_glyph callback, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
585
585
  </td>
586
586
  </tr>
587
587
  </tbody>
@@ -606,7 +606,7 @@ Gets the unicode-to-glyph conversion function of a user-font.
606
606
  <tr>
607
607
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
608
608
  <td>The unicode_to_glyph callback of <em class="parameter"><code>font_face</code></em>
609
- or <code class="literal">NULL</code> if none set or an error occurred.</td>
609
+ or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none set or an error occurred.</td>
610
610
  </tr>
611
611
  </tbody>
612
612
  </table></div>
@@ -637,7 +637,7 @@ is created from it.
637
637
  </tr>
638
638
  <tr>
639
639
  <td><p><span class="term"><em class="parameter"><code>text_to_glyphs_func</code></em> :</span></p></td>
640
- <td>The text_to_glyphs callback, or <code class="literal">NULL</code>
640
+ <td>The text_to_glyphs callback, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
641
641
  </td>
642
642
  </tr>
643
643
  </tbody>
@@ -662,7 +662,7 @@ Gets the text-to-glyphs conversion function of a user-font.
662
662
  <tr>
663
663
  <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
664
664
  <td>The text_to_glyphs callback of <em class="parameter"><code>font_face</code></em>
665
- or <code class="literal">NULL</code> if none set or an error occurred.</td>
665
+ or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if none set or an error occurred.</td>
666
666
  </tr>
667
667
  </tbody>
668
668
  </table></div>
@@ -0,0 +1,342 @@
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>Version Information</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-support.html" title="Utilities">
9
+ <link rel="prev" href="cairo-Error-handling.html" title="Error handling">
10
+ <link rel="next" href="cairo-Types.html" title="Types">
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-Error-handling.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="cairo-support.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-Types.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-Version-Information.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-Version-Information.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="cairo-Version-Information"></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-Version-Information.top_of_page"></a>Version Information</span></h2>
34
+ <p>Version Information — Compile-time and run-time version checks.</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="cairo-Version-Information.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">#define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION:CAPS" title="CAIRO_VERSION">CAIRO_VERSION</a>
41
+ #define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-MAJOR:CAPS" title="CAIRO_VERSION_MAJOR">CAIRO_VERSION_MAJOR</a>
42
+ #define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-MINOR:CAPS" title="CAIRO_VERSION_MINOR">CAIRO_VERSION_MINOR</a>
43
+ #define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-MICRO:CAPS" title="CAIRO_VERSION_MICRO">CAIRO_VERSION_MICRO</a>
44
+ #define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-STRING:CAPS" title="CAIRO_VERSION_STRING">CAIRO_VERSION_STRING</a>
45
+ #define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-ENCODE:CAPS" title="CAIRO_VERSION_ENCODE()">CAIRO_VERSION_ENCODE</a> (major,
46
+ minor,
47
+ micro)
48
+ #define <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-STRINGIZE:CAPS" title="CAIRO_VERSION_STRINGIZE()">CAIRO_VERSION_STRINGIZE</a> (major,
49
+ minor,
50
+ micro)
51
+ <span class="returnvalue">int</span> <a class="link" href="cairo-Version-Information.html#cairo-version" title="cairo_version ()">cairo_version</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
52
+ const <span class="returnvalue">char</span> * <a class="link" href="cairo-Version-Information.html#cairo-version-string" title="cairo_version_string ()">cairo_version_string</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
53
+ </pre>
54
+ </div>
55
+ <div class="refsect1">
56
+ <a name="cairo-Version-Information.description"></a><h2>Description</h2>
57
+ <p>
58
+ Cairo has a three-part version number scheme. In this scheme, we use
59
+ even vs. odd numbers to distinguish fixed points in the software
60
+ vs. in-progress development, (such as from git instead of a tar file,
61
+ or as a "snapshot" tar file as opposed to a "release" tar file).
62
+ </p>
63
+ <p>
64
+ </p>
65
+ <div class="informalexample"><pre class="screen">
66
+ _____ Major. Always 1, until we invent a new scheme.
67
+ / ___ Minor. Even/Odd = Release/Snapshot (tar files) or Branch/Head (git)
68
+ | / _ Micro. Even/Odd = Tar-file/git
69
+ | | /
70
+ 1.0.0
71
+ </pre></div>
72
+ <p>
73
+ </p>
74
+ <p>
75
+ Here are a few examples of versions that one might see.
76
+ </p>
77
+ <div class="informalexample"><pre class="screen">
78
+ Releases
79
+ --------
80
+ 1.0.0 - A major release
81
+ 1.0.2 - A subsequent maintenance release
82
+ 1.2.0 - Another major release
83
+  
84
+ Snapshots
85
+ ---------
86
+ 1.1.2 - A snapshot (working toward the 1.2.0 release)
87
+  
88
+ In-progress development (eg. from git)
89
+ --------------------------------------
90
+ 1.0.1 - Development on a maintenance branch (toward 1.0.2 release)
91
+ 1.1.1 - Development on head (toward 1.1.2 snapshot and 1.2.0 release)
92
+ </pre></div>
93
+ <p>
94
+ </p>
95
+ <div class="refsect2">
96
+ <a name="idp20538704"></a><h3>Compatibility</h3>
97
+ <p>
98
+ The API/ABI compatibility guarantees for various versions are as
99
+ follows. First, let's assume some cairo-using application code that is
100
+ successfully using the API/ABI "from" one version of cairo. Then let's
101
+ ask the question whether this same code can be moved "to" the API/ABI
102
+ of another version of cairo.
103
+ </p>
104
+ <p>
105
+ Moving from a release to any later version (release, snapshot,
106
+ development) is always guaranteed to provide compatibility.
107
+ </p>
108
+ <p>
109
+ Moving from a snapshot to any later version is not guaranteed to
110
+ provide compatibility, since snapshots may introduce new API that ends
111
+ up being removed before the next release.
112
+ </p>
113
+ <p>
114
+ Moving from an in-development version (odd micro component) to any
115
+ later version is not guaranteed to provide compatibility. In fact,
116
+ there's not even a guarantee that the code will even continue to work
117
+ with the same in-development version number. This is because these
118
+ numbers don't correspond to any fixed state of the software, but
119
+ rather the many states between snapshots and releases.
120
+ </p>
121
+ </div>
122
+ <hr>
123
+ <div class="refsect2">
124
+ <a name="idp20542336"></a><h3>Examining the version</h3>
125
+ <p>
126
+ Cairo provides the ability to examine the version at either
127
+ compile-time or run-time and in both a human-readable form as well as
128
+ an encoded form suitable for direct comparison. Cairo also provides the
129
+ macro <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-ENCODE:CAPS" title="CAIRO_VERSION_ENCODE()"><code class="function">CAIRO_VERSION_ENCODE()</code></a> to perform the encoding.
130
+ </p>
131
+ <p>
132
+ </p>
133
+ <div class="informalexample"><pre class="screen">
134
+ Compile-time
135
+ ------------
136
+ CAIRO_VERSION_STRING Human-readable
137
+ CAIRO_VERSION Encoded, suitable for comparison
138
+  
139
+ Run-time
140
+ --------
141
+ <a class="link" href="cairo-Version-Information.html#cairo-version-string" title="cairo_version_string ()"><code class="function">cairo_version_string()</code></a> Human-readable
142
+ <a class="link" href="cairo-Version-Information.html#cairo-version" title="cairo_version ()"><code class="function">cairo_version()</code></a> Encoded, suitable for comparison
143
+ </pre></div>
144
+ <p>
145
+ </p>
146
+ <p>
147
+ For example, checking that the cairo version is greater than or equal
148
+ to 1.0.0 could be achieved at compile-time or run-time as follows:
149
+ </p>
150
+ <p>
151
+ </p>
152
+ <div class="informalexample"><pre class="programlisting">
153
+ ##if CAIRO_VERSION &gt;= CAIRO_VERSION_ENCODE(1, 0, 0)
154
+ printf ("Compiling with suitable cairo version: %s\n", %CAIRO_VERSION_STRING);
155
+ ##endif
156
+
157
+ if (cairo_version() &gt;= CAIRO_VERSION_ENCODE(1, 0, 0))
158
+ printf ("Running with suitable cairo version: %s\n", cairo_version_string ());
159
+ </pre></div>
160
+ <p>
161
+ </p>
162
+ </div>
163
+ <p>
164
+ </p>
165
+ </div>
166
+ <div class="refsect1">
167
+ <a name="cairo-Version-Information.details"></a><h2>Details</h2>
168
+ <div class="refsect2">
169
+ <a name="CAIRO-VERSION:CAPS"></a><h3>CAIRO_VERSION</h3>
170
+ <pre class="programlisting">#define CAIRO_VERSION</pre>
171
+ <p>
172
+ The version of cairo available at compile-time, encoded using
173
+ <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-ENCODE:CAPS" title="CAIRO_VERSION_ENCODE()"><code class="function">CAIRO_VERSION_ENCODE()</code></a>.
174
+ </p>
175
+ <p class="since">Since 1.0</p>
176
+ </div>
177
+ <hr>
178
+ <div class="refsect2">
179
+ <a name="CAIRO-VERSION-MAJOR:CAPS"></a><h3>CAIRO_VERSION_MAJOR</h3>
180
+ <pre class="programlisting">#define CAIRO_VERSION_MAJOR USE_cairo_version_OR_cairo_version_string_INSTEAD
181
+ </pre>
182
+ <p>
183
+ The major component of the version of cairo available at compile-time.
184
+ </p>
185
+ <p class="since">Since 1.0</p>
186
+ </div>
187
+ <hr>
188
+ <div class="refsect2">
189
+ <a name="CAIRO-VERSION-MINOR:CAPS"></a><h3>CAIRO_VERSION_MINOR</h3>
190
+ <pre class="programlisting">#define CAIRO_VERSION_MINOR USE_cairo_version_OR_cairo_version_string_INSTEAD
191
+ </pre>
192
+ <p>
193
+ The minor component of the version of cairo available at compile-time.
194
+ </p>
195
+ <p class="since">Since 1.0</p>
196
+ </div>
197
+ <hr>
198
+ <div class="refsect2">
199
+ <a name="CAIRO-VERSION-MICRO:CAPS"></a><h3>CAIRO_VERSION_MICRO</h3>
200
+ <pre class="programlisting">#define CAIRO_VERSION_MICRO USE_cairo_version_OR_cairo_version_string_INSTEAD
201
+ </pre>
202
+ <p>
203
+ The micro component of the version of cairo available at compile-time.
204
+ </p>
205
+ <p class="since">Since 1.0</p>
206
+ </div>
207
+ <hr>
208
+ <div class="refsect2">
209
+ <a name="CAIRO-VERSION-STRING:CAPS"></a><h3>CAIRO_VERSION_STRING</h3>
210
+ <pre class="programlisting">#define CAIRO_VERSION_STRING</pre>
211
+ <p>
212
+ A human-readable string literal containing the version of cairo available
213
+ at compile-time, in the form of "X.Y.Z".
214
+ </p>
215
+ <p class="since">Since 1.8</p>
216
+ </div>
217
+ <hr>
218
+ <div class="refsect2">
219
+ <a name="CAIRO-VERSION-ENCODE:CAPS"></a><h3>CAIRO_VERSION_ENCODE()</h3>
220
+ <pre class="programlisting">#define CAIRO_VERSION_ENCODE(major, minor, micro)</pre>
221
+ <p>
222
+ This macro encodes the given cairo version into an integer. The numbers
223
+ returned by <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION:CAPS" title="CAIRO_VERSION"><code class="literal">CAIRO_VERSION</code></a> and <a class="link" href="cairo-Version-Information.html#cairo-version" title="cairo_version ()"><code class="function">cairo_version()</code></a> are encoded using this macro.
224
+ Two encoded version numbers can be compared as integers. The encoding ensures
225
+ that later versions compare greater than earlier versions.
226
+ </p>
227
+ <div class="variablelist"><table border="0">
228
+ <col align="left" valign="top">
229
+ <tbody>
230
+ <tr>
231
+ <td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
232
+ <td>the major component of the version number</td>
233
+ </tr>
234
+ <tr>
235
+ <td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
236
+ <td>the minor component of the version number</td>
237
+ </tr>
238
+ <tr>
239
+ <td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
240
+ <td>the micro component of the version number</td>
241
+ </tr>
242
+ <tr>
243
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
244
+ <td>the encoded version.</td>
245
+ </tr>
246
+ </tbody>
247
+ </table></div>
248
+ <p class="since">Since 1.0</p>
249
+ </div>
250
+ <hr>
251
+ <div class="refsect2">
252
+ <a name="CAIRO-VERSION-STRINGIZE:CAPS"></a><h3>CAIRO_VERSION_STRINGIZE()</h3>
253
+ <pre class="programlisting">#define CAIRO_VERSION_STRINGIZE(major, minor, micro)</pre>
254
+ <p>
255
+ This macro encodes the given cairo version into an string. The numbers
256
+ returned by <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-STRING:CAPS" title="CAIRO_VERSION_STRING"><code class="literal">CAIRO_VERSION_STRING</code></a> and <a class="link" href="cairo-Version-Information.html#cairo-version-string" title="cairo_version_string ()"><code class="function">cairo_version_string()</code></a> are encoded using this macro.
257
+ The parameters to this macro must expand to numerical literals.
258
+ </p>
259
+ <div class="variablelist"><table border="0">
260
+ <col align="left" valign="top">
261
+ <tbody>
262
+ <tr>
263
+ <td><p><span class="term"><em class="parameter"><code>major</code></em> :</span></p></td>
264
+ <td>the major component of the version number</td>
265
+ </tr>
266
+ <tr>
267
+ <td><p><span class="term"><em class="parameter"><code>minor</code></em> :</span></p></td>
268
+ <td>the minor component of the version number</td>
269
+ </tr>
270
+ <tr>
271
+ <td><p><span class="term"><em class="parameter"><code>micro</code></em> :</span></p></td>
272
+ <td>the micro component of the version number</td>
273
+ </tr>
274
+ <tr>
275
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
276
+ <td>a string literal containing the version.</td>
277
+ </tr>
278
+ </tbody>
279
+ </table></div>
280
+ <p class="since">Since 1.8</p>
281
+ </div>
282
+ <hr>
283
+ <div class="refsect2">
284
+ <a name="cairo-version"></a><h3>cairo_version ()</h3>
285
+ <pre class="programlisting"><span class="returnvalue">int</span> cairo_version (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
286
+ <p>
287
+ Returns the version of the cairo library encoded in a single
288
+ integer as per <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-ENCODE:CAPS" title="CAIRO_VERSION_ENCODE()"><code class="literal">CAIRO_VERSION_ENCODE</code></a>. The encoding ensures that
289
+ later versions compare greater than earlier versions.
290
+ </p>
291
+ <p>
292
+ A run-time comparison to check that cairo's version is greater than
293
+ or equal to version X.Y.Z could be performed as follows:
294
+ </p>
295
+ <p>
296
+ </p>
297
+ <div class="informalexample"><pre class="programlisting">
298
+ if (cairo_version() &gt;= CAIRO_VERSION_ENCODE(X,Y,Z)) {...}
299
+ </pre></div>
300
+ <p>
301
+ </p>
302
+ <p>
303
+ See also <a class="link" href="cairo-Version-Information.html#cairo-version-string" title="cairo_version_string ()"><code class="function">cairo_version_string()</code></a> as well as the compile-time
304
+ equivalents <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION:CAPS" title="CAIRO_VERSION"><code class="literal">CAIRO_VERSION</code></a> and <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-STRING:CAPS" title="CAIRO_VERSION_STRING"><code class="literal">CAIRO_VERSION_STRING</code></a>.
305
+ </p>
306
+ <div class="variablelist"><table border="0">
307
+ <col align="left" valign="top">
308
+ <tbody><tr>
309
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
310
+ <td>the encoded version.</td>
311
+ </tr></tbody>
312
+ </table></div>
313
+ <p class="since">Since 1.0</p>
314
+ </div>
315
+ <hr>
316
+ <div class="refsect2">
317
+ <a name="cairo-version-string"></a><h3>cairo_version_string ()</h3>
318
+ <pre class="programlisting">const <span class="returnvalue">char</span> * cairo_version_string (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
319
+ <p>
320
+ Returns the version of the cairo library as a human-readable string
321
+ of the form "X.Y.Z".
322
+ </p>
323
+ <p>
324
+ See also <a class="link" href="cairo-Version-Information.html#cairo-version" title="cairo_version ()"><code class="function">cairo_version()</code></a> as well as the compile-time equivalents
325
+ <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION-STRING:CAPS" title="CAIRO_VERSION_STRING"><code class="literal">CAIRO_VERSION_STRING</code></a> and <a class="link" href="cairo-Version-Information.html#CAIRO-VERSION:CAPS" title="CAIRO_VERSION"><code class="literal">CAIRO_VERSION</code></a>.
326
+ </p>
327
+ <div class="variablelist"><table border="0">
328
+ <col align="left" valign="top">
329
+ <tbody><tr>
330
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
331
+ <td>a string containing the version.</td>
332
+ </tr></tbody>
333
+ </table></div>
334
+ <p class="since">Since 1.0</p>
335
+ </div>
336
+ </div>
337
+ </div>
338
+ <div class="footer">
339
+ <hr>
340
+ Generated by GTK-Doc V1.18</div>
341
+ </body>
342
+ </html>