cairo 1.8.5-x86-mingw32 → 1.10.0-x86-mingw32

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

Potentially problematic release.


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

Files changed (450) hide show
  1. data/NEWS +2 -2
  2. data/Rakefile +44 -7
  3. data/ext/cairo/cairo.def +28 -1
  4. data/ext/cairo/extconf.rb +14 -16
  5. data/ext/cairo/rb_cairo.c +4 -1
  6. data/ext/cairo/rb_cairo.h +65 -1
  7. data/ext/cairo/rb_cairo_constants.c +150 -3
  8. data/ext/cairo/rb_cairo_context.c +17 -0
  9. data/ext/cairo/rb_cairo_device.c +406 -0
  10. data/ext/cairo/rb_cairo_exception.c +83 -32
  11. data/ext/cairo/rb_cairo_io.c +166 -0
  12. data/ext/cairo/rb_cairo_io.h +44 -0
  13. data/ext/cairo/rb_cairo_matrix.c +1 -1
  14. data/ext/cairo/rb_cairo_private.h +3 -0
  15. data/ext/cairo/rb_cairo_region.c +385 -0
  16. data/ext/cairo/rb_cairo_surface.c +674 -199
  17. data/lib/1.8/cairo.so +0 -0
  18. data/lib/1.9/cairo.so +0 -0
  19. data/samples/blur.rb +2 -3
  20. data/samples/{pac2.rb → pac-nomralize.rb} +5 -6
  21. data/samples/pac-tee.rb +170 -0
  22. data/samples/pac.rb +2 -3
  23. data/samples/png.rb +2 -3
  24. data/samples/scalable.rb +2 -3
  25. data/samples/text-on-path.rb +2 -3
  26. data/samples/text2.rb +2 -3
  27. data/test/cairo-test-utils.rb +15 -0
  28. data/test/run-test.rb +5 -4
  29. data/test/test_context.rb +4 -4
  30. data/test/test_font_face.rb +34 -21
  31. data/test/test_recording_surface.rb +18 -0
  32. data/test/test_region.rb +102 -0
  33. data/test/test_script_device.rb +46 -0
  34. data/test/test_script_surface.rb +13 -0
  35. data/test/test_surface.rb +14 -4
  36. data/test/test_tee_surface.rb +32 -0
  37. data/test/test_xml_device.rb +22 -0
  38. data/test/test_xml_surface.rb +32 -0
  39. data/tmp/i386-mingw32/cairo/1.9.2/rbconfig.rb +1 -1
  40. data/vendor/local/bin/libcairo-2.dll +0 -0
  41. data/vendor/local/include/cairo/cairo-deprecated.h +1 -16
  42. data/vendor/local/include/cairo/cairo-features.h +7 -0
  43. data/vendor/local/include/cairo/cairo-ft.h +16 -9
  44. data/vendor/local/include/cairo/cairo-gobject.h +186 -0
  45. data/vendor/local/include/cairo/cairo-pdf.h +27 -1
  46. data/vendor/local/include/cairo/cairo-ps.h +1 -1
  47. data/vendor/local/include/cairo/cairo-script-interpreter.h +117 -0
  48. data/vendor/local/include/cairo/cairo-svg.h +1 -1
  49. data/vendor/local/include/cairo/cairo-version.h +2 -2
  50. data/vendor/local/include/cairo/cairo-win32.h +1 -1
  51. data/vendor/local/include/cairo/cairo.h +382 -26
  52. data/vendor/local/lib/cairo.def +44 -0
  53. data/vendor/local/lib/cairo.lib +0 -0
  54. data/vendor/local/lib/libcairo.dll.a +0 -0
  55. data/vendor/local/lib/pkgconfig/cairo-fc.pc +12 -0
  56. data/vendor/local/lib/pkgconfig/cairo-ft.pc +4 -4
  57. data/vendor/local/lib/pkgconfig/cairo-gobject.pc +12 -0
  58. data/vendor/local/lib/pkgconfig/cairo-pdf.pc +3 -3
  59. data/vendor/local/lib/pkgconfig/cairo-png.pc +3 -3
  60. data/vendor/local/lib/pkgconfig/cairo-ps.pc +3 -3
  61. data/vendor/local/lib/pkgconfig/cairo-svg.pc +3 -3
  62. data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +3 -3
  63. data/vendor/local/lib/pkgconfig/cairo-win32.pc +3 -3
  64. data/vendor/local/lib/pkgconfig/cairo.pc +4 -4
  65. data/vendor/local/manifest/{cairo-dev_1.8.10-4_win32.mft → cairo-dev_1.10.0-1_win32.mft} +34 -27
  66. data/vendor/local/manifest/cairo_1.10.0-1_win32.mft +5 -0
  67. data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING +9 -8
  68. data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING-LGPL-2.1 +2 -2
  69. data/vendor/local/share/doc/{cairo_1.8.10-4_win32 → cairo_1.10.0-1_win32}/COPYING-MPL-1.1 +0 -0
  70. data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +4 -14
  71. data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +5 -15
  72. data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +7 -17
  73. data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +6 -16
  74. data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +6 -16
  75. data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +23 -28
  76. data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +3 -13
  77. data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +3 -13
  78. data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +7 -17
  79. data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +373 -0
  80. data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +330 -0
  81. data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +478 -0
  82. data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +344 -0
  83. data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +320 -0
  84. data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1291 -0
  85. data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +622 -0
  86. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +134 -0
  87. data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +210 -0
  88. data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +834 -0
  89. data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +318 -0
  90. data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +410 -0
  91. data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +169 -0
  92. data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +715 -0
  93. data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +410 -0
  94. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +335 -0
  95. data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +291 -0
  96. data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +470 -0
  97. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +595 -0
  98. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +384 -0
  99. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +644 -0
  100. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +574 -0
  101. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +1457 -0
  102. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +1076 -0
  103. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1396 -0
  104. data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2743 -0
  105. data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -20
  106. data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -23
  107. data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +11 -21
  108. data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +19 -26
  109. data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +279 -326
  110. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp +411 -355
  111. data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +579 -480
  112. data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +147 -0
  113. data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +88 -65
  114. data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +72 -47
  115. data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +43 -32
  116. data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +42 -41
  117. data/vendor/local/share/gtk-doc/html/cairo/index-all.html +542 -345
  118. data/vendor/local/share/gtk-doc/html/cairo/index.html +36 -39
  119. data/vendor/local/share/gtk-doc/html/cairo/index.sgml +674 -444
  120. data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +6 -16
  121. data/vendor/local/share/gtk-doc/html/cairo/style.css +152 -54
  122. data/vendor/local/src/tml/packaging/cairo_1.10.0-1_win32.log +1262 -0
  123. data/vendor/local/src/tml/packaging/{cairo_1.8.10-4_win32.sh → cairo_1.10.0-1_win32.sh} +3 -3
  124. metadata +137 -389
  125. data/doc/doc.css +0 -91
  126. data/doc/en/cairo-antialias.html +0 -38
  127. data/doc/en/cairo-clip-not-representable-error.html +0 -47
  128. data/doc/en/cairo-color-base.html +0 -69
  129. data/doc/en/cairo-color-cmyk.html +0 -157
  130. data/doc/en/cairo-color-hsv.html +0 -137
  131. data/doc/en/cairo-color-rgb.html +0 -142
  132. data/doc/en/cairo-color-x11.html +0 -173
  133. data/doc/en/cairo-color.html +0 -238
  134. data/doc/en/cairo-content.html +0 -37
  135. data/doc/en/cairo-context-blur.html +0 -39
  136. data/doc/en/cairo-context-circle.html +0 -39
  137. data/doc/en/cairo-context-color.html +0 -39
  138. data/doc/en/cairo-context-path.html +0 -44
  139. data/doc/en/cairo-context-rectangle.html +0 -39
  140. data/doc/en/cairo-context-triangle.html +0 -39
  141. data/doc/en/cairo-context.html +0 -643
  142. data/doc/en/cairo-error.html +0 -44
  143. data/doc/en/cairo-extend.html +0 -38
  144. data/doc/en/cairo-file-not-found.html +0 -47
  145. data/doc/en/cairo-fill-rule.html +0 -36
  146. data/doc/en/cairo-filter.html +0 -40
  147. data/doc/en/cairo-font-extents.html +0 -129
  148. data/doc/en/cairo-font-face.html +0 -38
  149. data/doc/en/cairo-font-options.html +0 -139
  150. data/doc/en/cairo-font-slant.html +0 -37
  151. data/doc/en/cairo-font-type-mismatch.html +0 -47
  152. data/doc/en/cairo-font-weight.html +0 -36
  153. data/doc/en/cairo-format.html +0 -46
  154. data/doc/en/cairo-glyph.html +0 -99
  155. data/doc/en/cairo-gradient-pattern.html +0 -74
  156. data/doc/en/cairo-hint-metrics.html +0 -37
  157. data/doc/en/cairo-hint-style.html +0 -39
  158. data/doc/en/cairo-image-surface.html +0 -82
  159. data/doc/en/cairo-invalid-clusters.html +0 -47
  160. data/doc/en/cairo-invalid-content-error.html +0 -47
  161. data/doc/en/cairo-invalid-dash-error.html +0 -47
  162. data/doc/en/cairo-invalid-dsc-comment-error.html +0 -47
  163. data/doc/en/cairo-invalid-format-error.html +0 -47
  164. data/doc/en/cairo-invalid-index-error.html +0 -47
  165. data/doc/en/cairo-invalid-matrix-error.html +0 -47
  166. data/doc/en/cairo-invalid-path-data-error.html +0 -47
  167. data/doc/en/cairo-invalid-pop-group-error.html +0 -47
  168. data/doc/en/cairo-invalid-restore-error.html +0 -47
  169. data/doc/en/cairo-invalid-slant.html +0 -47
  170. data/doc/en/cairo-invalid-status-error.html +0 -47
  171. data/doc/en/cairo-invalid-stride-error.html +0 -47
  172. data/doc/en/cairo-invalid-string-error.html +0 -47
  173. data/doc/en/cairo-invalid-visual-error.html +0 -47
  174. data/doc/en/cairo-invalid-weight.html +0 -47
  175. data/doc/en/cairo-line-cap.html +0 -37
  176. data/doc/en/cairo-line-join.html +0 -37
  177. data/doc/en/cairo-linear-pattern.html +0 -60
  178. data/doc/en/cairo-matrix.html +0 -259
  179. data/doc/en/cairo-negative-count.html +0 -47
  180. data/doc/en/cairo-no-current-point-error.html +0 -47
  181. data/doc/en/cairo-null-pointer-error.html +0 -47
  182. data/doc/en/cairo-operator.html +0 -48
  183. data/doc/en/cairo-paper-parse-error.html +0 -47
  184. data/doc/en/cairo-paper-unknown-paper-name.html +0 -66
  185. data/doc/en/cairo-paper-unknown-unit.html +0 -66
  186. data/doc/en/cairo-paper-unrecognized-paper-description.html +0 -66
  187. data/doc/en/cairo-paper.html +0 -184
  188. data/doc/en/cairo-path-close-path.html +0 -49
  189. data/doc/en/cairo-path-curve-to.html +0 -49
  190. data/doc/en/cairo-path-data-type.html +0 -38
  191. data/doc/en/cairo-path-data.html +0 -98
  192. data/doc/en/cairo-path-line-to.html +0 -49
  193. data/doc/en/cairo-path-move-to.html +0 -49
  194. data/doc/en/cairo-path.html +0 -155
  195. data/doc/en/cairo-pattern-type-mismatch-error.html +0 -47
  196. data/doc/en/cairo-pattern.html +0 -99
  197. data/doc/en/cairo-pdf-surface.html +0 -57
  198. data/doc/en/cairo-point.html +0 -74
  199. data/doc/en/cairo-ps-level.html +0 -49
  200. data/doc/en/cairo-ps-surface.html +0 -92
  201. data/doc/en/cairo-quartz-image-surface.html +0 -57
  202. data/doc/en/cairo-quartz-surface.html +0 -57
  203. data/doc/en/cairo-radial-pattern.html +0 -60
  204. data/doc/en/cairo-read-error.html +0 -47
  205. data/doc/en/cairo-rectangle.html +0 -89
  206. data/doc/en/cairo-scaled-font.html +0 -94
  207. data/doc/en/cairo-solid-pattern.html +0 -62
  208. data/doc/en/cairo-subpixel-order.html +0 -39
  209. data/doc/en/cairo-surface-finished-error.html +0 -47
  210. data/doc/en/cairo-surface-pattern.html +0 -57
  211. data/doc/en/cairo-surface-type-mismatch-error.html +0 -47
  212. data/doc/en/cairo-surface.html +0 -121
  213. data/doc/en/cairo-svg-surface.html +0 -77
  214. data/doc/en/cairo-svg-version.html +0 -49
  215. data/doc/en/cairo-temp-file-error.html +0 -47
  216. data/doc/en/cairo-text-cluster-flag.html +0 -35
  217. data/doc/en/cairo-text-cluster.html +0 -84
  218. data/doc/en/cairo-text-extents.html +0 -144
  219. data/doc/en/cairo-toy-font-face.html +0 -67
  220. data/doc/en/cairo-user-font-error.html +0 -47
  221. data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +0 -94
  222. data/doc/en/cairo-user-font-face.html +0 -72
  223. data/doc/en/cairo-user-font-immutable.html +0 -47
  224. data/doc/en/cairo-win32-printing-surface.html +0 -57
  225. data/doc/en/cairo-win32-surface.html +0 -62
  226. data/doc/en/cairo-write-error.html +0 -47
  227. data/doc/en/cairo.html +0 -131
  228. data/doc/en/index.html +0 -1154
  229. data/doc/index.html +0 -18
  230. data/doc/ja/cairo-antialias.html +0 -57
  231. data/doc/ja/cairo-clip-not-representable-error.html +0 -56
  232. data/doc/ja/cairo-color-base.html +0 -75
  233. data/doc/ja/cairo-color-cmyk.html +0 -152
  234. data/doc/ja/cairo-color-hsv.html +0 -135
  235. data/doc/ja/cairo-color-rgb.html +0 -145
  236. data/doc/ja/cairo-color-x11.html +0 -183
  237. data/doc/ja/cairo-color.html +0 -317
  238. data/doc/ja/cairo-content.html +0 -51
  239. data/doc/ja/cairo-context-blur.html +0 -53
  240. data/doc/ja/cairo-context-circle.html +0 -54
  241. data/doc/ja/cairo-context-color.html +0 -52
  242. data/doc/ja/cairo-context-path.html +0 -77
  243. data/doc/ja/cairo-context-rectangle.html +0 -60
  244. data/doc/ja/cairo-context-triangle.html +0 -47
  245. data/doc/ja/cairo-context.html +0 -1542
  246. data/doc/ja/cairo-error.html +0 -56
  247. data/doc/ja/cairo-extend.html +0 -56
  248. data/doc/ja/cairo-file-not-found.html +0 -51
  249. data/doc/ja/cairo-fill-rule.html +0 -58
  250. data/doc/ja/cairo-filter.html +0 -43
  251. data/doc/ja/cairo-font-extents.html +0 -164
  252. data/doc/ja/cairo-font-face.html +0 -55
  253. data/doc/ja/cairo-font-options.html +0 -189
  254. data/doc/ja/cairo-font-slant.html +0 -50
  255. data/doc/ja/cairo-font-type-mismatch.html +0 -52
  256. data/doc/ja/cairo-font-weight.html +0 -47
  257. data/doc/ja/cairo-format.html +0 -81
  258. data/doc/ja/cairo-glyph.html +0 -115
  259. data/doc/ja/cairo-gradient-pattern.html +0 -119
  260. data/doc/ja/cairo-hint-metrics.html +0 -57
  261. data/doc/ja/cairo-hint-style.html +0 -64
  262. data/doc/ja/cairo-image-surface.html +0 -131
  263. data/doc/ja/cairo-invalid-clusters.html +0 -55
  264. data/doc/ja/cairo-invalid-content-error.html +0 -54
  265. data/doc/ja/cairo-invalid-dash-error.html +0 -54
  266. data/doc/ja/cairo-invalid-dsc-comment-error.html +0 -54
  267. data/doc/ja/cairo-invalid-format-error.html +0 -54
  268. data/doc/ja/cairo-invalid-index-error.html +0 -54
  269. data/doc/ja/cairo-invalid-matrix-error.html +0 -54
  270. data/doc/ja/cairo-invalid-path-data-error.html +0 -54
  271. data/doc/ja/cairo-invalid-pop-group-error.html +0 -54
  272. data/doc/ja/cairo-invalid-restore-error.html +0 -55
  273. data/doc/ja/cairo-invalid-slant.html +0 -57
  274. data/doc/ja/cairo-invalid-status-error.html +0 -55
  275. data/doc/ja/cairo-invalid-stride-error.html +0 -55
  276. data/doc/ja/cairo-invalid-string-error.html +0 -54
  277. data/doc/ja/cairo-invalid-visual-error.html +0 -57
  278. data/doc/ja/cairo-invalid-weight.html +0 -57
  279. data/doc/ja/cairo-line-cap.html +0 -50
  280. data/doc/ja/cairo-line-join.html +0 -53
  281. data/doc/ja/cairo-linear-pattern.html +0 -87
  282. data/doc/ja/cairo-matrix.html +0 -354
  283. data/doc/ja/cairo-negative-count.html +0 -52
  284. data/doc/ja/cairo-no-current-point-error.html +0 -54
  285. data/doc/ja/cairo-null-pointer-error.html +0 -54
  286. data/doc/ja/cairo-operator.html +0 -51
  287. data/doc/ja/cairo-paper-parse-error.html +0 -55
  288. data/doc/ja/cairo-paper-unknown-paper-name.html +0 -76
  289. data/doc/ja/cairo-paper-unknown-unit.html +0 -75
  290. data/doc/ja/cairo-paper-unrecognized-paper-description.html +0 -76
  291. data/doc/ja/cairo-paper.html +0 -357
  292. data/doc/ja/cairo-path-close-path.html +0 -57
  293. data/doc/ja/cairo-path-curve-to.html +0 -70
  294. data/doc/ja/cairo-path-data-type.html +0 -53
  295. data/doc/ja/cairo-path-data.html +0 -127
  296. data/doc/ja/cairo-path-line-to.html +0 -62
  297. data/doc/ja/cairo-path-move-to.html +0 -62
  298. data/doc/ja/cairo-path.html +0 -144
  299. data/doc/ja/cairo-pattern-type-mismatch-error.html +0 -56
  300. data/doc/ja/cairo-pattern.html +0 -128
  301. data/doc/ja/cairo-pdf-surface.html +0 -86
  302. data/doc/ja/cairo-point.html +0 -90
  303. data/doc/ja/cairo-ps-level.html +0 -62
  304. data/doc/ja/cairo-ps-surface.html +0 -214
  305. data/doc/ja/cairo-quartz-image-surface.html +0 -75
  306. data/doc/ja/cairo-quartz-surface.html +0 -93
  307. data/doc/ja/cairo-radial-pattern.html +0 -93
  308. data/doc/ja/cairo-read-error.html +0 -55
  309. data/doc/ja/cairo-rectangle.html +0 -109
  310. data/doc/ja/cairo-scaled-font.html +0 -180
  311. data/doc/ja/cairo-solid-pattern.html +0 -87
  312. data/doc/ja/cairo-subpixel-order.html +0 -57
  313. data/doc/ja/cairo-surface-finished-error.html +0 -54
  314. data/doc/ja/cairo-surface-pattern.html +0 -68
  315. data/doc/ja/cairo-surface-type-mismatch-error.html +0 -56
  316. data/doc/ja/cairo-surface.html +0 -213
  317. data/doc/ja/cairo-svg-surface.html +0 -114
  318. data/doc/ja/cairo-svg-version.html +0 -66
  319. data/doc/ja/cairo-temp-file-error.html +0 -50
  320. data/doc/ja/cairo-text-cluster-flag.html +0 -46
  321. data/doc/ja/cairo-text-cluster.html +0 -102
  322. data/doc/ja/cairo-text-extents.html +0 -163
  323. data/doc/ja/cairo-toy-font-face.html +0 -107
  324. data/doc/ja/cairo-user-font-error.html +0 -55
  325. data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +0 -156
  326. data/doc/ja/cairo-user-font-face.html +0 -268
  327. data/doc/ja/cairo-user-font-immutable.html +0 -54
  328. data/doc/ja/cairo-win32-printing-surface.html +0 -80
  329. data/doc/ja/cairo-win32-surface.html +0 -100
  330. data/doc/ja/cairo-write-error.html +0 -55
  331. data/doc/ja/cairo.html +0 -177
  332. data/doc/ja/index.html +0 -1156
  333. data/pkg-config.rb +0 -313
  334. data/test-unit/Rakefile +0 -30
  335. data/test-unit/bin/testrb +0 -5
  336. data/test-unit/lib/test/unit.rb +0 -280
  337. data/test-unit/lib/test/unit/assertionfailederror.rb +0 -14
  338. data/test-unit/lib/test/unit/assertions.rb +0 -722
  339. data/test-unit/lib/test/unit/attribute.rb +0 -125
  340. data/test-unit/lib/test/unit/autorunner.rb +0 -254
  341. data/test-unit/lib/test/unit/collector.rb +0 -43
  342. data/test-unit/lib/test/unit/collector/descendant.rb +0 -23
  343. data/test-unit/lib/test/unit/collector/dir.rb +0 -108
  344. data/test-unit/lib/test/unit/collector/load.rb +0 -135
  345. data/test-unit/lib/test/unit/collector/objectspace.rb +0 -34
  346. data/test-unit/lib/test/unit/color.rb +0 -61
  347. data/test-unit/lib/test/unit/diff.rb +0 -524
  348. data/test-unit/lib/test/unit/error.rb +0 -124
  349. data/test-unit/lib/test/unit/exceptionhandler.rb +0 -39
  350. data/test-unit/lib/test/unit/failure.rb +0 -110
  351. data/test-unit/lib/test/unit/fixture.rb +0 -185
  352. data/test-unit/lib/test/unit/notification.rb +0 -125
  353. data/test-unit/lib/test/unit/omission.rb +0 -143
  354. data/test-unit/lib/test/unit/pending.rb +0 -146
  355. data/test-unit/lib/test/unit/priority.rb +0 -146
  356. data/test-unit/lib/test/unit/runner/console.rb +0 -46
  357. data/test-unit/lib/test/unit/runner/emacs.rb +0 -8
  358. data/test-unit/lib/test/unit/testcase.rb +0 -281
  359. data/test-unit/lib/test/unit/testresult.rb +0 -89
  360. data/test-unit/lib/test/unit/testsuite.rb +0 -110
  361. data/test-unit/lib/test/unit/ui/console/outputlevel.rb +0 -14
  362. data/test-unit/lib/test/unit/ui/console/testrunner.rb +0 -195
  363. data/test-unit/lib/test/unit/ui/emacs/testrunner.rb +0 -49
  364. data/test-unit/lib/test/unit/ui/testrunner.rb +0 -20
  365. data/test-unit/lib/test/unit/ui/testrunnermediator.rb +0 -77
  366. data/test-unit/lib/test/unit/ui/testrunnerutilities.rb +0 -41
  367. data/test-unit/lib/test/unit/util/backtracefilter.rb +0 -41
  368. data/test-unit/lib/test/unit/util/observable.rb +0 -90
  369. data/test-unit/lib/test/unit/util/procwrapper.rb +0 -48
  370. data/test-unit/lib/test/unit/version.rb +0 -7
  371. data/test-unit/sample/adder.rb +0 -13
  372. data/test-unit/sample/subtracter.rb +0 -12
  373. data/test-unit/sample/tc_adder.rb +0 -18
  374. data/test-unit/sample/tc_subtracter.rb +0 -18
  375. data/test-unit/sample/ts_examples.rb +0 -7
  376. data/test-unit/test/collector/test_descendant.rb +0 -135
  377. data/test-unit/test/collector/test_dir.rb +0 -406
  378. data/test-unit/test/collector/test_load.rb +0 -333
  379. data/test-unit/test/collector/test_objectspace.rb +0 -98
  380. data/test-unit/test/run-test.rb +0 -13
  381. data/test-unit/test/test_assertions.rb +0 -693
  382. data/test-unit/test/test_attribute.rb +0 -86
  383. data/test-unit/test/test_color.rb +0 -37
  384. data/test-unit/test/test_diff.rb +0 -477
  385. data/test-unit/test/test_emacs_runner.rb +0 -60
  386. data/test-unit/test/test_error.rb +0 -26
  387. data/test-unit/test/test_failure.rb +0 -33
  388. data/test-unit/test/test_fixture.rb +0 -252
  389. data/test-unit/test/test_notification.rb +0 -33
  390. data/test-unit/test/test_omission.rb +0 -81
  391. data/test-unit/test/test_pending.rb +0 -70
  392. data/test-unit/test/test_priority.rb +0 -89
  393. data/test-unit/test/test_testcase.rb +0 -430
  394. data/test-unit/test/test_testresult.rb +0 -113
  395. data/test-unit/test/test_testsuite.rb +0 -129
  396. data/test-unit/test/testunit_test_util.rb +0 -14
  397. data/test-unit/test/ui/test_testrunmediator.rb +0 -20
  398. data/test-unit/test/util/test_backtracefilter.rb +0 -41
  399. data/test-unit/test/util/test_observable.rb +0 -102
  400. data/test-unit/test/util/test_procwrapper.rb +0 -36
  401. data/test/test_pkg_config.rb +0 -123
  402. data/vendor/local/include/libpng14/png.h +0 -2701
  403. data/vendor/local/include/libpng14/pngconf.h +0 -1525
  404. data/vendor/local/include/png.h +0 -2701
  405. data/vendor/local/include/pngconf.h +0 -1525
  406. data/vendor/local/include/zconf.h +0 -461
  407. data/vendor/local/include/zlib.h +0 -1589
  408. data/vendor/local/lib/libpng.def +0 -192
  409. data/vendor/local/lib/libpng.lib +0 -0
  410. data/vendor/local/lib/libpng14.dll.a +0 -0
  411. data/vendor/local/lib/libz.dll.a +0 -0
  412. data/vendor/local/lib/pkgconfig/libpng.pc +0 -11
  413. data/vendor/local/lib/pkgconfig/libpng14.pc +0 -11
  414. data/vendor/local/lib/zdll.lib +0 -0
  415. data/vendor/local/lib/zlib.def +0 -67
  416. data/vendor/local/manifest/cairo_1.8.10-4_win32.mft +0 -5
  417. data/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +0 -15
  418. data/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +0 -8
  419. data/vendor/local/share/gtk-doc/html/cairo/cairo-context.html +0 -2643
  420. data/vendor/local/share/gtk-doc/html/cairo/cairo-error-status.html +0 -360
  421. data/vendor/local/share/gtk-doc/html/cairo/cairo-font-face.html +0 -408
  422. data/vendor/local/share/gtk-doc/html/cairo/cairo-font-options.html +0 -678
  423. data/vendor/local/share/gtk-doc/html/cairo/cairo-ft-font.html +0 -319
  424. data/vendor/local/share/gtk-doc/html/cairo/cairo-image-surface.html +0 -473
  425. data/vendor/local/share/gtk-doc/html/cairo/cairo-matrix.html +0 -596
  426. data/vendor/local/share/gtk-doc/html/cairo/cairo-paths.html +0 -1274
  427. data/vendor/local/share/gtk-doc/html/cairo/cairo-pattern.html +0 -1485
  428. data/vendor/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html +0 -238
  429. data/vendor/local/share/gtk-doc/html/cairo/cairo-png-functions.html +0 -341
  430. data/vendor/local/share/gtk-doc/html/cairo/cairo-ps-surface.html +0 -622
  431. data/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-font.html +0 -151
  432. data/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html +0 -219
  433. data/vendor/local/share/gtk-doc/html/cairo/cairo-scaled-font.html +0 -1023
  434. data/vendor/local/share/gtk-doc/html/cairo/cairo-surface.html +0 -1026
  435. data/vendor/local/share/gtk-doc/html/cairo/cairo-svg-surface.html +0 -321
  436. data/vendor/local/share/gtk-doc/html/cairo/cairo-transformations.html +0 -436
  437. data/vendor/local/share/gtk-doc/html/cairo/cairo-types.html +0 -133
  438. data/vendor/local/share/gtk-doc/html/cairo/cairo-user-font.html +0 -735
  439. data/vendor/local/share/gtk-doc/html/cairo/cairo-version-info.html +0 -345
  440. data/vendor/local/share/gtk-doc/html/cairo/cairo-win32-font.html +0 -358
  441. data/vendor/local/share/gtk-doc/html/cairo/cairo-win32-surface.html +0 -312
  442. data/vendor/local/share/gtk-doc/html/cairo/cairo-xlib-surface.html +0 -492
  443. data/vendor/local/share/man/man3/libpng.3 +0 -4455
  444. data/vendor/local/share/man/man3/libpngpf.3 +0 -808
  445. data/vendor/local/share/man/man5/png.5 +0 -74
  446. data/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.log +0 -920
  447. data/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.log +0 -272
  448. data/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.sh +0 -71
  449. data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +0 -42
  450. data/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +0 -189
