cairo 1.7.0-x86-mswin32 → 1.8.0-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 +32 -0
- data/NEWS +9 -1
- data/README +1 -0
- data/Rakefile +2 -2
- data/cairo/DLL_FAQ.txt +397 -0
- data/cairo/README.txt +53 -0
- data/cairo/USAGE.txt +94 -0
- data/cairo/bin/libcairo-2.dll +0 -0
- data/cairo/bin/libpng12-0.dll +0 -0
- data/cairo/bin/zlib1.dll +0 -0
- data/cairo/include/cairo/cairo-deprecated.h +0 -4
- data/cairo/include/cairo/cairo-features.h +7 -22
- data/cairo/include/cairo/cairo-pdf.h +1 -1
- data/cairo/include/cairo/cairo-ps.h +1 -1
- data/cairo/include/cairo/cairo-svg.h +1 -1
- data/cairo/include/cairo/cairo-version.h +8 -0
- data/cairo/include/cairo/cairo-win32.h +9 -1
- data/cairo/include/cairo/cairo.h +420 -32
- data/cairo/include/libpng12/png.h +3592 -0
- data/cairo/include/libpng12/pngconf.h +1481 -0
- data/cairo/include/png.h +36 -13
- data/cairo/include/pngconf.h +3 -3
- data/cairo/include/zconf.h +332 -0
- data/cairo/include/zlib.h +1357 -0
- data/cairo/lib/cairo.def +22 -0
- data/cairo/lib/cairo.lib +0 -0
- data/cairo/lib/libcairo.dll.a +0 -0
- data/cairo/lib/libpng.def +1 -0
- data/cairo/lib/libpng.lib +0 -0
- data/cairo/lib/libpng12.dll.a +0 -0
- data/cairo/lib/pkgconfig/cairo-pdf.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-png.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-ps.pc +5 -5
- data/cairo/lib/pkgconfig/cairo-svg.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32-font.pc +4 -4
- data/cairo/lib/pkgconfig/cairo-win32.pc +4 -4
- data/cairo/lib/pkgconfig/cairo.pc +4 -4
- data/cairo/lib/pkgconfig/libpng.pc +3 -2
- data/cairo/lib/pkgconfig/libpng12.pc +3 -2
- data/cairo/lib/zdll.exp +0 -0
- data/cairo/lib/zdll.lib +0 -0
- data/cairo/lib/zlib.def +60 -0
- data/cairo/manifest/cairo-dev_1.8.0-1_win32.mft +76 -0
- data/cairo/manifest/cairo_1.8.0-1_win32.mft +5 -0
- data/cairo/manifest/{libpng-dev-1.2.29.mft → libpng-dev_1.2.32-1_win32.mft} +5 -2
- data/cairo/manifest/libpng_1.2.32-1_win32.mft +2 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-LGPL-2.1 +0 -0
- data/cairo/share/doc/{cairo-1.6.4-2 → cairo_1.8.0-1_win32}/COPYING-MPL-1.1 +0 -0
- data/cairo/share/gtk-doc/html/cairo/bindings-errors.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-fonts.html +15 -11
- data/cairo/share/gtk-doc/html/cairo/bindings-memory.html +20 -16
- data/cairo/share/gtk-doc/html/cairo/bindings-overloading.html +16 -12
- data/cairo/share/gtk-doc/html/cairo/bindings-path.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-patterns.html +25 -21
- data/cairo/share/gtk-doc/html/cairo/bindings-return-values.html +17 -13
- data/cairo/share/gtk-doc/html/cairo/bindings-streams.html +14 -10
- data/cairo/share/gtk-doc/html/cairo/bindings-surfaces.html +19 -15
- data/cairo/share/gtk-doc/html/cairo/cairo-context.html +2721 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-error-status.html +361 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-face.html +418 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-font-options.html +695 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-ft-font.html +318 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-image-surface.html +486 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-cairo-matrix-t.html → cairo-matrix.html} +137 -156
- data/cairo/share/gtk-doc/html/cairo/{cairo-Paths.html → cairo-paths.html} +275 -306
- data/cairo/share/gtk-doc/html/cairo/cairo-pattern.html +1524 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PDF-Surfaces.html → cairo-pdf-surface.html} +60 -70
- data/cairo/share/gtk-doc/html/cairo/cairo-png-functions.html +332 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-PostScript-Surfaces.html → cairo-ps-surface.html} +131 -150
- data/cairo/share/gtk-doc/html/cairo/cairo-quartz-font.html +153 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Quartz-Surfaces.html → cairo-quartz-surface.html} +53 -62
- data/cairo/share/gtk-doc/html/cairo/cairo-scaled-font.html +1051 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-support.html +54 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surface.html +1064 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-svg-surface.html +324 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-text.html +1264 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-Transformations.html → cairo-transformations.html} +98 -115
- data/cairo/share/gtk-doc/html/cairo/cairo-types.html +134 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-user-font.html +769 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-version-info.html +355 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-font.html +366 -0
- data/cairo/share/gtk-doc/html/cairo/cairo-win32-surface.html +321 -0
- data/cairo/share/gtk-doc/html/cairo/{cairo-XLib-Surfaces.html → cairo-xlib-surface.html} +104 -121
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp +390 -405
- data/cairo/share/gtk-doc/html/cairo/cairo.devhelp2 +390 -405
- data/cairo/share/gtk-doc/html/cairo/index-1.2.html +63 -59
- data/cairo/share/gtk-doc/html/cairo/index-1.4.html +45 -41
- data/cairo/share/gtk-doc/html/cairo/index-1.6.html +29 -23
- data/cairo/share/gtk-doc/html/cairo/index-1.8.html +107 -0
- data/cairo/share/gtk-doc/html/cairo/index-all.html +759 -0
- data/cairo/share/gtk-doc/html/cairo/index.html +51 -41
- data/cairo/share/gtk-doc/html/cairo/index.sgml +478 -466
- data/cairo/share/gtk-doc/html/cairo/language-bindings.html +22 -18
- data/cairo/share/gtk-doc/html/cairo/style.css +14 -2
- data/cairo/share/man/man3/libpng.3 +443 -17
- data/cairo/share/man/man3/libpngpf.3 +618 -102
- data/cairo/share/man/man5/png.5 +1 -1
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.log +1021 -0
- data/cairo/src/tml/make/cairo_1.8.0-1_win32.sh +68 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.log +269 -0
- data/cairo/src/tml/make/libpng_1.2.32-1_win32.sh +63 -0
- 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
- data/doc/en/cairo-context.html +81 -91
- data/doc/en/cairo-font-options.html +11 -26
- data/doc/en/cairo-text-cluster-flag.html +35 -0
- data/doc/en/cairo-user-font-face-text-to-glyphs-data.html +3 -3
- data/doc/en/cairo.html +38 -42
- data/doc/en/index.html +129 -142
- data/doc/ja/cairo-font-options.html +3 -25
- data/doc/ja/cairo-text-cluster-flag.html +46 -0
- data/doc/ja/cairo-user-font-face-text-to-glyphs-data.html +16 -15
- data/doc/ja/cairo.html +3 -7
- data/doc/ja/index.html +9 -17
- data/src/cairo.def +1 -1
- data/src/cairo.so +0 -0
- data/src/lib/cairo/constants.rb +3 -1
- data/src/libruby-cairo.a +0 -0
- data/src/rb_cairo.c +2 -2
- data/src/rb_cairo.h +5 -5
- data/src/rb_cairo_constants.c +12 -19
- data/src/rb_cairo_context.c +25 -21
- data/src/rb_cairo_font_face.c +44 -29
- data/src/rb_cairo_font_options.c +1 -23
- data/src/rb_cairo_scaled_font.c +5 -5
- data/test/test_constants.rb +6 -9
- data/test/test_context.rb +0 -12
- data/test/test_font_face.rb +7 -7
- data/test/test_font_options.rb +2 -21
- data/test/test_scaled_font.rb +3 -3
- data/test/test_text_to_glyphs_data.rb +19 -15
- metadata +68 -45
- data/cairo/make/cairo-1.6.4-2.sh +0 -55
- data/cairo/make/libpng-1.2.29.sh +0 -35
- data/cairo/manifest/cairo-1.6.4-2.mft +0 -6
- data/cairo/manifest/cairo-dev-1.6.4-2.mft +0 -72
- data/cairo/manifest/libpng-1.2.29.mft +0 -2
- data/cairo/share/gtk-doc/html/cairo/Drawing.html +0 -53
- data/cairo/share/gtk-doc/html/cairo/Fonts.html +0 -56
- data/cairo/share/gtk-doc/html/cairo/Support.html +0 -50
- data/cairo/share/gtk-doc/html/cairo/Surfaces.html +0 -65
- data/cairo/share/gtk-doc/html/cairo/cairo-Error-Handling.html +0 -328
- data/cairo/share/gtk-doc/html/cairo/cairo-Font-Options.html +0 -720
- data/cairo/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +0 -297
- data/cairo/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +0 -484
- data/cairo/share/gtk-doc/html/cairo/cairo-PNG-Support.html +0 -345
- data/cairo/share/gtk-doc/html/cairo/cairo-Patterns.html +0 -1560
- data/cairo/share/gtk-doc/html/cairo/cairo-Quartz-Fonts.html +0 -161
- data/cairo/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +0 -337
- data/cairo/share/gtk-doc/html/cairo/cairo-Scaled-Fonts.html +0 -823
- data/cairo/share/gtk-doc/html/cairo/cairo-Text.html +0 -836
- data/cairo/share/gtk-doc/html/cairo/cairo-Types.html +0 -143
- data/cairo/share/gtk-doc/html/cairo/cairo-Version-Information.html +0 -325
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +0 -381
- data/cairo/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +0 -331
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +0 -427
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +0 -995
- data/cairo/share/gtk-doc/html/cairo/cairo-cairo-t.html +0 -2795
- data/cairo/share/gtk-doc/html/cairo/ix01.html +0 -693
- data/doc/en/cairo-lcd-filter.html +0 -39
- data/doc/ja/cairo-lcd-filter.html +0 -63
@@ -1,24 +1,25 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Fonts</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
9
|
<link rel="prev" href="bindings-surfaces.html" title="Surfaces">
|
10
10
|
<link rel="next" href="bindings-path.html" title="cairo_path_t">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="chapter" href="
|
17
|
-
<link rel="index" href="
|
13
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
+
<link rel="index" href="index-all.html" title="Index">
|
18
18
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
19
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
20
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="
|
21
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
23
|
</head>
|
23
24
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
25
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -49,11 +50,14 @@ cairo_scaled_font_t
|
|
49
50
|
types.
|
50
51
|
</p>
|
51
52
|
<p>
|
52
|
-
The <a class="link" href="cairo-
|
53
|
-
and <a class="link" href="cairo-
|
53
|
+
The <a class="link" href="cairo-font-face.html#cairo-font-face-set-user-data" title="cairo_font_face_set_user_data ()"><code class="function">cairo_font_face_set_user_data()</code></a>,
|
54
|
+
and <a class="link" href="cairo-font-face.html#cairo-font-face-get-user-data" title="cairo_font_face_get_user_data ()"><code class="function">cairo_font_face_get_user_data()</code></a>
|
54
55
|
methods are provided for use in language bindings, and should
|
55
56
|
not be directly exposed to applications.
|
56
57
|
</p>
|
57
58
|
</div>
|
59
|
+
<div class="footer">
|
60
|
+
<hr>
|
61
|
+
Generated by GTK-Doc V1.10</div>
|
58
62
|
</body>
|
59
63
|
</html>
|
@@ -1,24 +1,25 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Memory management</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
9
|
-
<link rel="prev" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
|
+
<link rel="prev" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
10
10
|
<link rel="next" href="bindings-return-values.html" title="Multiple return values">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="chapter" href="
|
17
|
-
<link rel="index" href="
|
13
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
+
<link rel="index" href="index-all.html" title="Index">
|
18
18
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
19
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
20
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="
|
21
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
23
|
</head>
|
23
24
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
25
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -34,12 +35,12 @@
|
|
34
35
|
<p>
|
35
36
|
The objects in cairo can roughly be divided into two types:
|
36
37
|
reference-counted, opaque types like
|
37
|
-
<a class="link" href="cairo-
|
38
|
+
<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
38
39
|
and plain structures like
|
39
|
-
<a class="link" href="cairo-
|
40
|
-
<a class="link" href="cairo-
|
40
|
+
<a class="link" href="cairo-text.html#cairo-glyph-t" title="cairo_glyph_t"><span class="type">cairo_glyph_t</span></a>.
|
41
|
+
<a class="link" href="cairo-paths.html#cairo-path-t" title="cairo_path_t"><span class="type">cairo_path_t</span></a>
|
41
42
|
and
|
42
|
-
<a class="link" href="cairo-
|
43
|
+
<a class="link" href="cairo-paths.html#cairo-path-data-t" title="union cairo_path_data_t"><span class="type">cairo_path_data_t</span></a>
|
43
44
|
are special cases and are treated separately in this appendix.
|
44
45
|
</p>
|
45
46
|
<p>
|
@@ -67,7 +68,7 @@
|
|
67
68
|
uniquifying via a <em class="firstterm">pin table</em> (a hash
|
68
69
|
table that goes from cairo object to language object).
|
69
70
|
For <span class="type">cairo_surface_t</span> you can use also
|
70
|
-
<a class="link" href="cairo-
|
71
|
+
<a class="link" href="cairo-surface.html#cairo-surface-set-user-data" title="cairo_surface_set_user_data ()"><code class="function">cairo_surface_set_user_data()</code></a>
|
71
72
|
instead of a separate pin table.
|
72
73
|
</p></li>
|
73
74
|
<li>
|
@@ -100,7 +101,7 @@ public class MySurface (ImageSurface) {
|
|
100
101
|
</ul></div>
|
101
102
|
<p>
|
102
103
|
When a plain structure is used as a return value from cairo,
|
103
|
-
this is done by passing it as a
|
104
|
+
this is done by passing it as a “out parameter”.
|
104
105
|
</p>
|
105
106
|
<pre class="programlisting">
|
106
107
|
cairo_font_extents_t extents;
|
@@ -125,5 +126,8 @@ FontExtents extents = cr.fontExtents ();</pre>
|
|
125
126
|
object.
|
126
127
|
</p>
|
127
128
|
</div>
|
129
|
+
<div class="footer">
|
130
|
+
<hr>
|
131
|
+
Generated by GTK-Doc V1.10</div>
|
128
132
|
</body>
|
129
133
|
</html>
|
@@ -1,24 +1,25 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Overloading and optional arguments</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
9
|
<link rel="prev" href="bindings-return-values.html" title="Multiple return values">
|
10
10
|
<link rel="next" href="bindings-streams.html" title="Streams and File I/O">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="chapter" href="
|
17
|
-
<link rel="index" href="
|
13
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
+
<link rel="index" href="index-all.html" title="Index">
|
18
18
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
19
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
20
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="
|
21
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
23
|
</head>
|
23
24
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
25
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -42,7 +43,7 @@
|
|
42
43
|
overloading. What may seem like an obvious overload now may
|
43
44
|
turn out to be strange with future additions to cairo.
|
44
45
|
It might seem logical to make
|
45
|
-
<a class="link" href="cairo-
|
46
|
+
<a class="link" href="cairo-context.html#cairo-set-source-rgb" title="cairo_set_source_rgb ()"><code class="function">cairo_set_source_rgb()</code></a>
|
46
47
|
an overload of <code class="function">cairo_set_source()</code>, but future plans to add
|
47
48
|
<code class="function">cairo_set_source_rgb_premultiplied()</code>,
|
48
49
|
which will also take three doubles make this a bad idea. For
|
@@ -99,9 +100,9 @@ cairo_image_surface_create_from_png_stream (cairo_read_func_t read_func,
|
|
99
100
|
<p>
|
100
101
|
Note that there are cases where all constructors for a type
|
101
102
|
aren't overloaded together. For example
|
102
|
-
<a class="link" href="cairo-
|
103
|
+
<a class="link" href="cairo-png-functions.html#cairo-image-surface-create-from-png" title="cairo_image_surface_create_from_png ()"><code class="function">cairo_image_surface_create_from_png()</code></a>
|
103
104
|
should <span class="emphasis"><em>not</em></span> be overloaded together with
|
104
|
-
<a class="link" href="cairo-
|
105
|
+
<a class="link" href="cairo-image-surface.html#cairo-image-surface-create" title="cairo_image_surface_create ()"><code class="function">cairo_image_surface_create()</code></a>.
|
105
106
|
In such cases, the remaining constructors will typically need to
|
106
107
|
be bound as static methods. In Java, for example, we might have:
|
107
108
|
</p>
|
@@ -123,5 +124,8 @@ cairo_rectangle (cairo_t *cr,
|
|
123
124
|
cairo_rectangle_t *rectangle);
|
124
125
|
</pre>
|
125
126
|
</div>
|
127
|
+
<div class="footer">
|
128
|
+
<hr>
|
129
|
+
Generated by GTK-Doc V1.10</div>
|
126
130
|
</body>
|
127
131
|
</html>
|
@@ -1,23 +1,24 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>cairo_path_t</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
9
|
<link rel="prev" href="bindings-fonts.html" title="Fonts">
|
10
|
-
<meta name="generator" content="GTK-Doc V1.
|
10
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
11
11
|
<link rel="stylesheet" href="style.css" type="text/css">
|
12
|
-
<link rel="chapter" href="
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="index" href="
|
12
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
13
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
14
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
15
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
16
|
+
<link rel="index" href="index-all.html" title="Index">
|
17
17
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
18
18
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
19
19
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
20
|
-
<link rel="
|
20
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
21
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
21
22
|
</head>
|
22
23
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
23
24
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -25,13 +26,13 @@
|
|
25
26
|
<td><a accesskey="u" href="language-bindings.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
26
27
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
27
28
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
28
|
-
<td
|
29
|
+
<td> </td>
|
29
30
|
</tr></table>
|
30
31
|
<div class="sect1" lang="en">
|
31
32
|
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
|
32
33
|
<a name="bindings-path"></a>cairo_path_t</h2></div></div></div>
|
33
34
|
<p>
|
34
|
-
The <a class="link" href="cairo-
|
35
|
+
The <a class="link" href="cairo-paths.html#cairo-path-t" title="cairo_path_t"><span class="type">cairo_path_t</span></a> type is one
|
35
36
|
area in which most language bindings will differ significantly
|
36
37
|
from the C API. The C API for <span class="type">cairo_path_t</span> is
|
37
38
|
designed for efficiency and to avoid auxiliary objects that
|
@@ -113,11 +114,14 @@ for element in cr.copy_path():
|
|
113
114
|
<span class="type">cairo_path_t</span> objects. In the future, these
|
114
115
|
guidelines may be extended to present an API for creating a
|
115
116
|
<span class="type">cairo_path_t</span> from scratch for use with
|
116
|
-
<a class="link" href="cairo-
|
117
|
+
<a class="link" href="cairo-paths.html#cairo-append-path" title="cairo_append_path ()"><code class="function">cairo_append_path()</code></a>
|
117
118
|
but the current expectation is that <code class="function">cairo_append_path()</code> will
|
118
119
|
mostly be used with paths from
|
119
|
-
<a class="link" href="cairo-
|
120
|
+
<a class="link" href="cairo-paths.html#cairo-append-path" title="cairo_append_path ()"><code class="function">cairo_copy_path()</code></a>.
|
120
121
|
</p>
|
121
122
|
</div>
|
123
|
+
<div class="footer">
|
124
|
+
<hr>
|
125
|
+
Generated by GTK-Doc V1.10</div>
|
122
126
|
</body>
|
123
127
|
</html>
|
@@ -1,24 +1,25 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Patterns</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
9
|
<link rel="prev" href="bindings-errors.html" title="Error handling">
|
10
10
|
<link rel="next" href="bindings-surfaces.html" title="Surfaces">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="chapter" href="
|
17
|
-
<link rel="index" href="
|
13
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
+
<link rel="index" href="index-all.html" title="Index">
|
18
18
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
19
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
20
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="
|
21
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
23
|
</head>
|
23
24
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
25
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -34,7 +35,7 @@
|
|
34
35
|
<p>
|
35
36
|
The cairo C API allows for creating a number of different types
|
36
37
|
of patterns. All of these different types of patterns map to
|
37
|
-
<a class="link" href="cairo-
|
38
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-t" title="cairo_pattern_t"><span class="type">cairo_pattern_t</span></a>
|
38
39
|
in C, but in an object oriented language, there should instead
|
39
40
|
be a hierarchy of types. (The functions that should map to
|
40
41
|
constructors for the various types are listed after the type,
|
@@ -42,22 +43,25 @@
|
|
42
43
|
</p>
|
43
44
|
<pre class="programlisting">
|
44
45
|
cairo_pattern_t
|
45
|
-
<a class="link" href="cairo-
|
46
|
-
<a class="link" href="cairo-
|
46
|
+
<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>
|
47
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-get-matrix" title="cairo_pattern_get_matrix ()"><code class="function">cairo_pattern_get_matrix()</code></a>
|
47
48
|
cairo_solid_pattern_t
|
48
|
-
cairo_surface_pattern_t (<a class="link" href="cairo-
|
49
|
-
<a class="link" href="cairo-
|
50
|
-
<a class="link" href="cairo-
|
51
|
-
<a class="link" href="cairo-
|
52
|
-
<a class="link" href="cairo-
|
49
|
+
cairo_surface_pattern_t (<a class="link" href="cairo-pattern.html#cairo-pattern-create-for-surface" title="cairo_pattern_create_for_surface ()"><code class="function">cairo_pattern_create_for_surface()</code></a>)
|
50
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-set-extend" title="cairo_pattern_set_extend ()"><code class="function">cairo_pattern_set_extend()</code></a>
|
51
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-get-extend" title="cairo_pattern_get_extend ()"><code class="function">cairo_pattern_get_extend()</code></a>
|
52
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-set-filter" title="cairo_pattern_set_filter ()"><code class="function">cairo_pattern_set_filter()</code></a>
|
53
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-get-filter" title="cairo_pattern_get_filter ()"><code class="function">cairo_pattern_get_filter()</code></a>
|
53
54
|
cairo_gradient_t
|
54
|
-
<a class="link" href="cairo-
|
55
|
-
<a class="link" href="cairo-
|
56
|
-
cairo_linear_gradient_t (<a class="link" href="cairo-
|
57
|
-
cairo_radial_gradient_t (<a class="link" href="cairo-
|
55
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-add-color-stop-rgb" title="cairo_pattern_add_color_stop_rgb ()"><code class="function">cairo_pattern_add_color_stop_rgb()</code></a>
|
56
|
+
<a class="link" href="cairo-pattern.html#cairo-pattern-add-color-stop-rgba" title="cairo_pattern_add_color_stop_rgba ()"><code class="function">cairo_pattern_add_color_stop_rgba()</code></a>
|
57
|
+
cairo_linear_gradient_t (<a class="link" href="cairo-pattern.html#cairo-pattern-create-linear" title="cairo_pattern_create_linear ()"><code class="function">cairo_pattern_create_linear()</code></a>)
|
58
|
+
cairo_radial_gradient_t (<a class="link" href="cairo-pattern.html#cairo-pattern-create-radial" title="cairo_pattern_create_radial ()"><code class="function">cairo_pattern_create_radial()</code></a>)
|
58
59
|
</pre>
|
59
60
|
<p>
|
60
61
|
</p>
|
61
62
|
</div>
|
63
|
+
<div class="footer">
|
64
|
+
<hr>
|
65
|
+
Generated by GTK-Doc V1.10</div>
|
62
66
|
</body>
|
63
67
|
</html>
|
@@ -1,24 +1,25 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Multiple return values</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
9
|
<link rel="prev" href="bindings-memory.html" title="Memory management">
|
10
10
|
<link rel="next" href="bindings-overloading.html" title="Overloading and optional arguments">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="chapter" href="
|
17
|
-
<link rel="index" href="
|
13
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
+
<link rel="index" href="index-all.html" title="Index">
|
18
18
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
19
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
20
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="
|
21
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
23
|
</head>
|
23
24
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
25
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -61,7 +62,7 @@ struct _cairo_point {
|
|
61
62
|
The same type should be used both for functions that use a pair
|
62
63
|
of coordinates as an absolute position, and functions that use
|
63
64
|
a pair of coordinates as a displacement. While an argument could
|
64
|
-
be made that having a separate
|
65
|
+
be made that having a separate “distance” type is more correct,
|
65
66
|
it is more likely just to confuse users.
|
66
67
|
</p>
|
67
68
|
<pre class="programlisting">
|
@@ -89,7 +90,7 @@ cairo_get_current_point (cairo_t *cr, double *x, double *y);
|
|
89
90
|
<p>
|
90
91
|
There are also a couple of functions that return four values
|
91
92
|
representing a rectangle. These should be mapped to a
|
92
|
-
|
93
|
+
“rectangle” type that looks like:
|
93
94
|
</p>
|
94
95
|
<pre class="programlisting">
|
95
96
|
typedef struct _cairo_rectangle cairo_rectangle_t;
|
@@ -102,8 +103,8 @@ struct _cairo_rectangle {
|
|
102
103
|
<p>
|
103
104
|
The C function returns the rectangle as a set of two points to
|
104
105
|
facilitate rounding to integral extents, but this isn't worth
|
105
|
-
adding a
|
106
|
-
|
106
|
+
adding a “box” type to go along with the more obvious
|
107
|
+
“rectangle” representation.
|
107
108
|
</p>
|
108
109
|
<p class="remark"><i><span class="remark">
|
109
110
|
Q: Would it make sense here to define a standard
|
@@ -122,5 +123,8 @@ cairo_fill_extents (cairo_t *cr,
|
|
122
123
|
double *x2, double *y2);
|
123
124
|
</pre>
|
124
125
|
</div>
|
126
|
+
<div class="footer">
|
127
|
+
<hr>
|
128
|
+
Generated by GTK-Doc V1.10</div>
|
125
129
|
</body>
|
126
130
|
</html>
|
@@ -1,24 +1,25 @@
|
|
1
1
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
2
|
<html>
|
3
3
|
<head>
|
4
|
-
<meta http-equiv="Content-Type" content="text/html; charset=
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
5
|
<title>Streams and File I/O</title>
|
6
6
|
<meta name="generator" content="DocBook XSL Stylesheets V1.73.2">
|
7
7
|
<link rel="start" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
-
<link rel="up" href="language-bindings.html" title="Appendix
|
8
|
+
<link rel="up" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
9
9
|
<link rel="prev" href="bindings-overloading.html" title="Overloading and optional arguments">
|
10
10
|
<link rel="next" href="bindings-errors.html" title="Error handling">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.10 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
|
-
<link rel="chapter" href="
|
14
|
-
<link rel="chapter" href="
|
15
|
-
<link rel="chapter" href="
|
16
|
-
<link rel="chapter" href="
|
17
|
-
<link rel="index" href="
|
13
|
+
<link rel="chapter" href="cairo-drawing.html" title="Drawing">
|
14
|
+
<link rel="chapter" href="cairo-fonts.html" title="Fonts">
|
15
|
+
<link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
|
16
|
+
<link rel="chapter" href="cairo-support.html" title="Utilities">
|
17
|
+
<link rel="index" href="index-all.html" title="Index">
|
18
18
|
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
19
|
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
20
|
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
21
|
-
<link rel="
|
21
|
+
<link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
|
22
|
+
<link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
|
22
23
|
</head>
|
23
24
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
24
25
|
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle">
|
@@ -88,11 +89,14 @@ public void writeToPNG (OutputStream stream) throws IOException;
|
|
88
89
|
<p class="remark"><i><span class="remark">
|
89
90
|
I'm not sure how to handle this for
|
90
91
|
<code class="function">cairo_pdf_surface_create_for_callback()</code>.
|
91
|
-
Other than keep a
|
92
|
+
Other than keep a “exception to rethrow” thread-specific
|
92
93
|
variable
|
93
94
|
that is checked after <span class="emphasis"><em>every</em></span> call to a Cairo
|
94
95
|
function.
|
95
96
|
</span></i></p>
|
96
97
|
</div>
|
98
|
+
<div class="footer">
|
99
|
+
<hr>
|
100
|
+
Generated by GTK-Doc V1.10</div>
|
97
101
|
</body>
|
98
102
|
</html>
|