cairo 1.14.0-x64-mingw32

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

Potentially problematic release.


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

Files changed (636) hide show
  1. checksums.yaml +7 -0
  2. data/AUTHORS +7 -0
  3. data/COPYING +59 -0
  4. data/GPL +340 -0
  5. data/Gemfile +5 -0
  6. data/NEWS +429 -0
  7. data/README.rdoc +120 -0
  8. data/Rakefile +620 -0
  9. data/ext/cairo/cairo.def +140 -0
  10. data/ext/cairo/depend +3 -0
  11. data/ext/cairo/extconf.rb +202 -0
  12. data/ext/cairo/rb_cairo.c +111 -0
  13. data/ext/cairo/rb_cairo.h +348 -0
  14. data/ext/cairo/rb_cairo_constants.c +673 -0
  15. data/ext/cairo/rb_cairo_context.c +1741 -0
  16. data/ext/cairo/rb_cairo_device.c +475 -0
  17. data/ext/cairo/rb_cairo_exception.c +446 -0
  18. data/ext/cairo/rb_cairo_font_extents.c +200 -0
  19. data/ext/cairo/rb_cairo_font_face.c +726 -0
  20. data/ext/cairo/rb_cairo_font_options.c +197 -0
  21. data/ext/cairo/rb_cairo_glyph.c +161 -0
  22. data/ext/cairo/rb_cairo_io.c +166 -0
  23. data/ext/cairo/rb_cairo_io.h +44 -0
  24. data/ext/cairo/rb_cairo_matrix.c +366 -0
  25. data/ext/cairo/rb_cairo_path.c +459 -0
  26. data/ext/cairo/rb_cairo_pattern.c +1192 -0
  27. data/ext/cairo/rb_cairo_private.c +255 -0
  28. data/ext/cairo/rb_cairo_private.h +129 -0
  29. data/ext/cairo/rb_cairo_rectangle.c +83 -0
  30. data/ext/cairo/rb_cairo_region.c +385 -0
  31. data/ext/cairo/rb_cairo_scaled_font.c +235 -0
  32. data/ext/cairo/rb_cairo_surface.c +2284 -0
  33. data/ext/cairo/rb_cairo_text_cluster.c +151 -0
  34. data/ext/cairo/rb_cairo_text_extents.c +221 -0
  35. data/lib/2.0/cairo.so +0 -0
  36. data/lib/2.1/cairo.so +0 -0
  37. data/lib/2.2/cairo.so +0 -0
  38. data/lib/cairo.rb +154 -0
  39. data/lib/cairo/color.rb +267 -0
  40. data/lib/cairo/colors.rb +656 -0
  41. data/lib/cairo/constants.rb +24 -0
  42. data/lib/cairo/context.rb +29 -0
  43. data/lib/cairo/context/blur.rb +45 -0
  44. data/lib/cairo/context/circle.rb +9 -0
  45. data/lib/cairo/context/color.rb +11 -0
  46. data/lib/cairo/context/path.rb +117 -0
  47. data/lib/cairo/context/rectangle.rb +33 -0
  48. data/lib/cairo/context/triangle.rb +12 -0
  49. data/lib/cairo/device.rb +13 -0
  50. data/lib/cairo/paper.rb +183 -0
  51. data/lib/cairo/papers.rb +65 -0
  52. data/lib/cairo/path.rb +15 -0
  53. data/lib/cairo/pattern.rb +12 -0
  54. data/lib/cairo/point.rb +7 -0
  55. data/lib/cairo/surface.rb +13 -0
  56. data/samples/agg/aa_test.rb +304 -0
  57. data/samples/blur.rb +46 -0
  58. data/samples/pac-nomralize.rb +170 -0
  59. data/samples/pac-tee.rb +170 -0
  60. data/samples/pac.rb +98 -0
  61. data/samples/png.rb +44 -0
  62. data/samples/scalable.rb +55 -0
  63. data/samples/text-on-path.rb +59 -0
  64. data/samples/text2.rb +130 -0
  65. data/test/cairo-test-utils.rb +44 -0
  66. data/test/run-test.rb +29 -0
  67. data/test/test_color.rb +17 -0
  68. data/test/test_constants.rb +27 -0
  69. data/test/test_context.rb +105 -0
  70. data/test/test_exception.rb +36 -0
  71. data/test/test_font_extents.rb +36 -0
  72. data/test/test_font_face.rb +257 -0
  73. data/test/test_font_options.rb +13 -0
  74. data/test/test_image_surface.rb +28 -0
  75. data/test/test_paper.rb +81 -0
  76. data/test/test_quartz_image_surface.rb +13 -0
  77. data/test/test_raster_source_pattern.rb +162 -0
  78. data/test/test_recording_surface.rb +19 -0
  79. data/test/test_region.rb +102 -0
  80. data/test/test_scaled_font.rb +34 -0
  81. data/test/test_script_device.rb +46 -0
  82. data/test/test_script_surface.rb +13 -0
  83. data/test/test_surface.rb +61 -0
  84. data/test/test_tee_surface.rb +32 -0
  85. data/test/test_text_cluster.rb +32 -0
  86. data/test/test_text_extents.rb +40 -0
  87. data/test/test_text_to_glyphs_data.rb +51 -0
  88. data/test/test_xml_device.rb +22 -0
  89. data/test/test_xml_surface.rb +34 -0
  90. data/vendor/local/bin/fc-cache.exe +0 -0
  91. data/vendor/local/bin/fc-cat.exe +0 -0
  92. data/vendor/local/bin/fc-list.exe +0 -0
  93. data/vendor/local/bin/fc-match.exe +0 -0
  94. data/vendor/local/bin/fc-pattern.exe +0 -0
  95. data/vendor/local/bin/fc-query.exe +0 -0
  96. data/vendor/local/bin/fc-scan.exe +0 -0
  97. data/vendor/local/bin/fc-validate.exe +0 -0
  98. data/vendor/local/bin/freetype-config +163 -0
  99. data/vendor/local/bin/libcairo-2.dll +0 -0
  100. data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
  101. data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
  102. data/vendor/local/bin/libfontconfig-1.dll +0 -0
  103. data/vendor/local/bin/libfreetype-6.dll +0 -0
  104. data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
  105. data/vendor/local/bin/libpixman-1-0.dll +0 -0
  106. data/vendor/local/bin/libpng-config +127 -0
  107. data/vendor/local/bin/libpng16-16.dll +0 -0
  108. data/vendor/local/bin/libpng16-config +127 -0
  109. data/vendor/local/bin/libstdc++-6.dll +0 -0
  110. data/vendor/local/bin/libwinpthread-1.dll +0 -0
  111. data/vendor/local/bin/libxml2-2.dll +0 -0
  112. data/vendor/local/bin/png-fix-itxt.exe +0 -0
  113. data/vendor/local/bin/pngfix.exe +0 -0
  114. data/vendor/local/bin/xml2-config +106 -0
  115. data/vendor/local/bin/xmlcatalog.exe +0 -0
  116. data/vendor/local/bin/xmllint.exe +0 -0
  117. data/vendor/local/bin/zlib1.dll +0 -0
  118. data/vendor/local/etc/fonts/conf.d/10-scale-bitmap-fonts.conf +81 -0
  119. data/vendor/local/etc/fonts/conf.d/20-unhint-small-vera.conf +48 -0
  120. data/vendor/local/etc/fonts/conf.d/30-metric-aliases.conf +546 -0
  121. data/vendor/local/etc/fonts/conf.d/30-urw-aliases.conf +24 -0
  122. data/vendor/local/etc/fonts/conf.d/40-nonlatin.conf +231 -0
  123. data/vendor/local/etc/fonts/conf.d/45-latin.conf +189 -0
  124. data/vendor/local/etc/fonts/conf.d/49-sansserif.conf +21 -0
  125. data/vendor/local/etc/fonts/conf.d/50-user.conf +15 -0
  126. data/vendor/local/etc/fonts/conf.d/51-local.conf +6 -0
  127. data/vendor/local/etc/fonts/conf.d/60-latin.conf +70 -0
  128. data/vendor/local/etc/fonts/conf.d/65-fonts-persian.conf +419 -0
  129. data/vendor/local/etc/fonts/conf.d/65-nonlatin.conf +196 -0
  130. data/vendor/local/etc/fonts/conf.d/69-unifont.conf +28 -0
  131. data/vendor/local/etc/fonts/conf.d/80-delicious.conf +19 -0
  132. data/vendor/local/etc/fonts/conf.d/90-synthetic.conf +64 -0
  133. data/vendor/local/etc/fonts/conf.d/README +23 -0
  134. data/vendor/local/etc/fonts/fonts.conf +155 -0
  135. data/vendor/local/include/cairo/cairo-deprecated.h +123 -0
  136. data/vendor/local/include/cairo/cairo-features.h +31 -0
  137. data/vendor/local/include/cairo/cairo-ft.h +118 -0
  138. data/vendor/local/include/cairo/cairo-gobject.h +192 -0
  139. data/vendor/local/include/cairo/cairo-pdf.h +94 -0
  140. data/vendor/local/include/cairo/cairo-ps.h +116 -0
  141. data/vendor/local/include/cairo/cairo-script-interpreter.h +124 -0
  142. data/vendor/local/include/cairo/cairo-script.h +98 -0
  143. data/vendor/local/include/cairo/cairo-svg.h +84 -0
  144. data/vendor/local/include/cairo/cairo-version.h +8 -0
  145. data/vendor/local/include/cairo/cairo-win32.h +112 -0
  146. data/vendor/local/include/cairo/cairo.h +3153 -0
  147. data/vendor/local/include/fontconfig/fcfreetype.h +59 -0
  148. data/vendor/local/include/fontconfig/fcprivate.h +124 -0
  149. data/vendor/local/include/fontconfig/fontconfig.h +1010 -0
  150. data/vendor/local/include/freetype2/config/ftconfig.h +706 -0
  151. data/vendor/local/include/freetype2/config/ftheader.h +832 -0
  152. data/vendor/local/include/freetype2/config/ftmodule.h +20 -0
  153. data/vendor/local/include/freetype2/config/ftoption.h +846 -0
  154. data/vendor/local/include/freetype2/config/ftstdlib.h +174 -0
  155. data/vendor/local/include/freetype2/freetype.h +4076 -0
  156. data/vendor/local/include/freetype2/ft2build.h +42 -0
  157. data/vendor/local/include/freetype2/ftadvanc.h +182 -0
  158. data/vendor/local/include/freetype2/ftautoh.h +402 -0
  159. data/vendor/local/include/freetype2/ftbbox.h +102 -0
  160. data/vendor/local/include/freetype2/ftbdf.h +210 -0
  161. data/vendor/local/include/freetype2/ftbitmap.h +227 -0
  162. data/vendor/local/include/freetype2/ftbzip2.h +102 -0
  163. data/vendor/local/include/freetype2/ftcache.h +1057 -0
  164. data/vendor/local/include/freetype2/ftcffdrv.h +254 -0
  165. data/vendor/local/include/freetype2/ftchapters.h +121 -0
  166. data/vendor/local/include/freetype2/ftcid.h +166 -0
  167. data/vendor/local/include/freetype2/fterrdef.h +249 -0
  168. data/vendor/local/include/freetype2/fterrors.h +198 -0
  169. data/vendor/local/include/freetype2/ftgasp.h +128 -0
  170. data/vendor/local/include/freetype2/ftglyph.h +620 -0
  171. data/vendor/local/include/freetype2/ftgxval.h +358 -0
  172. data/vendor/local/include/freetype2/ftgzip.h +149 -0
  173. data/vendor/local/include/freetype2/ftimage.h +1322 -0
  174. data/vendor/local/include/freetype2/ftincrem.h +353 -0
  175. data/vendor/local/include/freetype2/ftlcdfil.h +251 -0
  176. data/vendor/local/include/freetype2/ftlist.h +277 -0
  177. data/vendor/local/include/freetype2/ftlzw.h +99 -0
  178. data/vendor/local/include/freetype2/ftmac.h +274 -0
  179. data/vendor/local/include/freetype2/ftmm.h +377 -0
  180. data/vendor/local/include/freetype2/ftmodapi.h +641 -0
  181. data/vendor/local/include/freetype2/ftmoderr.h +194 -0
  182. data/vendor/local/include/freetype2/ftotval.h +203 -0
  183. data/vendor/local/include/freetype2/ftoutln.h +572 -0
  184. data/vendor/local/include/freetype2/ftpfr.h +172 -0
  185. data/vendor/local/include/freetype2/ftrender.h +238 -0
  186. data/vendor/local/include/freetype2/ftsizes.h +159 -0
  187. data/vendor/local/include/freetype2/ftsnames.h +200 -0
  188. data/vendor/local/include/freetype2/ftstroke.h +751 -0
  189. data/vendor/local/include/freetype2/ftsynth.h +81 -0
  190. data/vendor/local/include/freetype2/ftsystem.h +347 -0
  191. data/vendor/local/include/freetype2/fttrigon.h +350 -0
  192. data/vendor/local/include/freetype2/ftttdrv.h +170 -0
  193. data/vendor/local/include/freetype2/fttypes.h +598 -0
  194. data/vendor/local/include/freetype2/ftwinfnt.h +275 -0
  195. data/vendor/local/include/freetype2/ftxf86.h +83 -0
  196. data/vendor/local/include/freetype2/t1tables.h +662 -0
  197. data/vendor/local/include/freetype2/ttnameid.h +1237 -0
  198. data/vendor/local/include/freetype2/tttables.h +787 -0
  199. data/vendor/local/include/freetype2/tttags.h +111 -0
  200. data/vendor/local/include/freetype2/ttunpat.h +59 -0
  201. data/vendor/local/include/libpng16/png.h +3276 -0
  202. data/vendor/local/include/libpng16/pngconf.h +644 -0
  203. data/vendor/local/include/libpng16/pnglibconf.h +208 -0
  204. data/vendor/local/include/libxml2/libxml/DOCBparser.h +96 -0
  205. data/vendor/local/include/libxml2/libxml/HTMLparser.h +306 -0
  206. data/vendor/local/include/libxml2/libxml/HTMLtree.h +147 -0
  207. data/vendor/local/include/libxml2/libxml/SAX.h +173 -0
  208. data/vendor/local/include/libxml2/libxml/SAX2.h +178 -0
  209. data/vendor/local/include/libxml2/libxml/c14n.h +126 -0
  210. data/vendor/local/include/libxml2/libxml/catalog.h +182 -0
  211. data/vendor/local/include/libxml2/libxml/chvalid.h +230 -0
  212. data/vendor/local/include/libxml2/libxml/debugXML.h +217 -0
  213. data/vendor/local/include/libxml2/libxml/dict.h +80 -0
  214. data/vendor/local/include/libxml2/libxml/encoding.h +240 -0
  215. data/vendor/local/include/libxml2/libxml/entities.h +151 -0
  216. data/vendor/local/include/libxml2/libxml/globals.h +509 -0
  217. data/vendor/local/include/libxml2/libxml/hash.h +233 -0
  218. data/vendor/local/include/libxml2/libxml/list.h +137 -0
  219. data/vendor/local/include/libxml2/libxml/nanoftp.h +163 -0
  220. data/vendor/local/include/libxml2/libxml/nanohttp.h +81 -0
  221. data/vendor/local/include/libxml2/libxml/parser.h +1241 -0
  222. data/vendor/local/include/libxml2/libxml/parserInternals.h +644 -0
  223. data/vendor/local/include/libxml2/libxml/pattern.h +100 -0
  224. data/vendor/local/include/libxml2/libxml/relaxng.h +217 -0
  225. data/vendor/local/include/libxml2/libxml/schemasInternals.h +958 -0
  226. data/vendor/local/include/libxml2/libxml/schematron.h +142 -0
  227. data/vendor/local/include/libxml2/libxml/threads.h +84 -0
  228. data/vendor/local/include/libxml2/libxml/tree.h +1310 -0
  229. data/vendor/local/include/libxml2/libxml/uri.h +94 -0
  230. data/vendor/local/include/libxml2/libxml/valid.h +458 -0
  231. data/vendor/local/include/libxml2/libxml/xinclude.h +129 -0
  232. data/vendor/local/include/libxml2/libxml/xlink.h +189 -0
  233. data/vendor/local/include/libxml2/libxml/xmlIO.h +366 -0
  234. data/vendor/local/include/libxml2/libxml/xmlautomata.h +146 -0
  235. data/vendor/local/include/libxml2/libxml/xmlerror.h +945 -0
  236. data/vendor/local/include/libxml2/libxml/xmlexports.h +162 -0
  237. data/vendor/local/include/libxml2/libxml/xmlmemory.h +224 -0
  238. data/vendor/local/include/libxml2/libxml/xmlmodule.h +57 -0
  239. data/vendor/local/include/libxml2/libxml/xmlreader.h +428 -0
  240. data/vendor/local/include/libxml2/libxml/xmlregexp.h +222 -0
  241. data/vendor/local/include/libxml2/libxml/xmlsave.h +88 -0
  242. data/vendor/local/include/libxml2/libxml/xmlschemas.h +246 -0
  243. data/vendor/local/include/libxml2/libxml/xmlschemastypes.h +151 -0
  244. data/vendor/local/include/libxml2/libxml/xmlstring.h +140 -0
  245. data/vendor/local/include/libxml2/libxml/xmlunicode.h +202 -0
  246. data/vendor/local/include/libxml2/libxml/xmlversion.h +489 -0
  247. data/vendor/local/include/libxml2/libxml/xmlwriter.h +488 -0
  248. data/vendor/local/include/libxml2/libxml/xpath.h +557 -0
  249. data/vendor/local/include/libxml2/libxml/xpathInternals.h +632 -0
  250. data/vendor/local/include/libxml2/libxml/xpointer.h +114 -0
  251. data/vendor/local/include/pixman-1/pixman-version.h +50 -0
  252. data/vendor/local/include/pixman-1/pixman.h +1111 -0
  253. data/vendor/local/include/png.h +3276 -0
  254. data/vendor/local/include/pngconf.h +644 -0
  255. data/vendor/local/include/pnglibconf.h +208 -0
  256. data/vendor/local/include/zconf.h +511 -0
  257. data/vendor/local/include/zlib.h +1768 -0
  258. data/vendor/local/lib/cmake/libxml2/libxml2-config.cmake +50 -0
  259. data/vendor/local/lib/fontconfig.def +207 -0
  260. data/vendor/local/lib/libcairo-gobject.a +0 -0
  261. data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
  262. data/vendor/local/lib/libcairo-gobject.la +41 -0
  263. data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
  264. data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
  265. data/vendor/local/lib/libcairo-script-interpreter.la +41 -0
  266. data/vendor/local/lib/libcairo.a +0 -0
  267. data/vendor/local/lib/libcairo.dll.a +0 -0
  268. data/vendor/local/lib/libcairo.la +41 -0
  269. data/vendor/local/lib/libfontconfig.dll.a +0 -0
  270. data/vendor/local/lib/libfontconfig.la +41 -0
  271. data/vendor/local/lib/libfreetype.a +0 -0
  272. data/vendor/local/lib/libfreetype.dll.a +0 -0
  273. data/vendor/local/lib/libfreetype.la +41 -0
  274. data/vendor/local/lib/libpixman-1.a +0 -0
  275. data/vendor/local/lib/libpixman-1.dll.a +0 -0
  276. data/vendor/local/lib/libpixman-1.la +41 -0
  277. data/vendor/local/lib/libpng.a +0 -0
  278. data/vendor/local/lib/libpng.dll.a +0 -0
  279. data/vendor/local/lib/libpng.la +41 -0
  280. data/vendor/local/lib/libpng16.a +0 -0
  281. data/vendor/local/lib/libpng16.dll.a +0 -0
  282. data/vendor/local/lib/libpng16.la +41 -0
  283. data/vendor/local/lib/libxml2.a +0 -0
  284. data/vendor/local/lib/libxml2.dll.a +0 -0
  285. data/vendor/local/lib/libxml2.la +41 -0
  286. data/vendor/local/lib/libz.a +0 -0
  287. data/vendor/local/lib/libz.dll.a +0 -0
  288. data/vendor/local/lib/pkgconfig/cairo-fc.pc +12 -0
  289. data/vendor/local/lib/pkgconfig/cairo-ft.pc +12 -0
  290. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +12 -0
  291. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +12 -0
  292. data/vendor/local/lib/pkgconfig/cairo-png.pc +12 -0
  293. data/vendor/local/lib/pkgconfig/cairo-ps.pc +12 -0
  294. data/vendor/local/lib/pkgconfig/cairo-script.pc +12 -0
  295. data/vendor/local/lib/pkgconfig/cairo-svg.pc +12 -0
  296. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +12 -0
  297. data/vendor/local/lib/pkgconfig/cairo-win32.pc +12 -0
  298. data/vendor/local/lib/pkgconfig/cairo.pc +13 -0
  299. data/vendor/local/lib/pkgconfig/fontconfig.pc +18 -0
  300. data/vendor/local/lib/pkgconfig/freetype2.pc +14 -0
  301. data/vendor/local/lib/pkgconfig/libpng.pc +11 -0
  302. data/vendor/local/lib/pkgconfig/libpng16.pc +11 -0
  303. data/vendor/local/lib/pkgconfig/libxml-2.0.pc +13 -0
  304. data/vendor/local/lib/pkgconfig/pixman-1.pc +11 -0
  305. data/vendor/local/lib/pkgconfig/zlib.pc +13 -0
  306. data/vendor/local/lib/xml2Conf.sh +8 -0
  307. data/vendor/local/share/aclocal/freetype2.m4 +194 -0
  308. data/vendor/local/share/aclocal/libxml.m4 +188 -0
  309. data/vendor/local/share/doc/libxml2-2.9.2/Copyright +23 -0
  310. data/vendor/local/share/doc/libxml2-2.9.2/examples/testHTML.c +880 -0
  311. data/vendor/local/share/doc/libxml2-2.9.2/examples/testSAX.c +1198 -0
  312. data/vendor/local/share/doc/libxml2-2.9.2/examples/testXPath.c +229 -0
  313. data/vendor/local/share/doc/libxml2-2.9.2/examples/xmllint.c +3801 -0
  314. data/vendor/local/share/doc/libxml2-2.9.2/html/DOM.gif +0 -0
  315. data/vendor/local/share/doc/libxml2-2.9.2/html/FAQ.html +299 -0
  316. data/vendor/local/share/doc/libxml2-2.9.2/html/Libxml2-Logo-180x168.gif +0 -0
  317. data/vendor/local/share/doc/libxml2-2.9.2/html/Libxml2-Logo-90x34.gif +0 -0
  318. data/vendor/local/share/doc/libxml2-2.9.2/html/encoding.html +217 -0
  319. data/vendor/local/share/doc/libxml2-2.9.2/html/examples.xml +751 -0
  320. data/vendor/local/share/doc/libxml2-2.9.2/html/examples.xsl +174 -0
  321. data/vendor/local/share/doc/libxml2-2.9.2/html/html/book1.html +13 -0
  322. data/vendor/local/share/doc/libxml2-2.9.2/html/html/home.png +0 -0
  323. data/vendor/local/share/doc/libxml2-2.9.2/html/html/index.html +13 -0
  324. data/vendor/local/share/doc/libxml2-2.9.2/html/html/left.png +0 -0
  325. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-DOCBparser.html +51 -0
  326. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-HTMLparser.html +184 -0
  327. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-HTMLtree.html +73 -0
  328. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-SAX.html +125 -0
  329. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-SAX2.html +128 -0
  330. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-c14n.html +38 -0
  331. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-catalog.html +142 -0
  332. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-chvalid.html +72 -0
  333. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-debugXML.html +120 -0
  334. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-dict.html +58 -0
  335. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-encoding.html +124 -0
  336. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-entities.html +79 -0
  337. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-globals.html +152 -0
  338. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-hash.html +116 -0
  339. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-lib.html +13 -0
  340. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-list.html +120 -0
  341. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-nanoftp.html +94 -0
  342. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-nanohttp.html +65 -0
  343. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-parser.html +559 -0
  344. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-parserInternals.html +322 -0
  345. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-pattern.html +76 -0
  346. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-relaxng.html +162 -0
  347. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-schemasInternals.html +373 -0
  348. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-schematron.html +81 -0
  349. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-threads.html +72 -0
  350. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-tree.html +990 -0
  351. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-uri.html +73 -0
  352. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-valid.html +289 -0
  353. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xinclude.html +59 -0
  354. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xlink.html +82 -0
  355. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlIO.html +212 -0
  356. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlautomata.html +85 -0
  357. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlerror.html +865 -0
  358. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlexports.html +20 -0
  359. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlmemory.html +107 -0
  360. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlmodule.html +38 -0
  361. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlreader.html +330 -0
  362. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlregexp.html +143 -0
  363. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlsave.html +60 -0
  364. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlschemas.html +185 -0
  365. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlschemastypes.html +123 -0
  366. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlstring.html +108 -0
  367. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlunicode.html +512 -0
  368. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlversion.html +63 -0
  369. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xmlwriter.html +261 -0
  370. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpath.html +316 -0
  371. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpathInternals.html +394 -0
  372. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xpointer.html +83 -0
  373. data/vendor/local/share/doc/libxml2-2.9.2/html/html/libxml-xzlib.html +16 -0
  374. data/vendor/local/share/doc/libxml2-2.9.2/html/html/right.png +0 -0
  375. data/vendor/local/share/doc/libxml2-2.9.2/html/html/up.png +0 -0
  376. data/vendor/local/share/doc/libxml2-2.9.2/html/index.html +14 -0
  377. data/vendor/local/share/doc/libxml2-2.9.2/html/io1.c +166 -0
  378. data/vendor/local/share/doc/libxml2-2.9.2/html/io1.res +5 -0
  379. data/vendor/local/share/doc/libxml2-2.9.2/html/io2.c +58 -0
  380. data/vendor/local/share/doc/libxml2-2.9.2/html/io2.res +2 -0
  381. data/vendor/local/share/doc/libxml2-2.9.2/html/libxml.gif +0 -0
  382. data/vendor/local/share/doc/libxml2-2.9.2/html/parse1.c +56 -0
  383. data/vendor/local/share/doc/libxml2-2.9.2/html/parse2.c +72 -0
  384. data/vendor/local/share/doc/libxml2-2.9.2/html/parse3.c +60 -0
  385. data/vendor/local/share/doc/libxml2-2.9.2/html/parse4.c +143 -0
  386. data/vendor/local/share/doc/libxml2-2.9.2/html/reader1.c +107 -0
  387. data/vendor/local/share/doc/libxml2-2.9.2/html/reader1.res +14 -0
  388. data/vendor/local/share/doc/libxml2-2.9.2/html/reader2.c +122 -0
  389. data/vendor/local/share/doc/libxml2-2.9.2/html/reader3.c +120 -0
  390. data/vendor/local/share/doc/libxml2-2.9.2/html/reader3.res +13 -0
  391. data/vendor/local/share/doc/libxml2-2.9.2/html/reader4.c +122 -0
  392. data/vendor/local/share/doc/libxml2-2.9.2/html/reader4.res +3 -0
  393. data/vendor/local/share/doc/libxml2-2.9.2/html/redhat.gif +0 -0
  394. data/vendor/local/share/doc/libxml2-2.9.2/html/smallfootonly.gif +0 -0
  395. data/vendor/local/share/doc/libxml2-2.9.2/html/structure.gif +0 -0
  396. data/vendor/local/share/doc/libxml2-2.9.2/html/test1.xml +1 -0
  397. data/vendor/local/share/doc/libxml2-2.9.2/html/test2.xml +13 -0
  398. data/vendor/local/share/doc/libxml2-2.9.2/html/test3.xml +39 -0
  399. data/vendor/local/share/doc/libxml2-2.9.2/html/testWriter.c +1198 -0
  400. data/vendor/local/share/doc/libxml2-2.9.2/html/tree1.c +94 -0
  401. data/vendor/local/share/doc/libxml2-2.9.2/html/tree1.res +4 -0
  402. data/vendor/local/share/doc/libxml2-2.9.2/html/tree2.c +118 -0
  403. data/vendor/local/share/doc/libxml2-2.9.2/html/tree2.res +18 -0
  404. data/vendor/local/share/doc/libxml2-2.9.2/html/tst.xml +7 -0
  405. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apa.html +8 -0
  406. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apb.html +14 -0
  407. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apc.html +82 -0
  408. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apd.html +76 -0
  409. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ape.html +78 -0
  410. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apf.html +67 -0
  411. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/apg.html +75 -0
  412. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/aph.html +76 -0
  413. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/api.html +4 -0
  414. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s02.html +14 -0
  415. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s03.html +47 -0
  416. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s04.html +54 -0
  417. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s05.html +55 -0
  418. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s06.html +35 -0
  419. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s07.html +30 -0
  420. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s08.html +38 -0
  421. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ar01s09.html +63 -0
  422. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/blank.png +0 -0
  423. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/1.png +0 -0
  424. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/10.png +0 -0
  425. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/2.png +0 -0
  426. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/3.png +0 -0
  427. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/4.png +0 -0
  428. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/5.png +0 -0
  429. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/6.png +0 -0
  430. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/7.png +0 -0
  431. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/8.png +0 -0
  432. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/callouts/9.png +0 -0
  433. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/caution.png +0 -0
  434. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/draft.png +0 -0
  435. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/home.png +0 -0
  436. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/important.png +0 -0
  437. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/next.png +0 -0
  438. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/note.png +0 -0
  439. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/prev.png +0 -0
  440. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/tip.png +0 -0
  441. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-blank.png +0 -0
  442. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-minus.png +0 -0
  443. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/toc-plus.png +0 -0
  444. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/up.png +0 -0
  445. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/images/warning.png +0 -0
  446. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeaddattribute.c +64 -0
  447. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeaddkeyword.c +75 -0
  448. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includeconvert.c +73 -0
  449. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includegetattribute.c +72 -0
  450. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includekeyword.c +79 -0
  451. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/includexpath.c +74 -0
  452. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/index.html +14 -0
  453. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/ix01.html +1 -0
  454. data/vendor/local/share/doc/libxml2-2.9.2/html/tutorial/xmltutorial.pdf +1336 -0
  455. data/vendor/local/share/doc/libxml2-2.9.2/html/w3c.png +0 -0
  456. data/vendor/local/share/doc/libxml2-2.9.2/html/writer.xml +2 -0
  457. data/vendor/local/share/doc/libxml2-2.9.2/html/xml.html +5995 -0
  458. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath1.c +250 -0
  459. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath1.res +5 -0
  460. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath2.c +190 -0
  461. data/vendor/local/share/doc/libxml2-2.9.2/html/xpath2.res +30 -0
  462. data/vendor/local/share/fontconfig/conf.avail/10-autohint.conf +14 -0
  463. data/vendor/local/share/fontconfig/conf.avail/10-no-sub-pixel.conf +14 -0
  464. data/vendor/local/share/fontconfig/conf.avail/10-scale-bitmap-fonts.conf +81 -0
  465. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-bgr.conf +14 -0
  466. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-rgb.conf +14 -0
  467. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vbgr.conf +14 -0
  468. data/vendor/local/share/fontconfig/conf.avail/10-sub-pixel-vrgb.conf +14 -0
  469. data/vendor/local/share/fontconfig/conf.avail/10-unhinted.conf +14 -0
  470. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-default.conf +16 -0
  471. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-legacy.conf +16 -0
  472. data/vendor/local/share/fontconfig/conf.avail/11-lcdfilter-light.conf +16 -0
  473. data/vendor/local/share/fontconfig/conf.avail/20-unhint-small-vera.conf +48 -0
  474. data/vendor/local/share/fontconfig/conf.avail/25-unhint-nonlatin.conf +128 -0
  475. data/vendor/local/share/fontconfig/conf.avail/30-metric-aliases.conf +546 -0
  476. data/vendor/local/share/fontconfig/conf.avail/30-urw-aliases.conf +24 -0
  477. data/vendor/local/share/fontconfig/conf.avail/40-nonlatin.conf +231 -0
  478. data/vendor/local/share/fontconfig/conf.avail/45-latin.conf +189 -0
  479. data/vendor/local/share/fontconfig/conf.avail/49-sansserif.conf +21 -0
  480. data/vendor/local/share/fontconfig/conf.avail/50-user.conf +15 -0
  481. data/vendor/local/share/fontconfig/conf.avail/51-local.conf +6 -0
  482. data/vendor/local/share/fontconfig/conf.avail/60-latin.conf +70 -0
  483. data/vendor/local/share/fontconfig/conf.avail/65-fonts-persian.conf +419 -0
  484. data/vendor/local/share/fontconfig/conf.avail/65-khmer.conf +16 -0
  485. data/vendor/local/share/fontconfig/conf.avail/65-nonlatin.conf +196 -0
  486. data/vendor/local/share/fontconfig/conf.avail/69-unifont.conf +28 -0
  487. data/vendor/local/share/fontconfig/conf.avail/70-no-bitmaps.conf +12 -0
  488. data/vendor/local/share/fontconfig/conf.avail/70-yes-bitmaps.conf +12 -0
  489. data/vendor/local/share/fontconfig/conf.avail/80-delicious.conf +19 -0
  490. data/vendor/local/share/fontconfig/conf.avail/90-synthetic.conf +64 -0
  491. data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +122 -0
  492. data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +53 -0
  493. data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +123 -0
  494. data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +121 -0
  495. data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +117 -0
  496. data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +75 -0
  497. data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +120 -0
  498. data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +92 -0
  499. data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +93 -0
  500. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +397 -0
  501. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +428 -0
  502. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +452 -0
  503. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +342 -0
  504. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +315 -0
  505. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1194 -0
  506. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +577 -0
  507. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +129 -0
  508. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +197 -0
  509. data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +600 -0
  510. data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +226 -0
  511. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +810 -0
  512. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +302 -0
  513. data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +360 -0
  514. data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +394 -0
  515. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +156 -0
  516. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +677 -0
  517. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +342 -0
  518. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +326 -0
  519. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +280 -0
  520. data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +527 -0
  521. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +535 -0
  522. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +170 -0
  523. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +636 -0
  524. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +380 -0
  525. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +653 -0
  526. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +559 -0
  527. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2231 -0
  528. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +956 -0
  529. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1637 -0
  530. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2695 -0
  531. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +53 -0
  532. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +53 -0
  533. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +44 -0
  534. data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +74 -0
  535. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1138 -0
  536. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +747 -0
  537. data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  538. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +177 -0
  539. data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +193 -0
  540. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +179 -0
  541. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +123 -0
  542. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +107 -0
  543. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +128 -0
  544. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +1122 -0
  545. data/vendor/local/share/gtk-doc/html/cairo/index.html +157 -0
  546. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +833 -0
  547. data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +73 -0
  548. data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  549. data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  550. data/vendor/local/share/gtk-doc/html/cairo/style.css +266 -0
  551. data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  552. data/vendor/local/share/gtk-doc/html/libxml2/general.html +38 -0
  553. data/vendor/local/share/gtk-doc/html/libxml2/home.png +0 -0
  554. data/vendor/local/share/gtk-doc/html/libxml2/index.html +67 -0
  555. data/vendor/local/share/gtk-doc/html/libxml2/left.png +0 -0
  556. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-DOCBparser.html +138 -0
  557. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLparser.html +373 -0
  558. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-HTMLtree.html +172 -0
  559. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX.html +243 -0
  560. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-SAX2.html +247 -0
  561. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-c14n.html +91 -0
  562. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-catalog.html +278 -0
  563. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-chvalid.html +241 -0
  564. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-debugXML.html +225 -0
  565. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-dict.html +134 -0
  566. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-encoding.html +218 -0
  567. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-entities.html +166 -0
  568. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-globals.html +383 -0
  569. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-hash.html +214 -0
  570. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-list.html +226 -0
  571. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanoftp.html +187 -0
  572. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-nanohttp.html +142 -0
  573. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parser.html +766 -0
  574. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-parserInternals.html +688 -0
  575. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-pattern.html +166 -0
  576. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-relaxng.html +278 -0
  577. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schemasInternals.html +860 -0
  578. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-schematron.html +166 -0
  579. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-threads.html +161 -0
  580. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-tree.html +1597 -0
  581. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-uri.html +154 -0
  582. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-valid.html +528 -0
  583. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xinclude.html +169 -0
  584. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xlink.html +160 -0
  585. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlIO.html +347 -0
  586. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlautomata.html +176 -0
  587. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlerror.html +953 -0
  588. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlexports.html +87 -0
  589. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmemory.html +186 -0
  590. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlmodule.html +97 -0
  591. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlreader.html +565 -0
  592. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlregexp.html +280 -0
  593. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlsave.html +133 -0
  594. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemas.html +314 -0
  595. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlschemastypes.html +237 -0
  596. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlstring.html +217 -0
  597. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlunicode.html +887 -0
  598. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlversion.html +292 -0
  599. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xmlwriter.html +479 -0
  600. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpath.html +542 -0
  601. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpathInternals.html +787 -0
  602. data/vendor/local/share/gtk-doc/html/libxml2/libxml2-xpointer.html +171 -0
  603. data/vendor/local/share/gtk-doc/html/libxml2/libxml2.devhelp +3573 -0
  604. data/vendor/local/share/gtk-doc/html/libxml2/right.png +0 -0
  605. data/vendor/local/share/gtk-doc/html/libxml2/style.css +66 -0
  606. data/vendor/local/share/gtk-doc/html/libxml2/up.png +0 -0
  607. data/vendor/local/share/license/cairo/AUTHORS +115 -0
  608. data/vendor/local/share/license/cairo/COPYING +33 -0
  609. data/vendor/local/share/license/cairo/COPYING-LGPL-2.1 +510 -0
  610. data/vendor/local/share/license/cairo/COPYING-MPL-1.1 +470 -0
  611. data/vendor/local/share/license/cairo/README +204 -0
  612. data/vendor/local/share/license/cairo/README.win32 +66 -0
  613. data/vendor/local/share/license/fontconfig/AUTHORS +3 -0
  614. data/vendor/local/share/license/fontconfig/COPYING +28 -0
  615. data/vendor/local/share/license/fontconfig/README +1484 -0
  616. data/vendor/local/share/license/freetype/README +83 -0
  617. data/vendor/local/share/license/freetype/README.git +50 -0
  618. data/vendor/local/share/license/libpng/README +215 -0
  619. data/vendor/local/share/license/libxml2/AUTHORS +5 -0
  620. data/vendor/local/share/license/libxml2/COPYING +23 -0
  621. data/vendor/local/share/license/libxml2/README +39 -0
  622. data/vendor/local/share/license/libxml2/README.tests +39 -0
  623. data/vendor/local/share/license/pixman/AUTHORS +0 -0
  624. data/vendor/local/share/license/pixman/COPYING +42 -0
  625. data/vendor/local/share/license/pixman/README +116 -0
  626. data/vendor/local/share/license/zlib/README +115 -0
  627. data/vendor/local/share/man/man1/freetype-config.1 +108 -0
  628. data/vendor/local/share/man/man1/xml2-config.1 +30 -0
  629. data/vendor/local/share/man/man1/xmlcatalog.1 +340 -0
  630. data/vendor/local/share/man/man1/xmllint.1 +647 -0
  631. data/vendor/local/share/man/man3/libpng.3 +6217 -0
  632. data/vendor/local/share/man/man3/libpngpf.3 +18 -0
  633. data/vendor/local/share/man/man3/libxml.3 +71 -0
  634. data/vendor/local/share/man/man5/png.5 +74 -0
  635. data/vendor/local/share/xml/fontconfig/fonts.dtd +233 -0
  636. metadata +774 -0
