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,1457 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>cairo_pattern_t</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-Paths.html" title="Paths">
10
+ <link rel="next" href="cairo-Regions.html" title="Regions">
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-Paths.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-Regions.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
22
+ </tr>
23
+ <tr><td colspan="5" class="shortcuts">
24
+ <a href="#cairo-cairo-pattern-t.synopsis" class="shortcut">Top</a>
25
+  | 
26
+ <a href="#cairo-cairo-pattern-t.description" class="shortcut">Description</a>
27
+ </td></tr>
28
+ </table>
29
+ <div class="refentry" title="cairo_pattern_t">
30
+ <a name="cairo-cairo-pattern-t"></a><div class="titlepage"></div>
31
+ <div class="refnamediv"><table width="100%"><tr>
32
+ <td valign="top">
33
+ <h2><span class="refentrytitle"><a name="cairo-cairo-pattern-t.top_of_page"></a>cairo_pattern_t</span></h2>
34
+ <p>cairo_pattern_t — Sources for drawing</p>
35
+ </td>
36
+ <td valign="top" align="right"></td>
37
+ </tr></table></div>
38
+ <div class="refsynopsisdiv" title="Synopsis">
39
+ <a name="cairo-cairo-pattern-t.synopsis"></a><h2>Synopsis</h2>
40
+ <pre class="synopsis">typedef <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a>;
41
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgb" title="cairo_pattern_add_color_stop_rgb ()">cairo_pattern_add_color_stop_rgb</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
42
+ <em class="parameter"><code><span class="type">double</span> offset</code></em>,
43
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
44
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
45
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>);
46
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba" title="cairo_pattern_add_color_stop_rgba ()">cairo_pattern_add_color_stop_rgba</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
47
+ <em class="parameter"><code><span class="type">double</span> offset</code></em>,
48
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
49
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
50
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>,
51
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);
52
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-color-stop-count" title="cairo_pattern_get_color_stop_count ()">cairo_pattern_get_color_stop_count</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
53
+ <em class="parameter"><code><span class="type">int</span> *count</code></em>);
54
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-color-stop-rgba" title="cairo_pattern_get_color_stop_rgba ()">cairo_pattern_get_color_stop_rgba</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
55
+ <em class="parameter"><code><span class="type">int</span> index</code></em>,
56
+ <em class="parameter"><code><span class="type">double</span> *offset</code></em>,
57
+ <em class="parameter"><code><span class="type">double</span> *red</code></em>,
58
+ <em class="parameter"><code><span class="type">double</span> *green</code></em>,
59
+ <em class="parameter"><code><span class="type">double</span> *blue</code></em>,
60
+ <em class="parameter"><code><span class="type">double</span> *alpha</code></em>);
61
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-rgb" title="cairo_pattern_create_rgb ()">cairo_pattern_create_rgb</a> (<em class="parameter"><code><span class="type">double</span> red</code></em>,
62
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
63
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>);
64
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-rgba" title="cairo_pattern_create_rgba ()">cairo_pattern_create_rgba</a> (<em class="parameter"><code><span class="type">double</span> red</code></em>,
65
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
66
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>,
67
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);
68
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-rgba" title="cairo_pattern_get_rgba ()">cairo_pattern_get_rgba</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
69
+ <em class="parameter"><code><span class="type">double</span> *red</code></em>,
70
+ <em class="parameter"><code><span class="type">double</span> *green</code></em>,
71
+ <em class="parameter"><code><span class="type">double</span> *blue</code></em>,
72
+ <em class="parameter"><code><span class="type">double</span> *alpha</code></em>);
73
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-for-surface" title="cairo_pattern_create_for_surface ()">cairo_pattern_create_for_surface</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>);
74
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-surface" title="cairo_pattern_get_surface ()">cairo_pattern_get_surface</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
75
+ <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>);
76
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-linear" title="cairo_pattern_create_linear ()">cairo_pattern_create_linear</a> (<em class="parameter"><code><span class="type">double</span> x0</code></em>,
77
+ <em class="parameter"><code><span class="type">double</span> y0</code></em>,
78
+ <em class="parameter"><code><span class="type">double</span> x1</code></em>,
79
+ <em class="parameter"><code><span class="type">double</span> y1</code></em>);
80
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-linear-points" title="cairo_pattern_get_linear_points ()">cairo_pattern_get_linear_points</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
81
+ <em class="parameter"><code><span class="type">double</span> *x0</code></em>,
82
+ <em class="parameter"><code><span class="type">double</span> *y0</code></em>,
83
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
84
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>);
85
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-radial" title="cairo_pattern_create_radial ()">cairo_pattern_create_radial</a> (<em class="parameter"><code><span class="type">double</span> cx0</code></em>,
86
+ <em class="parameter"><code><span class="type">double</span> cy0</code></em>,
87
+ <em class="parameter"><code><span class="type">double</span> radius0</code></em>,
88
+ <em class="parameter"><code><span class="type">double</span> cx1</code></em>,
89
+ <em class="parameter"><code><span class="type">double</span> cy1</code></em>,
90
+ <em class="parameter"><code><span class="type">double</span> radius1</code></em>);
91
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-radial-circles" title="cairo_pattern_get_radial_circles ()">cairo_pattern_get_radial_circles</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
92
+ <em class="parameter"><code><span class="type">double</span> *x0</code></em>,
93
+ <em class="parameter"><code><span class="type">double</span> *y0</code></em>,
94
+ <em class="parameter"><code><span class="type">double</span> *r0</code></em>,
95
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
96
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
97
+ <em class="parameter"><code><span class="type">double</span> *r1</code></em>);
98
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-reference" title="cairo_pattern_reference ()">cairo_pattern_reference</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
99
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()">cairo_pattern_destroy</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
100
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-status" title="cairo_pattern_status ()">cairo_pattern_status</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
101
+ enum <a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t">cairo_extend_t</a>;
102
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-extend" title="cairo_pattern_set_extend ()">cairo_pattern_set_extend</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
103
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a> extend</code></em>);
104
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="returnvalue">cairo_extend_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-extend" title="cairo_pattern_get_extend ()">cairo_pattern_get_extend</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
105
+ enum <a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t">cairo_filter_t</a>;
106
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-filter" title="cairo_pattern_set_filter ()">cairo_pattern_set_filter</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
107
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a> filter</code></em>);
108
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="returnvalue">cairo_filter_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-filter" title="cairo_pattern_get_filter ()">cairo_pattern_get_filter</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
109
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-matrix" title="cairo_pattern_set_matrix ()">cairo_pattern_set_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
110
+ <em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
111
+ <span class="returnvalue">void</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-matrix" title="cairo_pattern_get_matrix ()">cairo_pattern_get_matrix</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
112
+ <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);
113
+ enum <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t">cairo_pattern_type_t</a>;
114
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t"><span class="returnvalue">cairo_pattern_type_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-type" title="cairo_pattern_get_type ()">cairo_pattern_get_type</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
115
+ unsigned <span class="returnvalue">int</span> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-reference-count" title="cairo_pattern_get_reference_count ()">cairo_pattern_get_reference_count</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);
116
+ <a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a> <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-user-data" title="cairo_pattern_set_user_data ()">cairo_pattern_set_user_data</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
117
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>,
118
+ <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
119
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> destroy</code></em>);
120
+ <span class="returnvalue">void</span> * <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-user-data" title="cairo_pattern_get_user_data ()">cairo_pattern_get_user_data</a> (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
121
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>);
122
+ </pre>
123
+ </div>
124
+ <div class="refsect1" title="Description">
125
+ <a name="cairo-cairo-pattern-t.description"></a><h2>Description</h2>
126
+ <p>
127
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> is the paint with which cairo draws.
128
+ The primary use of patterns is as the source for all cairo drawing
129
+ operations, although they can also be used as masks, that is, as the
130
+ brush too.
131
+ </p>
132
+ <p>
133
+ A cairo pattern is created by using one of the many constructors,
134
+ of the form cairo_pattern_create_<span class="emphasis"><em>type</em></span>()
135
+ or implicitly through
136
+ cairo_set_source_<span class="emphasis"><em>type</em></span>() functions.
137
+ </p>
138
+ </div>
139
+ <div class="refsect1" title="Details">
140
+ <a name="cairo-cairo-pattern-t.details"></a><h2>Details</h2>
141
+ <div class="refsect2" title="cairo_pattern_t">
142
+ <a name="cairo-pattern-t"></a><h3>cairo_pattern_t</h3>
143
+ <pre class="programlisting">typedef struct _cairo_pattern cairo_pattern_t;
144
+ </pre>
145
+ <p>
146
+ A <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> represents a source when drawing onto a
147
+ surface. There are different subtypes of <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>,
148
+ for different types of sources; for example,
149
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-rgb" title="cairo_pattern_create_rgb ()"><code class="function">cairo_pattern_create_rgb()</code></a> creates a pattern for a solid
150
+ opaque color.
151
+ </p>
152
+ <p>
153
+ Other than various cairo_pattern_create_<span class="emphasis"><em>type</em></span>()
154
+ functions, some of the pattern types can be implicitly created
155
+ using various cairo_set_source_<span class="emphasis"><em>type</em></span>() functions;
156
+ for example <a class="link" href="cairo-cairo-t.html#cairo-set-source-rgb" title="cairo_set_source_rgb ()"><code class="function">cairo_set_source_rgb()</code></a>.
157
+ </p>
158
+ <p>
159
+ The type of a pattern can be queried with <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-type" title="cairo_pattern_get_type ()"><code class="function">cairo_pattern_get_type()</code></a>.
160
+ </p>
161
+ <p>
162
+ Memory management of <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> is done with
163
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-reference" title="cairo_pattern_reference ()"><code class="function">cairo_pattern_reference()</code></a> and <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a>.
164
+ </p>
165
+ </div>
166
+ <hr>
167
+ <div class="refsect2" title="cairo_pattern_add_color_stop_rgb ()">
168
+ <a name="cairo-pattern-add-color-stop-rgb"></a><h3>cairo_pattern_add_color_stop_rgb ()</h3>
169
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_add_color_stop_rgb (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
170
+ <em class="parameter"><code><span class="type">double</span> offset</code></em>,
171
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
172
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
173
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>);</pre>
174
+ <p>
175
+ Adds an opaque color stop to a gradient pattern. The offset
176
+ specifies the location along the gradient's control vector. For
177
+ example, a linear gradient's control vector is from (x0,y0) to
178
+ (x1,y1) while a radial gradient's control vector is from any point
179
+ on the start circle to the corresponding point on the end circle.
180
+ </p>
181
+ <p>
182
+ The color is specified in the same way as in <a class="link" href="cairo-cairo-t.html#cairo-set-source-rgb" title="cairo_set_source_rgb ()"><code class="function">cairo_set_source_rgb()</code></a>.
183
+ </p>
184
+ <p>
185
+ If two (or more) stops are specified with identical offset values,
186
+ they will be sorted according to the order in which the stops are
187
+ added, (stops added earlier will compare less than stops added
188
+ later). This can be useful for reliably making sharp color
189
+ transitions instead of the typical blend.
190
+ </p>
191
+ <p>
192
+ Note: If the pattern is not a gradient pattern, (eg. a linear or
193
+ radial pattern), then the pattern will be put into an error status
194
+ with a status of <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a>.
195
+ </p>
196
+ <div class="variablelist"><table border="0">
197
+ <col align="left" valign="top">
198
+ <tbody>
199
+ <tr>
200
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
201
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
202
+ </td>
203
+ </tr>
204
+ <tr>
205
+ <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
206
+ <td>an offset in the range [0.0 .. 1.0]
207
+ </td>
208
+ </tr>
209
+ <tr>
210
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
211
+ <td>red component of color
212
+ </td>
213
+ </tr>
214
+ <tr>
215
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
216
+ <td>green component of color
217
+ </td>
218
+ </tr>
219
+ <tr>
220
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
221
+ <td>blue component of color
222
+ </td>
223
+ </tr>
224
+ </tbody>
225
+ </table></div>
226
+ </div>
227
+ <hr>
228
+ <div class="refsect2" title="cairo_pattern_add_color_stop_rgba ()">
229
+ <a name="cairo-pattern-add-color-stop-rgba"></a><h3>cairo_pattern_add_color_stop_rgba ()</h3>
230
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_add_color_stop_rgba (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
231
+ <em class="parameter"><code><span class="type">double</span> offset</code></em>,
232
+ <em class="parameter"><code><span class="type">double</span> red</code></em>,
233
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
234
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>,
235
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);</pre>
236
+ <p>
237
+ Adds a translucent color stop to a gradient pattern. The offset
238
+ specifies the location along the gradient's control vector. For
239
+ example, a linear gradient's control vector is from (x0,y0) to
240
+ (x1,y1) while a radial gradient's control vector is from any point
241
+ on the start circle to the corresponding point on the end circle.
242
+ </p>
243
+ <p>
244
+ The color is specified in the same way as in <a class="link" href="cairo-cairo-t.html#cairo-set-source-rgba" title="cairo_set_source_rgba ()"><code class="function">cairo_set_source_rgba()</code></a>.
245
+ </p>
246
+ <p>
247
+ If two (or more) stops are specified with identical offset values,
248
+ they will be sorted according to the order in which the stops are
249
+ added, (stops added earlier will compare less than stops added
250
+ later). This can be useful for reliably making sharp color
251
+ transitions instead of the typical blend.
252
+ </p>
253
+ <p>
254
+ Note: If the pattern is not a gradient pattern, (eg. a linear or
255
+ radial pattern), then the pattern will be put into an error status
256
+ with a status of <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a>.
257
+ </p>
258
+ <div class="variablelist"><table border="0">
259
+ <col align="left" valign="top">
260
+ <tbody>
261
+ <tr>
262
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
263
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
264
+ </td>
265
+ </tr>
266
+ <tr>
267
+ <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
268
+ <td>an offset in the range [0.0 .. 1.0]
269
+ </td>
270
+ </tr>
271
+ <tr>
272
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
273
+ <td>red component of color
274
+ </td>
275
+ </tr>
276
+ <tr>
277
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
278
+ <td>green component of color
279
+ </td>
280
+ </tr>
281
+ <tr>
282
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
283
+ <td>blue component of color
284
+ </td>
285
+ </tr>
286
+ <tr>
287
+ <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
288
+ <td>alpha component of color
289
+ </td>
290
+ </tr>
291
+ </tbody>
292
+ </table></div>
293
+ </div>
294
+ <hr>
295
+ <div class="refsect2" title="cairo_pattern_get_color_stop_count ()">
296
+ <a name="cairo-pattern-get-color-stop-count"></a><h3>cairo_pattern_get_color_stop_count ()</h3>
297
+ <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_pattern_get_color_stop_count (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
298
+ <em class="parameter"><code><span class="type">int</span> *count</code></em>);</pre>
299
+ <p>
300
+ Gets the number of color stops specified in the given gradient
301
+ pattern.
302
+ </p>
303
+ <div class="variablelist"><table border="0">
304
+ <col align="left" valign="top">
305
+ <tbody>
306
+ <tr>
307
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
308
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
309
+ </td>
310
+ </tr>
311
+ <tr>
312
+ <td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
313
+ <td>return value for the number of color stops, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
314
+ </td>
315
+ </tr>
316
+ <tr>
317
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
318
+ <td> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
319
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if <em class="parameter"><code>pattern</code></em> is not a gradient
320
+ pattern.
321
+
322
+ </td>
323
+ </tr>
324
+ </tbody>
325
+ </table></div>
326
+ <p class="since">Since 1.4</p>
327
+ </div>
328
+ <hr>
329
+ <div class="refsect2" title="cairo_pattern_get_color_stop_rgba ()">
330
+ <a name="cairo-pattern-get-color-stop-rgba"></a><h3>cairo_pattern_get_color_stop_rgba ()</h3>
331
+ <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_pattern_get_color_stop_rgba (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
332
+ <em class="parameter"><code><span class="type">int</span> index</code></em>,
333
+ <em class="parameter"><code><span class="type">double</span> *offset</code></em>,
334
+ <em class="parameter"><code><span class="type">double</span> *red</code></em>,
335
+ <em class="parameter"><code><span class="type">double</span> *green</code></em>,
336
+ <em class="parameter"><code><span class="type">double</span> *blue</code></em>,
337
+ <em class="parameter"><code><span class="type">double</span> *alpha</code></em>);</pre>
338
+ <p>
339
+ Gets the color and offset information at the given <em class="parameter"><code>index</code></em> for a
340
+ gradient pattern. Values of <em class="parameter"><code>index</code></em> are 0 to 1 less than the number
341
+ returned by <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-color-stop-count" title="cairo_pattern_get_color_stop_count ()"><code class="function">cairo_pattern_get_color_stop_count()</code></a>.
342
+ </p>
343
+ <div class="variablelist"><table border="0">
344
+ <col align="left" valign="top">
345
+ <tbody>
346
+ <tr>
347
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
348
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
349
+ </td>
350
+ </tr>
351
+ <tr>
352
+ <td><p><span class="term"><em class="parameter"><code>index</code></em> :</span></p></td>
353
+ <td>index of the stop to return data for
354
+ </td>
355
+ </tr>
356
+ <tr>
357
+ <td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
358
+ <td>return value for the offset of the stop, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
359
+ </td>
360
+ </tr>
361
+ <tr>
362
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
363
+ <td>return value for red component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
364
+ </td>
365
+ </tr>
366
+ <tr>
367
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
368
+ <td>return value for green component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
369
+ </td>
370
+ </tr>
371
+ <tr>
372
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
373
+ <td>return value for blue component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
374
+ </td>
375
+ </tr>
376
+ <tr>
377
+ <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
378
+ <td>return value for alpha component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
379
+ </td>
380
+ </tr>
381
+ <tr>
382
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
383
+ <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-INVALID-INDEX:CAPS"><code class="literal">CAIRO_STATUS_INVALID_INDEX</code></a>
384
+ if <em class="parameter"><code>index</code></em> is not valid for the given pattern. If the pattern is
385
+ not a gradient pattern, <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> is
386
+ returned.
387
+
388
+ </td>
389
+ </tr>
390
+ </tbody>
391
+ </table></div>
392
+ <p class="since">Since 1.4</p>
393
+ </div>
394
+ <hr>
395
+ <div class="refsect2" title="cairo_pattern_create_rgb ()">
396
+ <a name="cairo-pattern-create-rgb"></a><h3>cairo_pattern_create_rgb ()</h3>
397
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pattern_create_rgb (<em class="parameter"><code><span class="type">double</span> red</code></em>,
398
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
399
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>);</pre>
400
+ <p>
401
+ Creates a new <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> corresponding to an opaque color. The
402
+ color components are floating point numbers in the range 0 to 1.
403
+ If the values passed in are outside that range, they will be
404
+ clamped.
405
+ </p>
406
+ <div class="variablelist"><table border="0">
407
+ <col align="left" valign="top">
408
+ <tbody>
409
+ <tr>
410
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
411
+ <td>red component of the color
412
+ </td>
413
+ </tr>
414
+ <tr>
415
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
416
+ <td>green component of the color
417
+ </td>
418
+ </tr>
419
+ <tr>
420
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
421
+ <td>blue component of the color
422
+ </td>
423
+ </tr>
424
+ <tr>
425
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
426
+ <td> the newly created <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> if successful, or
427
+ an error pattern in case of no memory. The caller owns the
428
+ returned object and should call <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> when
429
+ finished with it.
430
+
431
+ This function will always return a valid pointer, but if an error
432
+ occurred the pattern status will be set to an error. To inspect
433
+ the status of a pattern use <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-status" title="cairo_pattern_status ()"><code class="function">cairo_pattern_status()</code></a>.
434
+ </td>
435
+ </tr>
436
+ </tbody>
437
+ </table></div>
438
+ </div>
439
+ <hr>
440
+ <div class="refsect2" title="cairo_pattern_create_rgba ()">
441
+ <a name="cairo-pattern-create-rgba"></a><h3>cairo_pattern_create_rgba ()</h3>
442
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pattern_create_rgba (<em class="parameter"><code><span class="type">double</span> red</code></em>,
443
+ <em class="parameter"><code><span class="type">double</span> green</code></em>,
444
+ <em class="parameter"><code><span class="type">double</span> blue</code></em>,
445
+ <em class="parameter"><code><span class="type">double</span> alpha</code></em>);</pre>
446
+ <p>
447
+ Creates a new <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> corresponding to a translucent color.
448
+ The color components are floating point numbers in the range 0 to
449
+ 1. If the values passed in are outside that range, they will be
450
+ clamped.
451
+ </p>
452
+ <div class="variablelist"><table border="0">
453
+ <col align="left" valign="top">
454
+ <tbody>
455
+ <tr>
456
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
457
+ <td>red component of the color
458
+ </td>
459
+ </tr>
460
+ <tr>
461
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
462
+ <td>green component of the color
463
+ </td>
464
+ </tr>
465
+ <tr>
466
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
467
+ <td>blue component of the color
468
+ </td>
469
+ </tr>
470
+ <tr>
471
+ <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
472
+ <td>alpha component of the color
473
+ </td>
474
+ </tr>
475
+ <tr>
476
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
477
+ <td> the newly created <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> if successful, or
478
+ an error pattern in case of no memory. The caller owns the
479
+ returned object and should call <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> when
480
+ finished with it.
481
+
482
+ This function will always return a valid pointer, but if an error
483
+ occurred the pattern status will be set to an error. To inspect
484
+ the status of a pattern use <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-status" title="cairo_pattern_status ()"><code class="function">cairo_pattern_status()</code></a>.
485
+ </td>
486
+ </tr>
487
+ </tbody>
488
+ </table></div>
489
+ </div>
490
+ <hr>
491
+ <div class="refsect2" title="cairo_pattern_get_rgba ()">
492
+ <a name="cairo-pattern-get-rgba"></a><h3>cairo_pattern_get_rgba ()</h3>
493
+ <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_pattern_get_rgba (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
494
+ <em class="parameter"><code><span class="type">double</span> *red</code></em>,
495
+ <em class="parameter"><code><span class="type">double</span> *green</code></em>,
496
+ <em class="parameter"><code><span class="type">double</span> *blue</code></em>,
497
+ <em class="parameter"><code><span class="type">double</span> *alpha</code></em>);</pre>
498
+ <p>
499
+ Gets the solid color for a solid color pattern.
500
+ </p>
501
+ <div class="variablelist"><table border="0">
502
+ <col align="left" valign="top">
503
+ <tbody>
504
+ <tr>
505
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
506
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
507
+ </td>
508
+ </tr>
509
+ <tr>
510
+ <td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
511
+ <td>return value for red component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
512
+ </td>
513
+ </tr>
514
+ <tr>
515
+ <td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
516
+ <td>return value for green component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
517
+ </td>
518
+ </tr>
519
+ <tr>
520
+ <td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
521
+ <td>return value for blue component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
522
+ </td>
523
+ </tr>
524
+ <tr>
525
+ <td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
526
+ <td>return value for alpha component of color, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
527
+ </td>
528
+ </tr>
529
+ <tr>
530
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
531
+ <td> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
532
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if the pattern is not a solid
533
+ color pattern.
534
+
535
+ </td>
536
+ </tr>
537
+ </tbody>
538
+ </table></div>
539
+ <p class="since">Since 1.4</p>
540
+ </div>
541
+ <hr>
542
+ <div class="refsect2" title="cairo_pattern_create_for_surface ()">
543
+ <a name="cairo-pattern-create-for-surface"></a><h3>cairo_pattern_create_for_surface ()</h3>
544
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pattern_create_for_surface (<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>
545
+ <p>
546
+ Create a new <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> for the given surface.
547
+ </p>
548
+ <div class="variablelist"><table border="0">
549
+ <col align="left" valign="top">
550
+ <tbody>
551
+ <tr>
552
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
553
+ <td>the surface
554
+ </td>
555
+ </tr>
556
+ <tr>
557
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
558
+ <td> the newly created <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> if successful, or
559
+ an error pattern in case of no memory. The caller owns the
560
+ returned object and should call <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> when
561
+ finished with it.
562
+
563
+ This function will always return a valid pointer, but if an error
564
+ occurred the pattern status will be set to an error. To inspect
565
+ the status of a pattern use <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-status" title="cairo_pattern_status ()"><code class="function">cairo_pattern_status()</code></a>.
566
+ </td>
567
+ </tr>
568
+ </tbody>
569
+ </table></div>
570
+ </div>
571
+ <hr>
572
+ <div class="refsect2" title="cairo_pattern_get_surface ()">
573
+ <a name="cairo-pattern-get-surface"></a><h3>cairo_pattern_get_surface ()</h3>
574
+ <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_pattern_get_surface (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
575
+ <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>
576
+ <p>
577
+ Gets the surface of a surface pattern. The reference returned in
578
+ <em class="parameter"><code>surface</code></em> is owned by the pattern; the caller should call
579
+ <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a> if the surface is to be retained.
580
+ </p>
581
+ <div class="variablelist"><table border="0">
582
+ <col align="left" valign="top">
583
+ <tbody>
584
+ <tr>
585
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
586
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
587
+ </td>
588
+ </tr>
589
+ <tr>
590
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
591
+ <td>return value for surface of pattern, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
592
+ </td>
593
+ </tr>
594
+ <tr>
595
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
596
+ <td> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
597
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if the pattern is not a surface
598
+ pattern.
599
+
600
+ </td>
601
+ </tr>
602
+ </tbody>
603
+ </table></div>
604
+ <p class="since">Since 1.4</p>
605
+ </div>
606
+ <hr>
607
+ <div class="refsect2" title="cairo_pattern_create_linear ()">
608
+ <a name="cairo-pattern-create-linear"></a><h3>cairo_pattern_create_linear ()</h3>
609
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pattern_create_linear (<em class="parameter"><code><span class="type">double</span> x0</code></em>,
610
+ <em class="parameter"><code><span class="type">double</span> y0</code></em>,
611
+ <em class="parameter"><code><span class="type">double</span> x1</code></em>,
612
+ <em class="parameter"><code><span class="type">double</span> y1</code></em>);</pre>
613
+ <p>
614
+ Create a new linear gradient <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> along the line defined
615
+ by (x0, y0) and (x1, y1). Before using the gradient pattern, a
616
+ number of color stops should be defined using
617
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgb" title="cairo_pattern_add_color_stop_rgb ()"><code class="function">cairo_pattern_add_color_stop_rgb()</code></a> or
618
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba" title="cairo_pattern_add_color_stop_rgba ()"><code class="function">cairo_pattern_add_color_stop_rgba()</code></a>.
619
+ </p>
620
+ <p>
621
+ Note: The coordinates here are in pattern space. For a new pattern,
622
+ pattern space is identical to user space, but the relationship
623
+ between the spaces can be changed with <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-matrix" title="cairo_pattern_set_matrix ()"><code class="function">cairo_pattern_set_matrix()</code></a>.
624
+ </p>
625
+ <div class="variablelist"><table border="0">
626
+ <col align="left" valign="top">
627
+ <tbody>
628
+ <tr>
629
+ <td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
630
+ <td>x coordinate of the start point
631
+ </td>
632
+ </tr>
633
+ <tr>
634
+ <td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
635
+ <td>y coordinate of the start point
636
+ </td>
637
+ </tr>
638
+ <tr>
639
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
640
+ <td>x coordinate of the end point
641
+ </td>
642
+ </tr>
643
+ <tr>
644
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
645
+ <td>y coordinate of the end point
646
+ </td>
647
+ </tr>
648
+ <tr>
649
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
650
+ <td> the newly created <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> if successful, or
651
+ an error pattern in case of no memory. The caller owns the
652
+ returned object and should call <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> when
653
+ finished with it.
654
+
655
+ This function will always return a valid pointer, but if an error
656
+ occurred the pattern status will be set to an error. To inspect
657
+ the status of a pattern use <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-status" title="cairo_pattern_status ()"><code class="function">cairo_pattern_status()</code></a>.
658
+ </td>
659
+ </tr>
660
+ </tbody>
661
+ </table></div>
662
+ </div>
663
+ <hr>
664
+ <div class="refsect2" title="cairo_pattern_get_linear_points ()">
665
+ <a name="cairo-pattern-get-linear-points"></a><h3>cairo_pattern_get_linear_points ()</h3>
666
+ <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_pattern_get_linear_points (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
667
+ <em class="parameter"><code><span class="type">double</span> *x0</code></em>,
668
+ <em class="parameter"><code><span class="type">double</span> *y0</code></em>,
669
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
670
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>);</pre>
671
+ <p>
672
+ Gets the gradient endpoints for a linear gradient.
673
+ </p>
674
+ <div class="variablelist"><table border="0">
675
+ <col align="left" valign="top">
676
+ <tbody>
677
+ <tr>
678
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
679
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
680
+ </td>
681
+ </tr>
682
+ <tr>
683
+ <td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
684
+ <td>return value for the x coordinate of the first point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
685
+ </td>
686
+ </tr>
687
+ <tr>
688
+ <td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
689
+ <td>return value for the y coordinate of the first point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
690
+ </td>
691
+ </tr>
692
+ <tr>
693
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
694
+ <td>return value for the x coordinate of the second point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
695
+ </td>
696
+ </tr>
697
+ <tr>
698
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
699
+ <td>return value for the y coordinate of the second point, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
700
+ </td>
701
+ </tr>
702
+ <tr>
703
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
704
+ <td> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
705
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if <em class="parameter"><code>pattern</code></em> is not a linear
706
+ gradient pattern.
707
+
708
+ </td>
709
+ </tr>
710
+ </tbody>
711
+ </table></div>
712
+ <p class="since">Since 1.4</p>
713
+ </div>
714
+ <hr>
715
+ <div class="refsect2" title="cairo_pattern_create_radial ()">
716
+ <a name="cairo-pattern-create-radial"></a><h3>cairo_pattern_create_radial ()</h3>
717
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pattern_create_radial (<em class="parameter"><code><span class="type">double</span> cx0</code></em>,
718
+ <em class="parameter"><code><span class="type">double</span> cy0</code></em>,
719
+ <em class="parameter"><code><span class="type">double</span> radius0</code></em>,
720
+ <em class="parameter"><code><span class="type">double</span> cx1</code></em>,
721
+ <em class="parameter"><code><span class="type">double</span> cy1</code></em>,
722
+ <em class="parameter"><code><span class="type">double</span> radius1</code></em>);</pre>
723
+ <p>
724
+ Creates a new radial gradient <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> between the two
725
+ circles defined by (cx0, cy0, radius0) and (cx1, cy1, radius1). Before using the
726
+ gradient pattern, a number of color stops should be defined using
727
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgb" title="cairo_pattern_add_color_stop_rgb ()"><code class="function">cairo_pattern_add_color_stop_rgb()</code></a> or
728
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba" title="cairo_pattern_add_color_stop_rgba ()"><code class="function">cairo_pattern_add_color_stop_rgba()</code></a>.
729
+ </p>
730
+ <p>
731
+ Note: The coordinates here are in pattern space. For a new pattern,
732
+ pattern space is identical to user space, but the relationship
733
+ between the spaces can be changed with <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-set-matrix" title="cairo_pattern_set_matrix ()"><code class="function">cairo_pattern_set_matrix()</code></a>.
734
+ </p>
735
+ <div class="variablelist"><table border="0">
736
+ <col align="left" valign="top">
737
+ <tbody>
738
+ <tr>
739
+ <td><p><span class="term"><em class="parameter"><code>cx0</code></em> :</span></p></td>
740
+ <td>x coordinate for the center of the start circle
741
+ </td>
742
+ </tr>
743
+ <tr>
744
+ <td><p><span class="term"><em class="parameter"><code>cy0</code></em> :</span></p></td>
745
+ <td>y coordinate for the center of the start circle
746
+ </td>
747
+ </tr>
748
+ <tr>
749
+ <td><p><span class="term"><em class="parameter"><code>radius0</code></em> :</span></p></td>
750
+ <td>radius of the start circle
751
+ </td>
752
+ </tr>
753
+ <tr>
754
+ <td><p><span class="term"><em class="parameter"><code>cx1</code></em> :</span></p></td>
755
+ <td>x coordinate for the center of the end circle
756
+ </td>
757
+ </tr>
758
+ <tr>
759
+ <td><p><span class="term"><em class="parameter"><code>cy1</code></em> :</span></p></td>
760
+ <td>y coordinate for the center of the end circle
761
+ </td>
762
+ </tr>
763
+ <tr>
764
+ <td><p><span class="term"><em class="parameter"><code>radius1</code></em> :</span></p></td>
765
+ <td>radius of the end circle
766
+ </td>
767
+ </tr>
768
+ <tr>
769
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
770
+ <td> the newly created <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> if successful, or
771
+ an error pattern in case of no memory. The caller owns the
772
+ returned object and should call <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> when
773
+ finished with it.
774
+
775
+ This function will always return a valid pointer, but if an error
776
+ occurred the pattern status will be set to an error. To inspect
777
+ the status of a pattern use <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-status" title="cairo_pattern_status ()"><code class="function">cairo_pattern_status()</code></a>.
778
+ </td>
779
+ </tr>
780
+ </tbody>
781
+ </table></div>
782
+ </div>
783
+ <hr>
784
+ <div class="refsect2" title="cairo_pattern_get_radial_circles ()">
785
+ <a name="cairo-pattern-get-radial-circles"></a><h3>cairo_pattern_get_radial_circles ()</h3>
786
+ <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_pattern_get_radial_circles (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
787
+ <em class="parameter"><code><span class="type">double</span> *x0</code></em>,
788
+ <em class="parameter"><code><span class="type">double</span> *y0</code></em>,
789
+ <em class="parameter"><code><span class="type">double</span> *r0</code></em>,
790
+ <em class="parameter"><code><span class="type">double</span> *x1</code></em>,
791
+ <em class="parameter"><code><span class="type">double</span> *y1</code></em>,
792
+ <em class="parameter"><code><span class="type">double</span> *r1</code></em>);</pre>
793
+ <p>
794
+ Gets the gradient endpoint circles for a radial gradient, each
795
+ specified as a center coordinate and a radius.
796
+ </p>
797
+ <div class="variablelist"><table border="0">
798
+ <col align="left" valign="top">
799
+ <tbody>
800
+ <tr>
801
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
802
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
803
+ </td>
804
+ </tr>
805
+ <tr>
806
+ <td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
807
+ <td>return value for the x coordinate of the center of the first circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
808
+ </td>
809
+ </tr>
810
+ <tr>
811
+ <td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
812
+ <td>return value for the y coordinate of the center of the first circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
813
+ </td>
814
+ </tr>
815
+ <tr>
816
+ <td><p><span class="term"><em class="parameter"><code>r0</code></em> :</span></p></td>
817
+ <td>return value for the radius of the first circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
818
+ </td>
819
+ </tr>
820
+ <tr>
821
+ <td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
822
+ <td>return value for the x coordinate of the center of the second circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
823
+ </td>
824
+ </tr>
825
+ <tr>
826
+ <td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
827
+ <td>return value for the y coordinate of the center of the second circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
828
+ </td>
829
+ </tr>
830
+ <tr>
831
+ <td><p><span class="term"><em class="parameter"><code>r1</code></em> :</span></p></td>
832
+ <td>return value for the radius of the second circle, or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
833
+ </td>
834
+ </tr>
835
+ <tr>
836
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
837
+ <td> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
838
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if <em class="parameter"><code>pattern</code></em> is not a radial
839
+ gradient pattern.
840
+
841
+ </td>
842
+ </tr>
843
+ </tbody>
844
+ </table></div>
845
+ <p class="since">Since 1.4</p>
846
+ </div>
847
+ <hr>
848
+ <div class="refsect2" title="cairo_pattern_reference ()">
849
+ <a name="cairo-pattern-reference"></a><h3>cairo_pattern_reference ()</h3>
850
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="returnvalue">cairo_pattern_t</span></a> * cairo_pattern_reference (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
851
+ <p>
852
+ Increases the reference count on <em class="parameter"><code>pattern</code></em> by one. This prevents
853
+ <em class="parameter"><code>pattern</code></em> from being destroyed until a matching call to
854
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a> is made.
855
+ </p>
856
+ <p>
857
+ The number of references to a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> can be get using
858
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-reference-count" title="cairo_pattern_get_reference_count ()"><code class="function">cairo_pattern_get_reference_count()</code></a>.
859
+ </p>
860
+ <div class="variablelist"><table border="0">
861
+ <col align="left" valign="top">
862
+ <tbody>
863
+ <tr>
864
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
865
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
866
+ </td>
867
+ </tr>
868
+ <tr>
869
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
870
+ <td> the referenced <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>.
871
+ </td>
872
+ </tr>
873
+ </tbody>
874
+ </table></div>
875
+ </div>
876
+ <hr>
877
+ <div class="refsect2" title="cairo_pattern_destroy ()">
878
+ <a name="cairo-pattern-destroy"></a><h3>cairo_pattern_destroy ()</h3>
879
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_destroy (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
880
+ <p>
881
+ Decreases the reference count on <em class="parameter"><code>pattern</code></em> by one. If the result is
882
+ zero, then <em class="parameter"><code>pattern</code></em> and all associated resources are freed. See
883
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-reference" title="cairo_pattern_reference ()"><code class="function">cairo_pattern_reference()</code></a>.
884
+ </p>
885
+ <div class="variablelist"><table border="0">
886
+ <col align="left" valign="top">
887
+ <tbody><tr>
888
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
889
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
890
+ </td>
891
+ </tr></tbody>
892
+ </table></div>
893
+ </div>
894
+ <hr>
895
+ <div class="refsect2" title="cairo_pattern_status ()">
896
+ <a name="cairo-pattern-status"></a><h3>cairo_pattern_status ()</h3>
897
+ <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_pattern_status (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
898
+ <p>
899
+ Checks whether an error has previously occurred for this
900
+ pattern.
901
+ </p>
902
+ <div class="variablelist"><table border="0">
903
+ <col align="left" valign="top">
904
+ <tbody>
905
+ <tr>
906
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
907
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
908
+ </td>
909
+ </tr>
910
+ <tr>
911
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
912
+ <td> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-NO-MEMORY:CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>, or
913
+ <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH:CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a>.
914
+ </td>
915
+ </tr>
916
+ </tbody>
917
+ </table></div>
918
+ </div>
919
+ <hr>
920
+ <div class="refsect2" title="enum cairo_extend_t">
921
+ <a name="cairo-extend-t"></a><h3>enum cairo_extend_t</h3>
922
+ <pre class="programlisting">typedef enum _cairo_extend {
923
+ CAIRO_EXTEND_NONE,
924
+ CAIRO_EXTEND_REPEAT,
925
+ CAIRO_EXTEND_REFLECT,
926
+ CAIRO_EXTEND_PAD
927
+ } cairo_extend_t;
928
+ </pre>
929
+ <p>
930
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a> is used to describe how pattern color/alpha will be
931
+ determined for areas "outside" the pattern's natural area, (for
932
+ example, outside the surface bounds or outside the gradient
933
+ geometry).
934
+ </p>
935
+ <p>
936
+ The default extend mode is <a class="link" href="cairo-cairo-pattern-t.html#CAIRO-EXTEND-NONE:CAPS"><code class="literal">CAIRO_EXTEND_NONE</code></a> for surface patterns
937
+ and <a class="link" href="cairo-cairo-pattern-t.html#CAIRO-EXTEND-PAD:CAPS"><code class="literal">CAIRO_EXTEND_PAD</code></a> for gradient patterns.
938
+ </p>
939
+ <p>
940
+ New entries may be added in future versions.
941
+ </p>
942
+ <div class="variablelist"><table border="0">
943
+ <col align="left" valign="top">
944
+ <tbody>
945
+ <tr>
946
+ <td><p><a name="CAIRO-EXTEND-NONE:CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_NONE</code></span></p></td>
947
+ <td>pixels outside of the source pattern
948
+ are fully transparent
949
+ </td>
950
+ </tr>
951
+ <tr>
952
+ <td><p><a name="CAIRO-EXTEND-REPEAT:CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_REPEAT</code></span></p></td>
953
+ <td>the pattern is tiled by repeating
954
+ </td>
955
+ </tr>
956
+ <tr>
957
+ <td><p><a name="CAIRO-EXTEND-REFLECT:CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_REFLECT</code></span></p></td>
958
+ <td>the pattern is tiled by reflecting
959
+ at the edges (Implemented for surface patterns since 1.6)
960
+ </td>
961
+ </tr>
962
+ <tr>
963
+ <td><p><a name="CAIRO-EXTEND-PAD:CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_PAD</code></span></p></td>
964
+ <td>pixels outside of the pattern copy
965
+ the closest pixel from the source (Since 1.2; but only
966
+ implemented for surface patterns since 1.6)
967
+ </td>
968
+ </tr>
969
+ </tbody>
970
+ </table></div>
971
+ </div>
972
+ <hr>
973
+ <div class="refsect2" title="cairo_pattern_set_extend ()">
974
+ <a name="cairo-pattern-set-extend"></a><h3>cairo_pattern_set_extend ()</h3>
975
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_set_extend (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
976
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a> extend</code></em>);</pre>
977
+ <p>
978
+ Sets the mode to be used for drawing outside the area of a pattern.
979
+ See <a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a> for details on the semantics of each extend
980
+ strategy.
981
+ </p>
982
+ <p>
983
+ The default extend mode is <a class="link" href="cairo-cairo-pattern-t.html#CAIRO-EXTEND-NONE:CAPS"><code class="literal">CAIRO_EXTEND_NONE</code></a> for surface patterns
984
+ and <a class="link" href="cairo-cairo-pattern-t.html#CAIRO-EXTEND-PAD:CAPS"><code class="literal">CAIRO_EXTEND_PAD</code></a> for gradient patterns.
985
+ </p>
986
+ <div class="variablelist"><table border="0">
987
+ <col align="left" valign="top">
988
+ <tbody>
989
+ <tr>
990
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
991
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
992
+ </td>
993
+ </tr>
994
+ <tr>
995
+ <td><p><span class="term"><em class="parameter"><code>extend</code></em> :</span></p></td>
996
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a> describing how the area outside of the
997
+ pattern will be drawn
998
+ </td>
999
+ </tr>
1000
+ </tbody>
1001
+ </table></div>
1002
+ </div>
1003
+ <hr>
1004
+ <div class="refsect2" title="cairo_pattern_get_extend ()">
1005
+ <a name="cairo-pattern-get-extend"></a><h3>cairo_pattern_get_extend ()</h3>
1006
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="returnvalue">cairo_extend_t</span></a> cairo_pattern_get_extend (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
1007
+ <p>
1008
+ Gets the current extend mode for a pattern. See <a class="link" href="cairo-cairo-pattern-t.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a>
1009
+ for details on the semantics of each extend strategy.
1010
+ </p>
1011
+ <div class="variablelist"><table border="0">
1012
+ <col align="left" valign="top">
1013
+ <tbody>
1014
+ <tr>
1015
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1016
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1017
+ </td>
1018
+ </tr>
1019
+ <tr>
1020
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1021
+ <td> the current extend strategy used for drawing the
1022
+ pattern.
1023
+ </td>
1024
+ </tr>
1025
+ </tbody>
1026
+ </table></div>
1027
+ </div>
1028
+ <hr>
1029
+ <div class="refsect2" title="enum cairo_filter_t">
1030
+ <a name="cairo-filter-t"></a><h3>enum cairo_filter_t</h3>
1031
+ <pre class="programlisting">typedef enum _cairo_filter {
1032
+ CAIRO_FILTER_FAST,
1033
+ CAIRO_FILTER_GOOD,
1034
+ CAIRO_FILTER_BEST,
1035
+ CAIRO_FILTER_NEAREST,
1036
+ CAIRO_FILTER_BILINEAR,
1037
+ CAIRO_FILTER_GAUSSIAN
1038
+ } cairo_filter_t;
1039
+ </pre>
1040
+ <p>
1041
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a> is used to indicate what filtering should be
1042
+ applied when reading pixel values from patterns. See
1043
+ <code class="function">cairo_pattern_set_source()</code> for indicating the desired filter to be
1044
+ used with a particular pattern.
1045
+ </p>
1046
+ <div class="variablelist"><table border="0">
1047
+ <col align="left" valign="top">
1048
+ <tbody>
1049
+ <tr>
1050
+ <td><p><a name="CAIRO-FILTER-FAST:CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_FAST</code></span></p></td>
1051
+ <td>A high-performance filter, with quality similar
1052
+ to <a class="link" href="cairo-cairo-pattern-t.html#CAIRO-FILTER-NEAREST:CAPS"><code class="literal">CAIRO_FILTER_NEAREST</code></a>
1053
+ </td>
1054
+ </tr>
1055
+ <tr>
1056
+ <td><p><a name="CAIRO-FILTER-GOOD:CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_GOOD</code></span></p></td>
1057
+ <td>A reasonable-performance filter, with quality
1058
+ similar to <a class="link" href="cairo-cairo-pattern-t.html#CAIRO-FILTER-BILINEAR:CAPS"><code class="literal">CAIRO_FILTER_BILINEAR</code></a>
1059
+ </td>
1060
+ </tr>
1061
+ <tr>
1062
+ <td><p><a name="CAIRO-FILTER-BEST:CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_BEST</code></span></p></td>
1063
+ <td>The highest-quality available, performance may
1064
+ not be suitable for interactive use.
1065
+ </td>
1066
+ </tr>
1067
+ <tr>
1068
+ <td><p><a name="CAIRO-FILTER-NEAREST:CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_NEAREST</code></span></p></td>
1069
+ <td>Nearest-neighbor filtering
1070
+ </td>
1071
+ </tr>
1072
+ <tr>
1073
+ <td><p><a name="CAIRO-FILTER-BILINEAR:CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_BILINEAR</code></span></p></td>
1074
+ <td>Linear interpolation in two dimensions
1075
+ </td>
1076
+ </tr>
1077
+ <tr>
1078
+ <td><p><a name="CAIRO-FILTER-GAUSSIAN:CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_GAUSSIAN</code></span></p></td>
1079
+ <td>This filter value is currently
1080
+ unimplemented, and should not be used in current code.
1081
+ </td>
1082
+ </tr>
1083
+ </tbody>
1084
+ </table></div>
1085
+ </div>
1086
+ <hr>
1087
+ <div class="refsect2" title="cairo_pattern_set_filter ()">
1088
+ <a name="cairo-pattern-set-filter"></a><h3>cairo_pattern_set_filter ()</h3>
1089
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_set_filter (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
1090
+ <em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a> filter</code></em>);</pre>
1091
+ <p>
1092
+ Sets the filter to be used for resizing when using this pattern.
1093
+ See <a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a> for details on each filter.
1094
+ </p>
1095
+ <p>
1096
+ * Note that you might want to control filtering even when you do not
1097
+ have an explicit <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> object, (for example when using
1098
+ <a class="link" href="cairo-cairo-t.html#cairo-set-source-surface" title="cairo_set_source_surface ()"><code class="function">cairo_set_source_surface()</code></a>). In these cases, it is convenient to
1099
+ use <a class="link" href="cairo-cairo-t.html#cairo-get-source" title="cairo_get_source ()"><code class="function">cairo_get_source()</code></a> to get access to the pattern that cairo
1100
+ creates implicitly. For example:
1101
+ </p>
1102
+ <p>
1103
+ </p>
1104
+ <div class="informalexample">
1105
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
1106
+ <tbody>
1107
+ <tr>
1108
+ <td class="listing_lines" align="right"><pre>1
1109
+ 2</pre></td>
1110
+ <td class="listing_code"><pre class="programlisting"><span class="function"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-set-source-surface">cairo_set_source_surface</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">,</span><span class="normal"> image</span><span class="symbol">,</span><span class="normal"> x</span><span class="symbol">,</span><span class="normal"> y</span><span class="symbol">);</span>
1111
+ <span class="function"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-set-filter">cairo_pattern_set_filter</a></span><span class="normal"> </span><span class="symbol">(</span><span class="function"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-t.html#cairo-get-source">cairo_get_source</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">cr</span><span class="symbol">),</span><span class="normal"> <a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#CAIRO-FILTER-NEAREST:CAPS">CAIRO_FILTER_NEAREST</a></span><span class="symbol">);</span></pre></td>
1112
+ </tr>
1113
+ </tbody>
1114
+ </table>
1115
+ </div>
1116
+
1117
+ <p>
1118
+ </p>
1119
+ <div class="variablelist"><table border="0">
1120
+ <col align="left" valign="top">
1121
+ <tbody>
1122
+ <tr>
1123
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1124
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1125
+ </td>
1126
+ </tr>
1127
+ <tr>
1128
+ <td><p><span class="term"><em class="parameter"><code>filter</code></em> :</span></p></td>
1129
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a> describing the filter to use for resizing
1130
+ the pattern
1131
+ </td>
1132
+ </tr>
1133
+ </tbody>
1134
+ </table></div>
1135
+ </div>
1136
+ <hr>
1137
+ <div class="refsect2" title="cairo_pattern_get_filter ()">
1138
+ <a name="cairo-pattern-get-filter"></a><h3>cairo_pattern_get_filter ()</h3>
1139
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="returnvalue">cairo_filter_t</span></a> cairo_pattern_get_filter (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
1140
+ <p>
1141
+ Gets the current filter for a pattern. See <a class="link" href="cairo-cairo-pattern-t.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a>
1142
+ for details on each filter.
1143
+ </p>
1144
+ <div class="variablelist"><table border="0">
1145
+ <col align="left" valign="top">
1146
+ <tbody>
1147
+ <tr>
1148
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1149
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1150
+ </td>
1151
+ </tr>
1152
+ <tr>
1153
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1154
+ <td> the current filter used for resizing the pattern.
1155
+ </td>
1156
+ </tr>
1157
+ </tbody>
1158
+ </table></div>
1159
+ </div>
1160
+ <hr>
1161
+ <div class="refsect2" title="cairo_pattern_set_matrix ()">
1162
+ <a name="cairo-pattern-set-matrix"></a><h3>cairo_pattern_set_matrix ()</h3>
1163
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_set_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
1164
+ <em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
1165
+ <p>
1166
+ Sets the pattern's transformation matrix to <em class="parameter"><code>matrix</code></em>. This matrix is
1167
+ a transformation from user space to pattern space.
1168
+ </p>
1169
+ <p>
1170
+ When a pattern is first created it always has the identity matrix
1171
+ for its transformation matrix, which means that pattern space is
1172
+ initially identical to user space.
1173
+ </p>
1174
+ <p>
1175
+ Important: Please note that the direction of this transformation
1176
+ matrix is from user space to pattern space. This means that if you
1177
+ imagine the flow from a pattern to user space (and on to device
1178
+ space), then coordinates in that flow will be transformed by the
1179
+ inverse of the pattern matrix.
1180
+ </p>
1181
+ <p>
1182
+ For example, if you want to make a pattern appear twice as large as
1183
+ it does by default the correct code to use is:
1184
+ </p>
1185
+ <p>
1186
+ </p>
1187
+ <div class="informalexample">
1188
+ <table class="listing_frame" border="0" cellpadding="0" cellspacing="0">
1189
+ <tbody>
1190
+ <tr>
1191
+ <td class="listing_lines" align="right"><pre>1
1192
+ 2</pre></td>
1193
+ <td class="listing_code"><pre class="programlisting"><span class="function"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html#cairo-matrix-init-scale">cairo_matrix_init_scale</a></span><span class="normal"> </span><span class="symbol">(&amp;</span><span class="normal">matrix</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0.5</span><span class="symbol">,</span><span class="normal"> </span><span class="number">0.5</span><span class="symbol">);</span>
1194
+ <span class="function"><a href="/usr/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html#cairo-pattern-set-matrix">cairo_pattern_set_matrix</a></span><span class="normal"> </span><span class="symbol">(</span><span class="normal">pattern</span><span class="symbol">,</span><span class="normal"> </span><span class="symbol">&amp;</span><span class="normal">matrix</span><span class="symbol">);</span></pre></td>
1195
+ </tr>
1196
+ </tbody>
1197
+ </table>
1198
+ </div>
1199
+
1200
+ <p>
1201
+ </p>
1202
+ <p>
1203
+ Meanwhile, using values of 2.0 rather than 0.5 in the code above
1204
+ would cause the pattern to appear at half of its default size.
1205
+ </p>
1206
+ <p>
1207
+ Also, please note the discussion of the user-space locking
1208
+ semantics of <a class="link" href="cairo-cairo-t.html#cairo-set-source" title="cairo_set_source ()"><code class="function">cairo_set_source()</code></a>.
1209
+ </p>
1210
+ <div class="variablelist"><table border="0">
1211
+ <col align="left" valign="top">
1212
+ <tbody>
1213
+ <tr>
1214
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1215
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1216
+ </td>
1217
+ </tr>
1218
+ <tr>
1219
+ <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
1220
+ <td>a <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
1221
+ </td>
1222
+ </tr>
1223
+ </tbody>
1224
+ </table></div>
1225
+ </div>
1226
+ <hr>
1227
+ <div class="refsect2" title="cairo_pattern_get_matrix ()">
1228
+ <a name="cairo-pattern-get-matrix"></a><h3>cairo_pattern_get_matrix ()</h3>
1229
+ <pre class="programlisting"><span class="returnvalue">void</span> cairo_pattern_get_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
1230
+ <em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
1231
+ <p>
1232
+ Stores the pattern's transformation matrix into <em class="parameter"><code>matrix</code></em>.
1233
+ </p>
1234
+ <div class="variablelist"><table border="0">
1235
+ <col align="left" valign="top">
1236
+ <tbody>
1237
+ <tr>
1238
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1239
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1240
+ </td>
1241
+ </tr>
1242
+ <tr>
1243
+ <td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
1244
+ <td>return value for the matrix
1245
+ </td>
1246
+ </tr>
1247
+ </tbody>
1248
+ </table></div>
1249
+ </div>
1250
+ <hr>
1251
+ <div class="refsect2" title="enum cairo_pattern_type_t">
1252
+ <a name="cairo-pattern-type-t"></a><h3>enum cairo_pattern_type_t</h3>
1253
+ <pre class="programlisting">typedef enum _cairo_pattern_type {
1254
+ CAIRO_PATTERN_TYPE_SOLID,
1255
+ CAIRO_PATTERN_TYPE_SURFACE,
1256
+ CAIRO_PATTERN_TYPE_LINEAR,
1257
+ CAIRO_PATTERN_TYPE_RADIAL
1258
+ } cairo_pattern_type_t;
1259
+ </pre>
1260
+ <p>
1261
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t"><span class="type">cairo_pattern_type_t</span></a> is used to describe the type of a given pattern.
1262
+ </p>
1263
+ <p>
1264
+ The type of a pattern is determined by the function used to create
1265
+ it. The <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-rgb" title="cairo_pattern_create_rgb ()"><code class="function">cairo_pattern_create_rgb()</code></a> and <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-create-rgba" title="cairo_pattern_create_rgba ()"><code class="function">cairo_pattern_create_rgba()</code></a>
1266
+ functions create SOLID patterns. The remaining
1267
+ cairo_pattern_create functions map to pattern types in obvious
1268
+ ways.
1269
+ </p>
1270
+ <p>
1271
+ The pattern type can be queried with <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-get-type" title="cairo_pattern_get_type ()"><code class="function">cairo_pattern_get_type()</code></a>
1272
+ </p>
1273
+ <p>
1274
+ Most <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> functions can be called with a pattern of any
1275
+ type, (though trying to change the extend or filter for a solid
1276
+ pattern will have no effect). A notable exception is
1277
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgb" title="cairo_pattern_add_color_stop_rgb ()"><code class="function">cairo_pattern_add_color_stop_rgb()</code></a> and
1278
+ <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-add-color-stop-rgba" title="cairo_pattern_add_color_stop_rgba ()"><code class="function">cairo_pattern_add_color_stop_rgba()</code></a> which must only be called with
1279
+ gradient patterns (either LINEAR or RADIAL). Otherwise the pattern
1280
+ will be shutdown and put into an error state.
1281
+ </p>
1282
+ <p>
1283
+ New entries may be added in future versions.
1284
+ </p>
1285
+ <div class="variablelist"><table border="0">
1286
+ <col align="left" valign="top">
1287
+ <tbody>
1288
+ <tr>
1289
+ <td><p><a name="CAIRO-PATTERN-TYPE-SOLID:CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_SOLID</code></span></p></td>
1290
+ <td>The pattern is a solid (uniform)
1291
+ color. It may be opaque or translucent.
1292
+ </td>
1293
+ </tr>
1294
+ <tr>
1295
+ <td><p><a name="CAIRO-PATTERN-TYPE-SURFACE:CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_SURFACE</code></span></p></td>
1296
+ <td>The pattern is a based on a surface (an image).
1297
+ </td>
1298
+ </tr>
1299
+ <tr>
1300
+ <td><p><a name="CAIRO-PATTERN-TYPE-LINEAR:CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_LINEAR</code></span></p></td>
1301
+ <td>The pattern is a linear gradient.
1302
+ </td>
1303
+ </tr>
1304
+ <tr>
1305
+ <td><p><a name="CAIRO-PATTERN-TYPE-RADIAL:CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_RADIAL</code></span></p></td>
1306
+ <td>The pattern is a radial gradient.
1307
+ </td>
1308
+ </tr>
1309
+ </tbody>
1310
+ </table></div>
1311
+ <p class="since">Since 1.2</p>
1312
+ </div>
1313
+ <hr>
1314
+ <div class="refsect2" title="cairo_pattern_get_type ()">
1315
+ <a name="cairo-pattern-get-type"></a><h3>cairo_pattern_get_type ()</h3>
1316
+ <pre class="programlisting"><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t"><span class="returnvalue">cairo_pattern_type_t</span></a> cairo_pattern_get_type (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
1317
+ <p>
1318
+ This function returns the type a pattern.
1319
+ See <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t"><span class="type">cairo_pattern_type_t</span></a> for available types.
1320
+ </p>
1321
+ <div class="variablelist"><table border="0">
1322
+ <col align="left" valign="top">
1323
+ <tbody>
1324
+ <tr>
1325
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1326
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1327
+ </td>
1328
+ </tr>
1329
+ <tr>
1330
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1331
+ <td> The type of <em class="parameter"><code>pattern</code></em>.
1332
+
1333
+ </td>
1334
+ </tr>
1335
+ </tbody>
1336
+ </table></div>
1337
+ <p class="since">Since 1.2</p>
1338
+ </div>
1339
+ <hr>
1340
+ <div class="refsect2" title="cairo_pattern_get_reference_count ()">
1341
+ <a name="cairo-pattern-get-reference-count"></a><h3>cairo_pattern_get_reference_count ()</h3>
1342
+ <pre class="programlisting">unsigned <span class="returnvalue">int</span> cairo_pattern_get_reference_count (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>);</pre>
1343
+ <p>
1344
+ Returns the current reference count of <em class="parameter"><code>pattern</code></em>.
1345
+ </p>
1346
+ <div class="variablelist"><table border="0">
1347
+ <col align="left" valign="top">
1348
+ <tbody>
1349
+ <tr>
1350
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1351
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1352
+ </td>
1353
+ </tr>
1354
+ <tr>
1355
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1356
+ <td> the current reference count of <em class="parameter"><code>pattern</code></em>. If the
1357
+ object is a nil object, 0 will be returned.
1358
+
1359
+ </td>
1360
+ </tr>
1361
+ </tbody>
1362
+ </table></div>
1363
+ <p class="since">Since 1.4</p>
1364
+ </div>
1365
+ <hr>
1366
+ <div class="refsect2" title="cairo_pattern_set_user_data ()">
1367
+ <a name="cairo-pattern-set-user-data"></a><h3>cairo_pattern_set_user_data ()</h3>
1368
+ <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_pattern_set_user_data (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
1369
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>,
1370
+ <em class="parameter"><code><span class="type">void</span> *user_data</code></em>,
1371
+ <em class="parameter"><code><a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> destroy</code></em>);</pre>
1372
+ <p>
1373
+ Attach user data to <em class="parameter"><code>pattern</code></em>. To remove user data from a surface,
1374
+ call this function with the key that was used to set it and <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>
1375
+ for <em class="parameter"><code>data</code></em>.
1376
+ </p>
1377
+ <div class="variablelist"><table border="0">
1378
+ <col align="left" valign="top">
1379
+ <tbody>
1380
+ <tr>
1381
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1382
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1383
+ </td>
1384
+ </tr>
1385
+ <tr>
1386
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
1387
+ <td>the address of a <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> to attach the user data to
1388
+ </td>
1389
+ </tr>
1390
+ <tr>
1391
+ <td><p><span class="term"><em class="parameter"><code>user_data</code></em> :</span></p></td>
1392
+ <td>the user data to attach to the <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1393
+ </td>
1394
+ </tr>
1395
+ <tr>
1396
+ <td><p><span class="term"><em class="parameter"><code>destroy</code></em> :</span></p></td>
1397
+ <td>a <a class="link" href="cairo-Types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> which will be called when the
1398
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> is destroyed or when new user data is attached using the
1399
+ same key.
1400
+ </td>
1401
+ </tr>
1402
+ <tr>
1403
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1404
+ <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> if a
1405
+ slot could not be allocated for the user data.
1406
+
1407
+ </td>
1408
+ </tr>
1409
+ </tbody>
1410
+ </table></div>
1411
+ <p class="since">Since 1.4</p>
1412
+ </div>
1413
+ <hr>
1414
+ <div class="refsect2" title="cairo_pattern_get_user_data ()">
1415
+ <a name="cairo-pattern-get-user-data"></a><h3>cairo_pattern_get_user_data ()</h3>
1416
+ <pre class="programlisting"><span class="returnvalue">void</span> * cairo_pattern_get_user_data (<em class="parameter"><code><a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> *pattern</code></em>,
1417
+ <em class="parameter"><code>const <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> *key</code></em>);</pre>
1418
+ <p>
1419
+ Return user data previously attached to <em class="parameter"><code>pattern</code></em> using the
1420
+ specified key. If no user data has been attached with the given
1421
+ key this function returns <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
1422
+ </p>
1423
+ <div class="variablelist"><table border="0">
1424
+ <col align="left" valign="top">
1425
+ <tbody>
1426
+ <tr>
1427
+ <td><p><span class="term"><em class="parameter"><code>pattern</code></em> :</span></p></td>
1428
+ <td>a <a class="link" href="cairo-cairo-pattern-t.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
1429
+ </td>
1430
+ </tr>
1431
+ <tr>
1432
+ <td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
1433
+ <td>the address of the <a class="link" href="cairo-Types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> the user data was
1434
+ attached to
1435
+ </td>
1436
+ </tr>
1437
+ <tr>
1438
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
1439
+ <td> the user data previously attached or <a href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.
1440
+
1441
+ </td>
1442
+ </tr>
1443
+ </tbody>
1444
+ </table></div>
1445
+ <p class="since">Since 1.4</p>
1446
+ </div>
1447
+ </div>
1448
+ <div class="refsect1" title="See Also">
1449
+ <a name="cairo-cairo-pattern-t.see-also"></a><h2>See Also</h2>
1450
+ <a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>, <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
1451
+ </div>
1452
+ </div>
1453
+ <div class="footer">
1454
+ <hr>
1455
+ Generated by GTK-Doc V1.15</div>
1456
+ </body>
1457
+ </html>