@@ -0,0 +1,134 @@
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>Quartz (CGFont) Fonts</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-fonts.html" title="Fonts">
9
+ <link rel="prev" href="cairo-Win32-Fonts.html" title="Win32 Fonts">
10
+ <link rel="next" href="cairo-User-Fonts.html" title="User Fonts">
11
+ <meta name="generator" content="GTK-Doc V1.15 (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-Win32-Fonts.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="cairo-fonts.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-User-Fonts.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-Quartz-(CGFont)-Fonts.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-Quartz-(CGFont)-Fonts.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry" title="Quartz (CGFont) Fonts">
30
+ <a name="cairo-Quartz-(CGFont)-Fonts"></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-Quartz-(CGFont)-Fonts.top_of_page"></a>Quartz (CGFont) Fonts</span></h2>
34
+ <p>Quartz (CGFont) Fonts — Font support via CGFont on OS X</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv" title="Synopsis">
39
+ <a name="cairo-Quartz-(CGFont)-Fonts.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">#define <a class="link" href="cairo-Quartz-(CGFont)-Fonts.html#CAIRO-HAS-QUARTZ-FONT:CAPS" title="CAIRO_HAS_QUARTZ_FONT">CAIRO_HAS_QUARTZ_FONT</a>
41
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * <a class="link" href="cairo-Quartz-(CGFont)-Fonts.html#cairo-quartz-font-face-create-for-cgfont" title="cairo_quartz_font_face_create_for_cgfont ()">cairo_quartz_font_face_create_for_cgfont</a>
42
+ (<em class="parameter"><code><span class="type">CGFontRef</span> font</code></em>);
43
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * <a class="link" href="cairo-Quartz-(CGFont)-Fonts.html#cairo-quartz-font-face-create-for-atsu-font-id" title="cairo_quartz_font_face_create_for_atsu_font_id ()">cairo_quartz_font_face_create_for_atsu_font_id</a>
44
+ (<em class="parameter"><code><span class="type">ATSUFontID</span> font_id</code></em>);
45
+ </pre>
46
+ </div>
47
+ <div class="refsect1" title="Description">
48
+ <a name="cairo-Quartz-(CGFont)-Fonts.description"></a><h2>Description</h2>
49
+ <p>
50
+ The Quartz font backend is primarily used to render text on Apple
51
+ MacOS X systems. The CGFont API is used for the internal
52
+ implementation of the font backend methods.
53
+ </p>
54
+ </div>
55
+ <div class="refsect1" title="Details">
56
+ <a name="cairo-Quartz-(CGFont)-Fonts.details"></a><h2>Details</h2>
57
+ <div class="refsect2" title="CAIRO_HAS_QUARTZ_FONT">
58
+ <a name="CAIRO-HAS-QUARTZ-FONT:CAPS"></a><h3>CAIRO_HAS_QUARTZ_FONT</h3>
59
+ <pre class="programlisting">#define CAIRO_HAS_QUARTZ_FONT 1
60
+ </pre>
61
+ <p>
62
+ Defined if the Quartz font backend is available.
63
+ This macro can be used to conditionally compile backend-specific code.
64
+ </p>
65
+ </div>
66
+ <hr>
67
+ <div class="refsect2" title="cairo_quartz_font_face_create_for_cgfont ()">
68
+ <a name="cairo-quartz-font-face-create-for-cgfont"></a><h3>cairo_quartz_font_face_create_for_cgfont ()</h3>
69
+ <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * cairo_quartz_font_face_create_for_cgfont
70
+ (<em class="parameter"><code><span class="type">CGFontRef</span> font</code></em>);</pre>
71
+ <p>
72
+ Creates a new font for the Quartz font backend based on a
73
+ <span class="type">CGFontRef</span>. This font can then be used with
74
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.
75
+ </p>
76
+ <div class="variablelist"><table border="0">
77
+ <col align="left" valign="top">
78
+ <tbody>
79
+ <tr>
80
+ <td><p><span class="term"><em class="parameter"><code>font</code></em> :</span></p></td>
81
+ <td>a <span class="type">CGFontRef</span> obtained through a method external to cairo.
82
+ </td>
83
+ </tr>
84
+ <tr>
85
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
86
+ <td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
87
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
88
+
89
+ </td>
90
+ </tr>
91
+ </tbody>
92
+ </table></div>
93
+ <p class="since">Since 1.6</p>
94
+ </div>
95
+ <hr>
96
+ <div class="refsect2" title="cairo_quartz_font_face_create_for_atsu_font_id ()">
97
+ <a name="cairo-quartz-font-face-create-for-atsu-font-id"></a><h3>cairo_quartz_font_face_create_for_atsu_font_id ()</h3>
98
+ <pre class="programlisting"><a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="returnvalue">cairo_font_face_t</span></a> * cairo_quartz_font_face_create_for_atsu_font_id
99
+ (<em class="parameter"><code><span class="type">ATSUFontID</span> font_id</code></em>);</pre>
100
+ <p>
101
+ Creates a new font for the Quartz font backend based on an
102
+ <span class="type">ATSUFontID</span>. This font can then be used with
103
+ <a class="link" href="cairo-text.html#cairo-set-font-face" title="cairo_set_font_face ()"><code class="function">cairo_set_font_face()</code></a> or <a class="link" href="cairo-cairo-scaled-font-t.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.
104
+ </p>
105
+ <div class="variablelist"><table border="0">
106
+ <col align="left" valign="top">
107
+ <tbody>
108
+ <tr>
109
+ <td><p><span class="term"><em class="parameter"><code>font_id</code></em> :</span></p></td>
110
+ <td>an ATSUFontID for the font.
111
+ </td>
112
+ </tr>
113
+ <tr>
114
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
115
+ <td> a newly created <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>. Free with
116
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-destroy" title="cairo_font_face_destroy ()"><code class="function">cairo_font_face_destroy()</code></a> when you are done using it.
117
+
118
+ </td>
119
+ </tr>
120
+ </tbody>
121
+ </table></div>
122
+ <p class="since">Since 1.6</p>
123
+ </div>
124
+ </div>
125
+ <div class="refsect1" title="See Also">
126
+ <a name="cairo-Quartz-(CGFont)-Fonts.see-also"></a><h2>See Also</h2>
127
+ <a class="link" href="cairo-cairo-font-face-t.html#cairo-font-face-t" title="cairo_font_face_t"><span class="type">cairo_font_face_t</span></a>
128
+ </div>
129
+ </div>
130
+ <div class="footer">
131
+ <hr>
132
+ Generated by GTK-Doc V1.15</div>
133
+ </body>
134
+ </html>
@@ -0,0 +1,210 @@
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>Quartz Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-SVG-Surfaces.html" title="SVG Surfaces">
10
+ <link rel="next" href="cairo-XLib-Surfaces.html" title="XLib Surfaces">
11
+ <meta name="generator" content="GTK-Doc V1.15 (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-SVG-Surfaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
18
+ <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
19
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
20
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
21
+ <td><a accesskey="n" href="cairo-XLib-Surfaces.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
+ </tr>
23
+ <tr><td colspan="5" class="shortcuts">
24
+ <a href="#cairo-Quartz-Surfaces.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-Quartz-Surfaces.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry" title="Quartz Surfaces">
30
+ <a name="cairo-Quartz-Surfaces"></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-Quartz-Surfaces.top_of_page"></a>Quartz Surfaces</span></h2>
34
+ <p>Quartz Surfaces — Rendering to Quartz surfaces</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv" title="Synopsis">
39
+ <a name="cairo-Quartz-Surfaces.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">#define <a class="link" href="cairo-Quartz-Surfaces.html#CAIRO-HAS-QUARTZ-SURFACE:CAPS" title="CAIRO_HAS_QUARTZ_SURFACE">CAIRO_HAS_QUARTZ_SURFACE</a>
41
+ <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-Quartz-Surfaces.html#cairo-quartz-surface-create" title="cairo_quartz_surface_create ()">cairo_quartz_surface_create</a> (<em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
42
+ <em class="parameter"><code>unsigned <span class="type">int</span> width</code></em>,
43
+ <em class="parameter"><code>unsigned <span class="type">int</span> height</code></em>);
44
+ <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-Quartz-Surfaces.html#cairo-quartz-surface-create-for-cg-context" title="cairo_quartz_surface_create_for_cg_context ()">cairo_quartz_surface_create_for_cg_context</a>
45
+ (<em class="parameter"><code><span class="type">CGContextRef</span> cgContext</code></em>,
46
+ <em class="parameter"><code>unsigned <span class="type">int</span> width</code></em>,
47
+ <em class="parameter"><code>unsigned <span class="type">int</span> height</code></em>);
48
+ <span class="returnvalue">CGContextRef</span> <a class="link" href="cairo-Quartz-Surfaces.html#cairo-quartz-surface-get-cg-context" title="cairo_quartz_surface_get_cg_context ()">cairo_quartz_surface_get_cg_context</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);
49
+ </pre>
50
+ </div>
51
+ <div class="refsect1" title="Description">
52
+ <a name="cairo-Quartz-Surfaces.description"></a><h2>Description</h2>
53
+ <p>
54
+ The Quartz surface is used to render cairo graphics targeting the
55
+ Apple OS X Quartz rendering system.
56
+ </p>
57
+ </div>
58
+ <div class="refsect1" title="Details">
59
+ <a name="cairo-Quartz-Surfaces.details"></a><h2>Details</h2>
60
+ <div class="refsect2" title="CAIRO_HAS_QUARTZ_SURFACE">
61
+ <a name="CAIRO-HAS-QUARTZ-SURFACE:CAPS"></a><h3>CAIRO_HAS_QUARTZ_SURFACE</h3>
62
+ <pre class="programlisting">#define CAIRO_HAS_QUARTZ_SURFACE 1
63
+ </pre>
64
+ <p>
65
+ Defined if the Quartz surface backend is available.
66
+ This macro can be used to conditionally compile backend-specific code.
67
+ </p>
68
+ </div>
69
+ <hr>
70
+ <div class="refsect2" title="cairo_quartz_surface_create ()">
71
+ <a name="cairo-quartz-surface-create"></a><h3>cairo_quartz_surface_create ()</h3>
72
+ <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_quartz_surface_create (<em class="parameter"><code><a class="link" href="cairo-Image-Surfaces.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> format</code></em>,
73
+ <em class="parameter"><code>unsigned <span class="type">int</span> width</code></em>,
74
+ <em class="parameter"><code>unsigned <span class="type">int</span> height</code></em>);</pre>
75
+ <p>
76
+ Creates a Quartz surface backed by a CGBitmap. The surface is
77
+ created using the Device RGB (or Device Gray, for A8) color space.
78
+ All Cairo operations, including those that require software
79
+ rendering, will succeed on this surface.
80
+ </p>
81
+ <div class="variablelist"><table border="0">
82
+ <col align="left" valign="top">
83
+ <tbody>
84
+ <tr>
85
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
86
+ <td>format of pixels in the surface to create
87
+ </td>
88
+ </tr>
89
+ <tr>
90
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
91
+ <td>width of the surface, in pixels
92
+ </td>
93
+ </tr>
94
+ <tr>
95
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
96
+ <td>height of the surface, in pixels
97
+ </td>
98
+ </tr>
99
+ <tr>
100
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
101
+ <td> the newly created surface.
102
+
103
+ </td>
104
+ </tr>
105
+ </tbody>
106
+ </table></div>
107
+ <p class="since">Since 1.4</p>
108
+ </div>
109
+ <hr>
110
+ <div class="refsect2" title="cairo_quartz_surface_create_for_cg_context ()">
111
+ <a name="cairo-quartz-surface-create-for-cg-context"></a><h3>cairo_quartz_surface_create_for_cg_context ()</h3>
112
+ <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_quartz_surface_create_for_cg_context
113
+ (<em class="parameter"><code><span class="type">CGContextRef</span> cgContext</code></em>,
114
+ <em class="parameter"><code>unsigned <span class="type">int</span> width</code></em>,
115
+ <em class="parameter"><code>unsigned <span class="type">int</span> height</code></em>);</pre>
116
+ <p>
117
+ Creates a Quartz surface that wraps the given CGContext. The
118
+ CGContext is assumed to be in the standard Cairo coordinate space
119
+ (that is, with the origin at the upper left and the Y axis
120
+ increasing downward). If the CGContext is in the Quartz coordinate
121
+ space (with the origin at the bottom left), then it should be
122
+ flipped before this function is called. The flip can be accomplished
123
+ using a translate and a scale; for example:
124
+ </p>
125
+ <p>
126
+ </p>
127
+ <div class="informalexample">
128
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
129
+ <tbody>
130
+ <tr>
131
+ <td class="listing_lines" align="right"><pre>1
132
+ 2</pre></td>
133
+ <td class="listing_code"><pre class="programlisting"><span class="function">CGContextTranslateCTM</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cgContext</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0.0</span><span class="symbol">,</span><span class="normal"> height</span><span class="symbol">);</span>
134
+ <span class="function">CGContextScaleCTM</span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cgContext</span><span class="symbol">,</span><span class="normal"> </span><span class="number">1.0</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">-</span><span class="number">1.0</span><span class="symbol">);</span></pre></td>
135
+ </tr>
136
+ </tbody>
137
+ </table>
138
+ </div>
139
+
140
+ <p>
141
+ </p>
142
+ <p>
143
+ All Cairo operations are implemented in terms of Quartz operations,
144
+ as long as Quartz-compatible elements are used (such as Quartz fonts).
145
+ </p>
146
+ <div class="variablelist"><table border="0">
147
+ <col align="left" valign="top">
148
+ <tbody>
149
+ <tr>
150
+ <td><p><span class="term"><em class="parameter"><code>cgContext</code></em> :</span></p></td>
151
+ <td>the existing CGContext for which to create the surface
152
+ </td>
153
+ </tr>
154
+ <tr>
155
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
156
+ <td>width of the surface, in pixels
157
+ </td>
158
+ </tr>
159
+ <tr>
160
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
161
+ <td>height of the surface, in pixels
162
+ </td>
163
+ </tr>
164
+ <tr>
165
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
166
+ <td> the newly created Cairo surface.
167
+
168
+ </td>
169
+ </tr>
170
+ </tbody>
171
+ </table></div>
172
+ <p class="since">Since 1.4</p>
173
+ </div>
174
+ <hr>
175
+ <div class="refsect2" title="cairo_quartz_surface_get_cg_context ()">
176
+ <a name="cairo-quartz-surface-get-cg-context"></a><h3>cairo_quartz_surface_get_cg_context ()</h3>
177
+ <pre class="programlisting"><span class="returnvalue">CGContextRef</span> cairo_quartz_surface_get_cg_context (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>);</pre>
178
+ <p>
179
+ Returns the CGContextRef that the given Quartz surface is backed
180
+ by.
181
+ </p>
182
+ <div class="variablelist"><table border="0">
183
+ <col align="left" valign="top">
184
+ <tbody>
185
+ <tr>
186
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
187
+ <td>the Cairo Quartz surface
188
+ </td>
189
+ </tr>
190
+ <tr>
191
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
192
+ <td> the CGContextRef for the given surface.
193
+
194
+ </td>
195
+ </tr>
196
+ </tbody>
197
+ </table></div>
198
+ <p class="since">Since 1.4</p>
199
+ </div>
200
+ </div>
201
+ <div class="refsect1" title="See Also">
202
+ <a name="cairo-Quartz-Surfaces.see-also"></a><h2>See Also</h2>
203
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
204
+ </div>
205
+ </div>
206
+ <div class="footer">
207
+ <hr>
208
+ Generated by GTK-Doc V1.15</div>
209
+ </body>
210
+ </html>
@@ -0,0 +1,834 @@
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>Regions</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
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-cairo-pattern-t.html" title="cairo_pattern_t">
10
+ <link rel="next" href="cairo-Transformations.html" title="Transformations">
11
+ <meta name="generator" content="GTK-Doc V1.15 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ </head>
14
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
16
+ <tr valign="middle">
17
+ <td><a accesskey="p" href="cairo-cairo-pattern-t.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-Transformations.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-Regions.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-Regions.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry" title="Regions">
30
+ <a name="cairo-Regions"></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-Regions.top_of_page"></a>Regions</span></h2>
34
+ <p>Regions — Representing a pixel-aligned area</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv" title="Synopsis">
39
+ <a name="cairo-Regions.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">typedef <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t">cairo_region_t</a>;
41
+ <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * <a class="link" href="cairo-Regions.html#cairo-region-create" title="cairo_region_create ()">cairo_region_create</a> (<em class="parameter"><code><span class="type">void</span></code></em>);
42
+ <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * <a class="link" href="cairo-Regions.html#cairo-region-create-rectangle" title="cairo_region_create_rectangle ()">cairo_region_create_rectangle</a> (<em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
43
+ <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * <a class="link" href="cairo-Regions.html#cairo-region-create-rectangles" title="cairo_region_create_rectangles ()">cairo_region_create_rectangles</a> (<em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rects</code></em>,
44
+ <em class="parameter"><code><span class="type">int</span> count</code></em>);
45
+ <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * <a class="link" href="cairo-Regions.html#cairo-region-copy" title="cairo_region_copy ()">cairo_region_copy</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *original</code></em>);
46
+ <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * <a class="link" href="cairo-Regions.html#cairo-region-reference" title="cairo_region_reference ()">cairo_region_reference</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);
47
+ <span class="returnvalue">void</span> <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()">cairo_region_destroy</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);
48
+ <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-Regions.html#cairo-region-status" title="cairo_region_status ()">cairo_region_status</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);
49
+ <span class="returnvalue">void</span> <a class="link" href="cairo-Regions.html#cairo-region-get-extents" title="cairo_region_get_extents ()">cairo_region_get_extents</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
50
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *extents</code></em>);
51
+ <span class="returnvalue">int</span> <a class="link" href="cairo-Regions.html#cairo-region-num-rectangles" title="cairo_region_num_rectangles ()">cairo_region_num_rectangles</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);
52
+ <span class="returnvalue">void</span> <a class="link" href="cairo-Regions.html#cairo-region-get-rectangle" title="cairo_region_get_rectangle ()">cairo_region_get_rectangle</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
53
+ <em class="parameter"><code><span class="type">int</span> nth</code></em>,
54
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
55
+ <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-Regions.html#cairo-region-is-empty" title="cairo_region_is_empty ()">cairo_region_is_empty</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);
56
+ <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-Regions.html#cairo-region-contains-point" title="cairo_region_contains_point ()">cairo_region_contains_point</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
57
+ <em class="parameter"><code><span class="type">int</span> x</code></em>,
58
+ <em class="parameter"><code><span class="type">int</span> y</code></em>);
59
+ enum <a class="link" href="cairo-Regions.html#cairo-region-overlap-t" title="enum cairo_region_overlap_t">cairo_region_overlap_t</a>;
60
+ <a class="link" href="cairo-Regions.html#cairo-region-overlap-t" title="enum cairo_region_overlap_t"><span class="returnvalue">cairo_region_overlap_t</span></a> <a class="link" href="cairo-Regions.html#cairo-region-contains-rectangle" title="cairo_region_contains_rectangle ()">cairo_region_contains_rectangle</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
61
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
62
+ <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-Regions.html#cairo-region-equal" title="cairo_region_equal ()">cairo_region_equal</a> (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *a</code></em>,
63
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *b</code></em>);
64
+ <span class="returnvalue">void</span> <a class="link" href="cairo-Regions.html#cairo-region-translate" title="cairo_region_translate ()">cairo_region_translate</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
65
+ <em class="parameter"><code><span class="type">int</span> dx</code></em>,
66
+ <em class="parameter"><code><span class="type">int</span> dy</code></em>);
67
+ <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-Regions.html#cairo-region-intersect" title="cairo_region_intersect ()">cairo_region_intersect</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
68
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);
69
+ <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-Regions.html#cairo-region-intersect-rectangle" title="cairo_region_intersect_rectangle ()">cairo_region_intersect_rectangle</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
70
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
71
+ <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-Regions.html#cairo-region-subtract" title="cairo_region_subtract ()">cairo_region_subtract</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
72
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);
73
+ <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-Regions.html#cairo-region-subtract-rectangle" title="cairo_region_subtract_rectangle ()">cairo_region_subtract_rectangle</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
74
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
75
+ <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-Regions.html#cairo-region-union" title="cairo_region_union ()">cairo_region_union</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
76
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);
77
+ <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-Regions.html#cairo-region-union-rectangle" title="cairo_region_union_rectangle ()">cairo_region_union_rectangle</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
78
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
79
+ <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-Regions.html#cairo-region-xor" title="cairo_region_xor ()">cairo_region_xor</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
80
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);
81
+ <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-Regions.html#cairo-region-xor-rectangle" title="cairo_region_xor_rectangle ()">cairo_region_xor_rectangle</a> (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
82
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);
83
+ </pre>
84
+ </div>
85
+ <div class="refsect1" title="Description">
86
+ <a name="cairo-Regions.description"></a><h2>Description</h2>
87
+ <p>
88
+ Regions are a simple graphical data type representing an area of
89
+ integer-aligned rectangles. They are often used on raster surfaces
90
+ to track areas of interest, such as change or clip areas.
91
+ </p>
92
+ </div>
93
+ <div class="refsect1" title="Details">
94
+ <a name="cairo-Regions.details"></a><h2>Details</h2>
95
+ <div class="refsect2" title="cairo_region_t">
96
+ <a name="cairo-region-t"></a><h3>cairo_region_t</h3>
97
+ <pre class="programlisting">typedef struct _cairo_region cairo_region_t;
98
+ </pre>
99
+ <p>
100
+ A <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> represents a set of integer-aligned rectangles.
101
+ </p>
102
+ <p>
103
+ It allows set-theoretical operations like <a class="link" href="cairo-Regions.html#cairo-region-union" title="cairo_region_union ()"><code class="function">cairo_region_union()</code></a> and
104
+ <a class="link" href="cairo-Regions.html#cairo-region-intersect" title="cairo_region_intersect ()"><code class="function">cairo_region_intersect()</code></a> to be performed on them.
105
+ </p>
106
+ <p>
107
+ Memory management of <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> is done with
108
+ <a class="link" href="cairo-Regions.html#cairo-region-reference" title="cairo_region_reference ()"><code class="function">cairo_region_reference()</code></a> and <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()"><code class="function">cairo_region_destroy()</code></a>.
109
+ </p>
110
+ <p class="since">Since 1.10</p>
111
+ </div>
112
+ <hr>
113
+ <div class="refsect2" title="cairo_region_create ()">
114
+ <a name="cairo-region-create"></a><h3>cairo_region_create ()</h3>
115
+ <pre class="programlisting"><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * cairo_region_create (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
116
+ <p>
117
+ Allocates a new empty region object.
118
+ </p>
119
+ <div class="variablelist"><table border="0">
120
+ <col align="left" valign="top">
121
+ <tbody><tr>
122
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
123
+ <td> A newly allocated <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>. Free with
124
+ <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()"><code class="function">cairo_region_destroy()</code></a>. This function always returns a
125
+ valid pointer; if memory cannot be allocated, then a special
126
+ error object is returned where all operations on the object do nothing.
127
+ You can check for this with <a class="link" href="cairo-Regions.html#cairo-region-status" title="cairo_region_status ()"><code class="function">cairo_region_status()</code></a>.
128
+
129
+ </td>
130
+ </tr></tbody>
131
+ </table></div>
132
+ <p class="since">Since 1.10</p>
133
+ </div>
134
+ <hr>
135
+ <div class="refsect2" title="cairo_region_create_rectangle ()">
136
+ <a name="cairo-region-create-rectangle"></a><h3>cairo_region_create_rectangle ()</h3>
137
+ <pre class="programlisting"><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * cairo_region_create_rectangle (<em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
138
+ <p>
139
+ Allocates a new region object containing <em class="parameter"><code>rectangle</code></em>.
140
+ </p>
141
+ <div class="variablelist"><table border="0">
142
+ <col align="left" valign="top">
143
+ <tbody>
144
+ <tr>
145
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
146
+ <td>a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
147
+ </td>
148
+ </tr>
149
+ <tr>
150
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
151
+ <td> A newly allocated <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>. Free with
152
+ <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()"><code class="function">cairo_region_destroy()</code></a>. This function always returns a
153
+ valid pointer; if memory cannot be allocated, then a special
154
+ error object is returned where all operations on the object do nothing.
155
+ You can check for this with <a class="link" href="cairo-Regions.html#cairo-region-status" title="cairo_region_status ()"><code class="function">cairo_region_status()</code></a>.
156
+
157
+ </td>
158
+ </tr>
159
+ </tbody>
160
+ </table></div>
161
+ <p class="since">Since 1.10</p>
162
+ </div>
163
+ <hr>
164
+ <div class="refsect2" title="cairo_region_create_rectangles ()">
165
+ <a name="cairo-region-create-rectangles"></a><h3>cairo_region_create_rectangles ()</h3>
166
+ <pre class="programlisting"><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * cairo_region_create_rectangles (<em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rects</code></em>,
167
+ <em class="parameter"><code><span class="type">int</span> count</code></em>);</pre>
168
+ <p>
169
+ Allocates a new region object containing the union of all given <em class="parameter"><code>rects</code></em>.
170
+ </p>
171
+ <div class="variablelist"><table border="0">
172
+ <col align="left" valign="top">
173
+ <tbody>
174
+ <tr>
175
+ <td><p><span class="term"><em class="parameter"><code>rects</code></em> :</span></p></td>
176
+ <td>an array of <em class="parameter"><code>count</code></em> rectangles
177
+ </td>
178
+ </tr>
179
+ <tr>
180
+ <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
181
+ <td>number of rectangles
182
+ </td>
183
+ </tr>
184
+ <tr>
185
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
186
+ <td> A newly allocated <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>. Free with
187
+ <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()"><code class="function">cairo_region_destroy()</code></a>. This function always returns a
188
+ valid pointer; if memory cannot be allocated, then a special
189
+ error object is returned where all operations on the object do nothing.
190
+ You can check for this with <a class="link" href="cairo-Regions.html#cairo-region-status" title="cairo_region_status ()"><code class="function">cairo_region_status()</code></a>.
191
+
192
+ </td>
193
+ </tr>
194
+ </tbody>
195
+ </table></div>
196
+ <p class="since">Since 1.10</p>
197
+ </div>
198
+ <hr>
199
+ <div class="refsect2" title="cairo_region_copy ()">
200
+ <a name="cairo-region-copy"></a><h3>cairo_region_copy ()</h3>
201
+ <pre class="programlisting"><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * cairo_region_copy (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *original</code></em>);</pre>
202
+ <p>
203
+ Allocates a new region object copying the area from <em class="parameter"><code>original</code></em>.
204
+ </p>
205
+ <div class="variablelist"><table border="0">
206
+ <col align="left" valign="top">
207
+ <tbody>
208
+ <tr>
209
+ <td><p><span class="term"><em class="parameter"><code>original</code></em> :</span></p></td>
210
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
211
+ </td>
212
+ </tr>
213
+ <tr>
214
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
215
+ <td> A newly allocated <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>. Free with
216
+ <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()"><code class="function">cairo_region_destroy()</code></a>. This function always returns a
217
+ valid pointer; if memory cannot be allocated, then a special
218
+ error object is returned where all operations on the object do nothing.
219
+ You can check for this with <a class="link" href="cairo-Regions.html#cairo-region-status" title="cairo_region_status ()"><code class="function">cairo_region_status()</code></a>.
220
+
221
+ </td>
222
+ </tr>
223
+ </tbody>
224
+ </table></div>
225
+ <p class="since">Since 1.10</p>
226
+ </div>
227
+ <hr>
228
+ <div class="refsect2" title="cairo_region_reference ()">
229
+ <a name="cairo-region-reference"></a><h3>cairo_region_reference ()</h3>
230
+ <pre class="programlisting"><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="returnvalue">cairo_region_t</span></a> * cairo_region_reference (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);</pre>
231
+ <p>
232
+ Increases the reference count on <em class="parameter"><code>region</code></em> by one. This prevents
233
+ <em class="parameter"><code>region</code></em> from being destroyed until a matching call to
234
+ <a class="link" href="cairo-Regions.html#cairo-region-destroy" title="cairo_region_destroy ()"><code class="function">cairo_region_destroy()</code></a> is made.
235
+ </p>
236
+ <div class="variablelist"><table border="0">
237
+ <col align="left" valign="top">
238
+ <tbody>
239
+ <tr>
240
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
241
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
242
+ </td>
243
+ </tr>
244
+ <tr>
245
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
246
+ <td> the referenced <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>.
247
+
248
+ </td>
249
+ </tr>
250
+ </tbody>
251
+ </table></div>
252
+ <p class="since">Since 1.10</p>
253
+ </div>
254
+ <hr>
255
+ <div class="refsect2" title="cairo_region_destroy ()">
256
+ <a name="cairo-region-destroy"></a><h3>cairo_region_destroy ()</h3>
257
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_region_destroy (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);</pre>
258
+ <p>
259
+ Destroys a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> object created with
260
+ <a class="link" href="cairo-Regions.html#cairo-region-create" title="cairo_region_create ()"><code class="function">cairo_region_create()</code></a>, <a class="link" href="cairo-Regions.html#cairo-region-copy" title="cairo_region_copy ()"><code class="function">cairo_region_copy()</code></a>, or
261
+ or <a class="link" href="cairo-Regions.html#cairo-region-create-rectangle" title="cairo_region_create_rectangle ()"><code class="function">cairo_region_create_rectangle()</code></a>.
262
+ </p>
263
+ <div class="variablelist"><table border="0">
264
+ <col align="left" valign="top">
265
+ <tbody><tr>
266
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
267
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
268
+ </td>
269
+ </tr></tbody>
270
+ </table></div>
271
+ <p class="since">Since 1.10</p>
272
+ </div>
273
+ <hr>
274
+ <div class="refsect2" title="cairo_region_status ()">
275
+ <a name="cairo-region-status"></a><h3>cairo_region_status ()</h3>
276
+ <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_region_status (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);</pre>
277
+ <p>
278
+ Checks whether an error has previous occured for this
279
+ region object.
280
+ </p>
281
+ <div class="variablelist"><table border="0">
282
+ <col align="left" valign="top">
283
+ <tbody>
284
+ <tr>
285
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
286
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
287
+ </td>
288
+ </tr>
289
+ <tr>
290
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
291
+ <td> <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>
292
+
293
+ </td>
294
+ </tr>
295
+ </tbody>
296
+ </table></div>
297
+ <p class="since">Since 1.10</p>
298
+ </div>
299
+ <hr>
300
+ <div class="refsect2" title="cairo_region_get_extents ()">
301
+ <a name="cairo-region-get-extents"></a><h3>cairo_region_get_extents ()</h3>
302
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_region_get_extents (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
303
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *extents</code></em>);</pre>
304
+ <p>
305
+ Gets the bounding rectangle of <em class="parameter"><code>region</code></em> as a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
306
+ </p>
307
+ <div class="variablelist"><table border="0">
308
+ <col align="left" valign="top">
309
+ <tbody>
310
+ <tr>
311
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
312
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
313
+ </td>
314
+ </tr>
315
+ <tr>
316
+ <td><p><span class="term"><em class="parameter"><code>extents</code></em> :</span></p></td>
317
+ <td>rectangle into which to store the extents
318
+ </td>
319
+ </tr>
320
+ </tbody>
321
+ </table></div>
322
+ <p class="since">Since 1.10</p>
323
+ </div>
324
+ <hr>
325
+ <div class="refsect2" title="cairo_region_num_rectangles ()">
326
+ <a name="cairo-region-num-rectangles"></a><h3>cairo_region_num_rectangles ()</h3>
327
+ <pre class="programlisting"><span class="returnvalue">int</span> cairo_region_num_rectangles (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);</pre>
328
+ <p>
329
+ Returns the number of rectangles contained in <em class="parameter"><code>region</code></em>.
330
+ </p>
331
+ <div class="variablelist"><table border="0">
332
+ <col align="left" valign="top">
333
+ <tbody>
334
+ <tr>
335
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
336
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
337
+ </td>
338
+ </tr>
339
+ <tr>
340
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
341
+ <td> The number of rectangles contained in <em class="parameter"><code>region</code></em>.
342
+
343
+ </td>
344
+ </tr>
345
+ </tbody>
346
+ </table></div>
347
+ <p class="since">Since 1.10</p>
348
+ </div>
349
+ <hr>
350
+ <div class="refsect2" title="cairo_region_get_rectangle ()">
351
+ <a name="cairo-region-get-rectangle"></a><h3>cairo_region_get_rectangle ()</h3>
352
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_region_get_rectangle (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
353
+ <em class="parameter"><code><span class="type">int</span> nth</code></em>,
354
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
355
+ <p>
356
+ Stores the <em class="parameter"><code>nth</code></em> rectangle from the region in <em class="parameter"><code>rectangle</code></em>.
357
+ </p>
358
+ <div class="variablelist"><table border="0">
359
+ <col align="left" valign="top">
360
+ <tbody>
361
+ <tr>
362
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
363
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
364
+ </td>
365
+ </tr>
366
+ <tr>
367
+ <td><p><span class="term"><em class="parameter"><code>nth</code></em> :</span></p></td>
368
+ <td>a number indicating which rectangle should be returned
369
+ </td>
370
+ </tr>
371
+ <tr>
372
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
373
+ <td>return location for a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
374
+ </td>
375
+ </tr>
376
+ </tbody>
377
+ </table></div>
378
+ <p class="since">Since 1.10</p>
379
+ </div>
380
+ <hr>
381
+ <div class="refsect2" title="cairo_region_is_empty ()">
382
+ <a name="cairo-region-is-empty"></a><h3>cairo_region_is_empty ()</h3>
383
+ <pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> cairo_region_is_empty (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>);</pre>
384
+ <p>
385
+ Checks whether <em class="parameter"><code>region</code></em> is empty.
386
+ </p>
387
+ <div class="variablelist"><table border="0">
388
+ <col align="left" valign="top">
389
+ <tbody>
390
+ <tr>
391
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
392
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
393
+ </td>
394
+ </tr>
395
+ <tr>
396
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
397
+ <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if <em class="parameter"><code>region</code></em> is empty, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it isn't.
398
+
399
+ </td>
400
+ </tr>
401
+ </tbody>
402
+ </table></div>
403
+ <p class="since">Since 1.10</p>
404
+ </div>
405
+ <hr>
406
+ <div class="refsect2" title="cairo_region_contains_point ()">
407
+ <a name="cairo-region-contains-point"></a><h3>cairo_region_contains_point ()</h3>
408
+ <pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> cairo_region_contains_point (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
409
+ <em class="parameter"><code><span class="type">int</span> x</code></em>,
410
+ <em class="parameter"><code><span class="type">int</span> y</code></em>);</pre>
411
+ <p>
412
+ Checks whether (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) is contained in <em class="parameter"><code>region</code></em>.
413
+ </p>
414
+ <div class="variablelist"><table border="0">
415
+ <col align="left" valign="top">
416
+ <tbody>
417
+ <tr>
418
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
419
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
420
+ </td>
421
+ </tr>
422
+ <tr>
423
+ <td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
424
+ <td>the x coordinate of a point
425
+ </td>
426
+ </tr>
427
+ <tr>
428
+ <td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
429
+ <td>the y coordinate of a point
430
+ </td>
431
+ </tr>
432
+ <tr>
433
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
434
+ <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if (<em class="parameter"><code>x</code></em>, <em class="parameter"><code>y</code></em>) is contained in <em class="parameter"><code>region</code></em>, <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it is not.
435
+
436
+ </td>
437
+ </tr>
438
+ </tbody>
439
+ </table></div>
440
+ <p class="since">Since 1.10</p>
441
+ </div>
442
+ <hr>
443
+ <div class="refsect2" title="enum cairo_region_overlap_t">
444
+ <a name="cairo-region-overlap-t"></a><h3>enum cairo_region_overlap_t</h3>
445
+ <pre class="programlisting">typedef enum _cairo_region_overlap {
446
+ CAIRO_REGION_OVERLAP_IN, /* completely inside region */
447
+ CAIRO_REGION_OVERLAP_OUT, /* completely outside region */
448
+ CAIRO_REGION_OVERLAP_PART /* partly inside region */
449
+ } cairo_region_overlap_t;
450
+ </pre>
451
+ <p>
452
+ Used as the return value for <a class="link" href="cairo-Regions.html#cairo-region-contains-rectangle" title="cairo_region_contains_rectangle ()"><code class="function">cairo_region_contains_rectangle()</code></a>.
453
+ </p>
454
+ <div class="variablelist"><table border="0">
455
+ <col align="left" valign="top">
456
+ <tbody>
457
+ <tr>
458
+ <td><p><a name="CAIRO-REGION-OVERLAP-IN:CAPS"></a><span class="term"><code class="literal">CAIRO_REGION_OVERLAP_IN</code></span></p></td>
459
+ <td>The contents are entirely inside the region
460
+ </td>
461
+ </tr>
462
+ <tr>
463
+ <td><p><a name="CAIRO-REGION-OVERLAP-OUT:CAPS"></a><span class="term"><code class="literal">CAIRO_REGION_OVERLAP_OUT</code></span></p></td>
464
+ <td>The contents are entirely outside the region
465
+ </td>
466
+ </tr>
467
+ <tr>
468
+ <td><p><a name="CAIRO-REGION-OVERLAP-PART:CAPS"></a><span class="term"><code class="literal">CAIRO_REGION_OVERLAP_PART</code></span></p></td>
469
+ <td>The contents are partially inside and
470
+ partially outside the region.
471
+ </td>
472
+ </tr>
473
+ </tbody>
474
+ </table></div>
475
+ </div>
476
+ <hr>
477
+ <div class="refsect2" title="cairo_region_contains_rectangle ()">
478
+ <a name="cairo-region-contains-rectangle"></a><h3>cairo_region_contains_rectangle ()</h3>
479
+ <pre class="programlisting"><a class="link" href="cairo-Regions.html#cairo-region-overlap-t" title="enum cairo_region_overlap_t"><span class="returnvalue">cairo_region_overlap_t</span></a> cairo_region_contains_rectangle (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
480
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
481
+ <p>
482
+ Checks whether <em class="parameter"><code>rectangle</code></em> is inside, outside or partially contained
483
+ in <em class="parameter"><code>region</code></em>
484
+ </p>
485
+ <div class="variablelist"><table border="0">
486
+ <col align="left" valign="top">
487
+ <tbody>
488
+ <tr>
489
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
490
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
491
+ </td>
492
+ </tr>
493
+ <tr>
494
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
495
+ <td>a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
496
+ </td>
497
+ </tr>
498
+ <tr>
499
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
500
+ <td>
501
+ <a class="link" href="cairo-Regions.html#CAIRO-REGION-OVERLAP-IN:CAPS"><code class="literal">CAIRO_REGION_OVERLAP_IN</code></a> if <em class="parameter"><code>rectangle</code></em> is entirely inside <em class="parameter"><code>region</code></em>,
502
+ <a class="link" href="cairo-Regions.html#CAIRO-REGION-OVERLAP-OUT:CAPS"><code class="literal">CAIRO_REGION_OVERLAP_OUT</code></a> if <em class="parameter"><code>rectangle</code></em> is entirely outside <em class="parameter"><code>region</code></em>, or
503
+ <a class="link" href="cairo-Regions.html#CAIRO-REGION-OVERLAP-PART:CAPS"><code class="literal">CAIRO_REGION_OVERLAP_PART</code></a> if <em class="parameter"><code>rectangle</code></em> is partially inside and partially outside <em class="parameter"><code>region</code></em>.
504
+
505
+ </td>
506
+ </tr>
507
+ </tbody>
508
+ </table></div>
509
+ <p class="since">Since 1.10</p>
510
+ </div>
511
+ <hr>
512
+ <div class="refsect2" title="cairo_region_equal ()">
513
+ <a name="cairo-region-equal"></a><h3>cairo_region_equal ()</h3>
514
+ <pre class="programlisting"><a class="link" href="cairo-Types.html#cairo-bool-t" title="cairo_bool_t"><span class="returnvalue">cairo_bool_t</span></a> cairo_region_equal (<em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *a</code></em>,
515
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *b</code></em>);</pre>
516
+ <p>
517
+ Compares whether region_a is equivalent to region_b. <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> as an argument
518
+ is equal to itself, but not to any non-<a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> region.
519
+ </p>
520
+ <div class="variablelist"><table border="0">
521
+ <col align="left" valign="top">
522
+ <tbody>
523
+ <tr>
524
+ <td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
525
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
526
+ </td>
527
+ </tr>
528
+ <tr>
529
+ <td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
530
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
531
+ </td>
532
+ </tr>
533
+ <tr>
534
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
535
+ <td> <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> if both regions contained the same coverage,
536
+ <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> if it is not or any region is in an error status.
537
+
538
+ </td>
539
+ </tr>
540
+ </tbody>
541
+ </table></div>
542
+ <p class="since">Since 1.10</p>
543
+ </div>
544
+ <hr>
545
+ <div class="refsect2" title="cairo_region_translate ()">
546
+ <a name="cairo-region-translate"></a><h3>cairo_region_translate ()</h3>
547
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_region_translate (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *region</code></em>,
548
+ <em class="parameter"><code><span class="type">int</span> dx</code></em>,
549
+ <em class="parameter"><code><span class="type">int</span> dy</code></em>);</pre>
550
+ <p>
551
+ Translates <em class="parameter"><code>region</code></em> by (<em class="parameter"><code>dx</code></em>, <em class="parameter"><code>dy</code></em>).
552
+ </p>
553
+ <div class="variablelist"><table border="0">
554
+ <col align="left" valign="top">
555
+ <tbody>
556
+ <tr>
557
+ <td><p><span class="term"><em class="parameter"><code>region</code></em> :</span></p></td>
558
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
559
+ </td>
560
+ </tr>
561
+ <tr>
562
+ <td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
563
+ <td>Amount to translate in the x direction
564
+ </td>
565
+ </tr>
566
+ <tr>
567
+ <td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
568
+ <td>Amount to translate in the y direction
569
+ </td>
570
+ </tr>
571
+ </tbody>
572
+ </table></div>
573
+ <p class="since">Since 1.10</p>
574
+ </div>
575
+ <hr>
576
+ <div class="refsect2" title="cairo_region_intersect ()">
577
+ <a name="cairo-region-intersect"></a><h3>cairo_region_intersect ()</h3>
578
+ <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_region_intersect (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
579
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);</pre>
580
+ <p>
581
+ Computes the intersection of <em class="parameter"><code>dst</code></em> with <em class="parameter"><code>other</code></em> and places the result in <em class="parameter"><code>dst</code></em>
582
+ </p>
583
+ <div class="variablelist"><table border="0">
584
+ <col align="left" valign="top">
585
+ <tbody>
586
+ <tr>
587
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
588
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
589
+ </td>
590
+ </tr>
591
+ <tr>
592
+ <td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
593
+ <td>another <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
594
+ </td>
595
+ </tr>
596
+ <tr>
597
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
598
+ <td> <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>
599
+
600
+ </td>
601
+ </tr>
602
+ </tbody>
603
+ </table></div>
604
+ <p class="since">Since 1.10</p>
605
+ </div>
606
+ <hr>
607
+ <div class="refsect2" title="cairo_region_intersect_rectangle ()">
608
+ <a name="cairo-region-intersect-rectangle"></a><h3>cairo_region_intersect_rectangle ()</h3>
609
+ <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_region_intersect_rectangle (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
610
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
611
+ <p>
612
+ Computes the intersection of <em class="parameter"><code>dst</code></em> with <em class="parameter"><code>rectangle</code></em> and places the
613
+ result in <em class="parameter"><code>dst</code></em>
614
+ </p>
615
+ <div class="variablelist"><table border="0">
616
+ <col align="left" valign="top">
617
+ <tbody>
618
+ <tr>
619
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
620
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
621
+ </td>
622
+ </tr>
623
+ <tr>
624
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
625
+ <td>a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
626
+ </td>
627
+ </tr>
628
+ <tr>
629
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
630
+ <td> <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>
631
+
632
+ </td>
633
+ </tr>
634
+ </tbody>
635
+ </table></div>
636
+ <p class="since">Since 1.10</p>
637
+ </div>
638
+ <hr>
639
+ <div class="refsect2" title="cairo_region_subtract ()">
640
+ <a name="cairo-region-subtract"></a><h3>cairo_region_subtract ()</h3>
641
+ <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_region_subtract (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
642
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);</pre>
643
+ <p>
644
+ Subtracts <em class="parameter"><code>other</code></em> from <em class="parameter"><code>dst</code></em> and places the result in <em class="parameter"><code>dst</code></em>
645
+ </p>
646
+ <div class="variablelist"><table border="0">
647
+ <col align="left" valign="top">
648
+ <tbody>
649
+ <tr>
650
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
651
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
652
+ </td>
653
+ </tr>
654
+ <tr>
655
+ <td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
656
+ <td>another <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
657
+ </td>
658
+ </tr>
659
+ <tr>
660
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
661
+ <td> <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>
662
+
663
+ </td>
664
+ </tr>
665
+ </tbody>
666
+ </table></div>
667
+ <p class="since">Since 1.10</p>
668
+ </div>
669
+ <hr>
670
+ <div class="refsect2" title="cairo_region_subtract_rectangle ()">
671
+ <a name="cairo-region-subtract-rectangle"></a><h3>cairo_region_subtract_rectangle ()</h3>
672
+ <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_region_subtract_rectangle (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
673
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
674
+ <p>
675
+ Subtracts <em class="parameter"><code>rectangle</code></em> from <em class="parameter"><code>dst</code></em> and places the result in <em class="parameter"><code>dst</code></em>
676
+ </p>
677
+ <div class="variablelist"><table border="0">
678
+ <col align="left" valign="top">
679
+ <tbody>
680
+ <tr>
681
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
682
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
683
+ </td>
684
+ </tr>
685
+ <tr>
686
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
687
+ <td>a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
688
+ </td>
689
+ </tr>
690
+ <tr>
691
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
692
+ <td> <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>
693
+
694
+ </td>
695
+ </tr>
696
+ </tbody>
697
+ </table></div>
698
+ <p class="since">Since 1.10</p>
699
+ </div>
700
+ <hr>
701
+ <div class="refsect2" title="cairo_region_union ()">
702
+ <a name="cairo-region-union"></a><h3>cairo_region_union ()</h3>
703
+ <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_region_union (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
704
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);</pre>
705
+ <p>
706
+ Computes the union of <em class="parameter"><code>dst</code></em> with <em class="parameter"><code>other</code></em> and places the result in <em class="parameter"><code>dst</code></em>
707
+ </p>
708
+ <div class="variablelist"><table border="0">
709
+ <col align="left" valign="top">
710
+ <tbody>
711
+ <tr>
712
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
713
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
714
+ </td>
715
+ </tr>
716
+ <tr>
717
+ <td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
718
+ <td>another <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
719
+ </td>
720
+ </tr>
721
+ <tr>
722
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
723
+ <td> <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>
724
+
725
+ </td>
726
+ </tr>
727
+ </tbody>
728
+ </table></div>
729
+ <p class="since">Since 1.10</p>
730
+ </div>
731
+ <hr>
732
+ <div class="refsect2" title="cairo_region_union_rectangle ()">
733
+ <a name="cairo-region-union-rectangle"></a><h3>cairo_region_union_rectangle ()</h3>
734
+ <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_region_union_rectangle (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
735
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
736
+ <p>
737
+ Computes the union of <em class="parameter"><code>dst</code></em> with <em class="parameter"><code>rectangle</code></em> and places the result in <em class="parameter"><code>dst</code></em>.
738
+ </p>
739
+ <div class="variablelist"><table border="0">
740
+ <col align="left" valign="top">
741
+ <tbody>
742
+ <tr>
743
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
744
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
745
+ </td>
746
+ </tr>
747
+ <tr>
748
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
749
+ <td>a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
750
+ </td>
751
+ </tr>
752
+ <tr>
753
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
754
+ <td> <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>
755
+
756
+ </td>
757
+ </tr>
758
+ </tbody>
759
+ </table></div>
760
+ <p class="since">Since 1.10</p>
761
+ </div>
762
+ <hr>
763
+ <div class="refsect2" title="cairo_region_xor ()">
764
+ <a name="cairo-region-xor"></a><h3>cairo_region_xor ()</h3>
765
+ <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_region_xor (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
766
+ <em class="parameter"><code>const <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *other</code></em>);</pre>
767
+ <p>
768
+ Computes the exclusive difference of <em class="parameter"><code>dst</code></em> with <em class="parameter"><code>other</code></em> and places the
769
+ result in <em class="parameter"><code>dst</code></em>. That is, <em class="parameter"><code>dst</code></em> will be set to contain all areas that
770
+ are either in <em class="parameter"><code>dst</code></em> or in <em class="parameter"><code>other</code></em>, but not in both.
771
+ </p>
772
+ <div class="variablelist"><table border="0">
773
+ <col align="left" valign="top">
774
+ <tbody>
775
+ <tr>
776
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
777
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
778
+ </td>
779
+ </tr>
780
+ <tr>
781
+ <td><p><span class="term"><em class="parameter"><code>other</code></em> :</span></p></td>
782
+ <td>another <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
783
+ </td>
784
+ </tr>
785
+ <tr>
786
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
787
+ <td> <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>
788
+
789
+ </td>
790
+ </tr>
791
+ </tbody>
792
+ </table></div>
793
+ <p class="since">Since 1.10</p>
794
+ </div>
795
+ <hr>
796
+ <div class="refsect2" title="cairo_region_xor_rectangle ()">
797
+ <a name="cairo-region-xor-rectangle"></a><h3>cairo_region_xor_rectangle ()</h3>
798
+ <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_region_xor_rectangle (<em class="parameter"><code><a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a> *dst</code></em>,
799
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a> *rectangle</code></em>);</pre>
800
+ <p>
801
+ Computes the exclusive difference of <em class="parameter"><code>dst</code></em> with <em class="parameter"><code>rectangle</code></em> and places the
802
+ result in <em class="parameter"><code>dst</code></em>. That is, <em class="parameter"><code>dst</code></em> will be set to contain all areas that are
803
+ either in <em class="parameter"><code>dst</code></em> or in <em class="parameter"><code>rectangle</code></em>, but not in both.
804
+ </p>
805
+ <div class="variablelist"><table border="0">
806
+ <col align="left" valign="top">
807
+ <tbody>
808
+ <tr>
809
+ <td><p><span class="term"><em class="parameter"><code>dst</code></em> :</span></p></td>
810
+ <td>a <a class="link" href="cairo-Regions.html#cairo-region-t" title="cairo_region_t"><span class="type">cairo_region_t</span></a>
811
+ </td>
812
+ </tr>
813
+ <tr>
814
+ <td><p><span class="term"><em class="parameter"><code>rectangle</code></em> :</span></p></td>
815
+ <td>a <a class="link" href="cairo-Types.html#cairo-rectangle-int-t" title="cairo_rectangle_int_t"><span class="type">cairo_rectangle_int_t</span></a>
816
+ </td>
817
+ </tr>
818
+ <tr>
819
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
820
+ <td> <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>
821
+
822
+ </td>
823
+ </tr>
824
+ </tbody>
825
+ </table></div>
826
+ <p class="since">Since 1.10</p>
827
+ </div>
828
+ </div>
829
+ </div>
830
+ <div class="footer">
831
+ <hr>
832
+ Generated by GTK-Doc V1.15</div>
833
+ </body>
834
+ </html>