cairo 1.6.1-x86-mswin32

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 (418) hide show
  1. data/AUTHORS +4 -0
  2. data/COPYING +59 -0
  3. data/ChangeLog +1320 -0
  4. data/GPL +340 -0
  5. data/NEWS +98 -0
  6. data/README +70 -0
  7. data/Rakefile +215 -0
  8. data/cairo/bin/libcairo-2.dll +0 -0
  9. data/cairo/bin/libpng13.dll +0 -0
  10. data/cairo/bin/zlib1.dll +0 -0
  11. data/cairo/include/cairo/cairo-deprecated.h +142 -0
  12. data/cairo/include/cairo/cairo-features.h +35 -0
  13. data/cairo/include/cairo/cairo-pdf.h +68 -0
  14. data/cairo/include/cairo/cairo-ps.h +114 -0
  15. data/cairo/include/cairo/cairo-svg.h +82 -0
  16. data/cairo/include/cairo/cairo-win32.h +104 -0
  17. data/cairo/include/cairo/cairo.h +1945 -0
  18. data/cairo/include/libpng13/png.h +3419 -0
  19. data/cairo/include/libpng13/pngconf.h +1437 -0
  20. data/cairo/lib/cairo.def +251 -0
  21. data/cairo/lib/cairo.lib +0 -0
  22. data/cairo/lib/libcairo.dll.a +0 -0
  23. data/cairo/lib/libpng.def +372 -0
  24. data/cairo/lib/libpng13.dll.a +0 -0
  25. data/cairo/lib/pkgconfig/cairo-pdf.pc +12 -0
  26. data/cairo/lib/pkgconfig/cairo-png.pc +12 -0
  27. data/cairo/lib/pkgconfig/cairo-ps.pc +12 -0
  28. data/cairo/lib/pkgconfig/cairo-svg.pc +12 -0
  29. data/cairo/lib/pkgconfig/cairo-win32-font.pc +12 -0
  30. data/cairo/lib/pkgconfig/cairo-win32.pc +12 -0
  31. data/cairo/lib/pkgconfig/cairo.pc +13 -0
  32. data/cairo/lib/pkgconfig/libpng.pc +14 -0
  33. data/cairo/lib/pkgconfig/libpng13.pc +14 -0
  34. data/cairo/make/cairo-1.6.4-1.sh +55 -0
  35. data/cairo/manifest/cairo-1.6.4-1.mft +6 -0
  36. data/cairo/manifest/cairo-dev-1.6.4-1.mft +72 -0
  37. data/cairo/manifest/libpng-dev-1.2.8.mft +7 -0
  38. data/cairo/share/doc/cairo-1.6.4-1/COPYING +32 -0
  39. data/cairo/share/doc/cairo-1.6.4-1/COPYING-LGPL-2.1 +510 -0
  40. data/cairo/share/doc/cairo-1.6.4-1/COPYING-MPL-1.1 +470 -0
  41. data/cairo/share/gtk-doc/html/cairo/Drawing.html +53 -0
  42. data/cairo/share/gtk-doc/html/cairo/Fonts.html +56 -0
  43. data/cairo/share/gtk-doc/html/cairo/Support.html +50 -0
  44. data/cairo/share/gtk-doc/html/cairo/Surfaces.html +65 -0
  45. data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +128 -0
  46. data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +59 -0
  47. data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +129 -0
  48. data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +127 -0
  49. data/cairo/share/gtk-doc/html/cairo/bindings-path.html +123 -0
  50. data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +63 -0
  51. data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +126 -0
  52. data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +98 -0
  53. data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +99 -0
  54. data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +328 -0
  55. data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +720 -0
  56. data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +297 -0
  57. data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +484 -0
  58. data/cairo/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +246 -0
  59. data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +345 -0
  60. data/cairo/share/gtk-doc/html/cairo/cairo-Paths.html +1336 -0
  61. data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +1560 -0
  62. data/cairo/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +656 -0
  63. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +161 -0
  64. data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +232 -0
  65. data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +337 -0
  66. data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +823 -0
  67. data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +836 -0
  68. data/cairo/share/gtk-doc/html/cairo/cairo-Transformations.html +462 -0
  69. data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +143 -0
  70. data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +325 -0
  71. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +381 -0
  72. data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +331 -0
  73. data/cairo/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +525 -0
  74. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +427 -0
  75. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +626 -0
  76. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +995 -0
  77. data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +2795 -0
  78. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +432 -0
  79. data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +432 -0
  80. data/cairo/share/gtk-doc/html/cairo/home.png +0 -0
  81. data/cairo/share/gtk-doc/html/cairo/index-1.2.html +137 -0
  82. data/cairo/share/gtk-doc/html/cairo/index-1.4.html +105 -0
  83. data/cairo/share/gtk-doc/html/cairo/index-1.6.html +65 -0
  84. data/cairo/share/gtk-doc/html/cairo/index.html +134 -0
  85. data/cairo/share/gtk-doc/html/cairo/index.sgml +466 -0
  86. data/cairo/share/gtk-doc/html/cairo/ix01.html +693 -0
  87. data/cairo/share/gtk-doc/html/cairo/language-bindings.html +79 -0
  88. data/cairo/share/gtk-doc/html/cairo/left.png +0 -0
  89. data/cairo/share/gtk-doc/html/cairo/right.png +0 -0
  90. data/cairo/share/gtk-doc/html/cairo/style.css +148 -0
  91. data/cairo/share/gtk-doc/html/cairo/up.png +0 -0
  92. data/doc/doc.css +91 -0
  93. data/doc/en/cairo-antialias.html +41 -0
  94. data/doc/en/cairo-antialias.rd +16 -0
  95. data/doc/en/cairo-clip-not-representable-error.html +50 -0
  96. data/doc/en/cairo-clip-not-representable-error.rd +17 -0
  97. data/doc/en/cairo-color-base.html +72 -0
  98. data/doc/en/cairo-color-base.rd +38 -0
  99. data/doc/en/cairo-color-cmyk.html +160 -0
  100. data/doc/en/cairo-color-cmyk.rd +107 -0
  101. data/doc/en/cairo-color-hsv.html +140 -0
  102. data/doc/en/cairo-color-hsv.rd +91 -0
  103. data/doc/en/cairo-color-rgb.html +145 -0
  104. data/doc/en/cairo-color-rgb.rd +95 -0
  105. data/doc/en/cairo-color-x11.html +176 -0
  106. data/doc/en/cairo-color-x11.rd +151 -0
  107. data/doc/en/cairo-color.html +241 -0
  108. data/doc/en/cairo-color.rd +213 -0
  109. data/doc/en/cairo-content.html +40 -0
  110. data/doc/en/cairo-content.rd +15 -0
  111. data/doc/en/cairo-context-blur.html +42 -0
  112. data/doc/en/cairo-context-blur.rd +15 -0
  113. data/doc/en/cairo-context-circle.html +42 -0
  114. data/doc/en/cairo-context-circle.rd +15 -0
  115. data/doc/en/cairo-context-color.html +42 -0
  116. data/doc/en/cairo-context-color.rd +15 -0
  117. data/doc/en/cairo-context-path.html +47 -0
  118. data/doc/en/cairo-context-path.rd +19 -0
  119. data/doc/en/cairo-context-rectangle.html +42 -0
  120. data/doc/en/cairo-context-rectangle.rd +15 -0
  121. data/doc/en/cairo-context-triangle.html +42 -0
  122. data/doc/en/cairo-context-triangle.rd +15 -0
  123. data/doc/en/cairo-context.html +636 -0
  124. data/doc/en/cairo-context.rd +491 -0
  125. data/doc/en/cairo-error.html +47 -0
  126. data/doc/en/cairo-error.rd +16 -0
  127. data/doc/en/cairo-extend.html +41 -0
  128. data/doc/en/cairo-extend.rd +16 -0
  129. data/doc/en/cairo-file-not-found.html +50 -0
  130. data/doc/en/cairo-file-not-found.rd +17 -0
  131. data/doc/en/cairo-fill-rule.html +39 -0
  132. data/doc/en/cairo-fill-rule.rd +14 -0
  133. data/doc/en/cairo-filter.html +43 -0
  134. data/doc/en/cairo-filter.rd +18 -0
  135. data/doc/en/cairo-font-extents.html +74 -0
  136. data/doc/en/cairo-font-extents.rd +40 -0
  137. data/doc/en/cairo-font-face.html +41 -0
  138. data/doc/en/cairo-font-face.rd +14 -0
  139. data/doc/en/cairo-font-options.html +142 -0
  140. data/doc/en/cairo-font-options.rd +94 -0
  141. data/doc/en/cairo-font-slant.html +40 -0
  142. data/doc/en/cairo-font-slant.rd +15 -0
  143. data/doc/en/cairo-font-weight.html +39 -0
  144. data/doc/en/cairo-font-weight.rd +14 -0
  145. data/doc/en/cairo-format.html +49 -0
  146. data/doc/en/cairo-format.rd +22 -0
  147. data/doc/en/cairo-glyph.html +102 -0
  148. data/doc/en/cairo-glyph.rd +62 -0
  149. data/doc/en/cairo-gradient-pattern.html +77 -0
  150. data/doc/en/cairo-gradient-pattern.rd +41 -0
  151. data/doc/en/cairo-hint-metrics.html +40 -0
  152. data/doc/en/cairo-hint-metrics.rd +15 -0
  153. data/doc/en/cairo-hint-style.html +42 -0
  154. data/doc/en/cairo-hint-style.rd +17 -0
  155. data/doc/en/cairo-image-surface.html +85 -0
  156. data/doc/en/cairo-image-surface.rd +47 -0
  157. data/doc/en/cairo-invalid-content-error.html +50 -0
  158. data/doc/en/cairo-invalid-content-error.rd +17 -0
  159. data/doc/en/cairo-invalid-dash-error.html +50 -0
  160. data/doc/en/cairo-invalid-dash-error.rd +17 -0
  161. data/doc/en/cairo-invalid-dsc-comment-error.html +50 -0
  162. data/doc/en/cairo-invalid-dsc-comment-error.rd +17 -0
  163. data/doc/en/cairo-invalid-format-error.html +50 -0
  164. data/doc/en/cairo-invalid-format-error.rd +17 -0
  165. data/doc/en/cairo-invalid-index-error.html +50 -0
  166. data/doc/en/cairo-invalid-index-error.rd +17 -0
  167. data/doc/en/cairo-invalid-matrix-error.html +50 -0
  168. data/doc/en/cairo-invalid-matrix-error.rd +17 -0
  169. data/doc/en/cairo-invalid-path-data-error.html +50 -0
  170. data/doc/en/cairo-invalid-path-data-error.rd +17 -0
  171. data/doc/en/cairo-invalid-pop-group-error.html +50 -0
  172. data/doc/en/cairo-invalid-pop-group-error.rd +17 -0
  173. data/doc/en/cairo-invalid-restore-error.html +50 -0
  174. data/doc/en/cairo-invalid-restore-error.rd +17 -0
  175. data/doc/en/cairo-invalid-status-error.html +50 -0
  176. data/doc/en/cairo-invalid-status-error.rd +17 -0
  177. data/doc/en/cairo-invalid-stride-error.html +50 -0
  178. data/doc/en/cairo-invalid-stride-error.rd +17 -0
  179. data/doc/en/cairo-invalid-string-error.html +50 -0
  180. data/doc/en/cairo-invalid-string-error.rd +17 -0
  181. data/doc/en/cairo-invalid-visual-error.html +50 -0
  182. data/doc/en/cairo-invalid-visual-error.rd +17 -0
  183. data/doc/en/cairo-line-cap.html +40 -0
  184. data/doc/en/cairo-line-cap.rd +15 -0
  185. data/doc/en/cairo-line-join.html +40 -0
  186. data/doc/en/cairo-line-join.rd +15 -0
  187. data/doc/en/cairo-linear-pattern.html +63 -0
  188. data/doc/en/cairo-linear-pattern.rd +28 -0
  189. data/doc/en/cairo-matrix.html +257 -0
  190. data/doc/en/cairo-matrix.rd +186 -0
  191. data/doc/en/cairo-no-current-point-error.html +50 -0
  192. data/doc/en/cairo-no-current-point-error.rd +17 -0
  193. data/doc/en/cairo-null-pointer-error.html +50 -0
  194. data/doc/en/cairo-null-pointer-error.rd +17 -0
  195. data/doc/en/cairo-operator.html +51 -0
  196. data/doc/en/cairo-operator.rd +26 -0
  197. data/doc/en/cairo-paper-parse-error.html +50 -0
  198. data/doc/en/cairo-paper-parse-error.rd +17 -0
  199. data/doc/en/cairo-paper-unknown-paper-name.html +69 -0
  200. data/doc/en/cairo-paper-unknown-paper-name.rd +30 -0
  201. data/doc/en/cairo-paper-unknown-unit.html +69 -0
  202. data/doc/en/cairo-paper-unknown-unit.rd +30 -0
  203. data/doc/en/cairo-paper-unrecognized-paper-description.html +69 -0
  204. data/doc/en/cairo-paper-unrecognized-paper-description.rd +30 -0
  205. data/doc/en/cairo-paper.html +187 -0
  206. data/doc/en/cairo-paper.rd +141 -0
  207. data/doc/en/cairo-path-close-path.html +52 -0
  208. data/doc/en/cairo-path-close-path.rd +21 -0
  209. data/doc/en/cairo-path-curve-to.html +52 -0
  210. data/doc/en/cairo-path-curve-to.rd +21 -0
  211. data/doc/en/cairo-path-data-type.html +41 -0
  212. data/doc/en/cairo-path-data-type.rd +16 -0
  213. data/doc/en/cairo-path-data.html +101 -0
  214. data/doc/en/cairo-path-data.rd +62 -0
  215. data/doc/en/cairo-path-line-to.html +52 -0
  216. data/doc/en/cairo-path-line-to.rd +21 -0
  217. data/doc/en/cairo-path-move-to.html +52 -0
  218. data/doc/en/cairo-path-move-to.rd +21 -0
  219. data/doc/en/cairo-path.html +158 -0
  220. data/doc/en/cairo-path.rd +109 -0
  221. data/doc/en/cairo-pattern-type-mismatch-error.html +50 -0
  222. data/doc/en/cairo-pattern-type-mismatch-error.rd +17 -0
  223. data/doc/en/cairo-pattern.html +102 -0
  224. data/doc/en/cairo-pattern.rd +62 -0
  225. data/doc/en/cairo-pdf-surface.html +60 -0
  226. data/doc/en/cairo-pdf-surface.rd +27 -0
  227. data/doc/en/cairo-point.html +77 -0
  228. data/doc/en/cairo-point.rd +42 -0
  229. data/doc/en/cairo-ps-level.html +52 -0
  230. data/doc/en/cairo-ps-level.rd +24 -0
  231. data/doc/en/cairo-ps-surface.html +95 -0
  232. data/doc/en/cairo-ps-surface.rd +55 -0
  233. data/doc/en/cairo-quartz-image-surface.html +60 -0
  234. data/doc/en/cairo-quartz-image-surface.rd +27 -0
  235. data/doc/en/cairo-quartz-surface.html +60 -0
  236. data/doc/en/cairo-quartz-surface.rd +27 -0
  237. data/doc/en/cairo-radial-pattern.html +63 -0
  238. data/doc/en/cairo-radial-pattern.rd +28 -0
  239. data/doc/en/cairo-read-error.html +50 -0
  240. data/doc/en/cairo-read-error.rd +17 -0
  241. data/doc/en/cairo-rectangle.html +92 -0
  242. data/doc/en/cairo-rectangle.rd +54 -0
  243. data/doc/en/cairo-scaled-font.html +87 -0
  244. data/doc/en/cairo-scaled-font.rd +50 -0
  245. data/doc/en/cairo-solid-pattern.html +65 -0
  246. data/doc/en/cairo-solid-pattern.rd +31 -0
  247. data/doc/en/cairo-subpixel-order.html +42 -0
  248. data/doc/en/cairo-subpixel-order.rd +17 -0
  249. data/doc/en/cairo-surface-finished-error.html +50 -0
  250. data/doc/en/cairo-surface-finished-error.rd +17 -0
  251. data/doc/en/cairo-surface-pattern.html +60 -0
  252. data/doc/en/cairo-surface-pattern.rd +27 -0
  253. data/doc/en/cairo-surface-type-mismatch-error.html +50 -0
  254. data/doc/en/cairo-surface-type-mismatch-error.rd +17 -0
  255. data/doc/en/cairo-surface.html +114 -0
  256. data/doc/en/cairo-surface.rd +72 -0
  257. data/doc/en/cairo-svg-surface.html +80 -0
  258. data/doc/en/cairo-svg-surface.rd +44 -0
  259. data/doc/en/cairo-svg-version.html +52 -0
  260. data/doc/en/cairo-svg-version.rd +24 -0
  261. data/doc/en/cairo-temp-file-error.html +50 -0
  262. data/doc/en/cairo-temp-file-error.rd +17 -0
  263. data/doc/en/cairo-text-extents.html +79 -0
  264. data/doc/en/cairo-text-extents.rd +44 -0
  265. data/doc/en/cairo-win32-printing-surface.html +60 -0
  266. data/doc/en/cairo-win32-printing-surface.rd +27 -0
  267. data/doc/en/cairo-win32-surface.html +65 -0
  268. data/doc/en/cairo-win32-surface.rd +31 -0
  269. data/doc/en/cairo-write-error.html +50 -0
  270. data/doc/en/cairo-write-error.rd +17 -0
  271. data/doc/en/cairo.html +123 -0
  272. data/doc/en/cairo.rd +95 -0
  273. data/doc/en/index.html +1080 -0
  274. data/doc/en/index.rd +1051 -0
  275. data/doc/index.html +18 -0
  276. data/doc/ja/cairo-antialias.html +57 -0
  277. data/doc/ja/cairo-clip-not-representable-error.html +56 -0
  278. data/doc/ja/cairo-color-base.html +75 -0
  279. data/doc/ja/cairo-color-cmyk.html +152 -0
  280. data/doc/ja/cairo-color-hsv.html +135 -0
  281. data/doc/ja/cairo-color-rgb.html +145 -0
  282. data/doc/ja/cairo-color-x11.html +183 -0
  283. data/doc/ja/cairo-color.html +317 -0
  284. data/doc/ja/cairo-content.html +51 -0
  285. data/doc/ja/cairo-context-blur.html +53 -0
  286. data/doc/ja/cairo-context-circle.html +54 -0
  287. data/doc/ja/cairo-context-color.html +52 -0
  288. data/doc/ja/cairo-context-path.html +77 -0
  289. data/doc/ja/cairo-context-rectangle.html +60 -0
  290. data/doc/ja/cairo-context-triangle.html +47 -0
  291. data/doc/ja/cairo-context.html +1449 -0
  292. data/doc/ja/cairo-error.html +56 -0
  293. data/doc/ja/cairo-extend.html +56 -0
  294. data/doc/ja/cairo-file-not-found.html +51 -0
  295. data/doc/ja/cairo-fill-rule.html +58 -0
  296. data/doc/ja/cairo-filter.html +43 -0
  297. data/doc/ja/cairo-font-extents.html +110 -0
  298. data/doc/ja/cairo-font-face.html +55 -0
  299. data/doc/ja/cairo-font-options.html +186 -0
  300. data/doc/ja/cairo-font-slant.html +50 -0
  301. data/doc/ja/cairo-font-weight.html +47 -0
  302. data/doc/ja/cairo-format.html +81 -0
  303. data/doc/ja/cairo-glyph.html +115 -0
  304. data/doc/ja/cairo-gradient-pattern.html +119 -0
  305. data/doc/ja/cairo-hint-metrics.html +57 -0
  306. data/doc/ja/cairo-hint-style.html +64 -0
  307. data/doc/ja/cairo-image-surface.html +131 -0
  308. data/doc/ja/cairo-invalid-content-error.html +54 -0
  309. data/doc/ja/cairo-invalid-dash-error.html +54 -0
  310. data/doc/ja/cairo-invalid-dsc-comment-error.html +54 -0
  311. data/doc/ja/cairo-invalid-format-error.html +54 -0
  312. data/doc/ja/cairo-invalid-index-error.html +54 -0
  313. data/doc/ja/cairo-invalid-matrix-error.html +54 -0
  314. data/doc/ja/cairo-invalid-path-data-error.html +54 -0
  315. data/doc/ja/cairo-invalid-pop-group-error.html +54 -0
  316. data/doc/ja/cairo-invalid-restore-error.html +55 -0
  317. data/doc/ja/cairo-invalid-status-error.html +55 -0
  318. data/doc/ja/cairo-invalid-stride-error.html +55 -0
  319. data/doc/ja/cairo-invalid-string-error.html +54 -0
  320. data/doc/ja/cairo-invalid-visual-error.html +57 -0
  321. data/doc/ja/cairo-line-cap.html +50 -0
  322. data/doc/ja/cairo-line-join.html +53 -0
  323. data/doc/ja/cairo-linear-pattern.html +87 -0
  324. data/doc/ja/cairo-matrix.html +343 -0
  325. data/doc/ja/cairo-no-current-point-error.html +54 -0
  326. data/doc/ja/cairo-null-pointer-error.html +54 -0
  327. data/doc/ja/cairo-operator.html +51 -0
  328. data/doc/ja/cairo-paper-parse-error.html +55 -0
  329. data/doc/ja/cairo-paper-unknown-paper-name.html +76 -0
  330. data/doc/ja/cairo-paper-unknown-unit.html +75 -0
  331. data/doc/ja/cairo-paper-unrecognized-paper-description.html +76 -0
  332. data/doc/ja/cairo-paper.html +357 -0
  333. data/doc/ja/cairo-path-close-path.html +57 -0
  334. data/doc/ja/cairo-path-curve-to.html +70 -0
  335. data/doc/ja/cairo-path-data-type.html +53 -0
  336. data/doc/ja/cairo-path-data.html +127 -0
  337. data/doc/ja/cairo-path-line-to.html +62 -0
  338. data/doc/ja/cairo-path-move-to.html +62 -0
  339. data/doc/ja/cairo-path.html +144 -0
  340. data/doc/ja/cairo-pattern-type-mismatch-error.html +56 -0
  341. data/doc/ja/cairo-pattern.html +128 -0
  342. data/doc/ja/cairo-pdf-surface.html +86 -0
  343. data/doc/ja/cairo-point.html +90 -0
  344. data/doc/ja/cairo-ps-level.html +62 -0
  345. data/doc/ja/cairo-ps-surface.html +214 -0
  346. data/doc/ja/cairo-quartz-image-surface.html +75 -0
  347. data/doc/ja/cairo-quartz-surface.html +93 -0
  348. data/doc/ja/cairo-radial-pattern.html +93 -0
  349. data/doc/ja/cairo-read-error.html +55 -0
  350. data/doc/ja/cairo-rectangle.html +109 -0
  351. data/doc/ja/cairo-scaled-font.html +144 -0
  352. data/doc/ja/cairo-solid-pattern.html +87 -0
  353. data/doc/ja/cairo-subpixel-order.html +57 -0
  354. data/doc/ja/cairo-surface-finished-error.html +54 -0
  355. data/doc/ja/cairo-surface-pattern.html +68 -0
  356. data/doc/ja/cairo-surface-type-mismatch-error.html +56 -0
  357. data/doc/ja/cairo-surface.html +191 -0
  358. data/doc/ja/cairo-svg-surface.html +114 -0
  359. data/doc/ja/cairo-svg-version.html +66 -0
  360. data/doc/ja/cairo-temp-file-error.html +50 -0
  361. data/doc/ja/cairo-text-extents.html +101 -0
  362. data/doc/ja/cairo-win32-printing-surface.html +80 -0
  363. data/doc/ja/cairo-win32-surface.html +100 -0
  364. data/doc/ja/cairo-write-error.html +55 -0
  365. data/doc/ja/cairo.html +148 -0
  366. data/doc/ja/index.html +1080 -0
  367. data/extconf.rb +153 -0
  368. data/misc/update-colors.rb +143 -0
  369. data/pkg-config.rb +278 -0
  370. data/samples/agg/README +4 -0
  371. data/samples/agg/aa_demo.rb +47 -0
  372. data/samples/agg/aa_test.rb +304 -0
  373. data/samples/blur.rb +47 -0
  374. data/samples/pac.rb +99 -0
  375. data/samples/pac2.rb +171 -0
  376. data/samples/png.rb +45 -0
  377. data/samples/scalable.rb +56 -0
  378. data/samples/text-on-path.rb +60 -0
  379. data/samples/text2.rb +131 -0
  380. data/src/cairo.def +96 -0
  381. data/src/cairo.so +0 -0
  382. data/src/lib/cairo.rb +141 -0
  383. data/src/lib/cairo/color.rb +255 -0
  384. data/src/lib/cairo/colors.rb +656 -0
  385. data/src/lib/cairo/constants.rb +21 -0
  386. data/src/lib/cairo/context.rb +29 -0
  387. data/src/lib/cairo/context/blur.rb +45 -0
  388. data/src/lib/cairo/context/circle.rb +9 -0
  389. data/src/lib/cairo/context/color.rb +11 -0
  390. data/src/lib/cairo/context/path.rb +116 -0
  391. data/src/lib/cairo/context/rectangle.rb +33 -0
  392. data/src/lib/cairo/context/triangle.rb +12 -0
  393. data/src/lib/cairo/paper.rb +183 -0
  394. data/src/lib/cairo/papers.rb +41 -0
  395. data/src/lib/cairo/path.rb +15 -0
  396. data/src/lib/cairo/point.rb +7 -0
  397. data/src/libruby-cairo.a +0 -0
  398. data/src/rb_cairo.c +82 -0
  399. data/src/rb_cairo.h +264 -0
  400. data/src/rb_cairo_constants.c +456 -0
  401. data/src/rb_cairo_context.c +1548 -0
  402. data/src/rb_cairo_exception.c +214 -0
  403. data/src/rb_cairo_font_extents.c +125 -0
  404. data/src/rb_cairo_font_face.c +56 -0
  405. data/src/rb_cairo_font_options.c +197 -0
  406. data/src/rb_cairo_glyph.c +159 -0
  407. data/src/rb_cairo_matrix.c +350 -0
  408. data/src/rb_cairo_path.c +459 -0
  409. data/src/rb_cairo_pattern.c +540 -0
  410. data/src/rb_cairo_private.c +78 -0
  411. data/src/rb_cairo_private.h +72 -0
  412. data/src/rb_cairo_scaled_font.c +177 -0
  413. data/src/rb_cairo_surface.c +1252 -0
  414. data/src/rb_cairo_text_extents.c +138 -0
  415. data/test/run-test.rb +15 -0
  416. data/test/test_paper.rb +81 -0
  417. data/test/test_pkg_config.rb +122 -0
  418. metadata +490 -0
