cairo 1.8.0-x86-mswin32 → 1.8.1-x86-mswin32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- data/ChangeLog +25 -0
- data/NEWS +8 -0
- data/Rakefile +5 -32
- data/cairo/bin/libcairo-2.dll +0 -0
- data/cairo/bin/libpng12-0.dll +0 -0
- data/cairo/include/cairo/cairo-features.h +1 -1
- data/cairo/include/cairo/cairo-ft.h +75 -0
- data/cairo/include/cairo/cairo-version.h +1 -1
- data/cairo/include/cairo/cairo.h +16 -21
- data/cairo/include/libpng12/png.h +251 -121
- data/cairo/include/libpng12/pngconf.h +83 -56
- data/cairo/include/png.h +251 -121
- data/cairo/include/pngconf.h +83 -56
- data/cairo/lib/cairo.def +5 -0
- data/cairo/lib/cairo.lib +0 -0
- data/cairo/lib/libcairo.dll.a +0 -0
- data/cairo/lib/libpng.def +3 -0
- data/cairo/lib/libpng.lib +0 -0
- data/cairo/lib/libpng12.dll.a +0 -0
- data/cairo/lib/pkgconfig/cairo-ft.pc +12 -0
- data/cairo/lib/pkgconfig/cairo-pdf.pc +2 -2
- data/cairo/lib/pkgconfig/cairo-png.pc +2 -2
- data/cairo/lib/pkgconfig/cairo-ps.pc +2 -2
- data/cairo/lib/pkgconfig/cairo-svg.pc +2 -2
- data/cairo/lib/pkgconfig/cairo-win32-font.pc +2 -2
- data/cairo/lib/pkgconfig/cairo-win32.pc +2 -2
- data/cairo/lib/pkgconfig/cairo.pc +4 -4
- data/cairo/lib/pkgconfig/libpng.pc +2 -2
- data/cairo/lib/pkgconfig/libpng12.pc +2 -2
- data/cairo/manifest/{cairo-dev_1.8.0-1_win32.mft → cairo-dev_1.8.8-2_win32.mft} +5 -3
- data/cairo/manifest/cairo_1.8.8-2_win32.mft +5 -0
- data/cairo/manifest/{libpng-dev_1.2.32-1_win32.mft → libpng-dev_1.2.39-1_win32.mft} +3 -3
- data/cairo/manifest/libpng_1.2.39-1_win32.mft +2 -0
- data/cairo/share/doc/{cairo_1.8.0-1_win32 → cairo_1.8.8-2_win32}/COPYING +0 -0
- data/cairo/share/doc/{cairo_1.8.0-1_win32 → cairo_1.8.8-2_win32}/COPYING-LGPL-2.1 +0 -0
- data/cairo/share/doc/{cairo_1.8.0-1_win32 → cairo_1.8.8-2_win32}/COPYING-MPL-1.1 +0 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +9 -9
- data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +8 -8
- data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/bindings-path.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +6 -6
- data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/cairo-context.html +200 -262
- data/cairo/share/gtk-doc/html/cairo/cairo-drawing.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/cairo-error-status.html +61 -60
- data/cairo/share/gtk-doc/html/cairo/cairo-font-face.html +51 -53
- data/cairo/share/gtk-doc/html/cairo/cairo-font-options.html +65 -78
- data/cairo/share/gtk-doc/html/cairo/cairo-fonts.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/cairo-ft-font.html +37 -34
- data/cairo/share/gtk-doc/html/cairo/cairo-image-surface.html +49 -60
- data/cairo/share/gtk-doc/html/cairo/cairo-matrix.html +30 -41
- data/cairo/share/gtk-doc/html/cairo/cairo-paths.html +72 -97
- data/cairo/share/gtk-doc/html/cairo/cairo-pattern.html +184 -175
- data/cairo/share/gtk-doc/html/cairo/cairo-pdf-surface.html +40 -34
- data/cairo/share/gtk-doc/html/cairo/cairo-png-functions.html +57 -48
- data/cairo/share/gtk-doc/html/cairo/cairo-ps-surface.html +73 -76
- data/cairo/share/gtk-doc/html/cairo/cairo-quartz-font.html +27 -30
- data/cairo/share/gtk-doc/html/cairo/cairo-quartz-surface.html +29 -34
- data/cairo/share/gtk-doc/html/cairo/cairo-scaled-font.html +102 -106
- data/cairo/share/gtk-doc/html/cairo/cairo-support.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/cairo-surface.html +101 -127
- data/cairo/share/gtk-doc/html/cairo/cairo-surfaces.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/cairo-svg-surface.html +52 -49
- data/cairo/share/gtk-doc/html/cairo/cairo-text.html +126 -146
- data/cairo/share/gtk-doc/html/cairo/cairo-transformations.html +26 -35
- data/cairo/share/gtk-doc/html/cairo/cairo-types.html +16 -17
- data/cairo/share/gtk-doc/html/cairo/cairo-user-font.html +121 -127
- data/cairo/share/gtk-doc/html/cairo/cairo-version-info.html +50 -60
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-font.html +37 -46
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-surface.html +58 -58
- data/cairo/share/gtk-doc/html/cairo/cairo-xlib-surface.html +47 -63
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +21 -21
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +21 -21
- data/cairo/share/gtk-doc/html/cairo/index-1.2.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/index-1.4.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/index-1.6.html +5 -5
- data/cairo/share/gtk-doc/html/cairo/index-1.8.html +8 -8
- data/cairo/share/gtk-doc/html/cairo/index-all.html +24 -24
- data/cairo/share/gtk-doc/html/cairo/index.html +6 -6
- data/cairo/share/gtk-doc/html/cairo/index.sgml +19 -19
- data/cairo/share/gtk-doc/html/cairo/language-bindings.html +6 -6
- data/cairo/share/gtk-doc/html/cairo/style.css +8 -1
- data/cairo/share/man/man3/libpng.3 +299 -59
- data/cairo/share/man/man3/libpngpf.3 +2 -2
- data/cairo/share/man/man5/png.5 +1 -1
- data/cairo/src/tml/packaging/cairo_1.8.8-2_win32.log +949 -0
- data/cairo/src/tml/{make/cairo_1.8.0-1_win32.sh → packaging/cairo_1.8.8-2_win32.sh} +6 -6
- data/cairo/src/tml/{make/libpng_1.2.32-1_win32.log → packaging/libpng_1.2.39-1_win32.log} +74 -73
- data/cairo/src/tml/{make/libpng_1.2.32-1_win32.sh → packaging/libpng_1.2.39-1_win32.sh} +4 -4
- data/doc/ja/cairo-context.html +1 -1
- data/doc/ja/index.html +0 -3
- data/extconf.rb +1 -0
- data/pkg-config.rb +4 -0
- data/src/cairo.so +0 -0
- data/src/libruby-cairo.a +0 -0
- data/src/rb_cairo.c +2 -2
- data/src/rb_cairo_surface.c +6 -2
- metadata +20 -50
- data/cairo/DLL_FAQ.txt +0 -397
- data/cairo/README.txt +0 -53
- data/cairo/USAGE.txt +0 -94
- data/cairo/bin/zlib1.dll +0 -0
- data/cairo/include/zconf.h +0 -332
- data/cairo/include/zlib.h +0 -1357
- data/cairo/lib/zdll.exp +0 -0
- data/cairo/lib/zdll.lib +0 -0
- data/cairo/lib/zlib.def +0 -60
- data/cairo/manifest/cairo_1.8.0-1_win32.mft +0 -5
- data/cairo/manifest/libpng_1.2.32-1_win32.mft +0 -2
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.log +0 -1021
- data/cairo/test/example_d.exe +0 -0
- data/cairo/test/minigzip_d.exe +0 -0
- data/cairo/test/testzlib_d.exe +0 -0
- data/cairo/test/untgz_d.exe +0 -0
@@ -3,12 +3,12 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>cairo_pattern_t</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
7
|
-
<link rel="
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.1">
|
7
|
+
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="cairo-drawing.html" title="Drawing">
|
9
9
|
<link rel="prev" href="cairo-paths.html" title="Paths">
|
10
10
|
<link rel="next" href="cairo-transformations.html" title="Transformations">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
14
|
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
@@ -30,11 +30,13 @@
|
|
30
30
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
31
31
|
<td><a accesskey="n" href="cairo-transformations.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
32
32
|
</tr>
|
33
|
-
<tr><td colspan="5" class="shortcuts"
|
34
|
-
|
35
|
-
|
33
|
+
<tr><td colspan="5" class="shortcuts">
|
34
|
+
<a href="#cairo-pattern.synopsis" class="shortcut">Top</a>
|
35
|
+
|
|
36
|
+
<a href="#cairo-pattern.description" class="shortcut">Description</a>
|
37
|
+
</td></tr>
|
36
38
|
</table>
|
37
|
-
<div class="refentry"
|
39
|
+
<div class="refentry" title="cairo_pattern_t">
|
38
40
|
<a name="cairo-pattern"></a><div class="titlepage"></div>
|
39
41
|
<div class="refnamediv"><table width="100%"><tr>
|
40
42
|
<td valign="top">
|
@@ -43,7 +45,7 @@
|
|
43
45
|
</td>
|
44
46
|
<td valign="top" align="right"></td>
|
45
47
|
</tr></table></div>
|
46
|
-
<div class="refsynopsisdiv">
|
48
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
47
49
|
<a name="cairo-pattern.synopsis"></a><h2>Synopsis</h2>
|
48
50
|
<pre class="synopsis">
|
49
51
|
typedef <a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a>;
|
@@ -67,10 +69,10 @@ void <a class="link" href="cairo-pattern.html#cairo-pattern-add-c
|
|
67
69
|
double *green,
|
68
70
|
double *blue,
|
69
71
|
double *alpha);
|
70
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
72
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * <a class="link" href="cairo-pattern.html#cairo-pattern-create-rgb" title="cairo_pattern_create_rgb ()">cairo_pattern_create_rgb</a> (double red,
|
71
73
|
double green,
|
72
74
|
double blue);
|
73
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
75
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * <a class="link" href="cairo-pattern.html#cairo-pattern-create-rgba" title="cairo_pattern_create_rgba ()">cairo_pattern_create_rgba</a> (double red,
|
74
76
|
double green,
|
75
77
|
double blue,
|
76
78
|
double alpha);
|
@@ -79,10 +81,10 @@ void <a class="link" href="cairo-pattern.html#cairo-pattern-add-c
|
|
79
81
|
double *green,
|
80
82
|
double *blue,
|
81
83
|
double *alpha);
|
82
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
84
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * <a class="link" href="cairo-pattern.html#cairo-pattern-create-for-surface" title="cairo_pattern_create_for_surface ()">cairo_pattern_create_for_surface</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
83
85
|
<a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> <a class="link" href="cairo-pattern.html#cairo-pattern-get-surface" title="cairo_pattern_get_surface ()">cairo_pattern_get_surface</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
84
86
|
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> **surface);
|
85
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
87
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * <a class="link" href="cairo-pattern.html#cairo-pattern-create-linear" title="cairo_pattern_create_linear ()">cairo_pattern_create_linear</a> (double x0,
|
86
88
|
double y0,
|
87
89
|
double x1,
|
88
90
|
double y1);
|
@@ -91,7 +93,7 @@ void <a class="link" href="cairo-pattern.html#cairo-pattern-add-c
|
|
91
93
|
double *y0,
|
92
94
|
double *x1,
|
93
95
|
double *y1);
|
94
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
96
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * <a class="link" href="cairo-pattern.html#cairo-pattern-create-radial" title="cairo_pattern_create_radial ()">cairo_pattern_create_radial</a> (double cx0,
|
95
97
|
double cy0,
|
96
98
|
double radius0,
|
97
99
|
double cx1,
|
@@ -104,7 +106,7 @@ void <a class="link" href="cairo-pattern.html#cairo-pattern-add-c
|
|
104
106
|
double *x1,
|
105
107
|
double *y1,
|
106
108
|
double *r1);
|
107
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
109
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * <a class="link" href="cairo-pattern.html#cairo-pattern-reference" title="cairo_pattern_reference ()">cairo_pattern_reference</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);
|
108
110
|
void <a class="link" href="cairo-pattern.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()">cairo_pattern_destroy</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);
|
109
111
|
<a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> <a class="link" href="cairo-pattern.html#cairo-pattern-status" title="cairo_pattern_status ()">cairo_pattern_status</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);
|
110
112
|
enum <a class="link" href="cairo-pattern.html#cairo-extend-t" title="enum cairo_extend_t">cairo_extend_t</a>;
|
@@ -120,17 +122,17 @@ void <a class="link" href="cairo-pattern.html#cairo-pattern-set-m
|
|
120
122
|
void <a class="link" href="cairo-pattern.html#cairo-pattern-get-matrix" title="cairo_pattern_get_matrix ()">cairo_pattern_get_matrix</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
121
123
|
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
122
124
|
enum <a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t">cairo_pattern_type_t</a>;
|
123
|
-
<a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t">cairo_pattern_type_t</a>
|
125
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t">cairo_pattern_type_t</a> <a class="link" href="cairo-pattern.html#cairo-pattern-get-type" title="cairo_pattern_get_type ()">cairo_pattern_get_type</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);
|
124
126
|
unsigned int <a class="link" href="cairo-pattern.html#cairo-pattern-get-reference-count" title="cairo_pattern_get_reference_count ()">cairo_pattern_get_reference_count</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);
|
125
127
|
<a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> <a class="link" href="cairo-pattern.html#cairo-pattern-set-user-data" title="cairo_pattern_set_user_data ()">cairo_pattern_set_user_data</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
126
128
|
const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key,
|
127
129
|
void *user_data,
|
128
130
|
<a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">cairo_destroy_func_t</a> destroy);
|
129
|
-
void*
|
131
|
+
void * <a class="link" href="cairo-pattern.html#cairo-pattern-get-user-data" title="cairo_pattern_get_user_data ()">cairo_pattern_get_user_data</a> (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
130
132
|
const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key);
|
131
133
|
</pre>
|
132
134
|
</div>
|
133
|
-
<div class="refsect1"
|
135
|
+
<div class="refsect1" title="Description">
|
134
136
|
<a name="cairo-pattern.description"></a><h2>Description</h2>
|
135
137
|
<p>
|
136
138
|
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> is the paint with which cairo draws.
|
@@ -144,9 +146,9 @@ or implicitly through
|
|
144
146
|
cairo_set_source_<span class="emphasis"><em>type</em></span>() functions.
|
145
147
|
</p>
|
146
148
|
</div>
|
147
|
-
<div class="refsect1"
|
149
|
+
<div class="refsect1" title="Details">
|
148
150
|
<a name="cairo-pattern.details"></a><h2>Details</h2>
|
149
|
-
<div class="refsect2"
|
151
|
+
<div class="refsect2" title="cairo_pattern_t">
|
150
152
|
<a name="cairo-pattern-t"></a><h3>cairo_pattern_t</h3>
|
151
153
|
<pre class="programlisting">typedef struct _cairo_pattern cairo_pattern_t;
|
152
154
|
</pre>
|
@@ -170,11 +172,10 @@ The type of a pattern can be queried with <a class="link" href="cairo-pattern.ht
|
|
170
172
|
Memory management of <a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> is done with
|
171
173
|
<a class="link" href="cairo-pattern.html#cairo-pattern-reference" title="cairo_pattern_reference ()"><code class="function">cairo_pattern_reference()</code></a> and <a class="link" href="cairo-pattern.html#cairo-pattern-destroy" title="cairo_pattern_destroy ()"><code class="function">cairo_pattern_destroy()</code></a>.</p>
|
172
174
|
<p>
|
173
|
-
|
174
175
|
</p>
|
175
176
|
</div>
|
176
177
|
<hr>
|
177
|
-
<div class="refsect2"
|
178
|
+
<div class="refsect2" title="cairo_pattern_add_color_stop_rgb ()">
|
178
179
|
<a name="cairo-pattern-add-color-stop-rgb"></a><h3>cairo_pattern_add_color_stop_rgb ()</h3>
|
179
180
|
<pre class="programlisting">void cairo_pattern_add_color_stop_rgb (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
180
181
|
double offset,
|
@@ -201,9 +202,8 @@ transitions instead of the typical blend.
|
|
201
202
|
<p>
|
202
203
|
Note: If the pattern is not a gradient pattern, (eg. a linear or
|
203
204
|
radial pattern), then the pattern will be put into an error status
|
204
|
-
with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
205
|
+
with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH--CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a>.</p>
|
205
206
|
<p>
|
206
|
-
|
207
207
|
</p>
|
208
208
|
<div class="variablelist"><table border="0">
|
209
209
|
<col align="left" valign="top">
|
@@ -237,7 +237,7 @@ with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATT
|
|
237
237
|
</table></div>
|
238
238
|
</div>
|
239
239
|
<hr>
|
240
|
-
<div class="refsect2"
|
240
|
+
<div class="refsect2" title="cairo_pattern_add_color_stop_rgba ()">
|
241
241
|
<a name="cairo-pattern-add-color-stop-rgba"></a><h3>cairo_pattern_add_color_stop_rgba ()</h3>
|
242
242
|
<pre class="programlisting">void cairo_pattern_add_color_stop_rgba (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
243
243
|
double offset,
|
@@ -265,9 +265,8 @@ transitions instead of the typical blend.
|
|
265
265
|
<p>
|
266
266
|
Note: If the pattern is not a gradient pattern, (eg. a linear or
|
267
267
|
radial pattern), then the pattern will be put into an error status
|
268
|
-
with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
268
|
+
with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH--CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a>.</p>
|
269
269
|
<p>
|
270
|
-
|
271
270
|
</p>
|
272
271
|
<div class="variablelist"><table border="0">
|
273
272
|
<col align="left" valign="top">
|
@@ -306,7 +305,7 @@ with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATT
|
|
306
305
|
</table></div>
|
307
306
|
</div>
|
308
307
|
<hr>
|
309
|
-
<div class="refsect2"
|
308
|
+
<div class="refsect2" title="cairo_pattern_get_color_stop_count ()">
|
310
309
|
<a name="cairo-pattern-get-color-stop-count"></a><h3>cairo_pattern_get_color_stop_count ()</h3>
|
311
310
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_get_color_stop_count (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
312
311
|
int *count);</pre>
|
@@ -314,7 +313,6 @@ with a status of <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATT
|
|
314
313
|
Gets the number of color stops specified in the given gradient
|
315
314
|
pattern.</p>
|
316
315
|
<p>
|
317
|
-
|
318
316
|
</p>
|
319
317
|
<div class="variablelist"><table border="0">
|
320
318
|
<col align="left" valign="top">
|
@@ -326,24 +324,25 @@ pattern.</p>
|
|
326
324
|
</tr>
|
327
325
|
<tr>
|
328
326
|
<td><p><span class="term"><em class="parameter"><code>count</code></em> :</span></p></td>
|
329
|
-
<td> return value for the number of color stops, or <
|
327
|
+
<td> return value for the number of color stops, or <a
|
328
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
329
|
+
><code class="literal">NULL</code></a>
|
330
330
|
</td>
|
331
331
|
</tr>
|
332
332
|
<tr>
|
333
333
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
334
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
335
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
334
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
|
335
|
+
<a class="link" href="cairo-error-status.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
|
336
336
|
pattern.
|
337
337
|
|
338
338
|
</td>
|
339
339
|
</tr>
|
340
340
|
</tbody>
|
341
341
|
</table></div>
|
342
|
-
<p class="since">Since
|
343
|
-
</p>
|
342
|
+
<p class="since">Since 1.4</p>
|
344
343
|
</div>
|
345
344
|
<hr>
|
346
|
-
<div class="refsect2"
|
345
|
+
<div class="refsect2" title="cairo_pattern_get_color_stop_rgba ()">
|
347
346
|
<a name="cairo-pattern-get-color-stop-rgba"></a><h3>cairo_pattern_get_color_stop_rgba ()</h3>
|
348
347
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_get_color_stop_rgba (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
349
348
|
int index,
|
@@ -357,7 +356,6 @@ Gets the color and offset information at the given <em class="parameter"><code>i
|
|
357
356
|
gradient pattern. Values of <em class="parameter"><code>index</code></em> are 0 to 1 less than the number
|
358
357
|
returned by <a class="link" href="cairo-pattern.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>.</p>
|
359
358
|
<p>
|
360
|
-
|
361
359
|
</p>
|
362
360
|
<div class="variablelist"><table border="0">
|
363
361
|
<col align="left" valign="top">
|
@@ -374,47 +372,56 @@ returned by <a class="link" href="cairo-pattern.html#cairo-pattern-get-color-sto
|
|
374
372
|
</tr>
|
375
373
|
<tr>
|
376
374
|
<td><p><span class="term"><em class="parameter"><code>offset</code></em> :</span></p></td>
|
377
|
-
<td> return value for the offset of the stop, or <
|
375
|
+
<td> return value for the offset of the stop, or <a
|
376
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
377
|
+
><code class="literal">NULL</code></a>
|
378
378
|
</td>
|
379
379
|
</tr>
|
380
380
|
<tr>
|
381
381
|
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
|
382
|
-
<td> return value for red component of color, or <
|
382
|
+
<td> return value for red component of color, or <a
|
383
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
384
|
+
><code class="literal">NULL</code></a>
|
383
385
|
</td>
|
384
386
|
</tr>
|
385
387
|
<tr>
|
386
388
|
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
|
387
|
-
<td> return value for green component of color, or <
|
389
|
+
<td> return value for green component of color, or <a
|
390
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
391
|
+
><code class="literal">NULL</code></a>
|
388
392
|
</td>
|
389
393
|
</tr>
|
390
394
|
<tr>
|
391
395
|
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
|
392
|
-
<td> return value for blue component of color, or <
|
396
|
+
<td> return value for blue component of color, or <a
|
397
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
398
|
+
><code class="literal">NULL</code></a>
|
393
399
|
</td>
|
394
400
|
</tr>
|
395
401
|
<tr>
|
396
402
|
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
|
397
|
-
<td> return value for alpha component of color, or <
|
403
|
+
<td> return value for alpha component of color, or <a
|
404
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
405
|
+
><code class="literal">NULL</code></a>
|
398
406
|
</td>
|
399
407
|
</tr>
|
400
408
|
<tr>
|
401
409
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
402
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
410
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or <a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-INDEX--CAPS"><code class="literal">CAIRO_STATUS_INVALID_INDEX</code></a>
|
403
411
|
if <em class="parameter"><code>index</code></em> is not valid for the given pattern. If the pattern is
|
404
|
-
not a gradient pattern, <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
412
|
+
not a gradient pattern, <a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH--CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> is
|
405
413
|
returned.
|
406
414
|
|
407
415
|
</td>
|
408
416
|
</tr>
|
409
417
|
</tbody>
|
410
418
|
</table></div>
|
411
|
-
<p class="since">Since
|
412
|
-
</p>
|
419
|
+
<p class="since">Since 1.4</p>
|
413
420
|
</div>
|
414
421
|
<hr>
|
415
|
-
<div class="refsect2"
|
422
|
+
<div class="refsect2" title="cairo_pattern_create_rgb ()">
|
416
423
|
<a name="cairo-pattern-create-rgb"></a><h3>cairo_pattern_create_rgb ()</h3>
|
417
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
424
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * cairo_pattern_create_rgb (double red,
|
418
425
|
double green,
|
419
426
|
double blue);</pre>
|
420
427
|
<p>
|
@@ -423,7 +430,6 @@ color components are floating point numbers in the range 0 to 1.
|
|
423
430
|
If the values passed in are outside that range, they will be
|
424
431
|
clamped.</p>
|
425
432
|
<p>
|
426
|
-
|
427
433
|
</p>
|
428
434
|
<div class="variablelist"><table border="0">
|
429
435
|
<col align="left" valign="top">
|
@@ -459,9 +465,9 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
459
465
|
</table></div>
|
460
466
|
</div>
|
461
467
|
<hr>
|
462
|
-
<div class="refsect2"
|
468
|
+
<div class="refsect2" title="cairo_pattern_create_rgba ()">
|
463
469
|
<a name="cairo-pattern-create-rgba"></a><h3>cairo_pattern_create_rgba ()</h3>
|
464
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
470
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * cairo_pattern_create_rgba (double red,
|
465
471
|
double green,
|
466
472
|
double blue,
|
467
473
|
double alpha);</pre>
|
@@ -471,7 +477,6 @@ The color components are floating point numbers in the range 0 to
|
|
471
477
|
1. If the values passed in are outside that range, they will be
|
472
478
|
clamped.</p>
|
473
479
|
<p>
|
474
|
-
|
475
480
|
</p>
|
476
481
|
<div class="variablelist"><table border="0">
|
477
482
|
<col align="left" valign="top">
|
@@ -512,7 +517,7 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
512
517
|
</table></div>
|
513
518
|
</div>
|
514
519
|
<hr>
|
515
|
-
<div class="refsect2"
|
520
|
+
<div class="refsect2" title="cairo_pattern_get_rgba ()">
|
516
521
|
<a name="cairo-pattern-get-rgba"></a><h3>cairo_pattern_get_rgba ()</h3>
|
517
522
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_get_rgba (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
518
523
|
double *red,
|
@@ -522,7 +527,6 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
522
527
|
<p>
|
523
528
|
Gets the solid color for a solid color pattern.</p>
|
524
529
|
<p>
|
525
|
-
|
526
530
|
</p>
|
527
531
|
<div class="variablelist"><table border="0">
|
528
532
|
<col align="left" valign="top">
|
@@ -534,45 +538,51 @@ Gets the solid color for a solid color pattern.</p>
|
|
534
538
|
</tr>
|
535
539
|
<tr>
|
536
540
|
<td><p><span class="term"><em class="parameter"><code>red</code></em> :</span></p></td>
|
537
|
-
<td> return value for red component of color, or <
|
541
|
+
<td> return value for red component of color, or <a
|
542
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
543
|
+
><code class="literal">NULL</code></a>
|
538
544
|
</td>
|
539
545
|
</tr>
|
540
546
|
<tr>
|
541
547
|
<td><p><span class="term"><em class="parameter"><code>green</code></em> :</span></p></td>
|
542
|
-
<td> return value for green component of color, or <
|
548
|
+
<td> return value for green component of color, or <a
|
549
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
550
|
+
><code class="literal">NULL</code></a>
|
543
551
|
</td>
|
544
552
|
</tr>
|
545
553
|
<tr>
|
546
554
|
<td><p><span class="term"><em class="parameter"><code>blue</code></em> :</span></p></td>
|
547
|
-
<td> return value for blue component of color, or <
|
555
|
+
<td> return value for blue component of color, or <a
|
556
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
557
|
+
><code class="literal">NULL</code></a>
|
548
558
|
</td>
|
549
559
|
</tr>
|
550
560
|
<tr>
|
551
561
|
<td><p><span class="term"><em class="parameter"><code>alpha</code></em> :</span></p></td>
|
552
|
-
<td> return value for alpha component of color, or <
|
562
|
+
<td> return value for alpha component of color, or <a
|
563
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
564
|
+
><code class="literal">NULL</code></a>
|
553
565
|
</td>
|
554
566
|
</tr>
|
555
567
|
<tr>
|
556
568
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
557
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
558
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
569
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
|
570
|
+
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH--CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if the pattern is not a solid
|
559
571
|
color pattern.
|
560
572
|
|
561
573
|
</td>
|
562
574
|
</tr>
|
563
575
|
</tbody>
|
564
576
|
</table></div>
|
565
|
-
<p class="since">Since
|
566
|
-
</p>
|
577
|
+
<p class="since">Since 1.4</p>
|
567
578
|
</div>
|
568
579
|
<hr>
|
569
|
-
<div class="refsect2"
|
580
|
+
<div class="refsect2" title="cairo_pattern_create_for_surface ()">
|
570
581
|
<a name="cairo-pattern-create-for-surface"></a><h3>cairo_pattern_create_for_surface ()</h3>
|
571
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
582
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * cairo_pattern_create_for_surface (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
572
583
|
<p>
|
573
584
|
Create a new <a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> for the given surface.</p>
|
574
585
|
<p>
|
575
|
-
|
576
586
|
</p>
|
577
587
|
<div class="variablelist"><table border="0">
|
578
588
|
<col align="left" valign="top">
|
@@ -598,7 +608,7 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
598
608
|
</table></div>
|
599
609
|
</div>
|
600
610
|
<hr>
|
601
|
-
<div class="refsect2"
|
611
|
+
<div class="refsect2" title="cairo_pattern_get_surface ()">
|
602
612
|
<a name="cairo-pattern-get-surface"></a><h3>cairo_pattern_get_surface ()</h3>
|
603
613
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_get_surface (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
604
614
|
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> **surface);</pre>
|
@@ -607,7 +617,6 @@ Gets the surface of a surface pattern. The reference returned in
|
|
607
617
|
<em class="parameter"><code>surface</code></em> is owned by the pattern; the caller should call
|
608
618
|
<a class="link" href="cairo-surface.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a> if the surface is to be retained.</p>
|
609
619
|
<p>
|
610
|
-
|
611
620
|
</p>
|
612
621
|
<div class="variablelist"><table border="0">
|
613
622
|
<col align="left" valign="top">
|
@@ -619,26 +628,27 @@ Gets the surface of a surface pattern. The reference returned in
|
|
619
628
|
</tr>
|
620
629
|
<tr>
|
621
630
|
<td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
|
622
|
-
<td> return value for surface of pattern, or <
|
631
|
+
<td> return value for surface of pattern, or <a
|
632
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
633
|
+
><code class="literal">NULL</code></a>
|
623
634
|
</td>
|
624
635
|
</tr>
|
625
636
|
<tr>
|
626
637
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
627
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
628
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
638
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
|
639
|
+
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH--CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a> if the pattern is not a surface
|
629
640
|
pattern.
|
630
641
|
|
631
642
|
</td>
|
632
643
|
</tr>
|
633
644
|
</tbody>
|
634
645
|
</table></div>
|
635
|
-
<p class="since">Since
|
636
|
-
</p>
|
646
|
+
<p class="since">Since 1.4</p>
|
637
647
|
</div>
|
638
648
|
<hr>
|
639
|
-
<div class="refsect2"
|
649
|
+
<div class="refsect2" title="cairo_pattern_create_linear ()">
|
640
650
|
<a name="cairo-pattern-create-linear"></a><h3>cairo_pattern_create_linear ()</h3>
|
641
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
651
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * cairo_pattern_create_linear (double x0,
|
642
652
|
double y0,
|
643
653
|
double x1,
|
644
654
|
double y1);</pre>
|
@@ -654,7 +664,6 @@ Note: The coordinates here are in pattern space. For a new pattern,
|
|
654
664
|
pattern space is identical to user space, but the relationship
|
655
665
|
between the spaces can be changed with <a class="link" href="cairo-pattern.html#cairo-pattern-set-matrix" title="cairo_pattern_set_matrix ()"><code class="function">cairo_pattern_set_matrix()</code></a>.</p>
|
656
666
|
<p>
|
657
|
-
|
658
667
|
</p>
|
659
668
|
<div class="variablelist"><table border="0">
|
660
669
|
<col align="left" valign="top">
|
@@ -695,7 +704,7 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
695
704
|
</table></div>
|
696
705
|
</div>
|
697
706
|
<hr>
|
698
|
-
<div class="refsect2"
|
707
|
+
<div class="refsect2" title="cairo_pattern_get_linear_points ()">
|
699
708
|
<a name="cairo-pattern-get-linear-points"></a><h3>cairo_pattern_get_linear_points ()</h3>
|
700
709
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_get_linear_points (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
701
710
|
double *x0,
|
@@ -705,7 +714,6 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
705
714
|
<p>
|
706
715
|
Gets the gradient endpoints for a linear gradient.</p>
|
707
716
|
<p>
|
708
|
-
|
709
717
|
</p>
|
710
718
|
<div class="variablelist"><table border="0">
|
711
719
|
<col align="left" valign="top">
|
@@ -717,41 +725,48 @@ Gets the gradient endpoints for a linear gradient.</p>
|
|
717
725
|
</tr>
|
718
726
|
<tr>
|
719
727
|
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
|
720
|
-
<td> return value for the x coordinate of the first point, or <
|
728
|
+
<td> return value for the x coordinate of the first point, or <a
|
729
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
730
|
+
><code class="literal">NULL</code></a>
|
721
731
|
</td>
|
722
732
|
</tr>
|
723
733
|
<tr>
|
724
734
|
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
|
725
|
-
<td> return value for the y coordinate of the first point, or <
|
735
|
+
<td> return value for the y coordinate of the first point, or <a
|
736
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
737
|
+
><code class="literal">NULL</code></a>
|
726
738
|
</td>
|
727
739
|
</tr>
|
728
740
|
<tr>
|
729
741
|
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
|
730
|
-
<td> return value for the x coordinate of the second point, or <
|
742
|
+
<td> return value for the x coordinate of the second point, or <a
|
743
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
744
|
+
><code class="literal">NULL</code></a>
|
731
745
|
</td>
|
732
746
|
</tr>
|
733
747
|
<tr>
|
734
748
|
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
|
735
|
-
<td> return value for the y coordinate of the second point, or <
|
749
|
+
<td> return value for the y coordinate of the second point, or <a
|
750
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
751
|
+
><code class="literal">NULL</code></a>
|
736
752
|
</td>
|
737
753
|
</tr>
|
738
754
|
<tr>
|
739
755
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
740
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
741
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
756
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
|
757
|
+
<a class="link" href="cairo-error-status.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
|
742
758
|
gradient pattern.
|
743
759
|
|
744
760
|
</td>
|
745
761
|
</tr>
|
746
762
|
</tbody>
|
747
763
|
</table></div>
|
748
|
-
<p class="since">Since
|
749
|
-
</p>
|
764
|
+
<p class="since">Since 1.4</p>
|
750
765
|
</div>
|
751
766
|
<hr>
|
752
|
-
<div class="refsect2"
|
767
|
+
<div class="refsect2" title="cairo_pattern_create_radial ()">
|
753
768
|
<a name="cairo-pattern-create-radial"></a><h3>cairo_pattern_create_radial ()</h3>
|
754
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
769
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * cairo_pattern_create_radial (double cx0,
|
755
770
|
double cy0,
|
756
771
|
double radius0,
|
757
772
|
double cx1,
|
@@ -769,7 +784,6 @@ Note: The coordinates here are in pattern space. For a new pattern,
|
|
769
784
|
pattern space is identical to user space, but the relationship
|
770
785
|
between the spaces can be changed with <a class="link" href="cairo-pattern.html#cairo-pattern-set-matrix" title="cairo_pattern_set_matrix ()"><code class="function">cairo_pattern_set_matrix()</code></a>.</p>
|
771
786
|
<p>
|
772
|
-
|
773
787
|
</p>
|
774
788
|
<div class="variablelist"><table border="0">
|
775
789
|
<col align="left" valign="top">
|
@@ -820,7 +834,7 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
820
834
|
</table></div>
|
821
835
|
</div>
|
822
836
|
<hr>
|
823
|
-
<div class="refsect2"
|
837
|
+
<div class="refsect2" title="cairo_pattern_get_radial_circles ()">
|
824
838
|
<a name="cairo-pattern-get-radial-circles"></a><h3>cairo_pattern_get_radial_circles ()</h3>
|
825
839
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_get_radial_circles (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
826
840
|
double *x0,
|
@@ -833,7 +847,6 @@ the status of a pattern use <a class="link" href="cairo-pattern.html#cairo-patte
|
|
833
847
|
Gets the gradient endpoint circles for a radial gradient, each
|
834
848
|
specified as a center coordinate and a radius.</p>
|
835
849
|
<p>
|
836
|
-
|
837
850
|
</p>
|
838
851
|
<div class="variablelist"><table border="0">
|
839
852
|
<col align="left" valign="top">
|
@@ -845,51 +858,62 @@ specified as a center coordinate and a radius.</p>
|
|
845
858
|
</tr>
|
846
859
|
<tr>
|
847
860
|
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
|
848
|
-
<td> return value for the x coordinate of the center of the first circle, or <
|
861
|
+
<td> return value for the x coordinate of the center of the first circle, or <a
|
862
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
863
|
+
><code class="literal">NULL</code></a>
|
849
864
|
</td>
|
850
865
|
</tr>
|
851
866
|
<tr>
|
852
867
|
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
|
853
|
-
<td> return value for the y coordinate of the center of the first circle, or <
|
868
|
+
<td> return value for the y coordinate of the center of the first circle, or <a
|
869
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
870
|
+
><code class="literal">NULL</code></a>
|
854
871
|
</td>
|
855
872
|
</tr>
|
856
873
|
<tr>
|
857
874
|
<td><p><span class="term"><em class="parameter"><code>r0</code></em> :</span></p></td>
|
858
|
-
<td> return value for the radius of the first circle, or <
|
875
|
+
<td> return value for the radius of the first circle, or <a
|
876
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
877
|
+
><code class="literal">NULL</code></a>
|
859
878
|
</td>
|
860
879
|
</tr>
|
861
880
|
<tr>
|
862
881
|
<td><p><span class="term"><em class="parameter"><code>x1</code></em> :</span></p></td>
|
863
|
-
<td> return value for the x coordinate of the center of the second circle, or <
|
882
|
+
<td> return value for the x coordinate of the center of the second circle, or <a
|
883
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
884
|
+
><code class="literal">NULL</code></a>
|
864
885
|
</td>
|
865
886
|
</tr>
|
866
887
|
<tr>
|
867
888
|
<td><p><span class="term"><em class="parameter"><code>y1</code></em> :</span></p></td>
|
868
|
-
<td> return value for the y coordinate of the center of the second circle, or <
|
889
|
+
<td> return value for the y coordinate of the center of the second circle, or <a
|
890
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
891
|
+
><code class="literal">NULL</code></a>
|
869
892
|
</td>
|
870
893
|
</tr>
|
871
894
|
<tr>
|
872
895
|
<td><p><span class="term"><em class="parameter"><code>r1</code></em> :</span></p></td>
|
873
|
-
<td> return value for the radius of the second circle, or <
|
896
|
+
<td> return value for the radius of the second circle, or <a
|
897
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
898
|
+
><code class="literal">NULL</code></a>
|
874
899
|
</td>
|
875
900
|
</tr>
|
876
901
|
<tr>
|
877
902
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
878
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
879
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
903
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, or
|
904
|
+
<a class="link" href="cairo-error-status.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
|
880
905
|
gradient pattern.
|
881
906
|
|
882
907
|
</td>
|
883
908
|
</tr>
|
884
909
|
</tbody>
|
885
910
|
</table></div>
|
886
|
-
<p class="since">Since
|
887
|
-
</p>
|
911
|
+
<p class="since">Since 1.4</p>
|
888
912
|
</div>
|
889
913
|
<hr>
|
890
|
-
<div class="refsect2"
|
914
|
+
<div class="refsect2" title="cairo_pattern_reference ()">
|
891
915
|
<a name="cairo-pattern-reference"></a><h3>cairo_pattern_reference ()</h3>
|
892
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a
|
916
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> * cairo_pattern_reference (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
893
917
|
<p>
|
894
918
|
Increases the reference count on <em class="parameter"><code>pattern</code></em> by one. This prevents
|
895
919
|
<em class="parameter"><code>pattern</code></em> from being destroyed until a matching call to
|
@@ -899,7 +923,6 @@ Increases the reference count on <em class="parameter"><code>pattern</code></em>
|
|
899
923
|
The number of references to a <a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a> can be get using
|
900
924
|
<a class="link" href="cairo-pattern.html#cairo-pattern-get-reference-count" title="cairo_pattern_get_reference_count ()"><code class="function">cairo_pattern_get_reference_count()</code></a>.</p>
|
901
925
|
<p>
|
902
|
-
|
903
926
|
</p>
|
904
927
|
<div class="variablelist"><table border="0">
|
905
928
|
<col align="left" valign="top">
|
@@ -918,7 +941,7 @@ The number of references to a <a class="link" href="cairo-pattern.html#cairo-pat
|
|
918
941
|
</table></div>
|
919
942
|
</div>
|
920
943
|
<hr>
|
921
|
-
<div class="refsect2"
|
944
|
+
<div class="refsect2" title="cairo_pattern_destroy ()">
|
922
945
|
<a name="cairo-pattern-destroy"></a><h3>cairo_pattern_destroy ()</h3>
|
923
946
|
<pre class="programlisting">void cairo_pattern_destroy (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
924
947
|
<p>
|
@@ -926,7 +949,6 @@ Decreases the reference count on <em class="parameter"><code>pattern</code></em>
|
|
926
949
|
zero, then <em class="parameter"><code>pattern</code></em> and all associated resources are freed. See
|
927
950
|
<a class="link" href="cairo-pattern.html#cairo-pattern-reference" title="cairo_pattern_reference ()"><code class="function">cairo_pattern_reference()</code></a>.</p>
|
928
951
|
<p>
|
929
|
-
|
930
952
|
</p>
|
931
953
|
<div class="variablelist"><table border="0">
|
932
954
|
<col align="left" valign="top">
|
@@ -938,14 +960,13 @@ zero, then <em class="parameter"><code>pattern</code></em> and all associated re
|
|
938
960
|
</table></div>
|
939
961
|
</div>
|
940
962
|
<hr>
|
941
|
-
<div class="refsect2"
|
963
|
+
<div class="refsect2" title="cairo_pattern_status ()">
|
942
964
|
<a name="cairo-pattern-status"></a><h3>cairo_pattern_status ()</h3>
|
943
965
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_status (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
944
966
|
<p>
|
945
967
|
Checks whether an error has previously occurred for this
|
946
968
|
pattern.</p>
|
947
969
|
<p>
|
948
|
-
|
949
970
|
</p>
|
950
971
|
<div class="variablelist"><table border="0">
|
951
972
|
<col align="left" valign="top">
|
@@ -957,15 +978,15 @@ pattern.</p>
|
|
957
978
|
</tr>
|
958
979
|
<tr>
|
959
980
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
960
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
961
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH
|
981
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>, <a class="link" href="cairo-error-status.html#CAIRO-STATUS-NO-MEMORY--CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>, or
|
982
|
+
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-PATTERN-TYPE-MISMATCH--CAPS"><code class="literal">CAIRO_STATUS_PATTERN_TYPE_MISMATCH</code></a>.
|
962
983
|
</td>
|
963
984
|
</tr>
|
964
985
|
</tbody>
|
965
986
|
</table></div>
|
966
987
|
</div>
|
967
988
|
<hr>
|
968
|
-
<div class="refsect2"
|
989
|
+
<div class="refsect2" title="enum cairo_extend_t">
|
969
990
|
<a name="cairo-extend-t"></a><h3>enum cairo_extend_t</h3>
|
970
991
|
<pre class="programlisting">typedef enum _cairo_extend {
|
971
992
|
CAIRO_EXTEND_NONE,
|
@@ -981,36 +1002,35 @@ example, outside the surface bounds or outside the gradient
|
|
981
1002
|
geometry).
|
982
1003
|
</p>
|
983
1004
|
<p>
|
984
|
-
The default extend mode is <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-NONE
|
985
|
-
and <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-PAD
|
1005
|
+
The default extend mode is <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-NONE--CAPS"><code class="literal">CAIRO_EXTEND_NONE</code></a> for surface patterns
|
1006
|
+
and <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-PAD--CAPS"><code class="literal">CAIRO_EXTEND_PAD</code></a> for gradient patterns.
|
986
1007
|
</p>
|
987
1008
|
<p>
|
988
1009
|
New entries may be added in future versions.</p>
|
989
1010
|
<p>
|
990
|
-
|
991
1011
|
</p>
|
992
1012
|
<div class="variablelist"><table border="0">
|
993
1013
|
<col align="left" valign="top">
|
994
1014
|
<tbody>
|
995
1015
|
<tr>
|
996
|
-
<td><p><a name="CAIRO-EXTEND-NONE
|
1016
|
+
<td><p><a name="CAIRO-EXTEND-NONE--CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_NONE</code></span></p></td>
|
997
1017
|
<td> pixels outside of the source pattern
|
998
1018
|
are fully transparent
|
999
1019
|
</td>
|
1000
1020
|
</tr>
|
1001
1021
|
<tr>
|
1002
|
-
<td><p><a name="CAIRO-EXTEND-REPEAT
|
1022
|
+
<td><p><a name="CAIRO-EXTEND-REPEAT--CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_REPEAT</code></span></p></td>
|
1003
1023
|
<td> the pattern is tiled by repeating
|
1004
1024
|
</td>
|
1005
1025
|
</tr>
|
1006
1026
|
<tr>
|
1007
|
-
<td><p><a name="CAIRO-EXTEND-REFLECT
|
1027
|
+
<td><p><a name="CAIRO-EXTEND-REFLECT--CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_REFLECT</code></span></p></td>
|
1008
1028
|
<td> the pattern is tiled by reflecting
|
1009
1029
|
at the edges (Implemented for surface patterns since 1.6)
|
1010
1030
|
</td>
|
1011
1031
|
</tr>
|
1012
1032
|
<tr>
|
1013
|
-
<td><p><a name="CAIRO-EXTEND-PAD
|
1033
|
+
<td><p><a name="CAIRO-EXTEND-PAD--CAPS"></a><span class="term"><code class="literal">CAIRO_EXTEND_PAD</code></span></p></td>
|
1014
1034
|
<td> pixels outside of the pattern copy
|
1015
1035
|
the closest pixel from the source (Since 1.2; but only
|
1016
1036
|
implemented for surface patterns since 1.6)
|
@@ -1020,7 +1040,7 @@ New entries may be added in future versions.</p>
|
|
1020
1040
|
</table></div>
|
1021
1041
|
</div>
|
1022
1042
|
<hr>
|
1023
|
-
<div class="refsect2"
|
1043
|
+
<div class="refsect2" title="cairo_pattern_set_extend ()">
|
1024
1044
|
<a name="cairo-pattern-set-extend"></a><h3>cairo_pattern_set_extend ()</h3>
|
1025
1045
|
<pre class="programlisting">void cairo_pattern_set_extend (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
1026
1046
|
<a class="link" href="cairo-pattern.html#cairo-extend-t" title="enum cairo_extend_t">cairo_extend_t</a> extend);</pre>
|
@@ -1030,10 +1050,9 @@ See <a class="link" href="cairo-pattern.html#cairo-extend-t" title="enum cairo_e
|
|
1030
1050
|
strategy.
|
1031
1051
|
</p>
|
1032
1052
|
<p>
|
1033
|
-
The default extend mode is <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-NONE
|
1034
|
-
and <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-PAD
|
1053
|
+
The default extend mode is <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-NONE--CAPS"><code class="literal">CAIRO_EXTEND_NONE</code></a> for surface patterns
|
1054
|
+
and <a class="link" href="cairo-pattern.html#CAIRO-EXTEND-PAD--CAPS"><code class="literal">CAIRO_EXTEND_PAD</code></a> for gradient patterns.</p>
|
1035
1055
|
<p>
|
1036
|
-
|
1037
1056
|
</p>
|
1038
1057
|
<div class="variablelist"><table border="0">
|
1039
1058
|
<col align="left" valign="top">
|
@@ -1053,14 +1072,13 @@ pattern will be drawn
|
|
1053
1072
|
</table></div>
|
1054
1073
|
</div>
|
1055
1074
|
<hr>
|
1056
|
-
<div class="refsect2"
|
1075
|
+
<div class="refsect2" title="cairo_pattern_get_extend ()">
|
1057
1076
|
<a name="cairo-pattern-get-extend"></a><h3>cairo_pattern_get_extend ()</h3>
|
1058
1077
|
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-extend-t" title="enum cairo_extend_t">cairo_extend_t</a> cairo_pattern_get_extend (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
1059
1078
|
<p>
|
1060
1079
|
Gets the current extend mode for a pattern. See <a class="link" href="cairo-pattern.html#cairo-extend-t" title="enum cairo_extend_t"><span class="type">cairo_extend_t</span></a>
|
1061
1080
|
for details on the semantics of each extend strategy.</p>
|
1062
1081
|
<p>
|
1063
|
-
|
1064
1082
|
</p>
|
1065
1083
|
<div class="variablelist"><table border="0">
|
1066
1084
|
<col align="left" valign="top">
|
@@ -1080,7 +1098,7 @@ pattern.
|
|
1080
1098
|
</table></div>
|
1081
1099
|
</div>
|
1082
1100
|
<hr>
|
1083
|
-
<div class="refsect2"
|
1101
|
+
<div class="refsect2" title="enum cairo_filter_t">
|
1084
1102
|
<a name="cairo-filter-t"></a><h3>enum cairo_filter_t</h3>
|
1085
1103
|
<pre class="programlisting">typedef enum _cairo_filter {
|
1086
1104
|
CAIRO_FILTER_FAST,
|
@@ -1097,41 +1115,40 @@ applied when reading pixel values from patterns. See
|
|
1097
1115
|
<code class="function">cairo_pattern_set_source()</code> for indicating the desired filter to be
|
1098
1116
|
used with a particular pattern.</p>
|
1099
1117
|
<p>
|
1100
|
-
|
1101
1118
|
</p>
|
1102
1119
|
<div class="variablelist"><table border="0">
|
1103
1120
|
<col align="left" valign="top">
|
1104
1121
|
<tbody>
|
1105
1122
|
<tr>
|
1106
|
-
<td><p><a name="CAIRO-FILTER-FAST
|
1123
|
+
<td><p><a name="CAIRO-FILTER-FAST--CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_FAST</code></span></p></td>
|
1107
1124
|
<td> A high-performance filter, with quality similar
|
1108
|
-
to <a class="link" href="cairo-pattern.html#CAIRO-FILTER-NEAREST
|
1125
|
+
to <a class="link" href="cairo-pattern.html#CAIRO-FILTER-NEAREST--CAPS"><code class="literal">CAIRO_FILTER_NEAREST</code></a>
|
1109
1126
|
</td>
|
1110
1127
|
</tr>
|
1111
1128
|
<tr>
|
1112
|
-
<td><p><a name="CAIRO-FILTER-GOOD
|
1129
|
+
<td><p><a name="CAIRO-FILTER-GOOD--CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_GOOD</code></span></p></td>
|
1113
1130
|
<td> A reasonable-performance filter, with quality
|
1114
|
-
similar to <a class="link" href="cairo-pattern.html#CAIRO-FILTER-BILINEAR
|
1131
|
+
similar to <a class="link" href="cairo-pattern.html#CAIRO-FILTER-BILINEAR--CAPS"><code class="literal">CAIRO_FILTER_BILINEAR</code></a>
|
1115
1132
|
</td>
|
1116
1133
|
</tr>
|
1117
1134
|
<tr>
|
1118
|
-
<td><p><a name="CAIRO-FILTER-BEST
|
1135
|
+
<td><p><a name="CAIRO-FILTER-BEST--CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_BEST</code></span></p></td>
|
1119
1136
|
<td> The highest-quality available, performance may
|
1120
1137
|
not be suitable for interactive use.
|
1121
1138
|
</td>
|
1122
1139
|
</tr>
|
1123
1140
|
<tr>
|
1124
|
-
<td><p><a name="CAIRO-FILTER-NEAREST
|
1141
|
+
<td><p><a name="CAIRO-FILTER-NEAREST--CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_NEAREST</code></span></p></td>
|
1125
1142
|
<td> Nearest-neighbor filtering
|
1126
1143
|
</td>
|
1127
1144
|
</tr>
|
1128
1145
|
<tr>
|
1129
|
-
<td><p><a name="CAIRO-FILTER-BILINEAR
|
1146
|
+
<td><p><a name="CAIRO-FILTER-BILINEAR--CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_BILINEAR</code></span></p></td>
|
1130
1147
|
<td> Linear interpolation in two dimensions
|
1131
1148
|
</td>
|
1132
1149
|
</tr>
|
1133
1150
|
<tr>
|
1134
|
-
<td><p><a name="CAIRO-FILTER-GAUSSIAN
|
1151
|
+
<td><p><a name="CAIRO-FILTER-GAUSSIAN--CAPS"></a><span class="term"><code class="literal">CAIRO_FILTER_GAUSSIAN</code></span></p></td>
|
1135
1152
|
<td> This filter value is currently
|
1136
1153
|
unimplemented, and should not be used in current code.
|
1137
1154
|
</td>
|
@@ -1140,7 +1157,7 @@ used with a particular pattern.</p>
|
|
1140
1157
|
</table></div>
|
1141
1158
|
</div>
|
1142
1159
|
<hr>
|
1143
|
-
<div class="refsect2"
|
1160
|
+
<div class="refsect2" title="cairo_pattern_set_filter ()">
|
1144
1161
|
<a name="cairo-pattern-set-filter"></a><h3>cairo_pattern_set_filter ()</h3>
|
1145
1162
|
<pre class="programlisting">void cairo_pattern_set_filter (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
1146
1163
|
<a class="link" href="cairo-pattern.html#cairo-filter-t" title="enum cairo_filter_t">cairo_filter_t</a> filter);</pre>
|
@@ -1159,10 +1176,9 @@ creates implicitly. For example:
|
|
1159
1176
|
</p>
|
1160
1177
|
<div class="informalexample"><pre class="programlisting">
|
1161
1178
|
cairo_set_source_surface (cr, image, x, y);
|
1162
|
-
cairo_pattern_set_filter (cairo_get_source (cr),
|
1179
|
+
cairo_pattern_set_filter (cairo_get_source (cr), CAIRO_FILTER_NEAREST);
|
1163
1180
|
</pre></div>
|
1164
1181
|
<p>
|
1165
|
-
|
1166
1182
|
</p>
|
1167
1183
|
<div class="variablelist"><table border="0">
|
1168
1184
|
<col align="left" valign="top">
|
@@ -1182,14 +1198,13 @@ the pattern
|
|
1182
1198
|
</table></div>
|
1183
1199
|
</div>
|
1184
1200
|
<hr>
|
1185
|
-
<div class="refsect2"
|
1201
|
+
<div class="refsect2" title="cairo_pattern_get_filter ()">
|
1186
1202
|
<a name="cairo-pattern-get-filter"></a><h3>cairo_pattern_get_filter ()</h3>
|
1187
1203
|
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-filter-t" title="enum cairo_filter_t">cairo_filter_t</a> cairo_pattern_get_filter (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
1188
1204
|
<p>
|
1189
1205
|
Gets the current filter for a pattern. See <a class="link" href="cairo-pattern.html#cairo-filter-t" title="enum cairo_filter_t"><span class="type">cairo_filter_t</span></a>
|
1190
1206
|
for details on each filter.</p>
|
1191
1207
|
<p>
|
1192
|
-
|
1193
1208
|
</p>
|
1194
1209
|
<div class="variablelist"><table border="0">
|
1195
1210
|
<col align="left" valign="top">
|
@@ -1208,7 +1223,7 @@ for details on each filter.</p>
|
|
1208
1223
|
</table></div>
|
1209
1224
|
</div>
|
1210
1225
|
<hr>
|
1211
|
-
<div class="refsect2"
|
1226
|
+
<div class="refsect2" title="cairo_pattern_set_matrix ()">
|
1212
1227
|
<a name="cairo-pattern-set-matrix"></a><h3>cairo_pattern_set_matrix ()</h3>
|
1213
1228
|
<pre class="programlisting">void cairo_pattern_set_matrix (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
1214
1229
|
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
@@ -1248,7 +1263,6 @@ would cause the pattern to appear at half of its default size.
|
|
1248
1263
|
Also, please note the discussion of the user-space locking
|
1249
1264
|
semantics of <a class="link" href="cairo-context.html#cairo-set-source" title="cairo_set_source ()"><code class="function">cairo_set_source()</code></a>.</p>
|
1250
1265
|
<p>
|
1251
|
-
|
1252
1266
|
</p>
|
1253
1267
|
<div class="variablelist"><table border="0">
|
1254
1268
|
<col align="left" valign="top">
|
@@ -1267,14 +1281,13 @@ semantics of <a class="link" href="cairo-context.html#cairo-set-source" title="c
|
|
1267
1281
|
</table></div>
|
1268
1282
|
</div>
|
1269
1283
|
<hr>
|
1270
|
-
<div class="refsect2"
|
1284
|
+
<div class="refsect2" title="cairo_pattern_get_matrix ()">
|
1271
1285
|
<a name="cairo-pattern-get-matrix"></a><h3>cairo_pattern_get_matrix ()</h3>
|
1272
1286
|
<pre class="programlisting">void cairo_pattern_get_matrix (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
1273
1287
|
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
1274
1288
|
<p>
|
1275
1289
|
Stores the pattern's transformation matrix into <em class="parameter"><code>matrix</code></em>.</p>
|
1276
1290
|
<p>
|
1277
|
-
|
1278
1291
|
</p>
|
1279
1292
|
<div class="variablelist"><table border="0">
|
1280
1293
|
<col align="left" valign="top">
|
@@ -1293,7 +1306,7 @@ Stores the pattern's transformation matrix into <em class="parameter"><code>matr
|
|
1293
1306
|
</table></div>
|
1294
1307
|
</div>
|
1295
1308
|
<hr>
|
1296
|
-
<div class="refsect2"
|
1309
|
+
<div class="refsect2" title="enum cairo_pattern_type_t">
|
1297
1310
|
<a name="cairo-pattern-type-t"></a><h3>enum cairo_pattern_type_t</h3>
|
1298
1311
|
<pre class="programlisting">typedef enum _cairo_pattern_type {
|
1299
1312
|
CAIRO_PATTERN_TYPE_SOLID,
|
@@ -1327,46 +1340,43 @@ will be shutdown and put into an error state.
|
|
1327
1340
|
<p>
|
1328
1341
|
New entries may be added in future versions.</p>
|
1329
1342
|
<p>
|
1330
|
-
|
1331
1343
|
</p>
|
1332
1344
|
<div class="variablelist"><table border="0">
|
1333
1345
|
<col align="left" valign="top">
|
1334
1346
|
<tbody>
|
1335
1347
|
<tr>
|
1336
|
-
<td><p><a name="CAIRO-PATTERN-TYPE-SOLID
|
1348
|
+
<td><p><a name="CAIRO-PATTERN-TYPE-SOLID--CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_SOLID</code></span></p></td>
|
1337
1349
|
<td> The pattern is a solid (uniform)
|
1338
1350
|
color. It may be opaque or translucent.
|
1339
1351
|
</td>
|
1340
1352
|
</tr>
|
1341
1353
|
<tr>
|
1342
|
-
<td><p><a name="CAIRO-PATTERN-TYPE-SURFACE
|
1354
|
+
<td><p><a name="CAIRO-PATTERN-TYPE-SURFACE--CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_SURFACE</code></span></p></td>
|
1343
1355
|
<td> The pattern is a based on a surface (an image).
|
1344
1356
|
</td>
|
1345
1357
|
</tr>
|
1346
1358
|
<tr>
|
1347
|
-
<td><p><a name="CAIRO-PATTERN-TYPE-LINEAR
|
1359
|
+
<td><p><a name="CAIRO-PATTERN-TYPE-LINEAR--CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_LINEAR</code></span></p></td>
|
1348
1360
|
<td> The pattern is a linear gradient.
|
1349
1361
|
</td>
|
1350
1362
|
</tr>
|
1351
1363
|
<tr>
|
1352
|
-
<td><p><a name="CAIRO-PATTERN-TYPE-RADIAL
|
1364
|
+
<td><p><a name="CAIRO-PATTERN-TYPE-RADIAL--CAPS"></a><span class="term"><code class="literal">CAIRO_PATTERN_TYPE_RADIAL</code></span></p></td>
|
1353
1365
|
<td> The pattern is a radial gradient.
|
1354
1366
|
</td>
|
1355
1367
|
</tr>
|
1356
1368
|
</tbody>
|
1357
1369
|
</table></div>
|
1358
|
-
<p class="since">Since
|
1359
|
-
</p>
|
1370
|
+
<p class="since">Since 1.2</p>
|
1360
1371
|
</div>
|
1361
1372
|
<hr>
|
1362
|
-
<div class="refsect2"
|
1373
|
+
<div class="refsect2" title="cairo_pattern_get_type ()">
|
1363
1374
|
<a name="cairo-pattern-get-type"></a><h3>cairo_pattern_get_type ()</h3>
|
1364
|
-
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t">cairo_pattern_type_t</a>
|
1375
|
+
<pre class="programlisting"><a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t">cairo_pattern_type_t</a> cairo_pattern_get_type (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
1365
1376
|
<p>
|
1366
1377
|
This function returns the type a pattern.
|
1367
1378
|
See <a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum cairo_pattern_type_t"><span class="type">cairo_pattern_type_t</span></a> for available types.</p>
|
1368
1379
|
<p>
|
1369
|
-
|
1370
1380
|
</p>
|
1371
1381
|
<div class="variablelist"><table border="0">
|
1372
1382
|
<col align="left" valign="top">
|
@@ -1384,17 +1394,15 @@ See <a class="link" href="cairo-pattern.html#cairo-pattern-type-t" title="enum c
|
|
1384
1394
|
</tr>
|
1385
1395
|
</tbody>
|
1386
1396
|
</table></div>
|
1387
|
-
<p class="since">Since
|
1388
|
-
</p>
|
1397
|
+
<p class="since">Since 1.2</p>
|
1389
1398
|
</div>
|
1390
1399
|
<hr>
|
1391
|
-
<div class="refsect2"
|
1400
|
+
<div class="refsect2" title="cairo_pattern_get_reference_count ()">
|
1392
1401
|
<a name="cairo-pattern-get-reference-count"></a><h3>cairo_pattern_get_reference_count ()</h3>
|
1393
1402
|
<pre class="programlisting">unsigned int cairo_pattern_get_reference_count (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern);</pre>
|
1394
1403
|
<p>
|
1395
1404
|
Returns the current reference count of <em class="parameter"><code>pattern</code></em>.</p>
|
1396
1405
|
<p>
|
1397
|
-
|
1398
1406
|
</p>
|
1399
1407
|
<div class="variablelist"><table border="0">
|
1400
1408
|
<col align="left" valign="top">
|
@@ -1413,11 +1421,10 @@ object is a nil object, 0 will be returned.
|
|
1413
1421
|
</tr>
|
1414
1422
|
</tbody>
|
1415
1423
|
</table></div>
|
1416
|
-
<p class="since">Since
|
1417
|
-
</p>
|
1424
|
+
<p class="since">Since 1.4</p>
|
1418
1425
|
</div>
|
1419
1426
|
<hr>
|
1420
|
-
<div class="refsect2"
|
1427
|
+
<div class="refsect2" title="cairo_pattern_set_user_data ()">
|
1421
1428
|
<a name="cairo-pattern-set-user-data"></a><h3>cairo_pattern_set_user_data ()</h3>
|
1422
1429
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_pattern_set_user_data (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
1423
1430
|
const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key,
|
@@ -1425,10 +1432,11 @@ object is a nil object, 0 will be returned.
|
|
1425
1432
|
<a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">cairo_destroy_func_t</a> destroy);</pre>
|
1426
1433
|
<p>
|
1427
1434
|
Attach user data to <em class="parameter"><code>pattern</code></em>. To remove user data from a surface,
|
1428
|
-
call this function with the key that was used to set it and <
|
1435
|
+
call this function with the key that was used to set it and <a
|
1436
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
1437
|
+
><code class="literal">NULL</code></a>
|
1429
1438
|
for <em class="parameter"><code>data</code></em>.</p>
|
1430
1439
|
<p>
|
1431
|
-
|
1432
1440
|
</p>
|
1433
1441
|
<div class="variablelist"><table border="0">
|
1434
1442
|
<col align="left" valign="top">
|
@@ -1457,27 +1465,27 @@ same key.
|
|
1457
1465
|
</tr>
|
1458
1466
|
<tr>
|
1459
1467
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1460
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
1468
|
+
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS--CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a> or <a class="link" href="cairo-error-status.html#CAIRO-STATUS-NO-MEMORY--CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a> if a
|
1461
1469
|
slot could not be allocated for the user data.
|
1462
1470
|
|
1463
1471
|
</td>
|
1464
1472
|
</tr>
|
1465
1473
|
</tbody>
|
1466
1474
|
</table></div>
|
1467
|
-
<p class="since">Since
|
1468
|
-
</p>
|
1475
|
+
<p class="since">Since 1.4</p>
|
1469
1476
|
</div>
|
1470
1477
|
<hr>
|
1471
|
-
<div class="refsect2"
|
1478
|
+
<div class="refsect2" title="cairo_pattern_get_user_data ()">
|
1472
1479
|
<a name="cairo-pattern-get-user-data"></a><h3>cairo_pattern_get_user_data ()</h3>
|
1473
|
-
<pre class="programlisting">void*
|
1480
|
+
<pre class="programlisting">void * cairo_pattern_get_user_data (<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t">cairo_pattern_t</a> *pattern,
|
1474
1481
|
const <a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a> *key);</pre>
|
1475
1482
|
<p>
|
1476
1483
|
Return user data previously attached to <em class="parameter"><code>pattern</code></em> using the
|
1477
1484
|
specified key. If no user data has been attached with the given
|
1478
|
-
key this function returns <
|
1485
|
+
key this function returns <a
|
1486
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
1487
|
+
><code class="literal">NULL</code></a>.</p>
|
1479
1488
|
<p>
|
1480
|
-
|
1481
1489
|
</p>
|
1482
1490
|
<div class="variablelist"><table border="0">
|
1483
1491
|
<col align="left" valign="top">
|
@@ -1495,23 +1503,24 @@ attached to
|
|
1495
1503
|
</tr>
|
1496
1504
|
<tr>
|
1497
1505
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1498
|
-
<td> the user data previously attached or <
|
1506
|
+
<td> the user data previously attached or <a
|
1507
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
1508
|
+
><code class="literal">NULL</code></a>.
|
1499
1509
|
|
1500
1510
|
</td>
|
1501
1511
|
</tr>
|
1502
1512
|
</tbody>
|
1503
1513
|
</table></div>
|
1504
|
-
<p class="since">Since
|
1505
|
-
</p>
|
1514
|
+
<p class="since">Since 1.4</p>
|
1506
1515
|
</div>
|
1507
1516
|
</div>
|
1508
|
-
<div class="refsect1"
|
1517
|
+
<div class="refsect1" title="See Also">
|
1509
1518
|
<a name="cairo-pattern.see-also"></a><h2>See Also</h2>
|
1510
1519
|
<p>
|
1511
1520
|
</p>
|
1512
|
-
<div class="itemizedlist"><ul type="disc">
|
1513
|
-
<li><a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></li>
|
1514
|
-
<li><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></li>
|
1521
|
+
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
1522
|
+
<li class="listitem"><a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></li>
|
1523
|
+
<li class="listitem"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></li>
|
1515
1524
|
</ul></div>
|
1516
1525
|
<p>
|
1517
1526
|
</p>
|
@@ -1519,6 +1528,6 @@ attached to
|
|
1519
1528
|
</div>
|
1520
1529
|
<div class="footer">
|
1521
1530
|
<hr>
|
1522
|
-
Generated by GTK-Doc V1.
|
1531
|
+
Generated by GTK-Doc V1.11</div>
|
1523
1532
|
</body>
|
1524
1533
|
</html>
|