@@ -0,0 +1,2695 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>cairo_t</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.76.1">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-drawing.html" title="Drawing">
9
+ <link rel="prev" href="cairo-drawing.html" title="Drawing">
10
+ <link rel="next" href="cairo-Paths.html" title="Paths">
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-drawing.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="cairo-drawing.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-Paths.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
+ </tr>
23
+ <tr><td colspan="5" class="shortcuts">
24
+ <a href="#cairo-cairo-t.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-cairo-t.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry">
30
+ <a name="cairo-cairo-t"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="cairo-cairo-t.top_of_page"></a>cairo_t</span></h2>
34
+ <p>cairo_t — The cairo drawing context</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv">
39
+ <a name="cairo-cairo-t.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">typedef <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t">cairo_t</a>;
41
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="returnvalue">cairo_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-create" title="cairo_create ()">cairo_create</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *target</code></em>);
42
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="returnvalue">cairo_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-reference" title="cairo_reference ()">cairo_reference</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
43
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-destroy" title="cairo_destroy ()">cairo_destroy</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
44
+ <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-t.html#cairo-status" title="cairo_status ()">cairo_status</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
45
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()">cairo_save</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
46
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()">cairo_restore</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
47
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-get-target" title="cairo_get_target ()">cairo_get_target</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
48
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()">cairo_push_group</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
49
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-push-group-with-content" title="cairo_push_group_with_content ()">cairo_push_group_with_content</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
50
+ <em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> content</code></em>);
51
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-pop-group" title="cairo_pop_group ()">cairo_pop_group</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
52
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-pop-group-to-source" title="cairo_pop_group_to_source ()">cairo_pop_group_to_source</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
53
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-get-group-target" title="cairo_get_group_target ()">cairo_get_group_target</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
54
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-source-rgb" title="cairo_set_source_rgb ()">cairo_set_source_rgb</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
55
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
56
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
57
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>);
58
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-source-rgba" title="cairo_set_source_rgba ()">cairo_set_source_rgba</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
59
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
60
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
61
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>,
62
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);
63
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-source" title="cairo_set_source ()">cairo_set_source</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
64
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *source</code></em>);
65
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-source-surface" title="cairo_set_source_surface ()">cairo_set_source_surface</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
66
+ <em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
67
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
68
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);
69
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-get-source" title="cairo_get_source ()">cairo_get_source</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
70
+ enum <a class="link" href="cairo-cairo-t.html#cairo-antialias-t" title="enum cairo_antialias_t">cairo_antialias_t</a>;
71
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-antialias" title="cairo_set_antialias ()">cairo_set_antialias</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
72
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-antialias-t" title="enum cairo_antialias_t"><span class="type">cairo_antialias_t</span></a> antialias</code></em>);
73
+ <a class="link" href="cairo-cairo-t.html#cairo-antialias-t" title="enum cairo_antialias_t"><span class="returnvalue">cairo_antialias_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-get-antialias" title="cairo_get_antialias ()">cairo_get_antialias</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
74
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()">cairo_set_dash</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
75
+ <em class="parameter"><code>const <span class="type">double</span> *dashes</code></em>,
76
+ <em class="parameter"><code><span class="type">int</span> num_dashes</code></em>,
77
+ <em class="parameter"><code><span class="type">double</span> offset</code></em>);
78
+ <span class="returnvalue">int</span> <a class="link" href="cairo-cairo-t.html#cairo-get-dash-count" title="cairo_get_dash_count ()">cairo_get_dash_count</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
79
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-get-dash" title="cairo_get_dash ()">cairo_get_dash</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
80
+ <em class="parameter"><code><span class="type">double</span> *dashes</code></em>,
81
+ <em class="parameter"><code><span class="type">double</span> *offset</code></em>);
82
+ enum <a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t">cairo_fill_rule_t</a>;
83
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()">cairo_set_fill_rule</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
84
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="type">cairo_fill_rule_t</span></a> fill_rule</code></em>);
85
+ <a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="returnvalue">cairo_fill_rule_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-get-fill-rule" title="cairo_get_fill_rule ()">cairo_get_fill_rule</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
86
+ enum <a class="link" href="cairo-cairo-t.html#cairo-line-cap-t" title="enum cairo_line_cap_t">cairo_line_cap_t</a>;
87
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-line-cap" title="cairo_set_line_cap ()">cairo_set_line_cap</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
88
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-line-cap-t" title="enum cairo_line_cap_t"><span class="type">cairo_line_cap_t</span></a> line_cap</code></em>);
89
+ <a class="link" href="cairo-cairo-t.html#cairo-line-cap-t" title="enum cairo_line_cap_t"><span class="returnvalue">cairo_line_cap_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-get-line-cap" title="cairo_get_line_cap ()">cairo_get_line_cap</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
90
+ enum <a class="link" href="cairo-cairo-t.html#cairo-line-join-t" title="enum cairo_line_join_t">cairo_line_join_t</a>;
91
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()">cairo_set_line_join</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
92
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-line-join-t" title="enum cairo_line_join_t"><span class="type">cairo_line_join_t</span></a> line_join</code></em>);
93
+ <a class="link" href="cairo-cairo-t.html#cairo-line-join-t" title="enum cairo_line_join_t"><span class="returnvalue">cairo_line_join_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-get-line-join" title="cairo_get_line_join ()">cairo_get_line_join</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
94
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()">cairo_set_line_width</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
95
+ <em class="parameter"><code><span class="type">double</span> width</code></em>);
96
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-t.html#cairo-get-line-width" title="cairo_get_line_width ()">cairo_get_line_width</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
97
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-miter-limit" title="cairo_set_miter_limit ()">cairo_set_miter_limit</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
98
+ <em class="parameter"><code><span class="type">double</span> limit</code></em>);
99
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-t.html#cairo-get-miter-limit" title="cairo_get_miter_limit ()">cairo_get_miter_limit</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
100
+ enum <a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t">cairo_operator_t</a>;
101
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-operator" title="cairo_set_operator ()">cairo_set_operator</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
102
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="type">cairo_operator_t</span></a> op</code></em>);
103
+ <a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="returnvalue">cairo_operator_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-get-operator" title="cairo_get_operator ()">cairo_get_operator</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
104
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-set-tolerance" title="cairo_set_tolerance ()">cairo_set_tolerance</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
105
+ <em class="parameter"><code><span class="type">double</span> tolerance</code></em>);
106
+ <span class="returnvalue">double</span> <a class="link" href="cairo-cairo-t.html#cairo-get-tolerance" title="cairo_get_tolerance ()">cairo_get_tolerance</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
107
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()">cairo_clip</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
108
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-clip-preserve" title="cairo_clip_preserve ()">cairo_clip_preserve</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
109
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-clip-extents" title="cairo_clip_extents ()">cairo_clip_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
110
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
111
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
112
+ <em class="parameter"><code><span class="type">double</span> *x2</code></em>,
113
+ <em class="parameter"><code><span class="type">double</span> *y2</code></em>);
114
+ <a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-in-clip" title="cairo_in_clip ()">cairo_in_clip</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
115
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
116
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);
117
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-reset-clip" title="cairo_reset_clip ()">cairo_reset_clip</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
118
+ <a class="link" href="cairo-cairo-t.html#cairo-rectangle-t" title="cairo_rectangle_t">cairo_rectangle_t</a>;
119
+ <a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-t" title="cairo_rectangle_list_t">cairo_rectangle_list_t</a>;
120
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-destroy" title="cairo_rectangle_list_destroy ()">cairo_rectangle_list_destroy</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-t" title="cairo_rectangle_list_t"><span class="type">cairo_rectangle_list_t</span></a> *rectangle_list</code></em>);
121
+ <a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-t" title="cairo_rectangle_list_t"><span class="returnvalue">cairo_rectangle_list_t</span></a> * <a class="link" href="cairo-cairo-t.html#cairo-copy-clip-rectangle-list" title="cairo_copy_clip_rectangle_list ()">cairo_copy_clip_rectangle_list</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
122
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()">cairo_fill</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
123
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-fill-preserve" title="cairo_fill_preserve ()">cairo_fill_preserve</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
124
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-fill-extents" title="cairo_fill_extents ()">cairo_fill_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
125
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
126
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
127
+ <em class="parameter"><code><span class="type">double</span> *x2</code></em>,
128
+ <em class="parameter"><code><span class="type">double</span> *y2</code></em>);
129
+ <a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-in-fill" title="cairo_in_fill ()">cairo_in_fill</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
130
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
131
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);
132
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-mask" title="cairo_mask ()">cairo_mask</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
133
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
134
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-mask-surface" title="cairo_mask_surface ()">cairo_mask_surface</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
135
+ <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>,
136
+ <em class="parameter"><code><span class="type">double</span> surface_x</code></em>,
137
+ <em class="parameter"><code><span class="type">double</span> surface_y</code></em>);
138
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-paint" title="cairo_paint ()">cairo_paint</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
139
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-paint-with-alpha" title="cairo_paint_with_alpha ()">cairo_paint_with_alpha</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
140
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);
141
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()">cairo_stroke</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
142
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-stroke-preserve" title="cairo_stroke_preserve ()">cairo_stroke_preserve</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
143
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()">cairo_stroke_extents</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
144
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
145
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
146
+ <em class="parameter"><code><span class="type">double</span> *x2</code></em>,
147
+ <em class="parameter"><code><span class="type">double</span> *y2</code></em>);
148
+ <a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> <a class="link" href="cairo-cairo-t.html#cairo-in-stroke" title="cairo_in_stroke ()">cairo_in_stroke</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
149
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
150
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);
151
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-copy-page" title="cairo_copy_page ()">cairo_copy_page</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
152
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-t.html#cairo-show-page" title="cairo_show_page ()">cairo_show_page</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
153
+ unsigned <span class="returnvalue">int</span> <a class="link" href="cairo-cairo-t.html#cairo-get-reference-count" title="cairo_get_reference_count ()">cairo_get_reference_count</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);
154
+ <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-t.html#cairo-set-user-data" title="cairo_set_user_data ()">cairo_set_user_data</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
155
+ <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>,
156
+ <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
157
+ <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>);
158
+ <span class="returnvalue">void</span> * <a class="link" href="cairo-cairo-t.html#cairo-get-user-data" title="cairo_get_user_data ()">cairo_get_user_data</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
159
+ <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>);
160
+ </pre>
161
+ </div>
162
+ <div class="refsect1">
163
+ <a name="cairo-cairo-t.description"></a><h2>Description</h2>
164
+ <p>
165
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> is the main object used when drawing with cairo. To
166
+ draw with cairo, you create a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>, set the target surface,
167
+ and drawing options for the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>, create shapes with
168
+ functions like <a class="link" href="cairo-Paths.html#cairo-move-to" title="cairo_move_to ()"><code class="function">cairo_move_to()</code></a> and <a class="link" href="cairo-Paths.html#cairo-line-to" title="cairo_line_to ()"><code class="function">cairo_line_to()</code></a>, and then
169
+ draw shapes with <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>.
170
+ </p>
171
+ <p>
172
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>'s can be pushed to a stack via <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a>.
173
+ They may then safely be changed, without losing the current state.
174
+ Use <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a> to restore to the saved state.
175
+ </p>
176
+ </div>
177
+ <div class="refsect1">
178
+ <a name="cairo-cairo-t.details"></a><h2>Details</h2>
179
+ <div class="refsect2">
180
+ <a name="cairo-t"></a><h3>cairo_t</h3>
181
+ <pre class="programlisting">typedef struct _cairo cairo_t;
182
+ </pre>
183
+ <p>
184
+ A <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> contains the current state of the rendering device,
185
+ including coordinates of yet to be drawn shapes.
186
+ </p>
187
+ <p>
188
+ Cairo contexts, as <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> objects are named, are central to
189
+ cairo and all drawing with cairo is always done to a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
190
+ object.
191
+ </p>
192
+ <p>
193
+ Memory management of <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> is done with
194
+ <a class="link" href="cairo-cairo-t.html#cairo-reference" title="cairo_reference ()"><code class="function">cairo_reference()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-destroy" title="cairo_destroy ()"><code class="function">cairo_destroy()</code></a>.
195
+ </p>
196
+ <p class="since">Since 1.0</p>
197
+ </div>
198
+ <hr>
199
+ <div class="refsect2">
200
+ <a name="cairo-create"></a><h3>cairo_create ()</h3>
201
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="returnvalue">cairo_t</span></a> * cairo_create (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *target</code></em>);</pre>
202
+ <p>
203
+ Creates a new <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with all graphics state parameters set to
204
+ default values and with <em class="parameter"><code>target</code></em> as a target surface. The target
205
+ surface should be constructed with a backend-specific function such
206
+ as <a class="link" href="cairo-Image-Surfaces.html#cairo-image-surface-create" title="cairo_image_surface_create ()"><code class="function">cairo_image_surface_create()</code></a> (or any other
207
+ <code class="function">cairo_<span class="emphasis"><em>backend</em></span>_surface_create()</code>
208
+ variant).
209
+ </p>
210
+ <p>
211
+ This function references <em class="parameter"><code>target</code></em>, so you can immediately
212
+ call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> on it if you don't need to
213
+ maintain a separate reference to it.
214
+ </p>
215
+ <div class="variablelist"><table border="0">
216
+ <col align="left" valign="top">
217
+ <tbody>
218
+ <tr>
219
+ <td><p><span class="term"><em class="parameter"><code>target</code></em> :</span></p></td>
220
+ <td>target surface for the context</td>
221
+ </tr>
222
+ <tr>
223
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
224
+ <td>a newly allocated <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> with a reference
225
+ count of 1. The initial reference count should be released
226
+ with <a class="link" href="cairo-cairo-t.html#cairo-destroy" title="cairo_destroy ()"><code class="function">cairo_destroy()</code></a> when you are done using the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
227
+ This function never returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. If memory cannot be
228
+ allocated, a special <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> object will be returned on
229
+ which <a class="link" href="cairo-cairo-t.html#cairo-status" title="cairo_status ()"><code class="function">cairo_status()</code></a> returns <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>. If
230
+ you attempt to target a surface which does not support
231
+ writing (such as <span class="type">cairo_mime_surface_t</span>) then a
232
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-WRITE-ERROR:CAPS"><code class="literal">CAIRO_STATUS_WRITE_ERROR</code></a> will be raised. You can use this
233
+ object normally, but no drawing will be done.</td>
234
+ </tr>
235
+ </tbody>
236
+ </table></div>
237
+ <p class="since">Since 1.0</p>
238
+ </div>
239
+ <hr>
240
+ <div class="refsect2">
241
+ <a name="cairo-reference"></a><h3>cairo_reference ()</h3>
242
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="returnvalue">cairo_t</span></a> * cairo_reference (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
243
+ <p>
244
+ Increases the reference count on <em class="parameter"><code>cr</code></em> by one. This prevents
245
+ <em class="parameter"><code>cr</code></em> from being destroyed until a matching call to <a class="link" href="cairo-cairo-t.html#cairo-destroy" title="cairo_destroy ()"><code class="function">cairo_destroy()</code></a>
246
+ is made.
247
+ </p>
248
+ <p>
249
+ The number of references to a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> can be get using
250
+ <a class="link" href="cairo-cairo-t.html#cairo-get-reference-count" title="cairo_get_reference_count ()"><code class="function">cairo_get_reference_count()</code></a>.
251
+ </p>
252
+ <div class="variablelist"><table border="0">
253
+ <col align="left" valign="top">
254
+ <tbody>
255
+ <tr>
256
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
257
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
258
+ </td>
259
+ </tr>
260
+ <tr>
261
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
262
+ <td>the referenced <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.</td>
263
+ </tr>
264
+ </tbody>
265
+ </table></div>
266
+ <p class="since">Since 1.0</p>
267
+ </div>
268
+ <hr>
269
+ <div class="refsect2">
270
+ <a name="cairo-destroy"></a><h3>cairo_destroy ()</h3>
271
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_destroy (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
272
+ <p>
273
+ Decreases the reference count on <em class="parameter"><code>cr</code></em> by one. If the result
274
+ is zero, then <em class="parameter"><code>cr</code></em> and all associated resources are freed.
275
+ See <a class="link" href="cairo-cairo-t.html#cairo-reference" title="cairo_reference ()"><code class="function">cairo_reference()</code></a>.
276
+ </p>
277
+ <div class="variablelist"><table border="0">
278
+ <col align="left" valign="top">
279
+ <tbody><tr>
280
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
281
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
282
+ </td>
283
+ </tr></tbody>
284
+ </table></div>
285
+ <p class="since">Since 1.0</p>
286
+ </div>
287
+ <hr>
288
+ <div class="refsect2">
289
+ <a name="cairo-status"></a><h3>cairo_status ()</h3>
290
+ <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_status (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
291
+ <p>
292
+ Checks whether an error has previously occurred for this context.
293
+ </p>
294
+ <div class="variablelist"><table border="0">
295
+ <col align="left" valign="top">
296
+ <tbody>
297
+ <tr>
298
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
299
+ <td>a cairo context</td>
300
+ </tr>
301
+ <tr>
302
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
303
+ <td>the current status of this context, see <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="type">cairo_status_t</span></a>
304
+ </td>
305
+ </tr>
306
+ </tbody>
307
+ </table></div>
308
+ <p class="since">Since 1.0</p>
309
+ </div>
310
+ <hr>
311
+ <div class="refsect2">
312
+ <a name="cairo-save"></a><h3>cairo_save ()</h3>
313
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_save (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
314
+ <p>
315
+ Makes a copy of the current state of <em class="parameter"><code>cr</code></em> and saves it
316
+ on an internal stack of saved states for <em class="parameter"><code>cr</code></em>. When
317
+ <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a> is called, <em class="parameter"><code>cr</code></em> will be restored to
318
+ the saved state. Multiple calls to <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a> and
319
+ <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a> can be nested; each call to <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a>
320
+ restores the state from the matching paired <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a>.
321
+ </p>
322
+ <p>
323
+ It isn't necessary to clear all saved states before
324
+ a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> is freed. If the reference count of a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
325
+ drops to zero in response to a call to <a class="link" href="cairo-cairo-t.html#cairo-destroy" title="cairo_destroy ()"><code class="function">cairo_destroy()</code></a>,
326
+ any saved states will be freed along with the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>.
327
+ </p>
328
+ <div class="variablelist"><table border="0">
329
+ <col align="left" valign="top">
330
+ <tbody><tr>
331
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
332
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
333
+ </td>
334
+ </tr></tbody>
335
+ </table></div>
336
+ <p class="since">Since 1.0</p>
337
+ </div>
338
+ <hr>
339
+ <div class="refsect2">
340
+ <a name="cairo-restore"></a><h3>cairo_restore ()</h3>
341
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_restore (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
342
+ <p>
343
+ Restores <em class="parameter"><code>cr</code></em> to the state saved by a preceding call to
344
+ <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a> and removes that state from the stack of
345
+ saved states.
346
+ </p>
347
+ <div class="variablelist"><table border="0">
348
+ <col align="left" valign="top">
349
+ <tbody><tr>
350
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
351
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
352
+ </td>
353
+ </tr></tbody>
354
+ </table></div>
355
+ <p class="since">Since 1.0</p>
356
+ </div>
357
+ <hr>
358
+ <div class="refsect2">
359
+ <a name="cairo-get-target"></a><h3>cairo_get_target ()</h3>
360
+ <pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * cairo_get_target (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
361
+ <p>
362
+ Gets the target surface for the cairo context as passed to
363
+ <a class="link" href="cairo-cairo-t.html#cairo-create" title="cairo_create ()"><code class="function">cairo_create()</code></a>.
364
+ </p>
365
+ <p>
366
+ This function will always return a valid pointer, but the result
367
+ can be a "nil" surface if <em class="parameter"><code>cr</code></em> is already in an error state,
368
+ (ie. <a class="link" href="cairo-cairo-t.html#cairo-status" title="cairo_status ()"><code class="function">cairo_status()</code></a> <code class="literal">!=</code> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>).
369
+ A nil surface is indicated by <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a>
370
+ <code class="literal">!=</code> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>.
371
+ </p>
372
+ <div class="variablelist"><table border="0">
373
+ <col align="left" valign="top">
374
+ <tbody>
375
+ <tr>
376
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
377
+ <td>a cairo context</td>
378
+ </tr>
379
+ <tr>
380
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
381
+ <td>the target surface. This object is owned by cairo. To
382
+ keep a reference to it, you must call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a>.</td>
383
+ </tr>
384
+ </tbody>
385
+ </table></div>
386
+ <p class="since">Since 1.0</p>
387
+ </div>
388
+ <hr>
389
+ <div class="refsect2">
390
+ <a name="cairo-push-group"></a><h3>cairo_push_group ()</h3>
391
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_push_group (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
392
+ <p>
393
+ Temporarily redirects drawing to an intermediate surface known as a
394
+ group. The redirection lasts until the group is completed by a call
395
+ to <a class="link" href="cairo-cairo-t.html#cairo-pop-group" title="cairo_pop_group ()"><code class="function">cairo_pop_group()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-pop-group-to-source" title="cairo_pop_group_to_source ()"><code class="function">cairo_pop_group_to_source()</code></a>. These calls
396
+ provide the result of any drawing to the group as a pattern,
397
+ (either as an explicit object, or set as the source pattern).
398
+ </p>
399
+ <p>
400
+ This group functionality can be convenient for performing
401
+ intermediate compositing. One common use of a group is to render
402
+ objects as opaque within the group, (so that they occlude each
403
+ other), and then blend the result with translucence onto the
404
+ destination.
405
+ </p>
406
+ <p>
407
+ Groups can be nested arbitrarily deep by making balanced calls to
408
+ <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()"><code class="function">cairo_push_group()</code></a>/<a class="link" href="cairo-cairo-t.html#cairo-pop-group" title="cairo_pop_group ()"><code class="function">cairo_pop_group()</code></a>. Each call pushes/pops the new
409
+ target group onto/from a stack.
410
+ </p>
411
+ <p>
412
+ The <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()"><code class="function">cairo_push_group()</code></a> function calls <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a> so that any
413
+ changes to the graphics state will not be visible outside the
414
+ group, (the pop_group functions call <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a>).
415
+ </p>
416
+ <p>
417
+ By default the intermediate group will have a content type of
418
+ <a class="link" href="cairo-cairo-surface-t.html#CAIRO-CONTENT-COLOR-ALPHA:CAPS"><code class="literal">CAIRO_CONTENT_COLOR_ALPHA</code></a>. Other content types can be chosen for
419
+ the group by using <a class="link" href="cairo-cairo-t.html#cairo-push-group-with-content" title="cairo_push_group_with_content ()"><code class="function">cairo_push_group_with_content()</code></a> instead.
420
+ </p>
421
+ <p>
422
+ As an example, here is how one might fill and stroke a path with
423
+ translucence, but without any portion of the fill being visible
424
+ under the stroke:
425
+ </p>
426
+ <p>
427
+ </p>
428
+ <div class="informalexample"><pre class="programlisting">
429
+ cairo_push_group (cr);
430
+ cairo_set_source (cr, fill_pattern);
431
+ cairo_fill_preserve (cr);
432
+ cairo_set_source (cr, stroke_pattern);
433
+ cairo_stroke (cr);
434
+ cairo_pop_group_to_source (cr);
435
+ cairo_paint_with_alpha (cr, alpha);
436
+ </pre></div>
437
+ <p>
438
+ </p>
439
+ <div class="variablelist"><table border="0">
440
+ <col align="left" valign="top">
441
+ <tbody><tr>
442
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
443
+ <td>a cairo context</td>
444
+ </tr></tbody>
445
+ </table></div>
446
+ <p class="since">Since 1.2</p>
447
+ </div>
448
+ <hr>
449
+ <div class="refsect2">
450
+ <a name="cairo-push-group-with-content"></a><h3>cairo_push_group_with_content ()</h3>
451
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_push_group_with_content (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
452
+ <em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> content</code></em>);</pre>
453
+ <p>
454
+ Temporarily redirects drawing to an intermediate surface known as a
455
+ group. The redirection lasts until the group is completed by a call
456
+ to <a class="link" href="cairo-cairo-t.html#cairo-pop-group" title="cairo_pop_group ()"><code class="function">cairo_pop_group()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-pop-group-to-source" title="cairo_pop_group_to_source ()"><code class="function">cairo_pop_group_to_source()</code></a>. These calls
457
+ provide the result of any drawing to the group as a pattern,
458
+ (either as an explicit object, or set as the source pattern).
459
+ </p>
460
+ <p>
461
+ The group will have a content type of <em class="parameter"><code>content</code></em>. The ability to
462
+ control this content type is the only distinction between this
463
+ function and <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()"><code class="function">cairo_push_group()</code></a> which you should see for a more
464
+ detailed description of group rendering.
465
+ </p>
466
+ <div class="variablelist"><table border="0">
467
+ <col align="left" valign="top">
468
+ <tbody>
469
+ <tr>
470
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
471
+ <td>a cairo context</td>
472
+ </tr>
473
+ <tr>
474
+ <td><p><span class="term"><em class="parameter"><code>content</code></em> :</span></p></td>
475
+ <td>a <a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> indicating the type of group that
476
+ will be created</td>
477
+ </tr>
478
+ </tbody>
479
+ </table></div>
480
+ <p class="since">Since 1.2</p>
481
+ </div>
482
+ <hr>
483
+ <div class="refsect2">
484
+ <a name="cairo-pop-group"></a><h3>cairo_pop_group ()</h3>
485
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pop_group (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
486
+ <p>
487
+ Terminates the redirection begun by a call to <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()"><code class="function">cairo_push_group()</code></a> or
488
+ <a class="link" href="cairo-cairo-t.html#cairo-push-group-with-content" title="cairo_push_group_with_content ()"><code class="function">cairo_push_group_with_content()</code></a> and returns a new pattern
489
+ containing the results of all drawing operations performed to the
490
+ group.
491
+ </p>
492
+ <p>
493
+ The <a class="link" href="cairo-cairo-t.html#cairo-pop-group" title="cairo_pop_group ()"><code class="function">cairo_pop_group()</code></a> function calls <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a>, (balancing a
494
+ call to <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a> by the push_group function), so that any
495
+ changes to the graphics state will not be visible outside the
496
+ group.
497
+ </p>
498
+ <div class="variablelist"><table border="0">
499
+ <col align="left" valign="top">
500
+ <tbody>
501
+ <tr>
502
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
503
+ <td>a cairo context</td>
504
+ </tr>
505
+ <tr>
506
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
507
+ <td>a newly created (surface) pattern containing the
508
+ results of all drawing operations performed to the group. The
509
+ caller owns the returned object and should call
510
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> when finished with it.</td>
511
+ </tr>
512
+ </tbody>
513
+ </table></div>
514
+ <p class="since">Since 1.2</p>
515
+ </div>
516
+ <hr>
517
+ <div class="refsect2">
518
+ <a name="cairo-pop-group-to-source"></a><h3>cairo_pop_group_to_source ()</h3>
519
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pop_group_to_source (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
520
+ <p>
521
+ Terminates the redirection begun by a call to <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()"><code class="function">cairo_push_group()</code></a> or
522
+ <a class="link" href="cairo-cairo-t.html#cairo-push-group-with-content" title="cairo_push_group_with_content ()"><code class="function">cairo_push_group_with_content()</code></a> and installs the resulting pattern
523
+ as the source pattern in the given cairo context.
524
+ </p>
525
+ <p>
526
+ The behavior of this function is equivalent to the sequence of
527
+ operations:
528
+ </p>
529
+ <p>
530
+ </p>
531
+ <div class="informalexample"><pre class="programlisting">
532
+ cairo_pattern_t *group = cairo_pop_group (cr);
533
+ cairo_set_source (cr, group);
534
+ cairo_pattern_destroy (group);
535
+ </pre></div>
536
+ <p>
537
+ </p>
538
+ <p>
539
+ but is more convenient as their is no need for a variable to store
540
+ the short-lived pointer to the pattern.
541
+ </p>
542
+ <p>
543
+ The <a class="link" href="cairo-cairo-t.html#cairo-pop-group" title="cairo_pop_group ()"><code class="function">cairo_pop_group()</code></a> function calls <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a>, (balancing a
544
+ call to <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a> by the push_group function), so that any
545
+ changes to the graphics state will not be visible outside the
546
+ group.
547
+ </p>
548
+ <div class="variablelist"><table border="0">
549
+ <col align="left" valign="top">
550
+ <tbody><tr>
551
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
552
+ <td>a cairo context</td>
553
+ </tr></tbody>
554
+ </table></div>
555
+ <p class="since">Since 1.2</p>
556
+ </div>
557
+ <hr>
558
+ <div class="refsect2">
559
+ <a name="cairo-get-group-target"></a><h3>cairo_get_group_target ()</h3>
560
+ <pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> * cairo_get_group_target (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
561
+ <p>
562
+ Gets the current destination surface for the context. This is either
563
+ the original target surface as passed to <a class="link" href="cairo-cairo-t.html#cairo-create" title="cairo_create ()"><code class="function">cairo_create()</code></a> or the target
564
+ surface for the current group as started by the most recent call to
565
+ <a class="link" href="cairo-cairo-t.html#cairo-push-group" title="cairo_push_group ()"><code class="function">cairo_push_group()</code></a> or <a class="link" href="cairo-cairo-t.html#cairo-push-group-with-content" title="cairo_push_group_with_content ()"><code class="function">cairo_push_group_with_content()</code></a>.
566
+ </p>
567
+ <p>
568
+ This function will always return a valid pointer, but the result
569
+ can be a "nil" surface if <em class="parameter"><code>cr</code></em> is already in an error state,
570
+ (ie. <a class="link" href="cairo-cairo-t.html#cairo-status" title="cairo_status ()"><code class="function">cairo_status()</code></a> <code class="literal">!=</code> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>).
571
+ A nil surface is indicated by <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a>
572
+ <code class="literal">!=</code> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>.
573
+ </p>
574
+ <div class="variablelist"><table border="0">
575
+ <col align="left" valign="top">
576
+ <tbody>
577
+ <tr>
578
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
579
+ <td>a cairo context</td>
580
+ </tr>
581
+ <tr>
582
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
583
+ <td>the target surface. This object is owned by cairo. To
584
+ keep a reference to it, you must call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a>.</td>
585
+ </tr>
586
+ </tbody>
587
+ </table></div>
588
+ <p class="since">Since 1.2</p>
589
+ </div>
590
+ <hr>
591
+ <div class="refsect2">
592
+ <a name="cairo-set-source-rgb"></a><h3>cairo_set_source_rgb ()</h3>
593
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_source_rgb (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
594
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
595
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
596
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>);</pre>
597
+ <p>
598
+ Sets the source pattern within <em class="parameter"><code>cr</code></em> to an opaque color. This opaque
599
+ color will then be used for any subsequent drawing operation until
600
+ a new source pattern is set.
601
+ </p>
602
+ <p>
603
+ The color components are floating point numbers in the range 0 to
604
+ 1. If the values passed in are outside that range, they will be
605
+ clamped.
606
+ </p>
607
+ <p>
608
+ The default source pattern is opaque black, (that is, it is
609
+ equivalent to cairo_set_source_rgb(cr, 0.0, 0.0, 0.0)).
610
+ </p>
611
+ <div class="variablelist"><table border="0">
612
+ <col align="left" valign="top">
613
+ <tbody>
614
+ <tr>
615
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
616
+ <td>a cairo context</td>
617
+ </tr>
618
+ <tr>
619
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
620
+ <td>red component of color</td>
621
+ </tr>
622
+ <tr>
623
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
624
+ <td>green component of color</td>
625
+ </tr>
626
+ <tr>
627
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
628
+ <td>blue component of color</td>
629
+ </tr>
630
+ </tbody>
631
+ </table></div>
632
+ <p class="since">Since 1.0</p>
633
+ </div>
634
+ <hr>
635
+ <div class="refsect2">
636
+ <a name="cairo-set-source-rgba"></a><h3>cairo_set_source_rgba ()</h3>
637
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_source_rgba (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
638
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
639
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
640
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>,
641
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);</pre>
642
+ <p>
643
+ Sets the source pattern within <em class="parameter"><code>cr</code></em> to a translucent color. This
644
+ color will then be used for any subsequent drawing operation until
645
+ a new source pattern is set.
646
+ </p>
647
+ <p>
648
+ The color and alpha components are floating point numbers in the
649
+ range 0 to 1. If the values passed in are outside that range, they
650
+ will be clamped.
651
+ </p>
652
+ <p>
653
+ The default source pattern is opaque black, (that is, it is
654
+ equivalent to cairo_set_source_rgba(cr, 0.0, 0.0, 0.0, 1.0)).
655
+ </p>
656
+ <div class="variablelist"><table border="0">
657
+ <col align="left" valign="top">
658
+ <tbody>
659
+ <tr>
660
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
661
+ <td>a cairo context</td>
662
+ </tr>
663
+ <tr>
664
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
665
+ <td>red component of color</td>
666
+ </tr>
667
+ <tr>
668
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
669
+ <td>green component of color</td>
670
+ </tr>
671
+ <tr>
672
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
673
+ <td>blue component of color</td>
674
+ </tr>
675
+ <tr>
676
+ <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
677
+ <td>alpha component of color</td>
678
+ </tr>
679
+ </tbody>
680
+ </table></div>
681
+ <p class="since">Since 1.0</p>
682
+ </div>
683
+ <hr>
684
+ <div class="refsect2">
685
+ <a name="cairo-set-source"></a><h3>cairo_set_source ()</h3>
686
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_source (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
687
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *source</code></em>);</pre>
688
+ <p>
689
+ Sets the source pattern within <em class="parameter"><code>cr</code></em> to <em class="parameter"><code>source</code></em>. This pattern
690
+ will then be used for any subsequent drawing operation until a new
691
+ source pattern is set.
692
+ </p>
693
+ <p>
694
+ Note: The pattern's transformation matrix will be locked to the
695
+ user space in effect at the time of <a class="link" href="cairo-cairo-t.html#cairo-set-source" title="cairo_set_source ()"><code class="function">cairo_set_source()</code></a>. This means
696
+ that further modifications of the current transformation matrix
697
+ will not affect the source pattern. See <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-matrix" title="cairo_pattern_set_matrix ()"><code class="function">cairo_pattern_set_matrix()</code></a>.
698
+ </p>
699
+ <p>
700
+ The default source pattern is a solid pattern that is opaque black,
701
+ (that is, it is equivalent to cairo_set_source_rgb(cr, 0.0, 0.0,
702
+ 0.0)).
703
+ </p>
704
+ <div class="variablelist"><table border="0">
705
+ <col align="left" valign="top">
706
+ <tbody>
707
+ <tr>
708
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
709
+ <td>a cairo context</td>
710
+ </tr>
711
+ <tr>
712
+ <td><p><span class="term"><em class="parameter"><code>source</code></em> :</span></p></td>
713
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> to be used as the source for
714
+ subsequent drawing operations.</td>
715
+ </tr>
716
+ </tbody>
717
+ </table></div>
718
+ <p class="since">Since 1.0</p>
719
+ </div>
720
+ <hr>
721
+ <div class="refsect2">
722
+ <a name="cairo-set-source-surface"></a><h3>cairo_set_source_surface ()</h3>
723
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_source_surface (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
724
+ <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>,
725
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
726
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);</pre>
727
+ <p>
728
+ This is a convenience function for creating a pattern from <em class="parameter"><code>surface</code></em>
729
+ and setting it as the source in <em class="parameter"><code>cr</code></em> with <a class="link" href="cairo-cairo-t.html#cairo-set-source" title="cairo_set_source ()"><code class="function">cairo_set_source()</code></a>.
730
+ </p>
731
+ <p>
732
+ The <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> parameters give the user-space coordinate at which
733
+ the surface origin should appear. (The surface origin is its
734
+ upper-left corner before any transformation has been applied.) The
735
+ <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> parameters are negated and then set as translation values
736
+ in the pattern matrix.
737
+ </p>
738
+ <p>
739
+ Other than the initial translation pattern matrix, as described
740
+ above, all other pattern attributes, (such as its extend mode), are
741
+ set to the default values as in <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-for-surface" title="cairo_pattern_create_for_surface ()"><code class="function">cairo_pattern_create_for_surface()</code></a>.
742
+ The resulting pattern can be queried with <a class="link" href="cairo-cairo-t.html#cairo-get-source" title="cairo_get_source ()"><code class="function">cairo_get_source()</code></a> so
743
+ that these attributes can be modified if desired, (eg. to create a
744
+ repeating pattern with <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-extend" title="cairo_pattern_set_extend ()"><code class="function">cairo_pattern_set_extend()</code></a>).
745
+ </p>
746
+ <div class="variablelist"><table border="0">
747
+ <col align="left" valign="top">
748
+ <tbody>
749
+ <tr>
750
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
751
+ <td>a cairo context</td>
752
+ </tr>
753
+ <tr>
754
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
755
+ <td>a surface to be used to set the source pattern</td>
756
+ </tr>
757
+ <tr>
758
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
759
+ <td>User-space X coordinate for surface origin</td>
760
+ </tr>
761
+ <tr>
762
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
763
+ <td>User-space Y coordinate for surface origin</td>
764
+ </tr>
765
+ </tbody>
766
+ </table></div>
767
+ <p class="since">Since 1.0</p>
768
+ </div>
769
+ <hr>
770
+ <div class="refsect2">
771
+ <a name="cairo-get-source"></a><h3>cairo_get_source ()</h3>
772
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_get_source (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
773
+ <p>
774
+ Gets the current source pattern for <em class="parameter"><code>cr</code></em>.
775
+ </p>
776
+ <div class="variablelist"><table border="0">
777
+ <col align="left" valign="top">
778
+ <tbody>
779
+ <tr>
780
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
781
+ <td>a cairo context</td>
782
+ </tr>
783
+ <tr>
784
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
785
+ <td>the current source pattern. This object is owned by
786
+ cairo. To keep a reference to it, you must call
787
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-reference" title="cairo_pattern_reference ()"><code class="function">cairo_pattern_reference()</code></a>.</td>
788
+ </tr>
789
+ </tbody>
790
+ </table></div>
791
+ <p class="since">Since 1.0</p>
792
+ </div>
793
+ <hr>
794
+ <div class="refsect2">
795
+ <a name="cairo-antialias-t"></a><h3>enum cairo_antialias_t</h3>
796
+ <pre class="programlisting">typedef enum {
797
+ CAIRO_ANTIALIAS_DEFAULT,
798
+
799
+ /* method */
800
+ CAIRO_ANTIALIAS_NONE,
801
+ CAIRO_ANTIALIAS_GRAY,
802
+ CAIRO_ANTIALIAS_SUBPIXEL,
803
+
804
+ /* hints */
805
+ CAIRO_ANTIALIAS_FAST,
806
+ CAIRO_ANTIALIAS_GOOD,
807
+ CAIRO_ANTIALIAS_BEST
808
+ } cairo_antialias_t;
809
+ </pre>
810
+ <p>
811
+ Specifies the type of antialiasing to do when rendering text or shapes.
812
+ </p>
813
+ <p>
814
+ As it is not necessarily clear from the above what advantages a particular
815
+ antialias method provides, since 1.12, there is also a set of hints:
816
+ <em class="parameter"><code>CAIRO_ANTIALIAS_FAST</code></em>: Allow the backend to degrade raster quality for speed
817
+ <em class="parameter"><code>CAIRO_ANTIALIAS_GOOD</code></em>: A balance between speed and quality
818
+ <em class="parameter"><code>CAIRO_ANTIALIAS_BEST</code></em>: A high-fidelity, but potentially slow, raster mode
819
+ </p>
820
+ <p>
821
+ These make no guarantee on how the backend will perform its rasterisation
822
+ (if it even rasterises!), nor that they have any differing effect other
823
+ than to enable some form of antialiasing. In the case of glyph rendering,
824
+ <em class="parameter"><code>CAIRO_ANTIALIAS_FAST</code></em> and <em class="parameter"><code>CAIRO_ANTIALIAS_GOOD</code></em> will be mapped to
825
+ <em class="parameter"><code>CAIRO_ANTIALIAS_GRAY</code></em>, with <em class="parameter"><code>CAIRO_ANTALIAS_BEST</code></em> being equivalent to
826
+ <em class="parameter"><code>CAIRO_ANTIALIAS_SUBPIXEL</code></em>.
827
+ </p>
828
+ <p>
829
+ The interpretation of <em class="parameter"><code>CAIRO_ANTIALIAS_DEFAULT</code></em> is left entirely up to
830
+ the backend, typically this will be similar to <em class="parameter"><code>CAIRO_ANTIALIAS_GOOD</code></em>.
831
+ </p>
832
+ <div class="variablelist"><table border="0">
833
+ <col align="left" valign="top">
834
+ <tbody>
835
+ <tr>
836
+ <td><p><a name="CAIRO-ANTIALIAS-DEFAULT:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_DEFAULT</code></span></p></td>
837
+ <td>Use the default antialiasing for
838
+ the subsystem and target device, since 1.0
839
+ </td>
840
+ </tr>
841
+ <tr>
842
+ <td><p><a name="CAIRO-ANTIALIAS-NONE:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_NONE</code></span></p></td>
843
+ <td>Use a bilevel alpha mask, since 1.0
844
+ </td>
845
+ </tr>
846
+ <tr>
847
+ <td><p><a name="CAIRO-ANTIALIAS-GRAY:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_GRAY</code></span></p></td>
848
+ <td>Perform single-color antialiasing (using
849
+ shades of gray for black text on a white background, for example), since 1.0
850
+ </td>
851
+ </tr>
852
+ <tr>
853
+ <td><p><a name="CAIRO-ANTIALIAS-SUBPIXEL:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_SUBPIXEL</code></span></p></td>
854
+ <td>Perform antialiasing by taking
855
+ advantage of the order of subpixel elements on devices
856
+ such as LCD panels, since 1.0
857
+ </td>
858
+ </tr>
859
+ <tr>
860
+ <td><p><a name="CAIRO-ANTIALIAS-FAST:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_FAST</code></span></p></td>
861
+ <td>Hint that the backend should perform some
862
+ antialiasing but prefer speed over quality, since 1.12
863
+ </td>
864
+ </tr>
865
+ <tr>
866
+ <td><p><a name="CAIRO-ANTIALIAS-GOOD:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_GOOD</code></span></p></td>
867
+ <td>The backend should balance quality against
868
+ performance, since 1.12
869
+ </td>
870
+ </tr>
871
+ <tr>
872
+ <td><p><a name="CAIRO-ANTIALIAS-BEST:CAPS"></a><span class="term"><code class="literal">CAIRO_ANTIALIAS_BEST</code></span></p></td>
873
+ <td>Hint that the backend should render at the highest
874
+ quality, sacrificing speed if necessary, since 1.12
875
+ </td>
876
+ </tr>
877
+ </tbody>
878
+ </table></div>
879
+ <p class="since">Since 1.0</p>
880
+ </div>
881
+ <hr>
882
+ <div class="refsect2">
883
+ <a name="cairo-set-antialias"></a><h3>cairo_set_antialias ()</h3>
884
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_antialias (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
885
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-antialias-t" title="enum cairo_antialias_t"><span class="type">cairo_antialias_t</span></a> antialias</code></em>);</pre>
886
+ <p>
887
+ Set the antialiasing mode of the rasterizer used for drawing shapes.
888
+ This value is a hint, and a particular backend may or may not support
889
+ a particular value. At the current time, no backend supports
890
+ <a class="link" href="cairo-cairo-t.html#CAIRO-ANTIALIAS-SUBPIXEL:CAPS"><code class="literal">CAIRO_ANTIALIAS_SUBPIXEL</code></a> when drawing shapes.
891
+ </p>
892
+ <p>
893
+ Note that this option does not affect text rendering, instead see
894
+ <a class="link" href="cairo-cairo-font-options-t.html#cairo-font-options-set-antialias" title="cairo_font_options_set_antialias ()"><code class="function">cairo_font_options_set_antialias()</code></a>.
895
+ </p>
896
+ <div class="variablelist"><table border="0">
897
+ <col align="left" valign="top">
898
+ <tbody>
899
+ <tr>
900
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
901
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
902
+ </td>
903
+ </tr>
904
+ <tr>
905
+ <td><p><span class="term"><em class="parameter"><code>antialias</code></em> :</span></p></td>
906
+ <td>the new antialiasing mode</td>
907
+ </tr>
908
+ </tbody>
909
+ </table></div>
910
+ <p class="since">Since 1.0</p>
911
+ </div>
912
+ <hr>
913
+ <div class="refsect2">
914
+ <a name="cairo-get-antialias"></a><h3>cairo_get_antialias ()</h3>
915
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-antialias-t" title="enum cairo_antialias_t"><span class="returnvalue">cairo_antialias_t</span></a> cairo_get_antialias (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
916
+ <p>
917
+ Gets the current shape antialiasing mode, as set by
918
+ <a class="link" href="cairo-cairo-t.html#cairo-set-antialias" title="cairo_set_antialias ()"><code class="function">cairo_set_antialias()</code></a>.
919
+ </p>
920
+ <div class="variablelist"><table border="0">
921
+ <col align="left" valign="top">
922
+ <tbody>
923
+ <tr>
924
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
925
+ <td>a cairo context</td>
926
+ </tr>
927
+ <tr>
928
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
929
+ <td>the current shape antialiasing mode.</td>
930
+ </tr>
931
+ </tbody>
932
+ </table></div>
933
+ <p class="since">Since 1.0</p>
934
+ </div>
935
+ <hr>
936
+ <div class="refsect2">
937
+ <a name="cairo-set-dash"></a><h3>cairo_set_dash ()</h3>
938
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_dash (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
939
+ <em class="parameter"><code>const <span class="type">double</span> *dashes</code></em>,
940
+ <em class="parameter"><code><span class="type">int</span> num_dashes</code></em>,
941
+ <em class="parameter"><code><span class="type">double</span> offset</code></em>);</pre>
942
+ <p>
943
+ Sets the dash pattern to be used by <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>. A dash pattern
944
+ is specified by <em class="parameter"><code>dashes</code></em>, an array of positive values. Each value
945
+ provides the length of alternate "on" and "off" portions of the
946
+ stroke. The <em class="parameter"><code>offset</code></em> specifies an offset into the pattern at which
947
+ the stroke begins.
948
+ </p>
949
+ <p>
950
+ Each "on" segment will have caps applied as if the segment were a
951
+ separate sub-path. In particular, it is valid to use an "on" length
952
+ of 0.0 with <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-ROUND:CAPS"><code class="literal">CAIRO_LINE_CAP_ROUND</code></a> or <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-SQUARE:CAPS"><code class="literal">CAIRO_LINE_CAP_SQUARE</code></a> in order
953
+ to distributed dots or squares along a path.
954
+ </p>
955
+ <p>
956
+ Note: The length values are in user-space units as evaluated at the
957
+ time of stroking. This is not necessarily the same as the user
958
+ space at the time of <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a>.
959
+ </p>
960
+ <p>
961
+ If <em class="parameter"><code>num_dashes</code></em> is 0 dashing is disabled.
962
+ </p>
963
+ <p>
964
+ If <em class="parameter"><code>num_dashes</code></em> is 1 a symmetric pattern is assumed with alternating
965
+ on and off portions of the size specified by the single value in
966
+ <em class="parameter"><code>dashes</code></em>.
967
+ </p>
968
+ <p>
969
+ If any value in <em class="parameter"><code>dashes</code></em> is negative, or if all values are 0, then
970
+ <em class="parameter"><code>cr</code></em> will be put into an error state with a status of
971
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-INVALID-DASH:CAPS"><code class="literal">CAIRO_STATUS_INVALID_DASH</code></a>.
972
+ </p>
973
+ <div class="variablelist"><table border="0">
974
+ <col align="left" valign="top">
975
+ <tbody>
976
+ <tr>
977
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
978
+ <td>a cairo context</td>
979
+ </tr>
980
+ <tr>
981
+ <td><p><span class="term"><em class="parameter"><code>dashes</code></em> :</span></p></td>
982
+ <td>an array specifying alternate lengths of on and off stroke portions</td>
983
+ </tr>
984
+ <tr>
985
+ <td><p><span class="term"><em class="parameter"><code>num_dashes</code></em> :</span></p></td>
986
+ <td>the length of the dashes array</td>
987
+ </tr>
988
+ <tr>
989
+ <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
990
+ <td>an offset into the dash pattern at which the stroke should start</td>
991
+ </tr>
992
+ </tbody>
993
+ </table></div>
994
+ <p class="since">Since 1.0</p>
995
+ </div>
996
+ <hr>
997
+ <div class="refsect2">
998
+ <a name="cairo-get-dash-count"></a><h3>cairo_get_dash_count ()</h3>
999
+ <pre class="programlisting"><span class="returnvalue">int</span> cairo_get_dash_count (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1000
+ <p>
1001
+ This function returns the length of the dash array in <em class="parameter"><code>cr</code></em> (0 if dashing
1002
+ is not currently in effect).
1003
+ </p>
1004
+ <p>
1005
+ See also <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-get-dash" title="cairo_get_dash ()"><code class="function">cairo_get_dash()</code></a>.
1006
+ </p>
1007
+ <div class="variablelist"><table border="0">
1008
+ <col align="left" valign="top">
1009
+ <tbody>
1010
+ <tr>
1011
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1012
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
1013
+ </td>
1014
+ </tr>
1015
+ <tr>
1016
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1017
+ <td>the length of the dash array, or 0 if no dash array set.</td>
1018
+ </tr>
1019
+ </tbody>
1020
+ </table></div>
1021
+ <p class="since">Since 1.4</p>
1022
+ </div>
1023
+ <hr>
1024
+ <div class="refsect2">
1025
+ <a name="cairo-get-dash"></a><h3>cairo_get_dash ()</h3>
1026
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_get_dash (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1027
+ <em class="parameter"><code><span class="type">double</span> *dashes</code></em>,
1028
+ <em class="parameter"><code><span class="type">double</span> *offset</code></em>);</pre>
1029
+ <p>
1030
+ Gets the current dash array. If 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>dashes</code></em> should be big
1031
+ enough to hold at least the number of values returned by
1032
+ <a class="link" href="cairo-cairo-t.html#cairo-get-dash-count" title="cairo_get_dash_count ()"><code class="function">cairo_get_dash_count()</code></a>.
1033
+ </p>
1034
+ <div class="variablelist"><table border="0">
1035
+ <col align="left" valign="top">
1036
+ <tbody>
1037
+ <tr>
1038
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1039
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
1040
+ </td>
1041
+ </tr>
1042
+ <tr>
1043
+ <td><p><span class="term"><em class="parameter"><code>dashes</code></em> :</span></p></td>
1044
+ <td>return value for the dash array, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1045
+ </td>
1046
+ </tr>
1047
+ <tr>
1048
+ <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
1049
+ <td>return value for the current dash offset, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1050
+ </td>
1051
+ </tr>
1052
+ </tbody>
1053
+ </table></div>
1054
+ <p class="since">Since 1.4</p>
1055
+ </div>
1056
+ <hr>
1057
+ <div class="refsect2">
1058
+ <a name="cairo-fill-rule-t"></a><h3>enum cairo_fill_rule_t</h3>
1059
+ <pre class="programlisting">typedef enum {
1060
+ CAIRO_FILL_RULE_WINDING,
1061
+ CAIRO_FILL_RULE_EVEN_ODD
1062
+ } cairo_fill_rule_t;
1063
+ </pre>
1064
+ <p>
1065
+ <a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="type">cairo_fill_rule_t</span></a> is used to select how paths are filled. For both
1066
+ fill rules, whether or not a point is included in the fill is
1067
+ determined by taking a ray from that point to infinity and looking
1068
+ at intersections with the path. The ray can be in any direction,
1069
+ as long as it doesn't pass through the end point of a segment
1070
+ or have a tricky intersection such as intersecting tangent to the path.
1071
+ (Note that filling is not actually implemented in this way. This
1072
+ is just a description of the rule that is applied.)
1073
+ </p>
1074
+ <p>
1075
+ The default fill rule is <a class="link" href="cairo-cairo-t.html#CAIRO-FILL-RULE-WINDING:CAPS"><code class="literal">CAIRO_FILL_RULE_WINDING</code></a>.
1076
+ </p>
1077
+ <p>
1078
+ New entries may be added in future versions.
1079
+ </p>
1080
+ <div class="variablelist"><table border="0">
1081
+ <col align="left" valign="top">
1082
+ <tbody>
1083
+ <tr>
1084
+ <td><p><a name="CAIRO-FILL-RULE-WINDING:CAPS"></a><span class="term"><code class="literal">CAIRO_FILL_RULE_WINDING</code></span></p></td>
1085
+ <td>If the path crosses the ray from
1086
+ left-to-right, counts +1. If the path crosses the ray
1087
+ from right to left, counts -1. (Left and right are determined
1088
+ from the perspective of looking along the ray from the starting
1089
+ point.) If the total count is non-zero, the point will be filled. (Since 1.0)
1090
+ </td>
1091
+ </tr>
1092
+ <tr>
1093
+ <td><p><a name="CAIRO-FILL-RULE-EVEN-ODD:CAPS"></a><span class="term"><code class="literal">CAIRO_FILL_RULE_EVEN_ODD</code></span></p></td>
1094
+ <td>Counts the total number of
1095
+ intersections, without regard to the orientation of the contour. If
1096
+ the total number of intersections is odd, the point will be
1097
+ filled. (Since 1.0)
1098
+ </td>
1099
+ </tr>
1100
+ </tbody>
1101
+ </table></div>
1102
+ <p class="since">Since 1.0</p>
1103
+ </div>
1104
+ <hr>
1105
+ <div class="refsect2">
1106
+ <a name="cairo-set-fill-rule"></a><h3>cairo_set_fill_rule ()</h3>
1107
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_fill_rule (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1108
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="type">cairo_fill_rule_t</span></a> fill_rule</code></em>);</pre>
1109
+ <p>
1110
+ Set the current fill rule within the cairo context. The fill rule
1111
+ is used to determine which regions are inside or outside a complex
1112
+ (potentially self-intersecting) path. The current fill rule affects
1113
+ both <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a>. See <a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="type">cairo_fill_rule_t</span></a> for details
1114
+ on the semantics of each available fill rule.
1115
+ </p>
1116
+ <p>
1117
+ The default fill rule is <a class="link" href="cairo-cairo-t.html#CAIRO-FILL-RULE-WINDING:CAPS"><code class="literal">CAIRO_FILL_RULE_WINDING</code></a>.
1118
+ </p>
1119
+ <div class="variablelist"><table border="0">
1120
+ <col align="left" valign="top">
1121
+ <tbody>
1122
+ <tr>
1123
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1124
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
1125
+ </td>
1126
+ </tr>
1127
+ <tr>
1128
+ <td><p><span class="term"><em class="parameter"><code>fill_rule</code></em> :</span></p></td>
1129
+ <td>a fill rule, specified as a <a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="type">cairo_fill_rule_t</span></a>
1130
+ </td>
1131
+ </tr>
1132
+ </tbody>
1133
+ </table></div>
1134
+ <p class="since">Since 1.0</p>
1135
+ </div>
1136
+ <hr>
1137
+ <div class="refsect2">
1138
+ <a name="cairo-get-fill-rule"></a><h3>cairo_get_fill_rule ()</h3>
1139
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-fill-rule-t" title="enum cairo_fill_rule_t"><span class="returnvalue">cairo_fill_rule_t</span></a> cairo_get_fill_rule (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1140
+ <p>
1141
+ Gets the current fill rule, as set by <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a>.
1142
+ </p>
1143
+ <div class="variablelist"><table border="0">
1144
+ <col align="left" valign="top">
1145
+ <tbody>
1146
+ <tr>
1147
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1148
+ <td>a cairo context</td>
1149
+ </tr>
1150
+ <tr>
1151
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1152
+ <td>the current fill rule.</td>
1153
+ </tr>
1154
+ </tbody>
1155
+ </table></div>
1156
+ <p class="since">Since 1.0</p>
1157
+ </div>
1158
+ <hr>
1159
+ <div class="refsect2">
1160
+ <a name="cairo-line-cap-t"></a><h3>enum cairo_line_cap_t</h3>
1161
+ <pre class="programlisting">typedef enum {
1162
+ CAIRO_LINE_CAP_BUTT,
1163
+ CAIRO_LINE_CAP_ROUND,
1164
+ CAIRO_LINE_CAP_SQUARE
1165
+ } cairo_line_cap_t;
1166
+ </pre>
1167
+ <p>
1168
+ Specifies how to render the endpoints of the path when stroking.
1169
+ </p>
1170
+ <p>
1171
+ The default line cap style is <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-BUTT:CAPS"><code class="literal">CAIRO_LINE_CAP_BUTT</code></a>.
1172
+ </p>
1173
+ <div class="variablelist"><table border="0">
1174
+ <col align="left" valign="top">
1175
+ <tbody>
1176
+ <tr>
1177
+ <td><p><a name="CAIRO-LINE-CAP-BUTT:CAPS"></a><span class="term"><code class="literal">CAIRO_LINE_CAP_BUTT</code></span></p></td>
1178
+ <td>start(stop) the line exactly at the start(end) point (Since 1.0)
1179
+ </td>
1180
+ </tr>
1181
+ <tr>
1182
+ <td><p><a name="CAIRO-LINE-CAP-ROUND:CAPS"></a><span class="term"><code class="literal">CAIRO_LINE_CAP_ROUND</code></span></p></td>
1183
+ <td>use a round ending, the center of the circle is the end point (Since 1.0)
1184
+ </td>
1185
+ </tr>
1186
+ <tr>
1187
+ <td><p><a name="CAIRO-LINE-CAP-SQUARE:CAPS"></a><span class="term"><code class="literal">CAIRO_LINE_CAP_SQUARE</code></span></p></td>
1188
+ <td>use squared ending, the center of the square is the end point (Since 1.0)
1189
+ </td>
1190
+ </tr>
1191
+ </tbody>
1192
+ </table></div>
1193
+ <p class="since">Since 1.0</p>
1194
+ </div>
1195
+ <hr>
1196
+ <div class="refsect2">
1197
+ <a name="cairo-set-line-cap"></a><h3>cairo_set_line_cap ()</h3>
1198
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_line_cap (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1199
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-line-cap-t" title="enum cairo_line_cap_t"><span class="type">cairo_line_cap_t</span></a> line_cap</code></em>);</pre>
1200
+ <p>
1201
+ Sets the current line cap style within the cairo context. See
1202
+ <a class="link" href="cairo-cairo-t.html#cairo-line-cap-t" title="enum cairo_line_cap_t"><span class="type">cairo_line_cap_t</span></a> for details about how the available line cap
1203
+ styles are drawn.
1204
+ </p>
1205
+ <p>
1206
+ As with the other stroke parameters, the current line cap style is
1207
+ examined by <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()"><code class="function">cairo_stroke_extents()</code></a>, and
1208
+ <code class="function">cairo_stroke_to_path()</code>, but does not have any effect during path
1209
+ construction.
1210
+ </p>
1211
+ <p>
1212
+ The default line cap style is <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-BUTT:CAPS"><code class="literal">CAIRO_LINE_CAP_BUTT</code></a>.
1213
+ </p>
1214
+ <div class="variablelist"><table border="0">
1215
+ <col align="left" valign="top">
1216
+ <tbody>
1217
+ <tr>
1218
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1219
+ <td>a cairo context</td>
1220
+ </tr>
1221
+ <tr>
1222
+ <td><p><span class="term"><em class="parameter"><code>line_cap</code></em> :</span></p></td>
1223
+ <td>a line cap style</td>
1224
+ </tr>
1225
+ </tbody>
1226
+ </table></div>
1227
+ <p class="since">Since 1.0</p>
1228
+ </div>
1229
+ <hr>
1230
+ <div class="refsect2">
1231
+ <a name="cairo-get-line-cap"></a><h3>cairo_get_line_cap ()</h3>
1232
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-line-cap-t" title="enum cairo_line_cap_t"><span class="returnvalue">cairo_line_cap_t</span></a> cairo_get_line_cap (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1233
+ <p>
1234
+ Gets the current line cap style, as set by <a class="link" href="cairo-cairo-t.html#cairo-set-line-cap" title="cairo_set_line_cap ()"><code class="function">cairo_set_line_cap()</code></a>.
1235
+ </p>
1236
+ <div class="variablelist"><table border="0">
1237
+ <col align="left" valign="top">
1238
+ <tbody>
1239
+ <tr>
1240
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1241
+ <td>a cairo context</td>
1242
+ </tr>
1243
+ <tr>
1244
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1245
+ <td>the current line cap style.</td>
1246
+ </tr>
1247
+ </tbody>
1248
+ </table></div>
1249
+ <p class="since">Since 1.0</p>
1250
+ </div>
1251
+ <hr>
1252
+ <div class="refsect2">
1253
+ <a name="cairo-line-join-t"></a><h3>enum cairo_line_join_t</h3>
1254
+ <pre class="programlisting">typedef enum {
1255
+ CAIRO_LINE_JOIN_MITER,
1256
+ CAIRO_LINE_JOIN_ROUND,
1257
+ CAIRO_LINE_JOIN_BEVEL
1258
+ } cairo_line_join_t;
1259
+ </pre>
1260
+ <p>
1261
+ Specifies how to render the junction of two lines when stroking.
1262
+ </p>
1263
+ <p>
1264
+ The default line join style is <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-JOIN-MITER:CAPS"><code class="literal">CAIRO_LINE_JOIN_MITER</code></a>.
1265
+ </p>
1266
+ <div class="variablelist"><table border="0">
1267
+ <col align="left" valign="top">
1268
+ <tbody>
1269
+ <tr>
1270
+ <td><p><a name="CAIRO-LINE-JOIN-MITER:CAPS"></a><span class="term"><code class="literal">CAIRO_LINE_JOIN_MITER</code></span></p></td>
1271
+ <td>use a sharp (angled) corner, see
1272
+ <a class="link" href="cairo-cairo-t.html#cairo-set-miter-limit" title="cairo_set_miter_limit ()"><code class="function">cairo_set_miter_limit()</code></a> (Since 1.0)
1273
+ </td>
1274
+ </tr>
1275
+ <tr>
1276
+ <td><p><a name="CAIRO-LINE-JOIN-ROUND:CAPS"></a><span class="term"><code class="literal">CAIRO_LINE_JOIN_ROUND</code></span></p></td>
1277
+ <td>use a rounded join, the center of the circle is the
1278
+ joint point (Since 1.0)
1279
+ </td>
1280
+ </tr>
1281
+ <tr>
1282
+ <td><p><a name="CAIRO-LINE-JOIN-BEVEL:CAPS"></a><span class="term"><code class="literal">CAIRO_LINE_JOIN_BEVEL</code></span></p></td>
1283
+ <td>use a cut-off join, the join is cut off at half
1284
+ the line width from the joint point (Since 1.0)
1285
+ </td>
1286
+ </tr>
1287
+ </tbody>
1288
+ </table></div>
1289
+ <p class="since">Since 1.0</p>
1290
+ </div>
1291
+ <hr>
1292
+ <div class="refsect2">
1293
+ <a name="cairo-set-line-join"></a><h3>cairo_set_line_join ()</h3>
1294
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_line_join (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1295
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-line-join-t" title="enum cairo_line_join_t"><span class="type">cairo_line_join_t</span></a> line_join</code></em>);</pre>
1296
+ <p>
1297
+ Sets the current line join style within the cairo context. See
1298
+ <a class="link" href="cairo-cairo-t.html#cairo-line-join-t" title="enum cairo_line_join_t"><span class="type">cairo_line_join_t</span></a> for details about how the available line join
1299
+ styles are drawn.
1300
+ </p>
1301
+ <p>
1302
+ As with the other stroke parameters, the current line join style is
1303
+ examined by <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()"><code class="function">cairo_stroke_extents()</code></a>, and
1304
+ <code class="function">cairo_stroke_to_path()</code>, but does not have any effect during path
1305
+ construction.
1306
+ </p>
1307
+ <p>
1308
+ The default line join style is <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-JOIN-MITER:CAPS"><code class="literal">CAIRO_LINE_JOIN_MITER</code></a>.
1309
+ </p>
1310
+ <div class="variablelist"><table border="0">
1311
+ <col align="left" valign="top">
1312
+ <tbody>
1313
+ <tr>
1314
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1315
+ <td>a cairo context</td>
1316
+ </tr>
1317
+ <tr>
1318
+ <td><p><span class="term"><em class="parameter"><code>line_join</code></em> :</span></p></td>
1319
+ <td>a line join style</td>
1320
+ </tr>
1321
+ </tbody>
1322
+ </table></div>
1323
+ <p class="since">Since 1.0</p>
1324
+ </div>
1325
+ <hr>
1326
+ <div class="refsect2">
1327
+ <a name="cairo-get-line-join"></a><h3>cairo_get_line_join ()</h3>
1328
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-line-join-t" title="enum cairo_line_join_t"><span class="returnvalue">cairo_line_join_t</span></a> cairo_get_line_join (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1329
+ <p>
1330
+ Gets the current line join style, as set by <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()"><code class="function">cairo_set_line_join()</code></a>.
1331
+ </p>
1332
+ <div class="variablelist"><table border="0">
1333
+ <col align="left" valign="top">
1334
+ <tbody>
1335
+ <tr>
1336
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1337
+ <td>a cairo context</td>
1338
+ </tr>
1339
+ <tr>
1340
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1341
+ <td>the current line join style.</td>
1342
+ </tr>
1343
+ </tbody>
1344
+ </table></div>
1345
+ <p class="since">Since 1.0</p>
1346
+ </div>
1347
+ <hr>
1348
+ <div class="refsect2">
1349
+ <a name="cairo-set-line-width"></a><h3>cairo_set_line_width ()</h3>
1350
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_line_width (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1351
+ <em class="parameter"><code><span class="type">double</span> width</code></em>);</pre>
1352
+ <p>
1353
+ Sets the current line width within the cairo context. The line
1354
+ width value specifies the diameter of a pen that is circular in
1355
+ user space, (though device-space pen may be an ellipse in general
1356
+ due to scaling/shear/rotation of the CTM).
1357
+ </p>
1358
+ <p>
1359
+ Note: When the description above refers to user space and CTM it
1360
+ refers to the user space and CTM in effect at the time of the
1361
+ stroking operation, not the user space and CTM in effect at the
1362
+ time of the call to <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a>. The simplest usage
1363
+ makes both of these spaces identical. That is, if there is no
1364
+ change to the CTM between a call to <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a> and the
1365
+ stroking operation, then one can just pass user-space values to
1366
+ <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a> and ignore this note.
1367
+ </p>
1368
+ <p>
1369
+ As with the other stroke parameters, the current line width is
1370
+ examined by <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()"><code class="function">cairo_stroke_extents()</code></a>, and
1371
+ <code class="function">cairo_stroke_to_path()</code>, but does not have any effect during path
1372
+ construction.
1373
+ </p>
1374
+ <p>
1375
+ The default line width value is 2.0.
1376
+ </p>
1377
+ <div class="variablelist"><table border="0">
1378
+ <col align="left" valign="top">
1379
+ <tbody>
1380
+ <tr>
1381
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1382
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
1383
+ </td>
1384
+ </tr>
1385
+ <tr>
1386
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
1387
+ <td>a line width</td>
1388
+ </tr>
1389
+ </tbody>
1390
+ </table></div>
1391
+ <p class="since">Since 1.0</p>
1392
+ </div>
1393
+ <hr>
1394
+ <div class="refsect2">
1395
+ <a name="cairo-get-line-width"></a><h3>cairo_get_line_width ()</h3>
1396
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_get_line_width (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1397
+ <p>
1398
+ This function returns the current line width value exactly as set by
1399
+ <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a>. Note that the value is unchanged even if
1400
+ the CTM has changed between the calls to <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a> and
1401
+ <a class="link" href="cairo-cairo-t.html#cairo-get-line-width" title="cairo_get_line_width ()"><code class="function">cairo_get_line_width()</code></a>.
1402
+ </p>
1403
+ <div class="variablelist"><table border="0">
1404
+ <col align="left" valign="top">
1405
+ <tbody>
1406
+ <tr>
1407
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1408
+ <td>a cairo context</td>
1409
+ </tr>
1410
+ <tr>
1411
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1412
+ <td>the current line width.</td>
1413
+ </tr>
1414
+ </tbody>
1415
+ </table></div>
1416
+ <p class="since">Since 1.0</p>
1417
+ </div>
1418
+ <hr>
1419
+ <div class="refsect2">
1420
+ <a name="cairo-set-miter-limit"></a><h3>cairo_set_miter_limit ()</h3>
1421
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_miter_limit (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1422
+ <em class="parameter"><code><span class="type">double</span> limit</code></em>);</pre>
1423
+ <p>
1424
+ Sets the current miter limit within the cairo context.
1425
+ </p>
1426
+ <p>
1427
+ If the current line join style is set to <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-JOIN-MITER:CAPS"><code class="literal">CAIRO_LINE_JOIN_MITER</code></a>
1428
+ (see <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()"><code class="function">cairo_set_line_join()</code></a>), the miter limit is used to determine
1429
+ whether the lines should be joined with a bevel instead of a miter.
1430
+ Cairo divides the length of the miter by the line width.
1431
+ If the result is greater than the miter limit, the style is
1432
+ converted to a bevel.
1433
+ </p>
1434
+ <p>
1435
+ As with the other stroke parameters, the current line miter limit is
1436
+ examined by <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()"><code class="function">cairo_stroke_extents()</code></a>, and
1437
+ <code class="function">cairo_stroke_to_path()</code>, but does not have any effect during path
1438
+ construction.
1439
+ </p>
1440
+ <p>
1441
+ The default miter limit value is 10.0, which will convert joins
1442
+ with interior angles less than 11 degrees to bevels instead of
1443
+ miters. For reference, a miter limit of 2.0 makes the miter cutoff
1444
+ at 60 degrees, and a miter limit of 1.414 makes the cutoff at 90
1445
+ degrees.
1446
+ </p>
1447
+ <p>
1448
+ A miter limit for a desired angle can be computed as: miter limit =
1449
+ 1/sin(angle/2)
1450
+ </p>
1451
+ <div class="variablelist"><table border="0">
1452
+ <col align="left" valign="top">
1453
+ <tbody>
1454
+ <tr>
1455
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1456
+ <td>a cairo context</td>
1457
+ </tr>
1458
+ <tr>
1459
+ <td><p><span class="term"><em class="parameter"><code>limit</code></em> :</span></p></td>
1460
+ <td>miter limit to set</td>
1461
+ </tr>
1462
+ </tbody>
1463
+ </table></div>
1464
+ <p class="since">Since 1.0</p>
1465
+ </div>
1466
+ <hr>
1467
+ <div class="refsect2">
1468
+ <a name="cairo-get-miter-limit"></a><h3>cairo_get_miter_limit ()</h3>
1469
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_get_miter_limit (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1470
+ <p>
1471
+ Gets the current miter limit, as set by <a class="link" href="cairo-cairo-t.html#cairo-set-miter-limit" title="cairo_set_miter_limit ()"><code class="function">cairo_set_miter_limit()</code></a>.
1472
+ </p>
1473
+ <div class="variablelist"><table border="0">
1474
+ <col align="left" valign="top">
1475
+ <tbody>
1476
+ <tr>
1477
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1478
+ <td>a cairo context</td>
1479
+ </tr>
1480
+ <tr>
1481
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1482
+ <td>the current miter limit.</td>
1483
+ </tr>
1484
+ </tbody>
1485
+ </table></div>
1486
+ <p class="since">Since 1.0</p>
1487
+ </div>
1488
+ <hr>
1489
+ <div class="refsect2">
1490
+ <a name="cairo-operator-t"></a><h3>enum cairo_operator_t</h3>
1491
+ <pre class="programlisting">typedef enum {
1492
+ CAIRO_OPERATOR_CLEAR,
1493
+
1494
+ CAIRO_OPERATOR_SOURCE,
1495
+ CAIRO_OPERATOR_OVER,
1496
+ CAIRO_OPERATOR_IN,
1497
+ CAIRO_OPERATOR_OUT,
1498
+ CAIRO_OPERATOR_ATOP,
1499
+
1500
+ CAIRO_OPERATOR_DEST,
1501
+ CAIRO_OPERATOR_DEST_OVER,
1502
+ CAIRO_OPERATOR_DEST_IN,
1503
+ CAIRO_OPERATOR_DEST_OUT,
1504
+ CAIRO_OPERATOR_DEST_ATOP,
1505
+
1506
+ CAIRO_OPERATOR_XOR,
1507
+ CAIRO_OPERATOR_ADD,
1508
+ CAIRO_OPERATOR_SATURATE,
1509
+
1510
+ CAIRO_OPERATOR_MULTIPLY,
1511
+ CAIRO_OPERATOR_SCREEN,
1512
+ CAIRO_OPERATOR_OVERLAY,
1513
+ CAIRO_OPERATOR_DARKEN,
1514
+ CAIRO_OPERATOR_LIGHTEN,
1515
+ CAIRO_OPERATOR_COLOR_DODGE,
1516
+ CAIRO_OPERATOR_COLOR_BURN,
1517
+ CAIRO_OPERATOR_HARD_LIGHT,
1518
+ CAIRO_OPERATOR_SOFT_LIGHT,
1519
+ CAIRO_OPERATOR_DIFFERENCE,
1520
+ CAIRO_OPERATOR_EXCLUSION,
1521
+ CAIRO_OPERATOR_HSL_HUE,
1522
+ CAIRO_OPERATOR_HSL_SATURATION,
1523
+ CAIRO_OPERATOR_HSL_COLOR,
1524
+ CAIRO_OPERATOR_HSL_LUMINOSITY
1525
+ } cairo_operator_t;
1526
+ </pre>
1527
+ <p>
1528
+ <a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="type">cairo_operator_t</span></a> is used to set the compositing operator for all cairo
1529
+ drawing operations.
1530
+ </p>
1531
+ <p>
1532
+ The default operator is <a class="link" href="cairo-cairo-t.html#CAIRO-OPERATOR-OVER:CAPS"><code class="literal">CAIRO_OPERATOR_OVER</code></a>.
1533
+ </p>
1534
+ <p>
1535
+ The operators marked as <em class="firstterm">unbounded</em> modify their
1536
+ destination even outside of the mask layer (that is, their effect is not
1537
+ bound by the mask layer). However, their effect can still be limited by
1538
+ way of clipping.
1539
+ </p>
1540
+ <p>
1541
+ To keep things simple, the operator descriptions here
1542
+ document the behavior for when both source and destination are either fully
1543
+ transparent or fully opaque. The actual implementation works for
1544
+ translucent layers too.
1545
+ For a more detailed explanation of the effects of each operator, including
1546
+ the mathematical definitions, see
1547
+ <a class="ulink" href="http://cairographics.org/operators/" target="_top">http://cairographics.org/operators/</a>.
1548
+ </p>
1549
+ <div class="variablelist"><table border="0">
1550
+ <col align="left" valign="top">
1551
+ <tbody>
1552
+ <tr>
1553
+ <td><p><a name="CAIRO-OPERATOR-CLEAR:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_CLEAR</code></span></p></td>
1554
+ <td>clear destination layer (bounded) (Since 1.0)
1555
+ </td>
1556
+ </tr>
1557
+ <tr>
1558
+ <td><p><a name="CAIRO-OPERATOR-SOURCE:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_SOURCE</code></span></p></td>
1559
+ <td>replace destination layer (bounded) (Since 1.0)
1560
+ </td>
1561
+ </tr>
1562
+ <tr>
1563
+ <td><p><a name="CAIRO-OPERATOR-OVER:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_OVER</code></span></p></td>
1564
+ <td>draw source layer on top of destination layer
1565
+ (bounded) (Since 1.0)
1566
+ </td>
1567
+ </tr>
1568
+ <tr>
1569
+ <td><p><a name="CAIRO-OPERATOR-IN:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_IN</code></span></p></td>
1570
+ <td>draw source where there was destination content
1571
+ (unbounded) (Since 1.0)
1572
+ </td>
1573
+ </tr>
1574
+ <tr>
1575
+ <td><p><a name="CAIRO-OPERATOR-OUT:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_OUT</code></span></p></td>
1576
+ <td>draw source where there was no destination
1577
+ content (unbounded) (Since 1.0)
1578
+ </td>
1579
+ </tr>
1580
+ <tr>
1581
+ <td><p><a name="CAIRO-OPERATOR-ATOP:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_ATOP</code></span></p></td>
1582
+ <td>draw source on top of destination content and
1583
+ only there (Since 1.0)
1584
+ </td>
1585
+ </tr>
1586
+ <tr>
1587
+ <td><p><a name="CAIRO-OPERATOR-DEST:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DEST</code></span></p></td>
1588
+ <td>ignore the source (Since 1.0)
1589
+ </td>
1590
+ </tr>
1591
+ <tr>
1592
+ <td><p><a name="CAIRO-OPERATOR-DEST-OVER:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DEST_OVER</code></span></p></td>
1593
+ <td>draw destination on top of source (Since 1.0)
1594
+ </td>
1595
+ </tr>
1596
+ <tr>
1597
+ <td><p><a name="CAIRO-OPERATOR-DEST-IN:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DEST_IN</code></span></p></td>
1598
+ <td>leave destination only where there was
1599
+ source content (unbounded) (Since 1.0)
1600
+ </td>
1601
+ </tr>
1602
+ <tr>
1603
+ <td><p><a name="CAIRO-OPERATOR-DEST-OUT:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DEST_OUT</code></span></p></td>
1604
+ <td>leave destination only where there was no
1605
+ source content (Since 1.0)
1606
+ </td>
1607
+ </tr>
1608
+ <tr>
1609
+ <td><p><a name="CAIRO-OPERATOR-DEST-ATOP:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DEST_ATOP</code></span></p></td>
1610
+ <td>leave destination on top of source content
1611
+ and only there (unbounded) (Since 1.0)
1612
+ </td>
1613
+ </tr>
1614
+ <tr>
1615
+ <td><p><a name="CAIRO-OPERATOR-XOR:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_XOR</code></span></p></td>
1616
+ <td>source and destination are shown where there is only
1617
+ one of them (Since 1.0)
1618
+ </td>
1619
+ </tr>
1620
+ <tr>
1621
+ <td><p><a name="CAIRO-OPERATOR-ADD:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_ADD</code></span></p></td>
1622
+ <td>source and destination layers are accumulated (Since 1.0)
1623
+ </td>
1624
+ </tr>
1625
+ <tr>
1626
+ <td><p><a name="CAIRO-OPERATOR-SATURATE:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_SATURATE</code></span></p></td>
1627
+ <td>like over, but assuming source and dest are
1628
+ disjoint geometries (Since 1.0)
1629
+ </td>
1630
+ </tr>
1631
+ <tr>
1632
+ <td><p><a name="CAIRO-OPERATOR-MULTIPLY:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_MULTIPLY</code></span></p></td>
1633
+ <td>source and destination layers are multiplied.
1634
+ This causes the result to be at least as dark as the darker inputs. (Since 1.10)
1635
+ </td>
1636
+ </tr>
1637
+ <tr>
1638
+ <td><p><a name="CAIRO-OPERATOR-SCREEN:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_SCREEN</code></span></p></td>
1639
+ <td>source and destination are complemented and
1640
+ multiplied. This causes the result to be at least as light as the lighter
1641
+ inputs. (Since 1.10)
1642
+ </td>
1643
+ </tr>
1644
+ <tr>
1645
+ <td><p><a name="CAIRO-OPERATOR-OVERLAY:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_OVERLAY</code></span></p></td>
1646
+ <td>multiplies or screens, depending on the
1647
+ lightness of the destination color. (Since 1.10)
1648
+ </td>
1649
+ </tr>
1650
+ <tr>
1651
+ <td><p><a name="CAIRO-OPERATOR-DARKEN:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DARKEN</code></span></p></td>
1652
+ <td>replaces the destination with the source if it
1653
+ is darker, otherwise keeps the source. (Since 1.10)
1654
+ </td>
1655
+ </tr>
1656
+ <tr>
1657
+ <td><p><a name="CAIRO-OPERATOR-LIGHTEN:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_LIGHTEN</code></span></p></td>
1658
+ <td>replaces the destination with the source if it
1659
+ is lighter, otherwise keeps the source. (Since 1.10)
1660
+ </td>
1661
+ </tr>
1662
+ <tr>
1663
+ <td><p><a name="CAIRO-OPERATOR-COLOR-DODGE:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_COLOR_DODGE</code></span></p></td>
1664
+ <td>brightens the destination color to reflect
1665
+ the source color. (Since 1.10)
1666
+ </td>
1667
+ </tr>
1668
+ <tr>
1669
+ <td><p><a name="CAIRO-OPERATOR-COLOR-BURN:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_COLOR_BURN</code></span></p></td>
1670
+ <td>darkens the destination color to reflect
1671
+ the source color. (Since 1.10)
1672
+ </td>
1673
+ </tr>
1674
+ <tr>
1675
+ <td><p><a name="CAIRO-OPERATOR-HARD-LIGHT:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_HARD_LIGHT</code></span></p></td>
1676
+ <td>Multiplies or screens, dependent on source
1677
+ color. (Since 1.10)
1678
+ </td>
1679
+ </tr>
1680
+ <tr>
1681
+ <td><p><a name="CAIRO-OPERATOR-SOFT-LIGHT:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_SOFT_LIGHT</code></span></p></td>
1682
+ <td>Darkens or lightens, dependent on source
1683
+ color. (Since 1.10)
1684
+ </td>
1685
+ </tr>
1686
+ <tr>
1687
+ <td><p><a name="CAIRO-OPERATOR-DIFFERENCE:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_DIFFERENCE</code></span></p></td>
1688
+ <td>Takes the difference of the source and
1689
+ destination color. (Since 1.10)
1690
+ </td>
1691
+ </tr>
1692
+ <tr>
1693
+ <td><p><a name="CAIRO-OPERATOR-EXCLUSION:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_EXCLUSION</code></span></p></td>
1694
+ <td>Produces an effect similar to difference, but
1695
+ with lower contrast. (Since 1.10)
1696
+ </td>
1697
+ </tr>
1698
+ <tr>
1699
+ <td><p><a name="CAIRO-OPERATOR-HSL-HUE:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_HSL_HUE</code></span></p></td>
1700
+ <td>Creates a color with the hue of the source
1701
+ and the saturation and luminosity of the target. (Since 1.10)
1702
+ </td>
1703
+ </tr>
1704
+ <tr>
1705
+ <td><p><a name="CAIRO-OPERATOR-HSL-SATURATION:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_HSL_SATURATION</code></span></p></td>
1706
+ <td>Creates a color with the saturation
1707
+ of the source and the hue and luminosity of the target. Painting with
1708
+ this mode onto a gray area produces no change. (Since 1.10)
1709
+ </td>
1710
+ </tr>
1711
+ <tr>
1712
+ <td><p><a name="CAIRO-OPERATOR-HSL-COLOR:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_HSL_COLOR</code></span></p></td>
1713
+ <td>Creates a color with the hue and saturation
1714
+ of the source and the luminosity of the target. This preserves the gray
1715
+ levels of the target and is useful for coloring monochrome images or
1716
+ tinting color images. (Since 1.10)
1717
+ </td>
1718
+ </tr>
1719
+ <tr>
1720
+ <td><p><a name="CAIRO-OPERATOR-HSL-LUMINOSITY:CAPS"></a><span class="term"><code class="literal">CAIRO_OPERATOR_HSL_LUMINOSITY</code></span></p></td>
1721
+ <td>Creates a color with the luminosity of
1722
+ the source and the hue and saturation of the target. This produces an
1723
+ inverse effect to <em class="parameter"><code>CAIRO_OPERATOR_HSL_COLOR</code></em>. (Since 1.10)
1724
+ </td>
1725
+ </tr>
1726
+ </tbody>
1727
+ </table></div>
1728
+ <p class="since">Since 1.0</p>
1729
+ </div>
1730
+ <hr>
1731
+ <div class="refsect2">
1732
+ <a name="cairo-set-operator"></a><h3>cairo_set_operator ()</h3>
1733
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_operator (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1734
+ <em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="type">cairo_operator_t</span></a> op</code></em>);</pre>
1735
+ <p>
1736
+ Sets the compositing operator to be used for all drawing
1737
+ operations. See <a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="type">cairo_operator_t</span></a> for details on the semantics of
1738
+ each available compositing operator.
1739
+ </p>
1740
+ <p>
1741
+ The default operator is <a class="link" href="cairo-cairo-t.html#CAIRO-OPERATOR-OVER:CAPS"><code class="literal">CAIRO_OPERATOR_OVER</code></a>.
1742
+ </p>
1743
+ <div class="variablelist"><table border="0">
1744
+ <col align="left" valign="top">
1745
+ <tbody>
1746
+ <tr>
1747
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1748
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
1749
+ </td>
1750
+ </tr>
1751
+ <tr>
1752
+ <td><p><span class="term"><em class="parameter"><code>op</code></em> :</span></p></td>
1753
+ <td>a compositing operator, specified as a <a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="type">cairo_operator_t</span></a>
1754
+ </td>
1755
+ </tr>
1756
+ </tbody>
1757
+ </table></div>
1758
+ <p class="since">Since 1.0</p>
1759
+ </div>
1760
+ <hr>
1761
+ <div class="refsect2">
1762
+ <a name="cairo-get-operator"></a><h3>cairo_get_operator ()</h3>
1763
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-operator-t" title="enum cairo_operator_t"><span class="returnvalue">cairo_operator_t</span></a> cairo_get_operator (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1764
+ <p>
1765
+ Gets the current compositing operator for a cairo context.
1766
+ </p>
1767
+ <div class="variablelist"><table border="0">
1768
+ <col align="left" valign="top">
1769
+ <tbody>
1770
+ <tr>
1771
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1772
+ <td>a cairo context</td>
1773
+ </tr>
1774
+ <tr>
1775
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1776
+ <td>the current compositing operator.</td>
1777
+ </tr>
1778
+ </tbody>
1779
+ </table></div>
1780
+ <p class="since">Since 1.0</p>
1781
+ </div>
1782
+ <hr>
1783
+ <div class="refsect2">
1784
+ <a name="cairo-set-tolerance"></a><h3>cairo_set_tolerance ()</h3>
1785
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_set_tolerance (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1786
+ <em class="parameter"><code><span class="type">double</span> tolerance</code></em>);</pre>
1787
+ <p>
1788
+ Sets the tolerance used when converting paths into trapezoids.
1789
+ Curved segments of the path will be subdivided until the maximum
1790
+ deviation between the original path and the polygonal approximation
1791
+ is less than <em class="parameter"><code>tolerance</code></em>. The default value is 0.1. A larger
1792
+ value will give better performance, a smaller value, better
1793
+ appearance. (Reducing the value from the default value of 0.1
1794
+ is unlikely to improve appearance significantly.) The accuracy of paths
1795
+ within Cairo is limited by the precision of its internal arithmetic, and
1796
+ the prescribed <em class="parameter"><code>tolerance</code></em> is restricted to the smallest
1797
+ representable internal value.
1798
+ </p>
1799
+ <div class="variablelist"><table border="0">
1800
+ <col align="left" valign="top">
1801
+ <tbody>
1802
+ <tr>
1803
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1804
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
1805
+ </td>
1806
+ </tr>
1807
+ <tr>
1808
+ <td><p><span class="term"><em class="parameter"><code>tolerance</code></em> :</span></p></td>
1809
+ <td>the tolerance, in device units (typically pixels)</td>
1810
+ </tr>
1811
+ </tbody>
1812
+ </table></div>
1813
+ <p class="since">Since 1.0</p>
1814
+ </div>
1815
+ <hr>
1816
+ <div class="refsect2">
1817
+ <a name="cairo-get-tolerance"></a><h3>cairo_get_tolerance ()</h3>
1818
+ <pre class="programlisting"><span class="returnvalue">double</span> cairo_get_tolerance (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1819
+ <p>
1820
+ Gets the current tolerance value, as set by <a class="link" href="cairo-cairo-t.html#cairo-set-tolerance" title="cairo_set_tolerance ()"><code class="function">cairo_set_tolerance()</code></a>.
1821
+ </p>
1822
+ <div class="variablelist"><table border="0">
1823
+ <col align="left" valign="top">
1824
+ <tbody>
1825
+ <tr>
1826
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1827
+ <td>a cairo context</td>
1828
+ </tr>
1829
+ <tr>
1830
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1831
+ <td>the current tolerance value.</td>
1832
+ </tr>
1833
+ </tbody>
1834
+ </table></div>
1835
+ <p class="since">Since 1.0</p>
1836
+ </div>
1837
+ <hr>
1838
+ <div class="refsect2">
1839
+ <a name="cairo-clip"></a><h3>cairo_clip ()</h3>
1840
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_clip (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1841
+ <p>
1842
+ Establishes a new clip region by intersecting the current clip
1843
+ region with the current path as it would be filled by <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>
1844
+ and according to the current fill rule (see <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a>).
1845
+ </p>
1846
+ <p>
1847
+ After <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a>, the current path will be cleared from the cairo
1848
+ context.
1849
+ </p>
1850
+ <p>
1851
+ The current clip region affects all drawing operations by
1852
+ effectively masking out any changes to the surface that are outside
1853
+ the current clip region.
1854
+ </p>
1855
+ <p>
1856
+ Calling <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a> can only make the clip region smaller, never
1857
+ larger. But the current clip is part of the graphics state, so a
1858
+ temporary restriction of the clip region can be achieved by
1859
+ calling <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a> within a <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a>/<a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a>
1860
+ pair. The only other means of increasing the size of the clip
1861
+ region is <a class="link" href="cairo-cairo-t.html#cairo-reset-clip" title="cairo_reset_clip ()"><code class="function">cairo_reset_clip()</code></a>.
1862
+ </p>
1863
+ <div class="variablelist"><table border="0">
1864
+ <col align="left" valign="top">
1865
+ <tbody><tr>
1866
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1867
+ <td>a cairo context</td>
1868
+ </tr></tbody>
1869
+ </table></div>
1870
+ <p class="since">Since 1.0</p>
1871
+ </div>
1872
+ <hr>
1873
+ <div class="refsect2">
1874
+ <a name="cairo-clip-preserve"></a><h3>cairo_clip_preserve ()</h3>
1875
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_clip_preserve (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1876
+ <p>
1877
+ Establishes a new clip region by intersecting the current clip
1878
+ region with the current path as it would be filled by <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>
1879
+ and according to the current fill rule (see <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a>).
1880
+ </p>
1881
+ <p>
1882
+ Unlike <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-clip-preserve" title="cairo_clip_preserve ()"><code class="function">cairo_clip_preserve()</code></a> preserves the path within
1883
+ the cairo context.
1884
+ </p>
1885
+ <p>
1886
+ The current clip region affects all drawing operations by
1887
+ effectively masking out any changes to the surface that are outside
1888
+ the current clip region.
1889
+ </p>
1890
+ <p>
1891
+ Calling <a class="link" href="cairo-cairo-t.html#cairo-clip-preserve" title="cairo_clip_preserve ()"><code class="function">cairo_clip_preserve()</code></a> can only make the clip region smaller, never
1892
+ larger. But the current clip is part of the graphics state, so a
1893
+ temporary restriction of the clip region can be achieved by
1894
+ calling <a class="link" href="cairo-cairo-t.html#cairo-clip-preserve" title="cairo_clip_preserve ()"><code class="function">cairo_clip_preserve()</code></a> within a <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a>/<a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a>
1895
+ pair. The only other means of increasing the size of the clip
1896
+ region is <a class="link" href="cairo-cairo-t.html#cairo-reset-clip" title="cairo_reset_clip ()"><code class="function">cairo_reset_clip()</code></a>.
1897
+ </p>
1898
+ <div class="variablelist"><table border="0">
1899
+ <col align="left" valign="top">
1900
+ <tbody><tr>
1901
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1902
+ <td>a cairo context</td>
1903
+ </tr></tbody>
1904
+ </table></div>
1905
+ <p class="since">Since 1.0</p>
1906
+ </div>
1907
+ <hr>
1908
+ <div class="refsect2">
1909
+ <a name="cairo-clip-extents"></a><h3>cairo_clip_extents ()</h3>
1910
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_clip_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1911
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
1912
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
1913
+ <em class="parameter"><code><span class="type">double</span> *x2</code></em>,
1914
+ <em class="parameter"><code><span class="type">double</span> *y2</code></em>);</pre>
1915
+ <p>
1916
+ Computes a bounding box in user coordinates covering the area inside the
1917
+ current clip.
1918
+ </p>
1919
+ <div class="variablelist"><table border="0">
1920
+ <col align="left" valign="top">
1921
+ <tbody>
1922
+ <tr>
1923
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1924
+ <td>a cairo context</td>
1925
+ </tr>
1926
+ <tr>
1927
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
1928
+ <td>left of the resulting extents</td>
1929
+ </tr>
1930
+ <tr>
1931
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
1932
+ <td>top of the resulting extents</td>
1933
+ </tr>
1934
+ <tr>
1935
+ <td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
1936
+ <td>right of the resulting extents</td>
1937
+ </tr>
1938
+ <tr>
1939
+ <td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
1940
+ <td>bottom of the resulting extents</td>
1941
+ </tr>
1942
+ </tbody>
1943
+ </table></div>
1944
+ <p class="since">Since 1.4</p>
1945
+ </div>
1946
+ <hr>
1947
+ <div class="refsect2">
1948
+ <a name="cairo-in-clip"></a><h3>cairo_in_clip ()</h3>
1949
+ <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_in_clip (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
1950
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
1951
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);</pre>
1952
+ <p>
1953
+ Tests whether the given point is inside the area that would be
1954
+ visible through the current clip, i.e. the area that would be filled by
1955
+ a <a class="link" href="cairo-cairo-t.html#cairo-paint" title="cairo_paint ()"><code class="function">cairo_paint()</code></a> operation.
1956
+ </p>
1957
+ <p>
1958
+ See <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a>, and <a class="link" href="cairo-cairo-t.html#cairo-clip-preserve" title="cairo_clip_preserve ()"><code class="function">cairo_clip_preserve()</code></a>.
1959
+ </p>
1960
+ <div class="variablelist"><table border="0">
1961
+ <col align="left" valign="top">
1962
+ <tbody>
1963
+ <tr>
1964
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
1965
+ <td>a cairo context</td>
1966
+ </tr>
1967
+ <tr>
1968
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
1969
+ <td>X coordinate of the point to test</td>
1970
+ </tr>
1971
+ <tr>
1972
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
1973
+ <td>Y coordinate of the point to test</td>
1974
+ </tr>
1975
+ <tr>
1976
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1977
+ <td>A non-zero value if the point is inside, or zero if
1978
+ outside.</td>
1979
+ </tr>
1980
+ </tbody>
1981
+ </table></div>
1982
+ <p class="since">Since 1.10</p>
1983
+ </div>
1984
+ <hr>
1985
+ <div class="refsect2">
1986
+ <a name="cairo-reset-clip"></a><h3>cairo_reset_clip ()</h3>
1987
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_reset_clip (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
1988
+ <p>
1989
+ Reset the current clip region to its original, unrestricted
1990
+ state. That is, set the clip region to an infinitely large shape
1991
+ containing the target surface. Equivalently, if infinity is too
1992
+ hard to grasp, one can imagine the clip region being reset to the
1993
+ exact bounds of the target surface.
1994
+ </p>
1995
+ <p>
1996
+ Note that code meant to be reusable should not call
1997
+ <a class="link" href="cairo-cairo-t.html#cairo-reset-clip" title="cairo_reset_clip ()"><code class="function">cairo_reset_clip()</code></a> as it will cause results unexpected by
1998
+ higher-level code which calls <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a>. Consider using
1999
+ <a class="link" href="cairo-cairo-t.html#cairo-save" title="cairo_save ()"><code class="function">cairo_save()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-restore" title="cairo_restore ()"><code class="function">cairo_restore()</code></a> around <a class="link" href="cairo-cairo-t.html#cairo-clip" title="cairo_clip ()"><code class="function">cairo_clip()</code></a> as a more
2000
+ robust means of temporarily restricting the clip region.
2001
+ </p>
2002
+ <div class="variablelist"><table border="0">
2003
+ <col align="left" valign="top">
2004
+ <tbody><tr>
2005
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2006
+ <td>a cairo context</td>
2007
+ </tr></tbody>
2008
+ </table></div>
2009
+ <p class="since">Since 1.0</p>
2010
+ </div>
2011
+ <hr>
2012
+ <div class="refsect2">
2013
+ <a name="cairo-rectangle-t"></a><h3>cairo_rectangle_t</h3>
2014
+ <pre class="programlisting">typedef struct {
2015
+ double x, y, width, height;
2016
+ } cairo_rectangle_t;
2017
+ </pre>
2018
+ <p>
2019
+ A data structure for holding a rectangle.
2020
+ </p>
2021
+ <div class="variablelist"><table border="0">
2022
+ <col align="left" valign="top">
2023
+ <tbody>
2024
+ <tr>
2025
+ <td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-rectangle-t.x"></a>x</code></em>;</span></p></td>
2026
+ <td>X coordinate of the left side of the rectangle</td>
2027
+ </tr>
2028
+ <tr>
2029
+ <td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-rectangle-t.y"></a>y</code></em>;</span></p></td>
2030
+ <td>Y coordinate of the the top side of the rectangle</td>
2031
+ </tr>
2032
+ <tr>
2033
+ <td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-rectangle-t.width"></a>width</code></em>;</span></p></td>
2034
+ <td>width of the rectangle</td>
2035
+ </tr>
2036
+ <tr>
2037
+ <td><p><span class="term"><span class="type">double</span> <em class="structfield"><code><a name="cairo-rectangle-t.height"></a>height</code></em>;</span></p></td>
2038
+ <td>height of the rectangle</td>
2039
+ </tr>
2040
+ </tbody>
2041
+ </table></div>
2042
+ <p class="since">Since 1.4</p>
2043
+ </div>
2044
+ <hr>
2045
+ <div class="refsect2">
2046
+ <a name="cairo-rectangle-list-t"></a><h3>cairo_rectangle_list_t</h3>
2047
+ <pre class="programlisting">typedef struct {
2048
+ cairo_status_t status;
2049
+ cairo_rectangle_t *rectangles;
2050
+ int num_rectangles;
2051
+ } cairo_rectangle_list_t;
2052
+ </pre>
2053
+ <p>
2054
+ A data structure for holding a dynamically allocated
2055
+ array of rectangles.
2056
+ </p>
2057
+ <div class="variablelist"><table border="0">
2058
+ <col align="left" valign="top">
2059
+ <tbody>
2060
+ <tr>
2061
+ <td><p><span class="term"><a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="type">cairo_status_t</span></a> <em class="structfield"><code><a name="cairo-rectangle-list-t.status"></a>status</code></em>;</span></p></td>
2062
+ <td>Error status of the rectangle list</td>
2063
+ </tr>
2064
+ <tr>
2065
+ <td><p><span class="term"><a class="link" href="cairo-cairo-t.html#cairo-rectangle-t" title="cairo_rectangle_t"><span class="type">cairo_rectangle_t</span></a> *<em class="structfield"><code><a name="cairo-rectangle-list-t.rectangles"></a>rectangles</code></em>;</span></p></td>
2066
+ <td>Array containing the rectangles</td>
2067
+ </tr>
2068
+ <tr>
2069
+ <td><p><span class="term"><span class="type">int</span> <em class="structfield"><code><a name="cairo-rectangle-list-t.num-rectangles"></a>num_rectangles</code></em>;</span></p></td>
2070
+ <td>Number of rectangles in this list</td>
2071
+ </tr>
2072
+ </tbody>
2073
+ </table></div>
2074
+ <p class="since">Since 1.4</p>
2075
+ </div>
2076
+ <hr>
2077
+ <div class="refsect2">
2078
+ <a name="cairo-rectangle-list-destroy"></a><h3>cairo_rectangle_list_destroy ()</h3>
2079
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_rectangle_list_destroy (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-t" title="cairo_rectangle_list_t"><span class="type">cairo_rectangle_list_t</span></a> *rectangle_list</code></em>);</pre>
2080
+ <p>
2081
+ Unconditionally frees <em class="parameter"><code>rectangle_list</code></em> and all associated
2082
+ references. After this call, the <em class="parameter"><code>rectangle_list</code></em> pointer must not
2083
+ be dereferenced.
2084
+ </p>
2085
+ <div class="variablelist"><table border="0">
2086
+ <col align="left" valign="top">
2087
+ <tbody><tr>
2088
+ <td><p><span class="term"><em class="parameter"><code>rectangle_list</code></em> :</span></p></td>
2089
+ <td>a rectangle list, as obtained from <a class="link" href="cairo-cairo-t.html#cairo-copy-clip-rectangle-list" title="cairo_copy_clip_rectangle_list ()"><code class="function">cairo_copy_clip_rectangle_list()</code></a>
2090
+ </td>
2091
+ </tr></tbody>
2092
+ </table></div>
2093
+ <p class="since">Since 1.4</p>
2094
+ </div>
2095
+ <hr>
2096
+ <div class="refsect2">
2097
+ <a name="cairo-copy-clip-rectangle-list"></a><h3>cairo_copy_clip_rectangle_list ()</h3>
2098
+ <pre class="programlisting"><a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-t" title="cairo_rectangle_list_t"><span class="returnvalue">cairo_rectangle_list_t</span></a> * cairo_copy_clip_rectangle_list (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2099
+ <p>
2100
+ Gets the current clip region as a list of rectangles in user coordinates.
2101
+ Never returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
2102
+ </p>
2103
+ <p>
2104
+ The status in the list may be <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-CLIP-NOT-REPRESENTABLE:CAPS"><code class="literal">CAIRO_STATUS_CLIP_NOT_REPRESENTABLE</code></a> to
2105
+ indicate that the clip region cannot be represented as a list of
2106
+ user-space rectangles. The status may have other values to indicate
2107
+ other errors.
2108
+ </p>
2109
+ <div class="variablelist"><table border="0">
2110
+ <col align="left" valign="top">
2111
+ <tbody>
2112
+ <tr>
2113
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2114
+ <td>a cairo context</td>
2115
+ </tr>
2116
+ <tr>
2117
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2118
+ <td>the current clip region as a list of rectangles in user coordinates,
2119
+ which should be destroyed using <a class="link" href="cairo-cairo-t.html#cairo-rectangle-list-destroy" title="cairo_rectangle_list_destroy ()"><code class="function">cairo_rectangle_list_destroy()</code></a>.</td>
2120
+ </tr>
2121
+ </tbody>
2122
+ </table></div>
2123
+ <p class="since">Since 1.4</p>
2124
+ </div>
2125
+ <hr>
2126
+ <div class="refsect2">
2127
+ <a name="cairo-fill"></a><h3>cairo_fill ()</h3>
2128
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_fill (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2129
+ <p>
2130
+ A drawing operator that fills the current path according to the
2131
+ current fill rule, (each sub-path is implicitly closed before being
2132
+ filled). After <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>, the current path will be cleared from
2133
+ the cairo context. See <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a> and
2134
+ <a class="link" href="cairo-cairo-t.html#cairo-fill-preserve" title="cairo_fill_preserve ()"><code class="function">cairo_fill_preserve()</code></a>.
2135
+ </p>
2136
+ <div class="variablelist"><table border="0">
2137
+ <col align="left" valign="top">
2138
+ <tbody><tr>
2139
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2140
+ <td>a cairo context</td>
2141
+ </tr></tbody>
2142
+ </table></div>
2143
+ <p class="since">Since 1.0</p>
2144
+ </div>
2145
+ <hr>
2146
+ <div class="refsect2">
2147
+ <a name="cairo-fill-preserve"></a><h3>cairo_fill_preserve ()</h3>
2148
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_fill_preserve (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2149
+ <p>
2150
+ A drawing operator that fills the current path according to the
2151
+ current fill rule, (each sub-path is implicitly closed before being
2152
+ filled). Unlike <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-fill-preserve" title="cairo_fill_preserve ()"><code class="function">cairo_fill_preserve()</code></a> preserves the
2153
+ path within the cairo context.
2154
+ </p>
2155
+ <p>
2156
+ See <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>.
2157
+ </p>
2158
+ <div class="variablelist"><table border="0">
2159
+ <col align="left" valign="top">
2160
+ <tbody><tr>
2161
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2162
+ <td>a cairo context</td>
2163
+ </tr></tbody>
2164
+ </table></div>
2165
+ <p class="since">Since 1.0</p>
2166
+ </div>
2167
+ <hr>
2168
+ <div class="refsect2">
2169
+ <a name="cairo-fill-extents"></a><h3>cairo_fill_extents ()</h3>
2170
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_fill_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2171
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
2172
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
2173
+ <em class="parameter"><code><span class="type">double</span> *x2</code></em>,
2174
+ <em class="parameter"><code><span class="type">double</span> *y2</code></em>);</pre>
2175
+ <p>
2176
+ Computes a bounding box in user coordinates covering the area that
2177
+ would be affected, (the "inked" area), by a <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a> operation
2178
+ given the current path and fill parameters. If the current path is
2179
+ empty, returns an empty rectangle ((0,0), (0,0)). Surface
2180
+ dimensions and clipping are not taken into account.
2181
+ </p>
2182
+ <p>
2183
+ Contrast with <a class="link" href="cairo-Paths.html#cairo-path-extents" title="cairo_path_extents ()"><code class="function">cairo_path_extents()</code></a>, which is similar, but returns
2184
+ non-zero extents for some paths with no inked area, (such as a
2185
+ simple line segment).
2186
+ </p>
2187
+ <p>
2188
+ Note that <a class="link" href="cairo-cairo-t.html#cairo-fill-extents" title="cairo_fill_extents ()"><code class="function">cairo_fill_extents()</code></a> must necessarily do more work to
2189
+ compute the precise inked areas in light of the fill rule, so
2190
+ <a class="link" href="cairo-Paths.html#cairo-path-extents" title="cairo_path_extents ()"><code class="function">cairo_path_extents()</code></a> may be more desirable for sake of performance
2191
+ if the non-inked path extents are desired.
2192
+ </p>
2193
+ <p>
2194
+ See <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-fill-preserve" title="cairo_fill_preserve ()"><code class="function">cairo_fill_preserve()</code></a>.
2195
+ </p>
2196
+ <div class="variablelist"><table border="0">
2197
+ <col align="left" valign="top">
2198
+ <tbody>
2199
+ <tr>
2200
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2201
+ <td>a cairo context</td>
2202
+ </tr>
2203
+ <tr>
2204
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
2205
+ <td>left of the resulting extents</td>
2206
+ </tr>
2207
+ <tr>
2208
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
2209
+ <td>top of the resulting extents</td>
2210
+ </tr>
2211
+ <tr>
2212
+ <td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
2213
+ <td>right of the resulting extents</td>
2214
+ </tr>
2215
+ <tr>
2216
+ <td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
2217
+ <td>bottom of the resulting extents</td>
2218
+ </tr>
2219
+ </tbody>
2220
+ </table></div>
2221
+ <p class="since">Since 1.0</p>
2222
+ </div>
2223
+ <hr>
2224
+ <div class="refsect2">
2225
+ <a name="cairo-in-fill"></a><h3>cairo_in_fill ()</h3>
2226
+ <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_in_fill (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2227
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
2228
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);</pre>
2229
+ <p>
2230
+ Tests whether the given point is inside the area that would be
2231
+ affected by a <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a> operation given the current path and
2232
+ filling parameters. Surface dimensions and clipping are not taken
2233
+ into account.
2234
+ </p>
2235
+ <p>
2236
+ See <a class="link" href="cairo-cairo-t.html#cairo-fill" title="cairo_fill ()"><code class="function">cairo_fill()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-fill-rule" title="cairo_set_fill_rule ()"><code class="function">cairo_set_fill_rule()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-fill-preserve" title="cairo_fill_preserve ()"><code class="function">cairo_fill_preserve()</code></a>.
2237
+ </p>
2238
+ <div class="variablelist"><table border="0">
2239
+ <col align="left" valign="top">
2240
+ <tbody>
2241
+ <tr>
2242
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2243
+ <td>a cairo context</td>
2244
+ </tr>
2245
+ <tr>
2246
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
2247
+ <td>X coordinate of the point to test</td>
2248
+ </tr>
2249
+ <tr>
2250
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
2251
+ <td>Y coordinate of the point to test</td>
2252
+ </tr>
2253
+ <tr>
2254
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2255
+ <td>A non-zero value if the point is inside, or zero if
2256
+ outside.</td>
2257
+ </tr>
2258
+ </tbody>
2259
+ </table></div>
2260
+ <p class="since">Since 1.0</p>
2261
+ </div>
2262
+ <hr>
2263
+ <div class="refsect2">
2264
+ <a name="cairo-mask"></a><h3>cairo_mask ()</h3>
2265
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_mask (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2266
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
2267
+ <p>
2268
+ A drawing operator that paints the current source
2269
+ using the alpha channel of <em class="parameter"><code>pattern</code></em> as a mask. (Opaque
2270
+ areas of <em class="parameter"><code>pattern</code></em> are painted with the source, transparent
2271
+ areas are not painted.)
2272
+ </p>
2273
+ <div class="variablelist"><table border="0">
2274
+ <col align="left" valign="top">
2275
+ <tbody>
2276
+ <tr>
2277
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2278
+ <td>a cairo context</td>
2279
+ </tr>
2280
+ <tr>
2281
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
2282
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
2283
+ </td>
2284
+ </tr>
2285
+ </tbody>
2286
+ </table></div>
2287
+ <p class="since">Since 1.0</p>
2288
+ </div>
2289
+ <hr>
2290
+ <div class="refsect2">
2291
+ <a name="cairo-mask-surface"></a><h3>cairo_mask_surface ()</h3>
2292
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_mask_surface (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2293
+ <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>,
2294
+ <em class="parameter"><code><span class="type">double</span> surface_x</code></em>,
2295
+ <em class="parameter"><code><span class="type">double</span> surface_y</code></em>);</pre>
2296
+ <p>
2297
+ A drawing operator that paints the current source
2298
+ using the alpha channel of <em class="parameter"><code>surface</code></em> as a mask. (Opaque
2299
+ areas of <em class="parameter"><code>surface</code></em> are painted with the source, transparent
2300
+ areas are not painted.)
2301
+ </p>
2302
+ <div class="variablelist"><table border="0">
2303
+ <col align="left" valign="top">
2304
+ <tbody>
2305
+ <tr>
2306
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2307
+ <td>a cairo context</td>
2308
+ </tr>
2309
+ <tr>
2310
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
2311
+ <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>
2312
+ </td>
2313
+ </tr>
2314
+ <tr>
2315
+ <td><p><span class="term"><em class="parameter"><code>surface_x</code></em> :</span></p></td>
2316
+ <td>X coordinate at which to place the origin of <em class="parameter"><code>surface</code></em>
2317
+ </td>
2318
+ </tr>
2319
+ <tr>
2320
+ <td><p><span class="term"><em class="parameter"><code>surface_y</code></em> :</span></p></td>
2321
+ <td>Y coordinate at which to place the origin of <em class="parameter"><code>surface</code></em>
2322
+ </td>
2323
+ </tr>
2324
+ </tbody>
2325
+ </table></div>
2326
+ <p class="since">Since 1.0</p>
2327
+ </div>
2328
+ <hr>
2329
+ <div class="refsect2">
2330
+ <a name="cairo-paint"></a><h3>cairo_paint ()</h3>
2331
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_paint (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2332
+ <p>
2333
+ A drawing operator that paints the current source everywhere within
2334
+ the current clip region.
2335
+ </p>
2336
+ <div class="variablelist"><table border="0">
2337
+ <col align="left" valign="top">
2338
+ <tbody><tr>
2339
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2340
+ <td>a cairo context</td>
2341
+ </tr></tbody>
2342
+ </table></div>
2343
+ <p class="since">Since 1.0</p>
2344
+ </div>
2345
+ <hr>
2346
+ <div class="refsect2">
2347
+ <a name="cairo-paint-with-alpha"></a><h3>cairo_paint_with_alpha ()</h3>
2348
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_paint_with_alpha (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2349
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);</pre>
2350
+ <p>
2351
+ A drawing operator that paints the current source everywhere within
2352
+ the current clip region using a mask of constant alpha value
2353
+ <em class="parameter"><code>alpha</code></em>. The effect is similar to <a class="link" href="cairo-cairo-t.html#cairo-paint" title="cairo_paint ()"><code class="function">cairo_paint()</code></a>, but the drawing
2354
+ is faded out using the alpha value.
2355
+ </p>
2356
+ <div class="variablelist"><table border="0">
2357
+ <col align="left" valign="top">
2358
+ <tbody>
2359
+ <tr>
2360
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2361
+ <td>a cairo context</td>
2362
+ </tr>
2363
+ <tr>
2364
+ <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
2365
+ <td>alpha value, between 0 (transparent) and 1 (opaque)</td>
2366
+ </tr>
2367
+ </tbody>
2368
+ </table></div>
2369
+ <p class="since">Since 1.0</p>
2370
+ </div>
2371
+ <hr>
2372
+ <div class="refsect2">
2373
+ <a name="cairo-stroke"></a><h3>cairo_stroke ()</h3>
2374
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_stroke (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2375
+ <p>
2376
+ A drawing operator that strokes the current path according to the
2377
+ current line width, line join, line cap, and dash settings. After
2378
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, the current path will be cleared from the cairo
2379
+ context. See <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()"><code class="function">cairo_set_line_join()</code></a>,
2380
+ <a class="link" href="cairo-cairo-t.html#cairo-set-line-cap" title="cairo_set_line_cap ()"><code class="function">cairo_set_line_cap()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a>, and
2381
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke-preserve" title="cairo_stroke_preserve ()"><code class="function">cairo_stroke_preserve()</code></a>.
2382
+ </p>
2383
+ <p>
2384
+ Note: Degenerate segments and sub-paths are treated specially and
2385
+ provide a useful result. These can result in two different
2386
+ situations:
2387
+ </p>
2388
+ <p>
2389
+ 1. Zero-length "on" segments set in <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a>. If the cap
2390
+ style is <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-ROUND:CAPS"><code class="literal">CAIRO_LINE_CAP_ROUND</code></a> or <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-SQUARE:CAPS"><code class="literal">CAIRO_LINE_CAP_SQUARE</code></a> then these
2391
+ segments will be drawn as circular dots or squares respectively. In
2392
+ the case of <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-SQUARE:CAPS"><code class="literal">CAIRO_LINE_CAP_SQUARE</code></a>, the orientation of the squares
2393
+ is determined by the direction of the underlying path.
2394
+ </p>
2395
+ <p>
2396
+ 2. A sub-path created by <a class="link" href="cairo-Paths.html#cairo-move-to" title="cairo_move_to ()"><code class="function">cairo_move_to()</code></a> followed by either a
2397
+ <a class="link" href="cairo-Paths.html#cairo-close-path" title="cairo_close_path ()"><code class="function">cairo_close_path()</code></a> or one or more calls to <a class="link" href="cairo-Paths.html#cairo-line-to" title="cairo_line_to ()"><code class="function">cairo_line_to()</code></a> to the
2398
+ same coordinate as the <a class="link" href="cairo-Paths.html#cairo-move-to" title="cairo_move_to ()"><code class="function">cairo_move_to()</code></a>. If the cap style is
2399
+ <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-ROUND:CAPS"><code class="literal">CAIRO_LINE_CAP_ROUND</code></a> then these sub-paths will be drawn as circular
2400
+ dots. Note that in the case of <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-SQUARE:CAPS"><code class="literal">CAIRO_LINE_CAP_SQUARE</code></a> a degenerate
2401
+ sub-path will not be drawn at all, (since the correct orientation
2402
+ is indeterminate).
2403
+ </p>
2404
+ <p>
2405
+ In no case will a cap style of <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-BUTT:CAPS"><code class="literal">CAIRO_LINE_CAP_BUTT</code></a> cause anything
2406
+ to be drawn in the case of either degenerate segments or sub-paths.
2407
+ </p>
2408
+ <div class="variablelist"><table border="0">
2409
+ <col align="left" valign="top">
2410
+ <tbody><tr>
2411
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2412
+ <td>a cairo context</td>
2413
+ </tr></tbody>
2414
+ </table></div>
2415
+ <p class="since">Since 1.0</p>
2416
+ </div>
2417
+ <hr>
2418
+ <div class="refsect2">
2419
+ <a name="cairo-stroke-preserve"></a><h3>cairo_stroke_preserve ()</h3>
2420
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_stroke_preserve (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2421
+ <p>
2422
+ A drawing operator that strokes the current path according to the
2423
+ current line width, line join, line cap, and dash settings. Unlike
2424
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-stroke-preserve" title="cairo_stroke_preserve ()"><code class="function">cairo_stroke_preserve()</code></a> preserves the path within the
2425
+ cairo context.
2426
+ </p>
2427
+ <p>
2428
+ See <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()"><code class="function">cairo_set_line_join()</code></a>,
2429
+ <a class="link" href="cairo-cairo-t.html#cairo-set-line-cap" title="cairo_set_line_cap ()"><code class="function">cairo_set_line_cap()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a>, and
2430
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke-preserve" title="cairo_stroke_preserve ()"><code class="function">cairo_stroke_preserve()</code></a>.
2431
+ </p>
2432
+ <div class="variablelist"><table border="0">
2433
+ <col align="left" valign="top">
2434
+ <tbody><tr>
2435
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2436
+ <td>a cairo context</td>
2437
+ </tr></tbody>
2438
+ </table></div>
2439
+ <p class="since">Since 1.0</p>
2440
+ </div>
2441
+ <hr>
2442
+ <div class="refsect2">
2443
+ <a name="cairo-stroke-extents"></a><h3>cairo_stroke_extents ()</h3>
2444
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_stroke_extents (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2445
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
2446
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
2447
+ <em class="parameter"><code><span class="type">double</span> *x2</code></em>,
2448
+ <em class="parameter"><code><span class="type">double</span> *y2</code></em>);</pre>
2449
+ <p>
2450
+ Computes a bounding box in user coordinates covering the area that
2451
+ would be affected, (the "inked" area), by a <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>
2452
+ operation given the current path and stroke parameters.
2453
+ If the current path is empty, returns an empty rectangle ((0,0), (0,0)).
2454
+ Surface dimensions and clipping are not taken into account.
2455
+ </p>
2456
+ <p>
2457
+ Note that if the line width is set to exactly zero, then
2458
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()"><code class="function">cairo_stroke_extents()</code></a> will return an empty rectangle. Contrast with
2459
+ <a class="link" href="cairo-Paths.html#cairo-path-extents" title="cairo_path_extents ()"><code class="function">cairo_path_extents()</code></a> which can be used to compute the non-empty
2460
+ bounds as the line width approaches zero.
2461
+ </p>
2462
+ <p>
2463
+ Note that <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents" title="cairo_stroke_extents ()"><code class="function">cairo_stroke_extents()</code></a> must necessarily do more work to
2464
+ compute the precise inked areas in light of the stroke parameters,
2465
+ so <a class="link" href="cairo-Paths.html#cairo-path-extents" title="cairo_path_extents ()"><code class="function">cairo_path_extents()</code></a> may be more desirable for sake of
2466
+ performance if non-inked path extents are desired.
2467
+ </p>
2468
+ <p>
2469
+ See <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()"><code class="function">cairo_set_line_join()</code></a>,
2470
+ <a class="link" href="cairo-cairo-t.html#cairo-set-line-cap" title="cairo_set_line_cap ()"><code class="function">cairo_set_line_cap()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a>, and
2471
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke-preserve" title="cairo_stroke_preserve ()"><code class="function">cairo_stroke_preserve()</code></a>.
2472
+ </p>
2473
+ <div class="variablelist"><table border="0">
2474
+ <col align="left" valign="top">
2475
+ <tbody>
2476
+ <tr>
2477
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2478
+ <td>a cairo context</td>
2479
+ </tr>
2480
+ <tr>
2481
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
2482
+ <td>left of the resulting extents</td>
2483
+ </tr>
2484
+ <tr>
2485
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
2486
+ <td>top of the resulting extents</td>
2487
+ </tr>
2488
+ <tr>
2489
+ <td><p><span class="term"><em class="parameter"><code>x2</code></em> :</span></p></td>
2490
+ <td>right of the resulting extents</td>
2491
+ </tr>
2492
+ <tr>
2493
+ <td><p><span class="term"><em class="parameter"><code>y2</code></em> :</span></p></td>
2494
+ <td>bottom of the resulting extents</td>
2495
+ </tr>
2496
+ </tbody>
2497
+ </table></div>
2498
+ <p class="since">Since 1.0</p>
2499
+ </div>
2500
+ <hr>
2501
+ <div class="refsect2">
2502
+ <a name="cairo-in-stroke"></a><h3>cairo_in_stroke ()</h3>
2503
+ <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_in_stroke (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2504
+ <em class="parameter"><code><span class="type">double</span> x</code></em>,
2505
+ <em class="parameter"><code><span class="type">double</span> y</code></em>);</pre>
2506
+ <p>
2507
+ Tests whether the given point is inside the area that would be
2508
+ affected by a <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a> operation given the current path and
2509
+ stroking parameters. Surface dimensions and clipping are not taken
2510
+ into account.
2511
+ </p>
2512
+ <p>
2513
+ See <a class="link" href="cairo-cairo-t.html#cairo-stroke" title="cairo_stroke ()"><code class="function">cairo_stroke()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-line-width" title="cairo_set_line_width ()"><code class="function">cairo_set_line_width()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-line-join" title="cairo_set_line_join ()"><code class="function">cairo_set_line_join()</code></a>,
2514
+ <a class="link" href="cairo-cairo-t.html#cairo-set-line-cap" title="cairo_set_line_cap ()"><code class="function">cairo_set_line_cap()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-set-dash" title="cairo_set_dash ()"><code class="function">cairo_set_dash()</code></a>, and
2515
+ <a class="link" href="cairo-cairo-t.html#cairo-stroke-preserve" title="cairo_stroke_preserve ()"><code class="function">cairo_stroke_preserve()</code></a>.
2516
+ </p>
2517
+ <div class="variablelist"><table border="0">
2518
+ <col align="left" valign="top">
2519
+ <tbody>
2520
+ <tr>
2521
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2522
+ <td>a cairo context</td>
2523
+ </tr>
2524
+ <tr>
2525
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
2526
+ <td>X coordinate of the point to test</td>
2527
+ </tr>
2528
+ <tr>
2529
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
2530
+ <td>Y coordinate of the point to test</td>
2531
+ </tr>
2532
+ <tr>
2533
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2534
+ <td>A non-zero value if the point is inside, or zero if
2535
+ outside.</td>
2536
+ </tr>
2537
+ </tbody>
2538
+ </table></div>
2539
+ <p class="since">Since 1.0</p>
2540
+ </div>
2541
+ <hr>
2542
+ <div class="refsect2">
2543
+ <a name="cairo-copy-page"></a><h3>cairo_copy_page ()</h3>
2544
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_copy_page (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2545
+ <p>
2546
+ Emits the current page for backends that support multiple pages, but
2547
+ doesn't clear it, so, the contents of the current page will be retained
2548
+ for the next page too. Use <a class="link" href="cairo-cairo-t.html#cairo-show-page" title="cairo_show_page ()"><code class="function">cairo_show_page()</code></a> if you want to get an
2549
+ empty page after the emission.
2550
+ </p>
2551
+ <p>
2552
+ This is a convenience function that simply calls
2553
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-copy-page" title="cairo_surface_copy_page ()"><code class="function">cairo_surface_copy_page()</code></a> on <em class="parameter"><code>cr</code></em>'s target.
2554
+ </p>
2555
+ <div class="variablelist"><table border="0">
2556
+ <col align="left" valign="top">
2557
+ <tbody><tr>
2558
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2559
+ <td>a cairo context</td>
2560
+ </tr></tbody>
2561
+ </table></div>
2562
+ <p class="since">Since 1.0</p>
2563
+ </div>
2564
+ <hr>
2565
+ <div class="refsect2">
2566
+ <a name="cairo-show-page"></a><h3>cairo_show_page ()</h3>
2567
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_show_page (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2568
+ <p>
2569
+ Emits and clears the current page for backends that support multiple
2570
+ pages. Use <a class="link" href="cairo-cairo-t.html#cairo-copy-page" title="cairo_copy_page ()"><code class="function">cairo_copy_page()</code></a> if you don't want to clear the page.
2571
+ </p>
2572
+ <p>
2573
+ This is a convenience function that simply calls
2574
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-show-page" title="cairo_surface_show_page ()"><code class="function">cairo_surface_show_page()</code></a> on <em class="parameter"><code>cr</code></em>'s target.
2575
+ </p>
2576
+ <div class="variablelist"><table border="0">
2577
+ <col align="left" valign="top">
2578
+ <tbody><tr>
2579
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2580
+ <td>a cairo context</td>
2581
+ </tr></tbody>
2582
+ </table></div>
2583
+ <p class="since">Since 1.0</p>
2584
+ </div>
2585
+ <hr>
2586
+ <div class="refsect2">
2587
+ <a name="cairo-get-reference-count"></a><h3>cairo_get_reference_count ()</h3>
2588
+ <pre class="programlisting">unsigned <span class="returnvalue">int</span> cairo_get_reference_count (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
2589
+ <p>
2590
+ Returns the current reference count of <em class="parameter"><code>cr</code></em>.
2591
+ </p>
2592
+ <div class="variablelist"><table border="0">
2593
+ <col align="left" valign="top">
2594
+ <tbody>
2595
+ <tr>
2596
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2597
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
2598
+ </td>
2599
+ </tr>
2600
+ <tr>
2601
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2602
+ <td>the current reference count of <em class="parameter"><code>cr</code></em>. If the
2603
+ object is a nil object, 0 will be returned.</td>
2604
+ </tr>
2605
+ </tbody>
2606
+ </table></div>
2607
+ <p class="since">Since 1.4</p>
2608
+ </div>
2609
+ <hr>
2610
+ <div class="refsect2">
2611
+ <a name="cairo-set-user-data"></a><h3>cairo_set_user_data ()</h3>
2612
+ <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_set_user_data (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2613
+ <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>,
2614
+ <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
2615
+ <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>
2616
+ <p>
2617
+ Attach user data to <em class="parameter"><code>cr</code></em>. To remove user data from a surface,
2618
+ 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>
2619
+ for <em class="parameter"><code>data</code></em>.
2620
+ </p>
2621
+ <div class="variablelist"><table border="0">
2622
+ <col align="left" valign="top">
2623
+ <tbody>
2624
+ <tr>
2625
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2626
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
2627
+ </td>
2628
+ </tr>
2629
+ <tr>
2630
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
2631
+ <td>the address of a <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> to attach the user data to</td>
2632
+ </tr>
2633
+ <tr>
2634
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
2635
+ <td>the user data to attach to the <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
2636
+ </td>
2637
+ </tr>
2638
+ <tr>
2639
+ <td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
2640
+ <td>a <a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
2641
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> is destroyed or when new user data is attached using the
2642
+ same key.</td>
2643
+ </tr>
2644
+ <tr>
2645
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2646
+ <td>
2647
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if a
2648
+ slot could not be allocated for the user data.</td>
2649
+ </tr>
2650
+ </tbody>
2651
+ </table></div>
2652
+ <p class="since">Since 1.4</p>
2653
+ </div>
2654
+ <hr>
2655
+ <div class="refsect2">
2656
+ <a name="cairo-get-user-data"></a><h3>cairo_get_user_data ()</h3>
2657
+ <pre class="programlisting"><span class="returnvalue">void</span> * cairo_get_user_data (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
2658
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>);</pre>
2659
+ <p>
2660
+ Return user data previously attached to <em class="parameter"><code>cr</code></em> using the specified
2661
+ key. If no user data has been attached with the given key this
2662
+ function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
2663
+ </p>
2664
+ <div class="variablelist"><table border="0">
2665
+ <col align="left" valign="top">
2666
+ <tbody>
2667
+ <tr>
2668
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
2669
+ <td>a <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>
2670
+ </td>
2671
+ </tr>
2672
+ <tr>
2673
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
2674
+ <td>the address of the <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> the user data was
2675
+ attached to</td>
2676
+ </tr>
2677
+ <tr>
2678
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
2679
+ <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>
2680
+ </tr>
2681
+ </tbody>
2682
+ </table></div>
2683
+ <p class="since">Since 1.4</p>
2684
+ </div>
2685
+ </div>
2686
+ <div class="refsect1">
2687
+ <a name="cairo-cairo-t.see-also"></a><h2>See Also</h2>
2688
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
2689
+ </div>
2690
+ </div>
2691
+ <div class="footer">
2692
+ <hr>
2693
+ Generated by GTK-Doc V1.18</div>
2694
+ </body>
2695
+ </html>