@@ -0,0 +1,1336 @@
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=US-ASCII">
5
+ <title>Paths</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
7
+ <link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="Drawing.html" title="Drawing">
9
+ <link rel="prev" href="cairo-cairo-t.html" title="cairo_t">
10
+ <link rel="next" href="cairo-Patterns.html" title="cairo_pattern_t">
11
+ <meta name="generator" content="GTK-Doc V1.9 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="Drawing.html" title="Drawing">
14
+ <link rel="chapter" href="Fonts.html" title="Fonts">
15
+ <link rel="chapter" href="Surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="Support.html" title="Utilities">
17
+ <link rel="index" href="ix01.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="appendix" href="language-bindings.html" title="Appendix&#160;A.&#160;Creating a language binding for cairo">
22
+ </head>
23
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
24
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
25
+ <tr valign="middle">
26
+ <td><a accesskey="p" href="cairo-cairo-t.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
27
+ <td><a accesskey="u" href="Drawing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
28
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
29
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
30
+ <td><a accesskey="n" href="cairo-Patterns.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
31
+ </tr>
32
+ <tr><td colspan="5" class="shortcuts"><nobr><a href="#id2624263" class="shortcut">Top</a>
33
+ &#160;|&#160;
34
+ <a href="#id2624862" class="shortcut">Description</a></nobr></td></tr>
35
+ </table>
36
+ <div class="refentry" lang="en">
37
+ <a name="cairo-Paths"></a><div class="titlepage"></div>
38
+ <div class="refnamediv"><table width="100%"><tr>
39
+ <td valign="top">
40
+ <h2>
41
+ <a name="id2624263"></a><span class="refentrytitle">Paths</span>
42
+ </h2>
43
+ <p>Paths &#8212; Creating paths and manipulating path data</p>
44
+ </td>
45
+ <td valign="top" align="right"></td>
46
+ </tr></table></div>
47
+ <div class="refsynopsisdiv">
48
+ <h2>Synopsis</h2>
49
+ <pre class="synopsis">
50
+
51
+
52
+
53
+ <a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a>;
54
+ union <a class="link" href="cairo-Paths.html#cairo-path-data-t">cairo_path_data_t</a>;
55
+ enum <a class="link" href="cairo-Paths.html#cairo-path-data-type-t">cairo_path_data_type_t</a>;
56
+ <a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a>* <a class="link" href="cairo-Paths.html#cairo-copy-path">cairo_copy_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);
57
+ <a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a>* <a class="link" href="cairo-Paths.html#cairo-copy-path-flat">cairo_copy_path_flat</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);
58
+ void <a class="link" href="cairo-Paths.html#cairo-path-destroy">cairo_path_destroy</a> (<a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a> *path);
59
+ void <a class="link" href="cairo-Paths.html#cairo-append-path">cairo_append_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
60
+ const <a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a> *path);
61
+ <a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> <a class="link" href="cairo-Paths.html#cairo-has-current-point">cairo_has_current_point</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);
62
+ void <a class="link" href="cairo-Paths.html#cairo-get-current-point">cairo_get_current_point</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
63
+ double *x,
64
+ double *y);
65
+ void <a class="link" href="cairo-Paths.html#cairo-new-path">cairo_new_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);
66
+ void <a class="link" href="cairo-Paths.html#cairo-new-sub-path">cairo_new_sub_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);
67
+ void <a class="link" href="cairo-Paths.html#cairo-close-path">cairo_close_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);
68
+ void <a class="link" href="cairo-Paths.html#cairo-arc">cairo_arc</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
69
+ double xc,
70
+ double yc,
71
+ double radius,
72
+ double angle1,
73
+ double angle2);
74
+ void <a class="link" href="cairo-Paths.html#cairo-arc-negative">cairo_arc_negative</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
75
+ double xc,
76
+ double yc,
77
+ double radius,
78
+ double angle1,
79
+ double angle2);
80
+ void <a class="link" href="cairo-Paths.html#cairo-curve-to">cairo_curve_to</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
81
+ double x1,
82
+ double y1,
83
+ double x2,
84
+ double y2,
85
+ double x3,
86
+ double y3);
87
+ void <a class="link" href="cairo-Paths.html#cairo-line-to">cairo_line_to</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
88
+ double x,
89
+ double y);
90
+ void <a class="link" href="cairo-Paths.html#cairo-move-to">cairo_move_to</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
91
+ double x,
92
+ double y);
93
+ void <a class="link" href="cairo-Paths.html#cairo-rectangle">cairo_rectangle</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
94
+ double x,
95
+ double y,
96
+ double width,
97
+ double height);
98
+ void <a class="link" href="cairo-Paths.html#cairo-glyph-path">cairo_glyph_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
99
+ const <a class="link" href="cairo-Text.html#cairo-glyph-t">cairo_glyph_t</a> *glyphs,
100
+ int num_glyphs);
101
+ void <a class="link" href="cairo-Paths.html#cairo-text-path">cairo_text_path</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
102
+ const char *utf8);
103
+ void <a class="link" href="cairo-Paths.html#cairo-rel-curve-to">cairo_rel_curve_to</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
104
+ double dx1,
105
+ double dy1,
106
+ double dx2,
107
+ double dy2,
108
+ double dx3,
109
+ double dy3);
110
+ void <a class="link" href="cairo-Paths.html#cairo-rel-line-to">cairo_rel_line_to</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
111
+ double dx,
112
+ double dy);
113
+ void <a class="link" href="cairo-Paths.html#cairo-rel-move-to">cairo_rel_move_to</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
114
+ double dx,
115
+ double dy);
116
+ void <a class="link" href="cairo-Paths.html#cairo-path-extents">cairo_path_extents</a> (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
117
+ double *x1,
118
+ double *y1,
119
+ double *x2,
120
+ double *y2);
121
+ </pre>
122
+ </div>
123
+ <div class="refsect1" lang="en">
124
+ <a name="id2624862"></a><h2>Description</h2>
125
+ <p>
126
+ Paths are the most basic drawing tools and are primarily used to implicitly
127
+ generate simple masks.
128
+ </p>
129
+ </div>
130
+ <div class="refsect1" lang="en">
131
+ <a name="id2624879"></a><h2>Details</h2>
132
+ <div class="refsect2" lang="en">
133
+ <a name="id2624890"></a><h3>
134
+ <a name="cairo-path-t"></a>cairo_path_t</h3>
135
+ <a class="indexterm" name="id2624902"></a><pre class="programlisting">typedef struct {
136
+ cairo_status_t status;
137
+ cairo_path_data_t *data;
138
+ int num_data;
139
+ } cairo_path_t;
140
+ </pre>
141
+ <p>
142
+ A data structure for holding a path. This data structure serves as
143
+ the return value for <a class="link" href="cairo-Paths.html#cairo-copy-path"><code class="function">cairo_copy_path()</code></a> and
144
+ <a class="link" href="cairo-Paths.html#cairo-copy-path-flat"><code class="function">cairo_copy_path_flat()</code></a> as well the input value for
145
+ <a class="link" href="cairo-Paths.html#cairo-append-path"><code class="function">cairo_append_path()</code></a>.
146
+ </p>
147
+ <p>
148
+ See <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a> for hints on how to iterate over the
149
+ actual data within the path.
150
+ </p>
151
+ <p>
152
+ The num_data member gives the number of elements in the data
153
+ array. This number is larger than the number of independent path
154
+ portions (defined in <a class="link" href="cairo-Paths.html#cairo-path-data-type-t"><span class="type">cairo_path_data_type_t</span></a>), since the data
155
+ includes both headers and coordinates for each portion.</p>
156
+ <p>
157
+
158
+ </p>
159
+ <div class="variablelist"><table border="0">
160
+ <col align="left" valign="top">
161
+ <tbody>
162
+ <tr>
163
+ <td><p><span class="term"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a>&#160;<em class="structfield"><code>status</code></em>;</span></p></td>
164
+ <td> the current error status
165
+ </td>
166
+ </tr>
167
+ <tr>
168
+ <td><p><span class="term"><a class="link" href="cairo-Paths.html#cairo-path-data-t">cairo_path_data_t</a>&#160;*<em class="structfield"><code>data</code></em>;</span></p></td>
169
+ <td> the elements in the path
170
+ </td>
171
+ </tr>
172
+ <tr>
173
+ <td><p><span class="term">int&#160;<em class="structfield"><code>num_data</code></em>;</span></p></td>
174
+ <td> the number of elements in the data array
175
+ </td>
176
+ </tr>
177
+ </tbody>
178
+ </table></div>
179
+ </div>
180
+ <hr>
181
+ <div class="refsect2" lang="en">
182
+ <a name="id2577573"></a><h3>
183
+ <a name="cairo-path-data-t"></a>union cairo_path_data_t</h3>
184
+ <a class="indexterm" name="id2577585"></a><pre class="programlisting">union cairo_path_data_t {
185
+ struct {
186
+ cairo_path_data_type_t type;
187
+ int length;
188
+ } header;
189
+ struct {
190
+ double x, y;
191
+ } point;
192
+ };
193
+ </pre>
194
+ <p>
195
+ <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a> is used to represent the path data inside a
196
+ <a class="link" href="cairo-Paths.html#cairo-path-t"><span class="type">cairo_path_t</span></a>.
197
+ </p>
198
+ <p>
199
+ The data structure is designed to try to balance the demands of
200
+ efficiency and ease-of-use. A path is represented as an array of
201
+ <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a>, which is a union of headers and points.
202
+ </p>
203
+ <p>
204
+ Each portion of the path is represented by one or more elements in
205
+ the array, (one header followed by 0 or more points). The length
206
+ value of the header is the number of array elements for the current
207
+ portion including the header, (ie. length == 1 + # of points), and
208
+ where the number of points for each element type is as follows:
209
+ </p>
210
+ <p>
211
+ </p>
212
+ <pre class="programlisting">
213
+ %CAIRO_PATH_MOVE_TO: 1 point
214
+ %CAIRO_PATH_LINE_TO: 1 point
215
+ %CAIRO_PATH_CURVE_TO: 3 points
216
+ %CAIRO_PATH_CLOSE_PATH: 0 points
217
+ </pre>
218
+ <p>
219
+ </p>
220
+ <p>
221
+ The semantics and ordering of the coordinate values are consistent
222
+ with <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a>, <a class="link" href="cairo-Paths.html#cairo-line-to"><code class="function">cairo_line_to()</code></a>, <a class="link" href="cairo-Paths.html#cairo-curve-to"><code class="function">cairo_curve_to()</code></a>, and
223
+ <a class="link" href="cairo-Paths.html#cairo-close-path"><code class="function">cairo_close_path()</code></a>.
224
+ </p>
225
+ <p>
226
+ Here is sample code for iterating through a <span class="type">""</span>
227
+ </p>
228
+ <p>
229
+ </p>
230
+ <div class="informalexample"><pre class="programlisting">
231
+ int i;
232
+ <a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a> *path;
233
+ <a class="link" href="cairo-Paths.html#cairo-path-data-t">cairo_path_data_t</a> *data;
234
+ &#160;
235
+ path = cairo_copy_path (cr);
236
+ &#160;
237
+ for (i=0; i &lt; path-&gt;num_data; i += path-&gt;data[i].header.length) {
238
+ data = &amp;path-&gt;data[i];
239
+ switch (data-&gt;header.type) {
240
+ case %CAIRO_PATH_MOVE_TO:
241
+ do_move_to_things (data[1].point.x, data[1].point.y);
242
+ break;
243
+ case %CAIRO_PATH_LINE_TO:
244
+ do_line_to_things (data[1].point.x, data[1].point.y);
245
+ break;
246
+ case %CAIRO_PATH_CURVE_TO:
247
+ do_curve_to_things (data[1].point.x, data[1].point.y,
248
+ data[2].point.x, data[2].point.y,
249
+ data[3].point.x, data[3].point.y);
250
+ break;
251
+ case %CAIRO_PATH_CLOSE_PATH:
252
+ do_close_path_things ();
253
+ break;
254
+ }
255
+ }
256
+ cairo_path_destroy (path);
257
+ </pre></div>
258
+ <p>
259
+ </p>
260
+ <p>
261
+ As of cairo 1.4, cairo does not mind if there are more elements in
262
+ a portion of the path than needed. Such elements can be used by
263
+ users of the cairo API to hold extra values in the path data
264
+ structure. For this reason, it is recommended that applications
265
+ always use <code class="literal">data-&gt;header.length</code> to
266
+ iterate over the path data, instead of hardcoding the number of
267
+ elements for each element type.</p>
268
+ <p>
269
+
270
+ </p>
271
+ </div>
272
+ <hr>
273
+ <div class="refsect2" lang="en">
274
+ <a name="id2616806"></a><h3>
275
+ <a name="cairo-path-data-type-t"></a>enum cairo_path_data_type_t</h3>
276
+ <a class="indexterm" name="id2577755"></a><pre class="programlisting">typedef enum _cairo_path_data_type {
277
+ CAIRO_PATH_MOVE_TO,
278
+ CAIRO_PATH_LINE_TO,
279
+ CAIRO_PATH_CURVE_TO,
280
+ CAIRO_PATH_CLOSE_PATH
281
+ } cairo_path_data_type_t;
282
+ </pre>
283
+ <p>
284
+ <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a> is used to describe the type of one portion
285
+ of a path when represented as a <a class="link" href="cairo-Paths.html#cairo-path-t"><span class="type">cairo_path_t</span></a>.
286
+ See <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a> for details.</p>
287
+ <p>
288
+
289
+ </p>
290
+ <div class="variablelist"><table border="0">
291
+ <col align="left" valign="top">
292
+ <tbody>
293
+ <tr>
294
+ <td><p><span class="term"><a name="CAIRO-PATH-MOVE-TO:CAPS"></a><code class="literal">CAIRO_PATH_MOVE_TO</code></span></p></td>
295
+ <td> A move-to operation
296
+ </td>
297
+ </tr>
298
+ <tr>
299
+ <td><p><span class="term"><a name="CAIRO-PATH-LINE-TO:CAPS"></a><code class="literal">CAIRO_PATH_LINE_TO</code></span></p></td>
300
+ <td> A line-to operation
301
+ </td>
302
+ </tr>
303
+ <tr>
304
+ <td><p><span class="term"><a name="CAIRO-PATH-CURVE-TO:CAPS"></a><code class="literal">CAIRO_PATH_CURVE_TO</code></span></p></td>
305
+ <td> A curve-to operation
306
+ </td>
307
+ </tr>
308
+ <tr>
309
+ <td><p><span class="term"><a name="CAIRO-PATH-CLOSE-PATH:CAPS"></a><code class="literal">CAIRO_PATH_CLOSE_PATH</code></span></p></td>
310
+ <td> A close-path operation
311
+ </td>
312
+ </tr>
313
+ </tbody>
314
+ </table></div>
315
+ </div>
316
+ <hr>
317
+ <div class="refsect2" lang="en">
318
+ <a name="id2577887"></a><h3>
319
+ <a name="cairo-copy-path"></a>cairo_copy_path ()</h3>
320
+ <a class="indexterm" name="id2577900"></a><pre class="programlisting"><a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a>* cairo_copy_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);</pre>
321
+ <p>
322
+ Creates a copy of the current path and returns it to the user as a
323
+ <a class="link" href="cairo-Paths.html#cairo-path-t"><span class="type">cairo_path_t</span></a>. See <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a> for hints on how to iterate
324
+ over the returned data structure.
325
+ </p>
326
+ <p>
327
+ This function will always return a valid pointer, but the result
328
+ will have no data (<code class="literal">data==<code class="literal">NULL</code></code> and
329
+ <code class="literal">num_data==0</code>), if either of the following
330
+ conditions hold:
331
+ </p>
332
+ <p>
333
+ </p>
334
+ <div class="orderedlist"><ol type="1">
335
+ <li>If there is insufficient memory to copy the path. In this
336
+ case <code class="literal">path-&gt;status</code> will be set to
337
+ <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>.</li>
338
+ <li>If <em class="parameter"><code>cr</code></em> is already in an error state. In this case
339
+ <code class="literal">path-&gt;status</code> will contain the same status that
340
+ would be returned by <a class="link" href="cairo-cairo-t.html#cairo-status"><code class="function">cairo_status()</code></a>.</li>
341
+ </ol></div>
342
+ <p>
343
+ </p>
344
+ <p>
345
+ In either case, <code class="literal">path-&gt;status</code> will be set to
346
+ <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> (regardless of what the error status in
347
+ <em class="parameter"><code>cr</code></em> might have been).</p>
348
+ <p>
349
+
350
+ </p>
351
+ <div class="variablelist"><table border="0">
352
+ <col align="left" valign="top">
353
+ <tbody>
354
+ <tr>
355
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
356
+ <td> a cairo context
357
+ </td>
358
+ </tr>
359
+ <tr>
360
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
361
+ <td> the copy of the current path. The caller owns the
362
+ returned object and should call <a class="link" href="cairo-Paths.html#cairo-path-destroy"><code class="function">cairo_path_destroy()</code></a> when finished
363
+ with it.
364
+ </td>
365
+ </tr>
366
+ </tbody>
367
+ </table></div>
368
+ </div>
369
+ <hr>
370
+ <div class="refsect2" lang="en">
371
+ <a name="id2578093"></a><h3>
372
+ <a name="cairo-copy-path-flat"></a>cairo_copy_path_flat ()</h3>
373
+ <a class="indexterm" name="id2578104"></a><pre class="programlisting"><a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a>* cairo_copy_path_flat (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);</pre>
374
+ <p>
375
+ Gets a flattened copy of the current path and returns it to the
376
+ user as a <a class="link" href="cairo-Paths.html#cairo-path-t"><span class="type">cairo_path_t</span></a>. See <a class="link" href="cairo-Paths.html#cairo-path-data-t"><span class="type">cairo_path_data_t</span></a> for hints on
377
+ how to iterate over the returned data structure.
378
+ </p>
379
+ <p>
380
+ This function is like <a class="link" href="cairo-Paths.html#cairo-copy-path"><code class="function">cairo_copy_path()</code></a> except that any curves
381
+ in the path will be approximated with piecewise-linear
382
+ approximations, (accurate to within the current tolerance
383
+ value). That is, the result is guaranteed to not have any elements
384
+ of type <a class="link" href="cairo-Paths.html#CAIRO-PATH-CURVE-TO:CAPS"><code class="literal">CAIRO_PATH_CURVE_TO</code></a> which will instead be replaced by a
385
+ series of <a class="link" href="cairo-Paths.html#CAIRO-PATH-LINE-TO:CAPS"><code class="literal">CAIRO_PATH_LINE_TO</code></a> elements.
386
+ </p>
387
+ <p>
388
+ This function will always return a valid pointer, but the result
389
+ will have no data (<code class="literal">data==<code class="literal">NULL</code></code> and
390
+ <code class="literal">num_data==0</code>), if either of the following
391
+ conditions hold:
392
+ </p>
393
+ <p>
394
+ </p>
395
+ <div class="orderedlist"><ol type="1">
396
+ <li>If there is insufficient memory to copy the path. In this
397
+ case <code class="literal">path-&gt;status</code> will be set to
398
+ <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>.</li>
399
+ <li>If <em class="parameter"><code>cr</code></em> is already in an error state. In this case
400
+ <code class="literal">path-&gt;status</code> will contain the same status that
401
+ would be returned by <a class="link" href="cairo-cairo-t.html#cairo-status"><code class="function">cairo_status()</code></a>.</li>
402
+ </ol></div>
403
+ <p>
404
+
405
+ </p>
406
+ <div class="variablelist"><table border="0">
407
+ <col align="left" valign="top">
408
+ <tbody>
409
+ <tr>
410
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
411
+ <td> a cairo context
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
416
+ <td> the copy of the current path. The caller owns the
417
+ returned object and should call <a class="link" href="cairo-Paths.html#cairo-path-destroy"><code class="function">cairo_path_destroy()</code></a> when finished
418
+ with it.
419
+ </td>
420
+ </tr>
421
+ </tbody>
422
+ </table></div>
423
+ </div>
424
+ <hr>
425
+ <div class="refsect2" lang="en">
426
+ <a name="id2578308"></a><h3>
427
+ <a name="cairo-path-destroy"></a>cairo_path_destroy ()</h3>
428
+ <a class="indexterm" name="id2578321"></a><pre class="programlisting">void cairo_path_destroy (<a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a> *path);</pre>
429
+ <p>
430
+ Immediately releases all memory associated with <em class="parameter"><code>path</code></em>. After a call
431
+ to <a class="link" href="cairo-Paths.html#cairo-path-destroy"><code class="function">cairo_path_destroy()</code></a> the <em class="parameter"><code>path</code></em> pointer is no longer valid and
432
+ should not be used further.
433
+ </p>
434
+ <p>
435
+ Note: <a class="link" href="cairo-Paths.html#cairo-path-destroy"><code class="function">cairo_path_destroy()</code></a> should only be called with a
436
+ pointer to a <a class="link" href="cairo-Paths.html#cairo-path-t"><span class="type">cairo_path_t</span></a> returned by a cairo function. Any path
437
+ that is created manually (ie. outside of cairo) should be destroyed
438
+ manually as well.</p>
439
+ <p>
440
+
441
+ </p>
442
+ <div class="variablelist"><table border="0">
443
+ <col align="left" valign="top">
444
+ <tbody><tr>
445
+ <td><p><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></p></td>
446
+ <td> a path previously returned by either <a class="link" href="cairo-Paths.html#cairo-copy-path"><code class="function">cairo_copy_path()</code></a> or
447
+ <a class="link" href="cairo-Paths.html#cairo-copy-path-flat"><code class="function">cairo_copy_path_flat()</code></a>.
448
+ </td>
449
+ </tr></tbody>
450
+ </table></div>
451
+ </div>
452
+ <hr>
453
+ <div class="refsect2" lang="en">
454
+ <a name="id2578434"></a><h3>
455
+ <a name="cairo-append-path"></a>cairo_append_path ()</h3>
456
+ <a class="indexterm" name="id2578446"></a><pre class="programlisting">void cairo_append_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
457
+ const <a class="link" href="cairo-Paths.html#cairo-path-t">cairo_path_t</a> *path);</pre>
458
+ <p>
459
+ Append the <em class="parameter"><code>path</code></em> onto the current path. The <em class="parameter"><code>path</code></em> may be either the
460
+ return value from one of <a class="link" href="cairo-Paths.html#cairo-copy-path"><code class="function">cairo_copy_path()</code></a> or
461
+ <a class="link" href="cairo-Paths.html#cairo-copy-path-flat"><code class="function">cairo_copy_path_flat()</code></a> or it may be constructed manually. See
462
+ <a class="link" href="cairo-Paths.html#cairo-path-t"><span class="type">cairo_path_t</span></a> for details on how the path data structure should be
463
+ initialized, and note that <code class="literal">path-&gt;status</code> must be
464
+ initialized to <a class="link" href="cairo-Error-Handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>.</p>
465
+ <p>
466
+
467
+ </p>
468
+ <div class="variablelist"><table border="0">
469
+ <col align="left" valign="top">
470
+ <tbody>
471
+ <tr>
472
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
473
+ <td> a cairo context
474
+ </td>
475
+ </tr>
476
+ <tr>
477
+ <td><p><span class="term"><em class="parameter"><code>path</code></em>&#160;:</span></p></td>
478
+ <td> path to be appended
479
+ </td>
480
+ </tr>
481
+ </tbody>
482
+ </table></div>
483
+ </div>
484
+ <hr>
485
+ <div class="refsect2" lang="en">
486
+ <a name="id2578572"></a><h3>
487
+ <a name="cairo-has-current-point"></a>cairo_has_current_point ()</h3>
488
+ <a class="indexterm" name="id2578585"></a><pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t">cairo_bool_t</a> cairo_has_current_point (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);</pre>
489
+ <p>
490
+ Returns whether a current point is defined on the current path.
491
+ See <a class="link" href="cairo-Paths.html#cairo-get-current-point"><code class="function">cairo_get_current_point()</code></a> for details on the current point.</p>
492
+ <p>
493
+
494
+ </p>
495
+ <div class="variablelist"><table border="0">
496
+ <col align="left" valign="top">
497
+ <tbody>
498
+ <tr>
499
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
500
+ <td> a cairo context
501
+ </td>
502
+ </tr>
503
+ <tr>
504
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span>&#160;:</span></p></td>
505
+ <td> whether a current point is defined.
506
+
507
+ </td>
508
+ </tr>
509
+ </tbody>
510
+ </table></div>
511
+ <p class="since">Since 1.6
512
+ </p>
513
+ </div>
514
+ <hr>
515
+ <div class="refsect2" lang="en">
516
+ <a name="id2578662"></a><h3>
517
+ <a name="cairo-get-current-point"></a>cairo_get_current_point ()</h3>
518
+ <a class="indexterm" name="id2578674"></a><pre class="programlisting">void cairo_get_current_point (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
519
+ double *x,
520
+ double *y);</pre>
521
+ <p>
522
+ Gets the current point of the current path, which is
523
+ conceptually the final point reached by the path so far.
524
+ </p>
525
+ <p>
526
+ The current point is returned in the user-space coordinate
527
+ system. If there is no defined current point or if <em class="parameter"><code>cr</code></em> is in an
528
+ error status, <em class="parameter"><code>x</code></em> and <em class="parameter"><code>y</code></em> will both be set to 0.0. It is possible to
529
+ check this in advance with <a class="link" href="cairo-Paths.html#cairo-has-current-point"><code class="function">cairo_has_current_point()</code></a>.
530
+ </p>
531
+ <p>
532
+ Most path construction functions alter the current point. See the
533
+ following for details on how they affect the current point:
534
+ <a class="link" href="cairo-Paths.html#cairo-new-path"><code class="function">cairo_new_path()</code></a>, <a class="link" href="cairo-Paths.html#cairo-new-sub-path"><code class="function">cairo_new_sub_path()</code></a>,
535
+ <a class="link" href="cairo-Paths.html#cairo-append-path"><code class="function">cairo_append_path()</code></a>, <a class="link" href="cairo-Paths.html#cairo-close-path"><code class="function">cairo_close_path()</code></a>,
536
+ <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a>, <a class="link" href="cairo-Paths.html#cairo-line-to"><code class="function">cairo_line_to()</code></a>, <a class="link" href="cairo-Paths.html#cairo-curve-to"><code class="function">cairo_curve_to()</code></a>,
537
+ <a class="link" href="cairo-Paths.html#cairo-rel-move-to"><code class="function">cairo_rel_move_to()</code></a>, <a class="link" href="cairo-Paths.html#cairo-rel-line-to"><code class="function">cairo_rel_line_to()</code></a>, <a class="link" href="cairo-Paths.html#cairo-rel-curve-to"><code class="function">cairo_rel_curve_to()</code></a>,
538
+ <a class="link" href="cairo-Paths.html#cairo-arc"><code class="function">cairo_arc()</code></a>, <a class="link" href="cairo-Paths.html#cairo-arc-negative"><code class="function">cairo_arc_negative()</code></a>, <a class="link" href="cairo-Paths.html#cairo-rectangle"><code class="function">cairo_rectangle()</code></a>,
539
+ <a class="link" href="cairo-Paths.html#cairo-text-path"><code class="function">cairo_text_path()</code></a>, <a class="link" href="cairo-Paths.html#cairo-glyph-path"><code class="function">cairo_glyph_path()</code></a>, <code class="function">cairo_stroke_to_path()</code>
540
+ </p>
541
+ <p>
542
+ Some functions use and alter the current point but do not otherwise
543
+ change current path:
544
+ <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>, <a class="link" href="cairo-Text.html#cairo-show-glyphs"><code class="function">cairo_show_glyphs()</code></a>.
545
+ </p>
546
+ <p>
547
+ Some functions unset the current path and as a result, current point:
548
+ <a class="link" href="cairo-cairo-t.html#cairo-fill"><code class="function">cairo_fill()</code></a>, <a class="link" href="cairo-cairo-t.html#cairo-stroke"><code class="function">cairo_stroke()</code></a>.</p>
549
+ <p>
550
+
551
+ </p>
552
+ <div class="variablelist"><table border="0">
553
+ <col align="left" valign="top">
554
+ <tbody>
555
+ <tr>
556
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
557
+ <td> a cairo context
558
+ </td>
559
+ </tr>
560
+ <tr>
561
+ <td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
562
+ <td> return value for X coordinate of the current point
563
+ </td>
564
+ </tr>
565
+ <tr>
566
+ <td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
567
+ <td> return value for Y coordinate of the current point
568
+ </td>
569
+ </tr>
570
+ </tbody>
571
+ </table></div>
572
+ </div>
573
+ <hr>
574
+ <div class="refsect2" lang="en">
575
+ <a name="id2579006"></a><h3>
576
+ <a name="cairo-new-path"></a>cairo_new_path ()</h3>
577
+ <a class="indexterm" name="id2579018"></a><pre class="programlisting">void cairo_new_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);</pre>
578
+ <p>
579
+ Clears the current path. After this call there will be no path and
580
+ no current point.</p>
581
+ <p>
582
+
583
+ </p>
584
+ <div class="variablelist"><table border="0">
585
+ <col align="left" valign="top">
586
+ <tbody><tr>
587
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
588
+ <td> a cairo context
589
+ </td>
590
+ </tr></tbody>
591
+ </table></div>
592
+ </div>
593
+ <hr>
594
+ <div class="refsect2" lang="en">
595
+ <a name="id2579068"></a><h3>
596
+ <a name="cairo-new-sub-path"></a>cairo_new_sub_path ()</h3>
597
+ <a class="indexterm" name="id2579082"></a><pre class="programlisting">void cairo_new_sub_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);</pre>
598
+ <p>
599
+ Begin a new sub-path. Note that the existing path is not
600
+ affected. After this call there will be no current point.
601
+ </p>
602
+ <p>
603
+ In many cases, this call is not needed since new sub-paths are
604
+ frequently started with <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a>.
605
+ </p>
606
+ <p>
607
+ A call to <a class="link" href="cairo-Paths.html#cairo-new-sub-path"><code class="function">cairo_new_sub_path()</code></a> is particularly useful when
608
+ beginning a new sub-path with one of the <a class="link" href="cairo-Paths.html#cairo-arc"><code class="function">cairo_arc()</code></a> calls. This
609
+ makes things easier as it is no longer necessary to manually
610
+ compute the arc's initial coordinates for a call to
611
+ <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a>.</p>
612
+ <p>
613
+
614
+ </p>
615
+ <div class="variablelist"><table border="0">
616
+ <col align="left" valign="top">
617
+ <tbody><tr>
618
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
619
+ <td> a cairo context
620
+ </td>
621
+ </tr></tbody>
622
+ </table></div>
623
+ <p class="since">Since 1.2
624
+ </p>
625
+ </div>
626
+ <hr>
627
+ <div class="refsect2" lang="en">
628
+ <a name="id2579189"></a><h3>
629
+ <a name="cairo-close-path"></a>cairo_close_path ()</h3>
630
+ <a class="indexterm" name="id2579201"></a><pre class="programlisting">void cairo_close_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr);</pre>
631
+ <p>
632
+ Adds a line segment to the path from the current point to the
633
+ beginning of the current sub-path, (the most recent point passed to
634
+ <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a>), and closes this sub-path. After this call the
635
+ current point will be at the joined endpoint of the sub-path.
636
+ </p>
637
+ <p>
638
+ The behavior of <a class="link" href="cairo-Paths.html#cairo-close-path"><code class="function">cairo_close_path()</code></a> is distinct from simply calling
639
+ <a class="link" href="cairo-Paths.html#cairo-line-to"><code class="function">cairo_line_to()</code></a> with the equivalent coordinate in the case of
640
+ stroking. When a closed sub-path is stroked, there are no caps on
641
+ the ends of the sub-path. Instead, there is a line join connecting
642
+ the final and initial segments of the sub-path.
643
+ </p>
644
+ <p>
645
+ If there is no current point before the call to <a class="link" href="cairo-Paths.html#cairo-close-path"><code class="function">cairo_close_path()</code></a>,
646
+ this function will have no effect.
647
+ </p>
648
+ <p>
649
+ Note: As of cairo version 1.2.4 any call to <a class="link" href="cairo-Paths.html#cairo-close-path"><code class="function">cairo_close_path()</code></a> will
650
+ place an explicit MOVE_TO element into the path immediately after
651
+ the CLOSE_PATH element, (which can be seen in <a class="link" href="cairo-Paths.html#cairo-copy-path"><code class="function">cairo_copy_path()</code></a> for
652
+ example). This can simplify path processing in some cases as it may
653
+ not be necessary to save the "last move_to point" during processing
654
+ as the MOVE_TO immediately after the CLOSE_PATH will provide that
655
+ point.</p>
656
+ <p>
657
+
658
+ </p>
659
+ <div class="variablelist"><table border="0">
660
+ <col align="left" valign="top">
661
+ <tbody><tr>
662
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
663
+ <td> a cairo context
664
+ </td>
665
+ </tr></tbody>
666
+ </table></div>
667
+ </div>
668
+ <hr>
669
+ <div class="refsect2" lang="en">
670
+ <a name="id2579335"></a><h3>
671
+ <a name="cairo-arc"></a>cairo_arc ()</h3>
672
+ <a class="indexterm" name="id2579347"></a><pre class="programlisting">void cairo_arc (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
673
+ double xc,
674
+ double yc,
675
+ double radius,
676
+ double angle1,
677
+ double angle2);</pre>
678
+ <p>
679
+ Adds a circular arc of the given <em class="parameter"><code>radius</code></em> to the current path. The
680
+ arc is centered at (<em class="parameter"><code>xc</code></em>, <em class="parameter"><code>yc</code></em>), begins at <em class="parameter"><code>angle1</code></em> and proceeds in
681
+ the direction of increasing angles to end at <em class="parameter"><code>angle2</code></em>. If <em class="parameter"><code>angle2</code></em> is
682
+ less than <em class="parameter"><code>angle1</code></em> it will be progressively increased by 2*M_PI
683
+ until it is greater than <em class="parameter"><code>angle1</code></em>.
684
+ </p>
685
+ <p>
686
+ If there is a current point, an initial line segment will be added
687
+ to the path to connect the current point to the beginning of the
688
+ arc. If this initial line is undesired, it can be avoided by
689
+ calling <a class="link" href="cairo-Paths.html#cairo-new-sub-path"><code class="function">cairo_new_sub_path()</code></a> before calling <a class="link" href="cairo-Paths.html#cairo-arc"><code class="function">cairo_arc()</code></a>.
690
+ </p>
691
+ <p>
692
+ Angles are measured in radians. An angle of 0.0 is in the direction
693
+ of the positive X axis (in user space). An angle of <code class="literal">M_PI</code>/2.0 radians
694
+ (90 degrees) is in the direction of the positive Y axis (in
695
+ user space). Angles increase in the direction from the positive X
696
+ axis toward the positive Y axis. So with the default transformation
697
+ matrix, angles increase in a clockwise direction.
698
+ </p>
699
+ <p>
700
+ (To convert from degrees to radians, use <code class="literal">degrees * (M_PI /
701
+ 180.)</code>.)
702
+ </p>
703
+ <p>
704
+ This function gives the arc in the direction of increasing angles;
705
+ see <a class="link" href="cairo-Paths.html#cairo-arc-negative"><code class="function">cairo_arc_negative()</code></a> to get the arc in the direction of
706
+ decreasing angles.
707
+ </p>
708
+ <p>
709
+ The arc is circular in user space. To achieve an elliptical arc,
710
+ you can scale the current transformation matrix by different
711
+ amounts in the X and Y directions. For example, to draw an ellipse
712
+ in the box given by <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>, <em class="parameter"><code>width</code></em>, <em class="parameter"><code>height</code></em>:
713
+ </p>
714
+ <p>
715
+ </p>
716
+ <div class="informalexample"><pre class="programlisting">
717
+ cairo_save (cr);
718
+ cairo_translate (cr, x + width / 2., y + height / 2.);
719
+ cairo_scale (cr, width / 2., height / 2.);
720
+ cairo_arc (cr, 0., 0., 1., 0., 2 * M_PI);
721
+ cairo_restore (cr);
722
+ </pre></div>
723
+ <p>
724
+
725
+ </p>
726
+ <div class="variablelist"><table border="0">
727
+ <col align="left" valign="top">
728
+ <tbody>
729
+ <tr>
730
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
731
+ <td> a cairo context
732
+ </td>
733
+ </tr>
734
+ <tr>
735
+ <td><p><span class="term"><em class="parameter"><code>xc</code></em>&#160;:</span></p></td>
736
+ <td> X position of the center of the arc
737
+ </td>
738
+ </tr>
739
+ <tr>
740
+ <td><p><span class="term"><em class="parameter"><code>yc</code></em>&#160;:</span></p></td>
741
+ <td> Y position of the center of the arc
742
+ </td>
743
+ </tr>
744
+ <tr>
745
+ <td><p><span class="term"><em class="parameter"><code>radius</code></em>&#160;:</span></p></td>
746
+ <td> the radius of the arc
747
+ </td>
748
+ </tr>
749
+ <tr>
750
+ <td><p><span class="term"><em class="parameter"><code>angle1</code></em>&#160;:</span></p></td>
751
+ <td> the start angle, in radians
752
+ </td>
753
+ </tr>
754
+ <tr>
755
+ <td><p><span class="term"><em class="parameter"><code>angle2</code></em>&#160;:</span></p></td>
756
+ <td> the end angle, in radians
757
+ </td>
758
+ </tr>
759
+ </tbody>
760
+ </table></div>
761
+ </div>
762
+ <hr>
763
+ <div class="refsect2" lang="en">
764
+ <a name="id2579667"></a><h3>
765
+ <a name="cairo-arc-negative"></a>cairo_arc_negative ()</h3>
766
+ <a class="indexterm" name="id2579679"></a><pre class="programlisting">void cairo_arc_negative (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
767
+ double xc,
768
+ double yc,
769
+ double radius,
770
+ double angle1,
771
+ double angle2);</pre>
772
+ <p>
773
+ Adds a circular arc of the given <em class="parameter"><code>radius</code></em> to the current path. The
774
+ arc is centered at (<em class="parameter"><code>xc</code></em>, <em class="parameter"><code>yc</code></em>), begins at <em class="parameter"><code>angle1</code></em> and proceeds in
775
+ the direction of decreasing angles to end at <em class="parameter"><code>angle2</code></em>. If <em class="parameter"><code>angle2</code></em> is
776
+ greater than <em class="parameter"><code>angle1</code></em> it will be progressively decreased by 2*M_PI
777
+ until it is less than <em class="parameter"><code>angle1</code></em>.
778
+ </p>
779
+ <p>
780
+ See <a class="link" href="cairo-Paths.html#cairo-arc"><code class="function">cairo_arc()</code></a> for more details. This function differs only in the
781
+ direction of the arc between the two angles.</p>
782
+ <p>
783
+
784
+ </p>
785
+ <div class="variablelist"><table border="0">
786
+ <col align="left" valign="top">
787
+ <tbody>
788
+ <tr>
789
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
790
+ <td> a cairo context
791
+ </td>
792
+ </tr>
793
+ <tr>
794
+ <td><p><span class="term"><em class="parameter"><code>xc</code></em>&#160;:</span></p></td>
795
+ <td> X position of the center of the arc
796
+ </td>
797
+ </tr>
798
+ <tr>
799
+ <td><p><span class="term"><em class="parameter"><code>yc</code></em>&#160;:</span></p></td>
800
+ <td> Y position of the center of the arc
801
+ </td>
802
+ </tr>
803
+ <tr>
804
+ <td><p><span class="term"><em class="parameter"><code>radius</code></em>&#160;:</span></p></td>
805
+ <td> the radius of the arc
806
+ </td>
807
+ </tr>
808
+ <tr>
809
+ <td><p><span class="term"><em class="parameter"><code>angle1</code></em>&#160;:</span></p></td>
810
+ <td> the start angle, in radians
811
+ </td>
812
+ </tr>
813
+ <tr>
814
+ <td><p><span class="term"><em class="parameter"><code>angle2</code></em>&#160;:</span></p></td>
815
+ <td> the end angle, in radians
816
+ </td>
817
+ </tr>
818
+ </tbody>
819
+ </table></div>
820
+ </div>
821
+ <hr>
822
+ <div class="refsect2" lang="en">
823
+ <a name="id2579900"></a><h3>
824
+ <a name="cairo-curve-to"></a>cairo_curve_to ()</h3>
825
+ <a class="indexterm" name="id2579912"></a><pre class="programlisting">void cairo_curve_to (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
826
+ double x1,
827
+ double y1,
828
+ double x2,
829
+ double y2,
830
+ double x3,
831
+ double y3);</pre>
832
+ <p>
833
+ Adds a cubic B&#233;zier spline to the path from the current point to
834
+ position (<em class="parameter"><code>x3</code></em>, <em class="parameter"><code>y3</code></em>) in user-space coordinates, using (<em class="parameter"><code>x1</code></em>, <em class="parameter"><code>y1</code></em>) and
835
+ (<em class="parameter"><code>x2</code></em>, <em class="parameter"><code>y2</code></em>) as the control points. After this call the current point
836
+ will be (<em class="parameter"><code>x3</code></em>, <em class="parameter"><code>y3</code></em>).
837
+ </p>
838
+ <p>
839
+ If there is no current point before the call to <a class="link" href="cairo-Paths.html#cairo-curve-to"><code class="function">cairo_curve_to()</code></a>
840
+ this function will behave as if preceded by a call to
841
+ cairo_move_to (<em class="parameter"><code>cr</code></em>, <em class="parameter"><code>x1</code></em>, <em class="parameter"><code>y1</code></em>).</p>
842
+ <p>
843
+
844
+ </p>
845
+ <div class="variablelist"><table border="0">
846
+ <col align="left" valign="top">
847
+ <tbody>
848
+ <tr>
849
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
850
+ <td> a cairo context
851
+ </td>
852
+ </tr>
853
+ <tr>
854
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em>&#160;:</span></p></td>
855
+ <td> the X coordinate of the first control point
856
+ </td>
857
+ </tr>
858
+ <tr>
859
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em>&#160;:</span></p></td>
860
+ <td> the Y coordinate of the first control point
861
+ </td>
862
+ </tr>
863
+ <tr>
864
+ <td><p><span class="term"><em class="parameter"><code>x2</code></em>&#160;:</span></p></td>
865
+ <td> the X coordinate of the second control point
866
+ </td>
867
+ </tr>
868
+ <tr>
869
+ <td><p><span class="term"><em class="parameter"><code>y2</code></em>&#160;:</span></p></td>
870
+ <td> the Y coordinate of the second control point
871
+ </td>
872
+ </tr>
873
+ <tr>
874
+ <td><p><span class="term"><em class="parameter"><code>x3</code></em>&#160;:</span></p></td>
875
+ <td> the X coordinate of the end of the curve
876
+ </td>
877
+ </tr>
878
+ <tr>
879
+ <td><p><span class="term"><em class="parameter"><code>y3</code></em>&#160;:</span></p></td>
880
+ <td> the Y coordinate of the end of the curve
881
+ </td>
882
+ </tr>
883
+ </tbody>
884
+ </table></div>
885
+ </div>
886
+ <hr>
887
+ <div class="refsect2" lang="en">
888
+ <a name="id2580177"></a><h3>
889
+ <a name="cairo-line-to"></a>cairo_line_to ()</h3>
890
+ <a class="indexterm" name="id2580189"></a><pre class="programlisting">void cairo_line_to (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
891
+ double x,
892
+ double y);</pre>
893
+ <p>
894
+ Adds a line to the path from the current point to position (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>)
895
+ in user-space coordinates. After this call the current point
896
+ will be (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>).
897
+ </p>
898
+ <p>
899
+ If there is no current point before the call to <a class="link" href="cairo-Paths.html#cairo-line-to"><code class="function">cairo_line_to()</code></a>
900
+ this function will behave as cairo_move_to (<em class="parameter"><code>cr</code></em>, <em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>).</p>
901
+ <p>
902
+
903
+ </p>
904
+ <div class="variablelist"><table border="0">
905
+ <col align="left" valign="top">
906
+ <tbody>
907
+ <tr>
908
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
909
+ <td> a cairo context
910
+ </td>
911
+ </tr>
912
+ <tr>
913
+ <td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
914
+ <td> the X coordinate of the end of the new line
915
+ </td>
916
+ </tr>
917
+ <tr>
918
+ <td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
919
+ <td> the Y coordinate of the end of the new line
920
+ </td>
921
+ </tr>
922
+ </tbody>
923
+ </table></div>
924
+ </div>
925
+ <hr>
926
+ <div class="refsect2" lang="en">
927
+ <a name="id2580342"></a><h3>
928
+ <a name="cairo-move-to"></a>cairo_move_to ()</h3>
929
+ <a class="indexterm" name="id2580354"></a><pre class="programlisting">void cairo_move_to (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
930
+ double x,
931
+ double y);</pre>
932
+ <p>
933
+ Begin a new sub-path. After this call the current point will be (<em class="parameter"><code>x</code></em>,
934
+ <em class="parameter"><code>y</code></em>).</p>
935
+ <p>
936
+
937
+ </p>
938
+ <div class="variablelist"><table border="0">
939
+ <col align="left" valign="top">
940
+ <tbody>
941
+ <tr>
942
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
943
+ <td> a cairo context
944
+ </td>
945
+ </tr>
946
+ <tr>
947
+ <td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
948
+ <td> the X coordinate of the new position
949
+ </td>
950
+ </tr>
951
+ <tr>
952
+ <td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
953
+ <td> the Y coordinate of the new position
954
+ </td>
955
+ </tr>
956
+ </tbody>
957
+ </table></div>
958
+ </div>
959
+ <hr>
960
+ <div class="refsect2" lang="en">
961
+ <a name="id2580460"></a><h3>
962
+ <a name="cairo-rectangle"></a>cairo_rectangle ()</h3>
963
+ <a class="indexterm" name="id2580473"></a><pre class="programlisting">void cairo_rectangle (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
964
+ double x,
965
+ double y,
966
+ double width,
967
+ double height);</pre>
968
+ <p>
969
+ Adds a closed sub-path rectangle of the given size to the current
970
+ path at position (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) in user-space coordinates.
971
+ </p>
972
+ <p>
973
+ This function is logically equivalent to:
974
+ </p>
975
+ <div class="informalexample"><pre class="programlisting">
976
+ cairo_move_to (cr, x, y);
977
+ cairo_rel_line_to (cr, width, 0);
978
+ cairo_rel_line_to (cr, 0, height);
979
+ cairo_rel_line_to (cr, -width, 0);
980
+ cairo_close_path (cr);
981
+ </pre></div>
982
+ <p>
983
+
984
+ </p>
985
+ <div class="variablelist"><table border="0">
986
+ <col align="left" valign="top">
987
+ <tbody>
988
+ <tr>
989
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
990
+ <td> a cairo context
991
+ </td>
992
+ </tr>
993
+ <tr>
994
+ <td><p><span class="term"><em class="parameter"><code>x</code></em>&#160;:</span></p></td>
995
+ <td> the X coordinate of the top left corner of the rectangle
996
+ </td>
997
+ </tr>
998
+ <tr>
999
+ <td><p><span class="term"><em class="parameter"><code>y</code></em>&#160;:</span></p></td>
1000
+ <td> the Y coordinate to the top left corner of the rectangle
1001
+ </td>
1002
+ </tr>
1003
+ <tr>
1004
+ <td><p><span class="term"><em class="parameter"><code>width</code></em>&#160;:</span></p></td>
1005
+ <td> the width of the rectangle
1006
+ </td>
1007
+ </tr>
1008
+ <tr>
1009
+ <td><p><span class="term"><em class="parameter"><code>height</code></em>&#160;:</span></p></td>
1010
+ <td> the height of the rectangle
1011
+ </td>
1012
+ </tr>
1013
+ </tbody>
1014
+ </table></div>
1015
+ </div>
1016
+ <hr>
1017
+ <div class="refsect2" lang="en">
1018
+ <a name="id2580635"></a><h3>
1019
+ <a name="cairo-glyph-path"></a>cairo_glyph_path ()</h3>
1020
+ <a class="indexterm" name="id2580647"></a><pre class="programlisting">void cairo_glyph_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
1021
+ const <a class="link" href="cairo-Text.html#cairo-glyph-t">cairo_glyph_t</a> *glyphs,
1022
+ int num_glyphs);</pre>
1023
+ <p>
1024
+ Adds closed paths for the glyphs to the current path. The generated
1025
+ path if filled, achieves an effect similar to that of
1026
+ <a class="link" href="cairo-Text.html#cairo-show-glyphs"><code class="function">cairo_show_glyphs()</code></a>.</p>
1027
+ <p>
1028
+
1029
+ </p>
1030
+ <div class="variablelist"><table border="0">
1031
+ <col align="left" valign="top">
1032
+ <tbody>
1033
+ <tr>
1034
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
1035
+ <td> a cairo context
1036
+ </td>
1037
+ </tr>
1038
+ <tr>
1039
+ <td><p><span class="term"><em class="parameter"><code>glyphs</code></em>&#160;:</span></p></td>
1040
+ <td> array of glyphs to show
1041
+ </td>
1042
+ </tr>
1043
+ <tr>
1044
+ <td><p><span class="term"><em class="parameter"><code>num_glyphs</code></em>&#160;:</span></p></td>
1045
+ <td> number of glyphs to show
1046
+ </td>
1047
+ </tr>
1048
+ </tbody>
1049
+ </table></div>
1050
+ </div>
1051
+ <hr>
1052
+ <div class="refsect2" lang="en">
1053
+ <a name="id2580751"></a><h3>
1054
+ <a name="cairo-text-path"></a>cairo_text_path ()</h3>
1055
+ <a class="indexterm" name="id2580764"></a><pre class="programlisting">void cairo_text_path (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
1056
+ const char *utf8);</pre>
1057
+ <p>
1058
+ Adds closed paths for text to the current path. The generated
1059
+ path if filled, achieves an effect similar to that of
1060
+ <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>.
1061
+ </p>
1062
+ <p>
1063
+ Text conversion and positioning is done similar to <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>.
1064
+ </p>
1065
+ <p>
1066
+ Like <a class="link" href="cairo-Text.html#cairo-show-text"><code class="function">cairo_show_text()</code></a>, After this call the current point is
1067
+ moved to the origin of where the next glyph would be placed in
1068
+ this same progression. That is, the current point will be at
1069
+ the origin of the final glyph offset by its advance values.
1070
+ This allows for chaining multiple calls to to <a class="link" href="cairo-Paths.html#cairo-text-path"><code class="function">cairo_text_path()</code></a>
1071
+ without having to set current point in between.
1072
+ </p>
1073
+ <p>
1074
+ Note: The <a class="link" href="cairo-Paths.html#cairo-text-path"><code class="function">cairo_text_path()</code></a> function call is part of what the cairo
1075
+ designers call the "toy" text API. It is convenient for short demos
1076
+ and simple programs, but it is not expected to be adequate for
1077
+ serious text-using applications. See <a class="link" href="cairo-Paths.html#cairo-glyph-path"><code class="function">cairo_glyph_path()</code></a> for the
1078
+ "real" text path API in cairo.</p>
1079
+ <p>
1080
+
1081
+ </p>
1082
+ <div class="variablelist"><table border="0">
1083
+ <col align="left" valign="top">
1084
+ <tbody>
1085
+ <tr>
1086
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
1087
+ <td> a cairo context
1088
+ </td>
1089
+ </tr>
1090
+ <tr>
1091
+ <td><p><span class="term"><em class="parameter"><code>utf8</code></em>&#160;:</span></p></td>
1092
+ <td> a string of text encoded in UTF-8
1093
+ </td>
1094
+ </tr>
1095
+ </tbody>
1096
+ </table></div>
1097
+ </div>
1098
+ <hr>
1099
+ <div class="refsect2" lang="en">
1100
+ <a name="id2580916"></a><h3>
1101
+ <a name="cairo-rel-curve-to"></a>cairo_rel_curve_to ()</h3>
1102
+ <a class="indexterm" name="id2580928"></a><pre class="programlisting">void cairo_rel_curve_to (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
1103
+ double dx1,
1104
+ double dy1,
1105
+ double dx2,
1106
+ double dy2,
1107
+ double dx3,
1108
+ double dy3);</pre>
1109
+ <p>
1110
+ Relative-coordinate version of <a class="link" href="cairo-Paths.html#cairo-curve-to"><code class="function">cairo_curve_to()</code></a>. All offsets are
1111
+ relative to the current point. Adds a cubic B&#233;zier spline to the
1112
+ path from the current point to a point offset from the current
1113
+ point by (<em class="parameter"><code>dx3</code></em>, <em class="parameter"><code>dy3</code></em>), using points offset by (<em class="parameter"><code>dx1</code></em>, <em class="parameter"><code>dy1</code></em>) and
1114
+ (<em class="parameter"><code>dx2</code></em>, <em class="parameter"><code>dy2</code></em>) as the control points. After this call the current
1115
+ point will be offset by (<em class="parameter"><code>dx3</code></em>, <em class="parameter"><code>dy3</code></em>).
1116
+ </p>
1117
+ <p>
1118
+ Given a current point of (x, y), cairo_rel_curve_to (<em class="parameter"><code>cr</code></em>, <em class="parameter"><code>dx1</code></em>,
1119
+ <em class="parameter"><code>dy1</code></em>, <em class="parameter"><code>dx2</code></em>, <em class="parameter"><code>dy2</code></em>, <em class="parameter"><code>dx3</code></em>, <em class="parameter"><code>dy3</code></em>) is logically equivalent to
1120
+ cairo_curve_to (<em class="parameter"><code>cr</code></em>, x + <em class="parameter"><code>dx1</code></em>, y + <em class="parameter"><code>dy1</code></em>, x + <em class="parameter"><code>dx2</code></em>, y + <em class="parameter"><code>dy2</code></em>, x +
1121
+ <em class="parameter"><code>dx3</code></em>, y + <em class="parameter"><code>dy3</code></em>).
1122
+ </p>
1123
+ <p>
1124
+ It is an error to call this function with no current point. Doing
1125
+ so will cause <em class="parameter"><code>cr</code></em> to shutdown with a status of
1126
+ CAIRO_STATUS_NO_CURRENT_POINT.</p>
1127
+ <p>
1128
+
1129
+ </p>
1130
+ <div class="variablelist"><table border="0">
1131
+ <col align="left" valign="top">
1132
+ <tbody>
1133
+ <tr>
1134
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
1135
+ <td> a cairo context
1136
+ </td>
1137
+ </tr>
1138
+ <tr>
1139
+ <td><p><span class="term"><em class="parameter"><code>dx1</code></em>&#160;:</span></p></td>
1140
+ <td> the X offset to the first control point
1141
+ </td>
1142
+ </tr>
1143
+ <tr>
1144
+ <td><p><span class="term"><em class="parameter"><code>dy1</code></em>&#160;:</span></p></td>
1145
+ <td> the Y offset to the first control point
1146
+ </td>
1147
+ </tr>
1148
+ <tr>
1149
+ <td><p><span class="term"><em class="parameter"><code>dx2</code></em>&#160;:</span></p></td>
1150
+ <td> the X offset to the second control point
1151
+ </td>
1152
+ </tr>
1153
+ <tr>
1154
+ <td><p><span class="term"><em class="parameter"><code>dy2</code></em>&#160;:</span></p></td>
1155
+ <td> the Y offset to the second control point
1156
+ </td>
1157
+ </tr>
1158
+ <tr>
1159
+ <td><p><span class="term"><em class="parameter"><code>dx3</code></em>&#160;:</span></p></td>
1160
+ <td> the X offset to the end of the curve
1161
+ </td>
1162
+ </tr>
1163
+ <tr>
1164
+ <td><p><span class="term"><em class="parameter"><code>dy3</code></em>&#160;:</span></p></td>
1165
+ <td> the Y offset to the end of the curve
1166
+ </td>
1167
+ </tr>
1168
+ </tbody>
1169
+ </table></div>
1170
+ </div>
1171
+ <hr>
1172
+ <div class="refsect2" lang="en">
1173
+ <a name="id2581271"></a><h3>
1174
+ <a name="cairo-rel-line-to"></a>cairo_rel_line_to ()</h3>
1175
+ <a class="indexterm" name="id2581283"></a><pre class="programlisting">void cairo_rel_line_to (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
1176
+ double dx,
1177
+ double dy);</pre>
1178
+ <p>
1179
+ Relative-coordinate version of <a class="link" href="cairo-Paths.html#cairo-line-to"><code class="function">cairo_line_to()</code></a>. Adds a line to the
1180
+ path from the current point to a point that is offset from the
1181
+ current point by (<em class="parameter"><code>dx</code></em>, <em class="parameter"><code>dy</code></em>) in user space. After this call the
1182
+ current point will be offset by (<em class="parameter"><code>dx</code></em>, <em class="parameter"><code>dy</code></em>).
1183
+ </p>
1184
+ <p>
1185
+ Given a current point of (x, y), cairo_rel_line_to(<em class="parameter"><code>cr</code></em>, <em class="parameter"><code>dx</code></em>, <em class="parameter"><code>dy</code></em>)
1186
+ is logically equivalent to cairo_line_to (<em class="parameter"><code>cr</code></em>, x + <em class="parameter"><code>dx</code></em>, y + <em class="parameter"><code>dy</code></em>).
1187
+ </p>
1188
+ <p>
1189
+ It is an error to call this function with no current point. Doing
1190
+ so will cause <em class="parameter"><code>cr</code></em> to shutdown with a status of
1191
+ CAIRO_STATUS_NO_CURRENT_POINT.</p>
1192
+ <p>
1193
+
1194
+ </p>
1195
+ <div class="variablelist"><table border="0">
1196
+ <col align="left" valign="top">
1197
+ <tbody>
1198
+ <tr>
1199
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
1200
+ <td> a cairo context
1201
+ </td>
1202
+ </tr>
1203
+ <tr>
1204
+ <td><p><span class="term"><em class="parameter"><code>dx</code></em>&#160;:</span></p></td>
1205
+ <td> the X offset to the end of the new line
1206
+ </td>
1207
+ </tr>
1208
+ <tr>
1209
+ <td><p><span class="term"><em class="parameter"><code>dy</code></em>&#160;:</span></p></td>
1210
+ <td> the Y offset to the end of the new line
1211
+ </td>
1212
+ </tr>
1213
+ </tbody>
1214
+ </table></div>
1215
+ </div>
1216
+ <hr>
1217
+ <div class="refsect2" lang="en">
1218
+ <a name="id2581466"></a><h3>
1219
+ <a name="cairo-rel-move-to"></a>cairo_rel_move_to ()</h3>
1220
+ <a class="indexterm" name="id2581478"></a><pre class="programlisting">void cairo_rel_move_to (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
1221
+ double dx,
1222
+ double dy);</pre>
1223
+ <p>
1224
+ Begin a new sub-path. After this call the current point will offset
1225
+ by (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>).
1226
+ </p>
1227
+ <p>
1228
+ Given a current point of (x, y), cairo_rel_move_to(<em class="parameter"><code>cr</code></em>, <em class="parameter"><code>dx</code></em>, <em class="parameter"><code>dy</code></em>)
1229
+ is logically equivalent to cairo_move_to (<em class="parameter"><code>cr</code></em>, x + <em class="parameter"><code>dx</code></em>, y + <em class="parameter"><code>dy</code></em>).
1230
+ </p>
1231
+ <p>
1232
+ It is an error to call this function with no current point. Doing
1233
+ so will cause <em class="parameter"><code>cr</code></em> to shutdown with a status of
1234
+ CAIRO_STATUS_NO_CURRENT_POINT.</p>
1235
+ <p>
1236
+
1237
+ </p>
1238
+ <div class="variablelist"><table border="0">
1239
+ <col align="left" valign="top">
1240
+ <tbody>
1241
+ <tr>
1242
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
1243
+ <td> a cairo context
1244
+ </td>
1245
+ </tr>
1246
+ <tr>
1247
+ <td><p><span class="term"><em class="parameter"><code>dx</code></em>&#160;:</span></p></td>
1248
+ <td> the X offset
1249
+ </td>
1250
+ </tr>
1251
+ <tr>
1252
+ <td><p><span class="term"><em class="parameter"><code>dy</code></em>&#160;:</span></p></td>
1253
+ <td> the Y offset
1254
+ </td>
1255
+ </tr>
1256
+ </tbody>
1257
+ </table></div>
1258
+ </div>
1259
+ <hr>
1260
+ <div class="refsect2" lang="en">
1261
+ <a name="id2581637"></a><h3>
1262
+ <a name="cairo-path-extents"></a>cairo_path_extents ()</h3>
1263
+ <a class="indexterm" name="id2581651"></a><pre class="programlisting">void cairo_path_extents (<a class="link" href="cairo-cairo-t.html#cairo-t">cairo_t</a> *cr,
1264
+ double *x1,
1265
+ double *y1,
1266
+ double *x2,
1267
+ double *y2);</pre>
1268
+ <p>
1269
+ Computes a bounding box in user-space coordinates covering the
1270
+ points on the current path. If the current path is empty, returns
1271
+ an empty rectangle ((0,0), (0,0)). Stroke parameters, fill rule,
1272
+ surface dimensions and clipping are not taken into account.
1273
+ </p>
1274
+ <p>
1275
+ Contrast with <a class="link" href="cairo-cairo-t.html#cairo-fill-extents"><code class="function">cairo_fill_extents()</code></a> and <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents"><code class="function">cairo_stroke_extents()</code></a> which
1276
+ return the extents of only the area that would be "inked" by
1277
+ the corresponding drawing operations.
1278
+ </p>
1279
+ <p>
1280
+ The result of <a class="link" href="cairo-Paths.html#cairo-path-extents"><code class="function">cairo_path_extents()</code></a> is defined as equivalent to the
1281
+ limit of <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents"><code class="function">cairo_stroke_extents()</code></a> with <a class="link" href="cairo-cairo-t.html#CAIRO-LINE-CAP-ROUND:CAPS"><code class="literal">CAIRO_LINE_CAP_ROUND</code></a> as the
1282
+ line width approaches 0.0, (but never reaching the empty-rectangle
1283
+ returned by <a class="link" href="cairo-cairo-t.html#cairo-stroke-extents"><code class="function">cairo_stroke_extents()</code></a> for a line width of 0.0).
1284
+ </p>
1285
+ <p>
1286
+ Specifically, this means that zero-area sub-paths such as
1287
+ <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a>;<a class="link" href="cairo-Paths.html#cairo-line-to"><code class="function">cairo_line_to()</code></a> segments, (even degenerate cases
1288
+ where the coordinates to both calls are identical), will be
1289
+ considered as contributing to the extents. However, a lone
1290
+ <a class="link" href="cairo-Paths.html#cairo-move-to"><code class="function">cairo_move_to()</code></a> will not contribute to the results of
1291
+ <a class="link" href="cairo-Paths.html#cairo-path-extents"><code class="function">cairo_path_extents()</code></a>.</p>
1292
+ <p>
1293
+
1294
+ </p>
1295
+ <div class="variablelist"><table border="0">
1296
+ <col align="left" valign="top">
1297
+ <tbody>
1298
+ <tr>
1299
+ <td><p><span class="term"><em class="parameter"><code>cr</code></em>&#160;:</span></p></td>
1300
+ <td> a cairo context
1301
+ </td>
1302
+ </tr>
1303
+ <tr>
1304
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em>&#160;:</span></p></td>
1305
+ <td> left of the resulting extents
1306
+ </td>
1307
+ </tr>
1308
+ <tr>
1309
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em>&#160;:</span></p></td>
1310
+ <td> top of the resulting extents
1311
+ </td>
1312
+ </tr>
1313
+ <tr>
1314
+ <td><p><span class="term"><em class="parameter"><code>x2</code></em>&#160;:</span></p></td>
1315
+ <td> right of the resulting extents
1316
+ </td>
1317
+ </tr>
1318
+ <tr>
1319
+ <td><p><span class="term"><em class="parameter"><code>y2</code></em>&#160;:</span></p></td>
1320
+ <td> bottom of the resulting extents
1321
+ </td>
1322
+ </tr>
1323
+ </tbody>
1324
+ </table></div>
1325
+ <p class="since">Since 1.6
1326
+ </p>
1327
+ </div>
1328
+ </div>
1329
+ <div class="refsect1" lang="en">
1330
+ <a name="id2581908"></a><div class="refsect2" lang="en"><a name="id2581909"></a></div>
1331
+ <hr>
1332
+ <div class="refsect2" lang="en"><a name="id2581910"></a></div>
1333
+ </div>
1334
+ </div>
1335
+ </body>
1336
+ </html>