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>Utilities</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="index.html" title="Cairo: A Vector Graphics Library">
|
9
9
|
<link rel="prev" href="cairo-xlib-surface.html" title="XLib Surfaces">
|
10
10
|
<link rel="next" href="cairo-matrix.html" title="cairo_matrix_t">
|
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">
|
@@ -29,7 +29,7 @@
|
|
29
29
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
30
|
<td><a accesskey="n" href="cairo-matrix.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
31
|
</tr></table>
|
32
|
-
<div class="chapter"
|
32
|
+
<div class="chapter" title="Utilities">
|
33
33
|
<div class="titlepage"><div><div><h2 class="title">
|
34
34
|
<a name="cairo-support"></a>Utilities</h2></div></div></div>
|
35
35
|
<div class="toc"><dl>
|
@@ -49,6 +49,6 @@
|
|
49
49
|
</div>
|
50
50
|
<div class="footer">
|
51
51
|
<hr>
|
52
|
-
Generated by GTK-Doc V1.
|
52
|
+
Generated by GTK-Doc V1.11</div>
|
53
53
|
</body>
|
54
54
|
</html>
|
@@ -3,12 +3,12 @@
|
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>cairo_surface_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-surfaces.html" title="Surfaces">
|
9
9
|
<link rel="prev" href="cairo-surfaces.html" title="Surfaces">
|
10
10
|
<link rel="next" href="cairo-image-surface.html" title="Image Surfaces">
|
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-image-surface.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-surface.synopsis" class="shortcut">Top</a>
|
35
|
+
|
|
36
|
+
<a href="#cairo-surface.description" class="shortcut">Description</a>
|
37
|
+
</td></tr>
|
36
38
|
</table>
|
37
|
-
<div class="refentry"
|
39
|
+
<div class="refentry" title="cairo_surface_t">
|
38
40
|
<a name="cairo-surface"></a><div class="titlepage"></div>
|
39
41
|
<div class="refnamediv"><table width="100%"><tr>
|
40
42
|
<td valign="top">
|
@@ -43,16 +45,16 @@
|
|
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-surface.synopsis"></a><h2>Synopsis</h2>
|
48
50
|
<pre class="synopsis">
|
49
51
|
typedef <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a>;
|
50
52
|
enum <a class="link" href="cairo-surface.html#cairo-content-t" title="enum cairo_content_t">cairo_content_t</a>;
|
51
|
-
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a
|
53
|
+
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-surface.html#cairo-surface-create-similar" title="cairo_surface_create_similar ()">cairo_surface_create_similar</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *other,
|
52
54
|
<a class="link" href="cairo-surface.html#cairo-content-t" title="enum cairo_content_t">cairo_content_t</a> content,
|
53
55
|
int width,
|
54
56
|
int height);
|
55
|
-
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a
|
57
|
+
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-surface.html#cairo-surface-reference" title="cairo_surface_reference ()">cairo_surface_reference</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
56
58
|
void <a class="link" href="cairo-surface.html#cairo-surface-destroy" title="cairo_surface_destroy ()">cairo_surface_destroy</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
57
59
|
<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-surface.html#cairo-surface-status" title="cairo_surface_status ()">cairo_surface_status</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
58
60
|
void <a class="link" href="cairo-surface.html#cairo-surface-finish" title="cairo_surface_finish ()">cairo_surface_finish</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
@@ -81,20 +83,20 @@ void <a class="link" href="cairo-surface.html#cairo-surface-get-f
|
|
81
83
|
double *x_pixels_per_inch,
|
82
84
|
double *y_pixels_per_inch);
|
83
85
|
enum <a class="link" href="cairo-surface.html#cairo-surface-type-t" title="enum cairo_surface_type_t">cairo_surface_type_t</a>;
|
84
|
-
<a class="link" href="cairo-surface.html#cairo-surface-type-t" title="enum cairo_surface_type_t">cairo_surface_type_t</a>
|
86
|
+
<a class="link" href="cairo-surface.html#cairo-surface-type-t" title="enum cairo_surface_type_t">cairo_surface_type_t</a> <a class="link" href="cairo-surface.html#cairo-surface-get-type" title="cairo_surface_get_type ()">cairo_surface_get_type</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
85
87
|
unsigned int <a class="link" href="cairo-surface.html#cairo-surface-get-reference-count" title="cairo_surface_get_reference_count ()">cairo_surface_get_reference_count</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
86
88
|
<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-surface.html#cairo-surface-set-user-data" title="cairo_surface_set_user_data ()">cairo_surface_set_user_data</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
87
89
|
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,
|
88
90
|
void *user_data,
|
89
91
|
<a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">cairo_destroy_func_t</a> destroy);
|
90
|
-
void*
|
92
|
+
void * <a class="link" href="cairo-surface.html#cairo-surface-get-user-data" title="cairo_surface_get_user_data ()">cairo_surface_get_user_data</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
91
93
|
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);
|
92
94
|
void <a class="link" href="cairo-surface.html#cairo-surface-copy-page" title="cairo_surface_copy_page ()">cairo_surface_copy_page</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
93
95
|
void <a class="link" href="cairo-surface.html#cairo-surface-show-page" title="cairo_surface_show_page ()">cairo_surface_show_page</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
94
96
|
<a class="link" href="cairo-types.html#cairo-bool-t" title="cairo_bool_t">cairo_bool_t</a> <a class="link" href="cairo-surface.html#cairo-surface-has-show-text-glyphs" title="cairo_surface_has_show_text_glyphs ()">cairo_surface_has_show_text_glyphs</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
|
95
97
|
</pre>
|
96
98
|
</div>
|
97
|
-
<div class="refsect1"
|
99
|
+
<div class="refsect1" title="Description">
|
98
100
|
<a name="cairo-surface.description"></a><h2>Description</h2>
|
99
101
|
<p>
|
100
102
|
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> is the abstract type representing all different drawing
|
@@ -107,9 +109,9 @@ constructors, typically of the form
|
|
107
109
|
cairo_<span class="emphasis"><em>backend</em></span><code class="function">_surface_create()</code>.
|
108
110
|
</p>
|
109
111
|
</div>
|
110
|
-
<div class="refsect1"
|
112
|
+
<div class="refsect1" title="Details">
|
111
113
|
<a name="cairo-surface.details"></a><h2>Details</h2>
|
112
|
-
<div class="refsect2"
|
114
|
+
<div class="refsect2" title="cairo_surface_t">
|
113
115
|
<a name="cairo-surface-t"></a><h3>cairo_surface_t</h3>
|
114
116
|
<pre class="programlisting">typedef struct _cairo_surface cairo_surface_t;
|
115
117
|
</pre>
|
@@ -129,11 +131,10 @@ The type of a surface can be queried with <a class="link" href="cairo-surface.ht
|
|
129
131
|
Memory management of <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> is done with
|
130
132
|
<a class="link" href="cairo-surface.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a> and <a class="link" href="cairo-surface.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a>.</p>
|
131
133
|
<p>
|
132
|
-
|
133
134
|
</p>
|
134
135
|
</div>
|
135
136
|
<hr>
|
136
|
-
<div class="refsect2"
|
137
|
+
<div class="refsect2" title="enum cairo_content_t">
|
137
138
|
<a name="cairo-content-t"></a><h3>enum cairo_content_t</h3>
|
138
139
|
<pre class="programlisting">typedef enum _cairo_content {
|
139
140
|
CAIRO_CONTENT_COLOR = 0x1000,
|
@@ -151,23 +152,22 @@ Note: The large values here are designed to keep <a class="link" href="cairo-sur
|
|
151
152
|
values distinct from <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t"><span class="type">cairo_format_t</span></a> values so that the
|
152
153
|
implementation can detect the error if users confuse the two types.</p>
|
153
154
|
<p>
|
154
|
-
|
155
155
|
</p>
|
156
156
|
<div class="variablelist"><table border="0">
|
157
157
|
<col align="left" valign="top">
|
158
158
|
<tbody>
|
159
159
|
<tr>
|
160
|
-
<td><p><a name="CAIRO-CONTENT-COLOR
|
160
|
+
<td><p><a name="CAIRO-CONTENT-COLOR--CAPS"></a><span class="term"><code class="literal">CAIRO_CONTENT_COLOR</code></span></p></td>
|
161
161
|
<td> The surface will hold color content only.
|
162
162
|
</td>
|
163
163
|
</tr>
|
164
164
|
<tr>
|
165
|
-
<td><p><a name="CAIRO-CONTENT-ALPHA
|
165
|
+
<td><p><a name="CAIRO-CONTENT-ALPHA--CAPS"></a><span class="term"><code class="literal">CAIRO_CONTENT_ALPHA</code></span></p></td>
|
166
166
|
<td> The surface will hold alpha content only.
|
167
167
|
</td>
|
168
168
|
</tr>
|
169
169
|
<tr>
|
170
|
-
<td><p><a name="CAIRO-CONTENT-COLOR-ALPHA
|
170
|
+
<td><p><a name="CAIRO-CONTENT-COLOR-ALPHA--CAPS"></a><span class="term"><code class="literal">CAIRO_CONTENT_COLOR_ALPHA</code></span></p></td>
|
171
171
|
<td> The surface will hold color and alpha content.
|
172
172
|
</td>
|
173
173
|
</tr>
|
@@ -175,9 +175,9 @@ implementation can detect the error if users confuse the two types.</p>
|
|
175
175
|
</table></div>
|
176
176
|
</div>
|
177
177
|
<hr>
|
178
|
-
<div class="refsect2"
|
178
|
+
<div class="refsect2" title="cairo_surface_create_similar ()">
|
179
179
|
<a name="cairo-surface-create-similar"></a><h3>cairo_surface_create_similar ()</h3>
|
180
|
-
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a
|
180
|
+
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_surface_create_similar (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *other,
|
181
181
|
<a class="link" href="cairo-surface.html#cairo-content-t" title="enum cairo_content_t">cairo_content_t</a> content,
|
182
182
|
int width,
|
183
183
|
int height);</pre>
|
@@ -193,7 +193,6 @@ be examined with <a class="link" href="cairo-surface.html#cairo-surface-get-type
|
|
193
193
|
Initially the surface contents are all 0 (transparent if contents
|
194
194
|
have transparency, black otherwise.)</p>
|
195
195
|
<p>
|
196
|
-
|
197
196
|
</p>
|
198
197
|
<div class="variablelist"><table border="0">
|
199
198
|
<col align="left" valign="top">
|
@@ -233,9 +232,9 @@ or any other error occurs.
|
|
233
232
|
</table></div>
|
234
233
|
</div>
|
235
234
|
<hr>
|
236
|
-
<div class="refsect2"
|
235
|
+
<div class="refsect2" title="cairo_surface_reference ()">
|
237
236
|
<a name="cairo-surface-reference"></a><h3>cairo_surface_reference ()</h3>
|
238
|
-
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a
|
237
|
+
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_surface_reference (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
239
238
|
<p>
|
240
239
|
Increases the reference count on <em class="parameter"><code>surface</code></em> by one. This prevents
|
241
240
|
<em class="parameter"><code>surface</code></em> from being destroyed until a matching call to
|
@@ -245,7 +244,6 @@ Increases the reference count on <em class="parameter"><code>surface</code></em>
|
|
245
244
|
The number of references to a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> can be get using
|
246
245
|
<a class="link" href="cairo-surface.html#cairo-surface-get-reference-count" title="cairo_surface_get_reference_count ()"><code class="function">cairo_surface_get_reference_count()</code></a>.</p>
|
247
246
|
<p>
|
248
|
-
|
249
247
|
</p>
|
250
248
|
<div class="variablelist"><table border="0">
|
251
249
|
<col align="left" valign="top">
|
@@ -264,7 +262,7 @@ The number of references to a <a class="link" href="cairo-surface.html#cairo-sur
|
|
264
262
|
</table></div>
|
265
263
|
</div>
|
266
264
|
<hr>
|
267
|
-
<div class="refsect2"
|
265
|
+
<div class="refsect2" title="cairo_surface_destroy ()">
|
268
266
|
<a name="cairo-surface-destroy"></a><h3>cairo_surface_destroy ()</h3>
|
269
267
|
<pre class="programlisting">void cairo_surface_destroy (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
270
268
|
<p>
|
@@ -272,7 +270,6 @@ Decreases the reference count on <em class="parameter"><code>surface</code></em>
|
|
272
270
|
zero, then <em class="parameter"><code>surface</code></em> and all associated resources are freed. See
|
273
271
|
<a class="link" href="cairo-surface.html#cairo-surface-reference" title="cairo_surface_reference ()"><code class="function">cairo_surface_reference()</code></a>.</p>
|
274
272
|
<p>
|
275
|
-
|
276
273
|
</p>
|
277
274
|
<div class="variablelist"><table border="0">
|
278
275
|
<col align="left" valign="top">
|
@@ -284,14 +281,13 @@ zero, then <em class="parameter"><code>surface</code></em> and all associated re
|
|
284
281
|
</table></div>
|
285
282
|
</div>
|
286
283
|
<hr>
|
287
|
-
<div class="refsect2"
|
284
|
+
<div class="refsect2" title="cairo_surface_status ()">
|
288
285
|
<a name="cairo-surface-status"></a><h3>cairo_surface_status ()</h3>
|
289
286
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_surface_status (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
290
287
|
<p>
|
291
288
|
Checks whether an error has previously occurred for this
|
292
289
|
surface.</p>
|
293
290
|
<p>
|
294
|
-
|
295
291
|
</p>
|
296
292
|
<div class="variablelist"><table border="0">
|
297
293
|
<col align="left" valign="top">
|
@@ -303,17 +299,17 @@ surface.</p>
|
|
303
299
|
</tr>
|
304
300
|
<tr>
|
305
301
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
306
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
307
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-NO-MEMORY
|
308
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-CONTENT
|
309
|
-
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-VISUAL
|
302
|
+
<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-NULL-POINTER--CAPS"><code class="literal">CAIRO_STATUS_NULL_POINTER</code></a>,
|
303
|
+
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-NO-MEMORY--CAPS"><code class="literal">CAIRO_STATUS_NO_MEMORY</code></a>, <a class="link" href="cairo-error-status.html#CAIRO-STATUS-READ-ERROR--CAPS"><code class="literal">CAIRO_STATUS_READ_ERROR</code></a>,
|
304
|
+
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-CONTENT--CAPS"><code class="literal">CAIRO_STATUS_INVALID_CONTENT</code></a>, <a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-FORMAT--CAPS"><code class="literal">CAIRO_STATUS_INVALID_FORMAT</code></a>, or
|
305
|
+
<a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-VISUAL--CAPS"><code class="literal">CAIRO_STATUS_INVALID_VISUAL</code></a>.
|
310
306
|
</td>
|
311
307
|
</tr>
|
312
308
|
</tbody>
|
313
309
|
</table></div>
|
314
310
|
</div>
|
315
311
|
<hr>
|
316
|
-
<div class="refsect2"
|
312
|
+
<div class="refsect2" title="cairo_surface_finish ()">
|
317
313
|
<a name="cairo-surface-finish"></a><h3>cairo_surface_finish ()</h3>
|
318
314
|
<pre class="programlisting">void cairo_surface_finish (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
319
315
|
<p>
|
@@ -324,7 +320,7 @@ After calling <a class="link" href="cairo-surface.html#cairo-surface-finish" tit
|
|
324
320
|
surface are getting and setting user, referencing and
|
325
321
|
destroying, and flushing and finishing it.
|
326
322
|
Further drawing to the surface will not affect the
|
327
|
-
surface but will instead trigger a <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SURFACE-FINISHED
|
323
|
+
surface but will instead trigger a <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SURFACE-FINISHED--CAPS"><code class="literal">CAIRO_STATUS_SURFACE_FINISHED</code></a>
|
328
324
|
error.
|
329
325
|
</p>
|
330
326
|
<p>
|
@@ -333,7 +329,6 @@ reference count to zero, cairo will call <a class="link" href="cairo-surface.htm
|
|
333
329
|
it hasn't been called already, before freeing the resources
|
334
330
|
associated with the surface.</p>
|
335
331
|
<p>
|
336
|
-
|
337
332
|
</p>
|
338
333
|
<div class="variablelist"><table border="0">
|
339
334
|
<col align="left" valign="top">
|
@@ -345,7 +340,7 @@ associated with the surface.</p>
|
|
345
340
|
</table></div>
|
346
341
|
</div>
|
347
342
|
<hr>
|
348
|
-
<div class="refsect2"
|
343
|
+
<div class="refsect2" title="cairo_surface_flush ()">
|
349
344
|
<a name="cairo-surface-flush"></a><h3>cairo_surface_flush ()</h3>
|
350
345
|
<pre class="programlisting">void cairo_surface_flush (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
351
346
|
<p>
|
@@ -356,7 +351,6 @@ drawing on the surface with cairo to drawing on it directly
|
|
356
351
|
with native APIs. If the surface doesn't support direct access,
|
357
352
|
then this function does nothing.</p>
|
358
353
|
<p>
|
359
|
-
|
360
354
|
</p>
|
361
355
|
<div class="variablelist"><table border="0">
|
362
356
|
<col align="left" valign="top">
|
@@ -368,7 +362,7 @@ then this function does nothing.</p>
|
|
368
362
|
</table></div>
|
369
363
|
</div>
|
370
364
|
<hr>
|
371
|
-
<div class="refsect2"
|
365
|
+
<div class="refsect2" title="cairo_surface_get_font_options ()">
|
372
366
|
<a name="cairo-surface-get-font-options"></a><h3>cairo_surface_get_font_options ()</h3>
|
373
367
|
<pre class="programlisting">void cairo_surface_get_font_options (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
374
368
|
<a class="link" href="cairo-font-options.html#cairo-font-options-t" title="cairo_font_options_t">cairo_font_options_t</a> *options);</pre>
|
@@ -379,7 +373,6 @@ for rendering on them, print surfaces to disable hinting of
|
|
379
373
|
metrics and so forth. The result can then be used with
|
380
374
|
<a class="link" href="cairo-scaled-font.html#cairo-scaled-font-create" title="cairo_scaled_font_create ()"><code class="function">cairo_scaled_font_create()</code></a>.</p>
|
381
375
|
<p>
|
382
|
-
|
383
376
|
</p>
|
384
377
|
<div class="variablelist"><table border="0">
|
385
378
|
<col align="left" valign="top">
|
@@ -399,7 +392,7 @@ metrics and so forth. The result can then be used with
|
|
399
392
|
</table></div>
|
400
393
|
</div>
|
401
394
|
<hr>
|
402
|
-
<div class="refsect2"
|
395
|
+
<div class="refsect2" title="cairo_surface_get_content ()">
|
403
396
|
<a name="cairo-surface-get-content"></a><h3>cairo_surface_get_content ()</h3>
|
404
397
|
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-content-t" title="enum cairo_content_t">cairo_content_t</a> cairo_surface_get_content (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
405
398
|
<p>
|
@@ -407,7 +400,6 @@ This function returns the content type of <em class="parameter"><code>surface</c
|
|
407
400
|
whether the surface contains color and/or alpha information. See
|
408
401
|
<a class="link" href="cairo-surface.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a>.</p>
|
409
402
|
<p>
|
410
|
-
|
411
403
|
</p>
|
412
404
|
<div class="variablelist"><table border="0">
|
413
405
|
<col align="left" valign="top">
|
@@ -425,11 +417,10 @@ whether the surface contains color and/or alpha information. See
|
|
425
417
|
</tr>
|
426
418
|
</tbody>
|
427
419
|
</table></div>
|
428
|
-
<p class="since">Since
|
429
|
-
</p>
|
420
|
+
<p class="since">Since 1.2</p>
|
430
421
|
</div>
|
431
422
|
<hr>
|
432
|
-
<div class="refsect2"
|
423
|
+
<div class="refsect2" title="cairo_surface_mark_dirty ()">
|
433
424
|
<a name="cairo-surface-mark-dirty"></a><h3>cairo_surface_mark_dirty ()</h3>
|
434
425
|
<pre class="programlisting">void cairo_surface_mark_dirty (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
435
426
|
<p>
|
@@ -437,7 +428,6 @@ Tells cairo that drawing has been done to surface using means other
|
|
437
428
|
than cairo, and that cairo should reread any cached areas. Note
|
438
429
|
that you must call <a class="link" href="cairo-surface.html#cairo-surface-flush" title="cairo_surface_flush ()"><code class="function">cairo_surface_flush()</code></a> before doing such drawing.</p>
|
439
430
|
<p>
|
440
|
-
|
441
431
|
</p>
|
442
432
|
<div class="variablelist"><table border="0">
|
443
433
|
<col align="left" valign="top">
|
@@ -449,7 +439,7 @@ that you must call <a class="link" href="cairo-surface.html#cairo-surface-flush"
|
|
449
439
|
</table></div>
|
450
440
|
</div>
|
451
441
|
<hr>
|
452
|
-
<div class="refsect2"
|
442
|
+
<div class="refsect2" title="cairo_surface_mark_dirty_rectangle ()">
|
453
443
|
<a name="cairo-surface-mark-dirty-rectangle"></a><h3>cairo_surface_mark_dirty_rectangle ()</h3>
|
454
444
|
<pre class="programlisting">void cairo_surface_mark_dirty_rectangle (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
455
445
|
int x,
|
@@ -466,7 +456,6 @@ Any cached clip set on the surface will be reset by this function,
|
|
466
456
|
to make sure that future cairo calls have the clip set that they
|
467
457
|
expect.</p>
|
468
458
|
<p>
|
469
|
-
|
470
459
|
</p>
|
471
460
|
<div class="variablelist"><table border="0">
|
472
461
|
<col align="left" valign="top">
|
@@ -500,7 +489,7 @@ expect.</p>
|
|
500
489
|
</table></div>
|
501
490
|
</div>
|
502
491
|
<hr>
|
503
|
-
<div class="refsect2"
|
492
|
+
<div class="refsect2" title="cairo_surface_set_device_offset ()">
|
504
493
|
<a name="cairo-surface-set-device-offset"></a><h3>cairo_surface_set_device_offset ()</h3>
|
505
494
|
<pre class="programlisting">void cairo_surface_set_device_offset (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
506
495
|
double x_offset,
|
@@ -519,7 +508,6 @@ sufficient to do this, since functions like
|
|
519
508
|
Note that the offset affects drawing to the surface as well as
|
520
509
|
using the surface in a source pattern.</p>
|
521
510
|
<p>
|
522
|
-
|
523
511
|
</p>
|
524
512
|
<div class="variablelist"><table border="0">
|
525
513
|
<col align="left" valign="top">
|
@@ -543,7 +531,7 @@ using the surface in a source pattern.</p>
|
|
543
531
|
</table></div>
|
544
532
|
</div>
|
545
533
|
<hr>
|
546
|
-
<div class="refsect2"
|
534
|
+
<div class="refsect2" title="cairo_surface_get_device_offset ()">
|
547
535
|
<a name="cairo-surface-get-device-offset"></a><h3>cairo_surface_get_device_offset ()</h3>
|
548
536
|
<pre class="programlisting">void cairo_surface_get_device_offset (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
549
537
|
double *x_offset,
|
@@ -552,7 +540,6 @@ using the surface in a source pattern.</p>
|
|
552
540
|
This function returns the previous device offset set by
|
553
541
|
<a class="link" href="cairo-surface.html#cairo-surface-set-device-offset" title="cairo_surface_set_device_offset ()"><code class="function">cairo_surface_set_device_offset()</code></a>.</p>
|
554
542
|
<p>
|
555
|
-
|
556
543
|
</p>
|
557
544
|
<div class="variablelist"><table border="0">
|
558
545
|
<col align="left" valign="top">
|
@@ -574,11 +561,10 @@ This function returns the previous device offset set by
|
|
574
561
|
</tr>
|
575
562
|
</tbody>
|
576
563
|
</table></div>
|
577
|
-
<p class="since">Since
|
578
|
-
</p>
|
564
|
+
<p class="since">Since 1.2</p>
|
579
565
|
</div>
|
580
566
|
<hr>
|
581
|
-
<div class="refsect2"
|
567
|
+
<div class="refsect2" title="cairo_surface_set_fallback_resolution ()">
|
582
568
|
<a name="cairo-surface-set-fallback-resolution"></a><h3>cairo_surface_set_fallback_resolution ()</h3>
|
583
569
|
<pre class="programlisting">void cairo_surface_set_fallback_resolution
|
584
570
|
(<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
@@ -615,7 +601,6 @@ in effect on a single page.
|
|
615
601
|
The default fallback resoultion is 300 pixels per inch in both
|
616
602
|
dimensions.</p>
|
617
603
|
<p>
|
618
|
-
|
619
604
|
</p>
|
620
605
|
<div class="variablelist"><table border="0">
|
621
606
|
<col align="left" valign="top">
|
@@ -637,11 +622,10 @@ dimensions.</p>
|
|
637
622
|
</tr>
|
638
623
|
</tbody>
|
639
624
|
</table></div>
|
640
|
-
<p class="since">Since
|
641
|
-
</p>
|
625
|
+
<p class="since">Since 1.2</p>
|
642
626
|
</div>
|
643
627
|
<hr>
|
644
|
-
<div class="refsect2"
|
628
|
+
<div class="refsect2" title="cairo_surface_get_fallback_resolution ()">
|
645
629
|
<a name="cairo-surface-get-fallback-resolution"></a><h3>cairo_surface_get_fallback_resolution ()</h3>
|
646
630
|
<pre class="programlisting">void cairo_surface_get_fallback_resolution
|
647
631
|
(<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
@@ -652,7 +636,6 @@ This function returns the previous fallback resolution set by
|
|
652
636
|
<a class="link" href="cairo-surface.html#cairo-surface-set-fallback-resolution" title="cairo_surface_set_fallback_resolution ()"><code class="function">cairo_surface_set_fallback_resolution()</code></a>, or default fallback
|
653
637
|
resolution if never set.</p>
|
654
638
|
<p>
|
655
|
-
|
656
639
|
</p>
|
657
640
|
<div class="variablelist"><table border="0">
|
658
641
|
<col align="left" valign="top">
|
@@ -674,11 +657,10 @@ resolution if never set.</p>
|
|
674
657
|
</tr>
|
675
658
|
</tbody>
|
676
659
|
</table></div>
|
677
|
-
<p class="since">Since
|
678
|
-
</p>
|
660
|
+
<p class="since">Since 1.8</p>
|
679
661
|
</div>
|
680
662
|
<hr>
|
681
|
-
<div class="refsect2"
|
663
|
+
<div class="refsect2" title="enum cairo_surface_type_t">
|
682
664
|
<a name="cairo-surface-type-t"></a><h3>enum cairo_surface_type_t</h3>
|
683
665
|
<pre class="programlisting">typedef enum _cairo_surface_type {
|
684
666
|
CAIRO_SURFACE_TYPE_IMAGE,
|
@@ -724,95 +706,92 @@ the wrong type is undefined.
|
|
724
706
|
<p>
|
725
707
|
New entries may be added in future versions.</p>
|
726
708
|
<p>
|
727
|
-
|
728
709
|
</p>
|
729
710
|
<div class="variablelist"><table border="0">
|
730
711
|
<col align="left" valign="top">
|
731
712
|
<tbody>
|
732
713
|
<tr>
|
733
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-IMAGE
|
714
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-IMAGE--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_IMAGE</code></span></p></td>
|
734
715
|
<td> The surface is of type image
|
735
716
|
</td>
|
736
717
|
</tr>
|
737
718
|
<tr>
|
738
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-PDF
|
719
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-PDF--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_PDF</code></span></p></td>
|
739
720
|
<td> The surface is of type pdf
|
740
721
|
</td>
|
741
722
|
</tr>
|
742
723
|
<tr>
|
743
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-PS
|
724
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-PS--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_PS</code></span></p></td>
|
744
725
|
<td> The surface is of type ps
|
745
726
|
</td>
|
746
727
|
</tr>
|
747
728
|
<tr>
|
748
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-XLIB
|
729
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-XLIB--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_XLIB</code></span></p></td>
|
749
730
|
<td> The surface is of type xlib
|
750
731
|
</td>
|
751
732
|
</tr>
|
752
733
|
<tr>
|
753
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-XCB
|
734
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-XCB--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_XCB</code></span></p></td>
|
754
735
|
<td> The surface is of type xcb
|
755
736
|
</td>
|
756
737
|
</tr>
|
757
738
|
<tr>
|
758
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-GLITZ
|
739
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-GLITZ--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_GLITZ</code></span></p></td>
|
759
740
|
<td> The surface is of type glitz
|
760
741
|
</td>
|
761
742
|
</tr>
|
762
743
|
<tr>
|
763
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-QUARTZ
|
744
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-QUARTZ--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_QUARTZ</code></span></p></td>
|
764
745
|
<td> The surface is of type quartz
|
765
746
|
</td>
|
766
747
|
</tr>
|
767
748
|
<tr>
|
768
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-WIN32
|
749
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-WIN32--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></span></p></td>
|
769
750
|
<td> The surface is of type win32
|
770
751
|
</td>
|
771
752
|
</tr>
|
772
753
|
<tr>
|
773
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-BEOS
|
754
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-BEOS--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_BEOS</code></span></p></td>
|
774
755
|
<td> The surface is of type beos
|
775
756
|
</td>
|
776
757
|
</tr>
|
777
758
|
<tr>
|
778
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-DIRECTFB
|
759
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-DIRECTFB--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_DIRECTFB</code></span></p></td>
|
779
760
|
<td> The surface is of type directfb
|
780
761
|
</td>
|
781
762
|
</tr>
|
782
763
|
<tr>
|
783
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-SVG
|
764
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-SVG--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_SVG</code></span></p></td>
|
784
765
|
<td> The surface is of type svg
|
785
766
|
</td>
|
786
767
|
</tr>
|
787
768
|
<tr>
|
788
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-OS2
|
769
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-OS2--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_OS2</code></span></p></td>
|
789
770
|
<td> The surface is of type os2
|
790
771
|
</td>
|
791
772
|
</tr>
|
792
773
|
<tr>
|
793
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-WIN32-PRINTING
|
774
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-WIN32-PRINTING--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_WIN32_PRINTING</code></span></p></td>
|
794
775
|
<td> The surface is a win32 printing surface
|
795
776
|
</td>
|
796
777
|
</tr>
|
797
778
|
<tr>
|
798
|
-
<td><p><a name="CAIRO-SURFACE-TYPE-QUARTZ-IMAGE
|
779
|
+
<td><p><a name="CAIRO-SURFACE-TYPE-QUARTZ-IMAGE--CAPS"></a><span class="term"><code class="literal">CAIRO_SURFACE_TYPE_QUARTZ_IMAGE</code></span></p></td>
|
799
780
|
<td> The surface is of type quartz_image
|
800
781
|
</td>
|
801
782
|
</tr>
|
802
783
|
</tbody>
|
803
784
|
</table></div>
|
804
|
-
<p class="since">Since
|
805
|
-
</p>
|
785
|
+
<p class="since">Since 1.2</p>
|
806
786
|
</div>
|
807
787
|
<hr>
|
808
|
-
<div class="refsect2"
|
788
|
+
<div class="refsect2" title="cairo_surface_get_type ()">
|
809
789
|
<a name="cairo-surface-get-type"></a><h3>cairo_surface_get_type ()</h3>
|
810
|
-
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-type-t" title="enum cairo_surface_type_t">cairo_surface_type_t</a>
|
790
|
+
<pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-type-t" title="enum cairo_surface_type_t">cairo_surface_type_t</a> cairo_surface_get_type (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
811
791
|
<p>
|
812
792
|
This function returns the type of the backend used to create
|
813
793
|
a surface. See <a class="link" href="cairo-surface.html#cairo-surface-type-t" title="enum cairo_surface_type_t"><span class="type">cairo_surface_type_t</span></a> for available types.</p>
|
814
794
|
<p>
|
815
|
-
|
816
795
|
</p>
|
817
796
|
<div class="variablelist"><table border="0">
|
818
797
|
<col align="left" valign="top">
|
@@ -830,17 +809,15 @@ a surface. See <a class="link" href="cairo-surface.html#cairo-surface-type-t" ti
|
|
830
809
|
</tr>
|
831
810
|
</tbody>
|
832
811
|
</table></div>
|
833
|
-
<p class="since">Since
|
834
|
-
</p>
|
812
|
+
<p class="since">Since 1.2</p>
|
835
813
|
</div>
|
836
814
|
<hr>
|
837
|
-
<div class="refsect2"
|
815
|
+
<div class="refsect2" title="cairo_surface_get_reference_count ()">
|
838
816
|
<a name="cairo-surface-get-reference-count"></a><h3>cairo_surface_get_reference_count ()</h3>
|
839
817
|
<pre class="programlisting">unsigned int cairo_surface_get_reference_count (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
840
818
|
<p>
|
841
819
|
Returns the current reference count of <em class="parameter"><code>surface</code></em>.</p>
|
842
820
|
<p>
|
843
|
-
|
844
821
|
</p>
|
845
822
|
<div class="variablelist"><table border="0">
|
846
823
|
<col align="left" valign="top">
|
@@ -859,11 +836,10 @@ object is a nil object, 0 will be returned.
|
|
859
836
|
</tr>
|
860
837
|
</tbody>
|
861
838
|
</table></div>
|
862
|
-
<p class="since">Since
|
863
|
-
</p>
|
839
|
+
<p class="since">Since 1.4</p>
|
864
840
|
</div>
|
865
841
|
<hr>
|
866
|
-
<div class="refsect2"
|
842
|
+
<div class="refsect2" title="cairo_surface_set_user_data ()">
|
867
843
|
<a name="cairo-surface-set-user-data"></a><h3>cairo_surface_set_user_data ()</h3>
|
868
844
|
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_surface_set_user_data (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
869
845
|
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,
|
@@ -871,10 +847,11 @@ object is a nil object, 0 will be returned.
|
|
871
847
|
<a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">cairo_destroy_func_t</a> destroy);</pre>
|
872
848
|
<p>
|
873
849
|
Attach user data to <em class="parameter"><code>surface</code></em>. To remove user data from a surface,
|
874
|
-
call this function with the key that was used to set it and <
|
850
|
+
call this function with the key that was used to set it and <a
|
851
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
852
|
+
><code class="literal">NULL</code></a>
|
875
853
|
for <em class="parameter"><code>data</code></em>.</p>
|
876
854
|
<p>
|
877
|
-
|
878
855
|
</p>
|
879
856
|
<div class="variablelist"><table border="0">
|
880
857
|
<col align="left" valign="top">
|
@@ -903,7 +880,7 @@ same key.
|
|
903
880
|
</tr>
|
904
881
|
<tr>
|
905
882
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
906
|
-
<td> <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS
|
883
|
+
<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
|
907
884
|
slot could not be allocated for the user data.
|
908
885
|
</td>
|
909
886
|
</tr>
|
@@ -911,16 +888,17 @@ slot could not be allocated for the user data.
|
|
911
888
|
</table></div>
|
912
889
|
</div>
|
913
890
|
<hr>
|
914
|
-
<div class="refsect2"
|
891
|
+
<div class="refsect2" title="cairo_surface_get_user_data ()">
|
915
892
|
<a name="cairo-surface-get-user-data"></a><h3>cairo_surface_get_user_data ()</h3>
|
916
|
-
<pre class="programlisting">void*
|
893
|
+
<pre class="programlisting">void * cairo_surface_get_user_data (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
|
917
894
|
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>
|
918
895
|
<p>
|
919
896
|
Return user data previously attached to <em class="parameter"><code>surface</code></em> using the specified
|
920
897
|
key. If no user data has been attached with the given key this
|
921
|
-
function returns <
|
898
|
+
function returns <a
|
899
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
900
|
+
><code class="literal">NULL</code></a>.</p>
|
922
901
|
<p>
|
923
|
-
|
924
902
|
</p>
|
925
903
|
<div class="variablelist"><table border="0">
|
926
904
|
<col align="left" valign="top">
|
@@ -938,14 +916,16 @@ attached to
|
|
938
916
|
</tr>
|
939
917
|
<tr>
|
940
918
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
941
|
-
<td> the user data previously attached or <
|
919
|
+
<td> the user data previously attached or <a
|
920
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#NULL--CAPS"
|
921
|
+
><code class="literal">NULL</code></a>.
|
942
922
|
</td>
|
943
923
|
</tr>
|
944
924
|
</tbody>
|
945
925
|
</table></div>
|
946
926
|
</div>
|
947
927
|
<hr>
|
948
|
-
<div class="refsect2"
|
928
|
+
<div class="refsect2" title="cairo_surface_copy_page ()">
|
949
929
|
<a name="cairo-surface-copy-page"></a><h3>cairo_surface_copy_page ()</h3>
|
950
930
|
<pre class="programlisting">void cairo_surface_copy_page (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
951
931
|
<p>
|
@@ -958,7 +938,6 @@ want to get an empty page after the emission.
|
|
958
938
|
There is a convenience function for this that takes a <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>,
|
959
939
|
namely <a class="link" href="cairo-context.html#cairo-copy-page" title="cairo_copy_page ()"><code class="function">cairo_copy_page()</code></a>.</p>
|
960
940
|
<p>
|
961
|
-
|
962
941
|
</p>
|
963
942
|
<div class="variablelist"><table border="0">
|
964
943
|
<col align="left" valign="top">
|
@@ -968,11 +947,10 @@ namely <a class="link" href="cairo-context.html#cairo-copy-page" title="cairo_co
|
|
968
947
|
</td>
|
969
948
|
</tr></tbody>
|
970
949
|
</table></div>
|
971
|
-
<p class="since">Since
|
972
|
-
</p>
|
950
|
+
<p class="since">Since 1.6</p>
|
973
951
|
</div>
|
974
952
|
<hr>
|
975
|
-
<div class="refsect2"
|
953
|
+
<div class="refsect2" title="cairo_surface_show_page ()">
|
976
954
|
<a name="cairo-surface-show-page"></a><h3>cairo_surface_show_page ()</h3>
|
977
955
|
<pre class="programlisting">void cairo_surface_show_page (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
978
956
|
<p>
|
@@ -983,7 +961,6 @@ pages. Use <a class="link" href="cairo-surface.html#cairo-surface-copy-page" ti
|
|
983
961
|
There is a convenience function for this that takes a <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>,
|
984
962
|
namely <a class="link" href="cairo-context.html#cairo-show-page" title="cairo_show_page ()"><code class="function">cairo_show_page()</code></a>.</p>
|
985
963
|
<p>
|
986
|
-
|
987
964
|
</p>
|
988
965
|
<div class="variablelist"><table border="0">
|
989
966
|
<col align="left" valign="top">
|
@@ -993,11 +970,10 @@ namely <a class="link" href="cairo-context.html#cairo-show-page" title="cairo_sh
|
|
993
970
|
</td>
|
994
971
|
</tr></tbody>
|
995
972
|
</table></div>
|
996
|
-
<p class="since">Since
|
997
|
-
</p>
|
973
|
+
<p class="since">Since 1.6</p>
|
998
974
|
</div>
|
999
975
|
<hr>
|
1000
|
-
<div class="refsect2"
|
976
|
+
<div class="refsect2" title="cairo_surface_has_show_text_glyphs ()">
|
1001
977
|
<a name="cairo-surface-has-show-text-glyphs"></a><h3>cairo_surface_has_show_text_glyphs ()</h3>
|
1002
978
|
<pre class="programlisting"><a class="link" href="cairo-types.html#cairo-bool-t" title="cairo_bool_t">cairo_bool_t</a> cairo_surface_has_show_text_glyphs (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
|
1003
979
|
<p>
|
@@ -1007,20 +983,15 @@ whether it actually uses the provided text and cluster data
|
|
1007
983
|
to a <a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> call.
|
1008
984
|
</p>
|
1009
985
|
<p>
|
1010
|
-
Note: Even if this function returns <
|
986
|
+
Note: Even if this function returns <a
|
987
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
|
988
|
+
><code class="literal">FALSE</code></a>, a
|
1011
989
|
<a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a> operation targeted at <em class="parameter"><code>surface</code></em> will
|
1012
990
|
still succeed. It just will
|
1013
991
|
act like a <a class="link" href="cairo-text.html#cairo-show-glyphs" title="cairo_show_glyphs ()"><code class="function">cairo_show_glyphs()</code></a> operation. Users can use this
|
1014
992
|
function to avoid computing UTF-8 text and cluster mapping if the
|
1015
|
-
target surface does not use it
|
1016
|
-
</p>
|
993
|
+
target surface does not use it.</p>
|
1017
994
|
<p>
|
1018
|
-
There is a convenience function for this that takes a <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>,
|
1019
|
-
namely <a
|
1020
|
-
href="../cairo/cairo-text.html#cairo-has-show-text-glyphs"
|
1021
|
-
><code class="function">cairo_has_show_text_glyphs()</code></a>.</p>
|
1022
|
-
<p>
|
1023
|
-
|
1024
995
|
</p>
|
1025
996
|
<div class="variablelist"><table border="0">
|
1026
997
|
<col align="left" valign="top">
|
@@ -1032,25 +1003,28 @@ href="../cairo/cairo-text.html#cairo-has-show-text-glyphs"
|
|
1032
1003
|
</tr>
|
1033
1004
|
<tr>
|
1034
1005
|
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
1035
|
-
<td> <
|
1036
|
-
|
1006
|
+
<td> <a
|
1007
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#TRUE--CAPS"
|
1008
|
+
><code class="literal">TRUE</code></a> if <em class="parameter"><code>surface</code></em> supports
|
1009
|
+
<a class="link" href="cairo-text.html#cairo-show-text-glyphs" title="cairo_show_text_glyphs ()"><code class="function">cairo_show_text_glyphs()</code></a>, <a
|
1010
|
+
href="http://library.gnome.org/devel/glib/unstable/glib-Standard-Macros.html#FALSE--CAPS"
|
1011
|
+
><code class="literal">FALSE</code></a> otherwise
|
1037
1012
|
|
1038
1013
|
</td>
|
1039
1014
|
</tr>
|
1040
1015
|
</tbody>
|
1041
1016
|
</table></div>
|
1042
|
-
<p class="since">Since
|
1043
|
-
</p>
|
1017
|
+
<p class="since">Since 1.8</p>
|
1044
1018
|
</div>
|
1045
1019
|
</div>
|
1046
|
-
<div class="refsect1"
|
1020
|
+
<div class="refsect1" title="See Also">
|
1047
1021
|
<a name="cairo-surface.see-also"></a><h2>See Also</h2>
|
1048
1022
|
<p>
|
1049
1023
|
</p>
|
1050
|
-
<div class="itemizedlist"><ul type="disc">
|
1051
|
-
<li>#<a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><code class="function">cairo_t()</code></a>
|
1024
|
+
<div class="itemizedlist"><ul class="itemizedlist" type="disc">
|
1025
|
+
<li class="listitem">#<a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><code class="function">cairo_t()</code></a>
|
1052
1026
|
</li>
|
1053
|
-
<li>#<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><code class="function">cairo_pattern_t()</code></a>
|
1027
|
+
<li class="listitem">#<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><code class="function">cairo_pattern_t()</code></a>
|
1054
1028
|
</li>
|
1055
1029
|
</ul></div>
|
1056
1030
|
<p>
|
@@ -1059,6 +1033,6 @@ href="../cairo/cairo-text.html#cairo-has-show-text-glyphs"
|
|
1059
1033
|
</div>
|
1060
1034
|
<div class="footer">
|
1061
1035
|
<hr>
|
1062
|
-
Generated by GTK-Doc V1.
|
1036
|
+
Generated by GTK-Doc V1.11</div>
|
1063
1037
|
</body>
|
1064
1038
|
</html>
|