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,97 +1,93 @@
|
|
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_matrix_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="
|
9
|
-
<link rel="prev" href="
|
10
|
-
<link rel="next" href="cairo-
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
8
|
+
<link rel="up" href="cairo-support.html" title="Utilities">
|
9
|
+
<link rel="prev" href="cairo-support.html" title="Utilities">
|
10
|
+
<link rel="next" href="cairo-error-status.html" title="Error handling">
|
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">
|
25
26
|
<tr valign="middle">
|
26
|
-
<td><a accesskey="p" href="
|
27
|
-
<td><a accesskey="u" href="
|
27
|
+
<td><a accesskey="p" href="cairo-support.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
28
|
+
<td><a accesskey="u" href="cairo-support.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
28
29
|
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
29
30
|
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
30
|
-
<td><a accesskey="n" href="cairo-
|
31
|
+
<td><a accesskey="n" href="cairo-error-status.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
31
32
|
</tr>
|
32
|
-
<tr><td colspan="5" class="shortcuts"><nobr><a href="#
|
33
|
-
|
34
|
-
<a href="#
|
33
|
+
<tr><td colspan="5" class="shortcuts"><nobr><a href="#cairo-matrix.synopsis" class="shortcut">Top</a>
|
34
|
+
|
|
35
|
+
<a href="#cairo-matrix.description" class="shortcut">Description</a></nobr></td></tr>
|
35
36
|
</table>
|
36
37
|
<div class="refentry" lang="en">
|
37
|
-
<a name="cairo-
|
38
|
+
<a name="cairo-matrix"></a><div class="titlepage"></div>
|
38
39
|
<div class="refnamediv"><table width="100%"><tr>
|
39
40
|
<td valign="top">
|
40
|
-
<h2>
|
41
|
-
<
|
42
|
-
</h2>
|
43
|
-
<p>cairo_matrix_t — Generic matrix operations</p>
|
41
|
+
<h2><span class="refentrytitle"><a name="cairo-matrix.top_of_page"></a>cairo_matrix_t</span></h2>
|
42
|
+
<p>cairo_matrix_t — Generic matrix operations</p>
|
44
43
|
</td>
|
45
44
|
<td valign="top" align="right"></td>
|
46
45
|
</tr></table></div>
|
47
46
|
<div class="refsynopsisdiv">
|
48
|
-
<h2>Synopsis</h2>
|
47
|
+
<a name="cairo-matrix.synopsis"></a><h2>Synopsis</h2>
|
49
48
|
<pre class="synopsis">
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a>;
|
54
|
-
void <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-init">cairo_matrix_init</a> (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
49
|
+
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a>;
|
50
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-init" title="cairo_matrix_init ()">cairo_matrix_init</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
55
51
|
double xx,
|
56
52
|
double yx,
|
57
53
|
double xy,
|
58
54
|
double yy,
|
59
55
|
double x0,
|
60
56
|
double y0);
|
61
|
-
void <a class="link" href="cairo-
|
62
|
-
void <a class="link" href="cairo-
|
57
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-init-identity" title="cairo_matrix_init_identity ()">cairo_matrix_init_identity</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
58
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-init-translate" title="cairo_matrix_init_translate ()">cairo_matrix_init_translate</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
63
59
|
double tx,
|
64
60
|
double ty);
|
65
|
-
void <a class="link" href="cairo-
|
61
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-init-scale" title="cairo_matrix_init_scale ()">cairo_matrix_init_scale</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
66
62
|
double sx,
|
67
63
|
double sy);
|
68
|
-
void <a class="link" href="cairo-
|
64
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-init-rotate" title="cairo_matrix_init_rotate ()">cairo_matrix_init_rotate</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
69
65
|
double radians);
|
70
|
-
void <a class="link" href="cairo-
|
66
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-translate" title="cairo_matrix_translate ()">cairo_matrix_translate</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
71
67
|
double tx,
|
72
68
|
double ty);
|
73
|
-
void <a class="link" href="cairo-
|
69
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-scale" title="cairo_matrix_scale ()">cairo_matrix_scale</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
74
70
|
double sx,
|
75
71
|
double sy);
|
76
|
-
void <a class="link" href="cairo-
|
72
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-rotate" title="cairo_matrix_rotate ()">cairo_matrix_rotate</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
77
73
|
double radians);
|
78
|
-
<a class="link" href="cairo-
|
79
|
-
void <a class="link" href="cairo-
|
80
|
-
const <a class="link" href="cairo-
|
81
|
-
const <a class="link" href="cairo-
|
82
|
-
void <a class="link" href="cairo-
|
74
|
+
<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-matrix.html#cairo-matrix-invert" title="cairo_matrix_invert ()">cairo_matrix_invert</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
75
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-multiply" title="cairo_matrix_multiply ()">cairo_matrix_multiply</a> (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *result,
|
76
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *a,
|
77
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *b);
|
78
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-transform-distance" title="cairo_matrix_transform_distance ()">cairo_matrix_transform_distance</a> (const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
83
79
|
double *dx,
|
84
80
|
double *dy);
|
85
|
-
void <a class="link" href="cairo-
|
81
|
+
void <a class="link" href="cairo-matrix.html#cairo-matrix-transform-point" title="cairo_matrix_transform_point ()">cairo_matrix_transform_point</a> (const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
86
82
|
double *x,
|
87
83
|
double *y);
|
88
84
|
</pre>
|
89
85
|
</div>
|
90
86
|
<div class="refsect1" lang="en">
|
91
|
-
<a name="
|
87
|
+
<a name="cairo-matrix.description"></a><h2>Description</h2>
|
92
88
|
<p>
|
93
|
-
<a class="link" href="cairo-
|
94
|
-
coordinate spaces. A <a class="link" href="cairo-
|
89
|
+
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> is used throughout cairo to convert between different
|
90
|
+
coordinate spaces. A <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> holds an affine transformation,
|
95
91
|
such as a scale, rotation, shear, or a combination of these.
|
96
92
|
The transformation of a point (<code class="literal">x</code>,<code class="literal">y</code>)
|
97
93
|
is given by:
|
@@ -101,25 +97,24 @@ void <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix
|
|
101
97
|
y_new = yx * x + yy * y + y0;
|
102
98
|
</pre>
|
103
99
|
<p>
|
104
|
-
The current transformation matrix of a <a class="link" href="cairo-
|
105
|
-
<a class="link" href="cairo-
|
106
|
-
coordinates to device-space coordinates. See <a class="link" href="cairo-
|
107
|
-
<a class="link" href="cairo-
|
100
|
+
The current transformation matrix of a <a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a>, represented as a
|
101
|
+
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>, defines the transformation from user-space
|
102
|
+
coordinates to device-space coordinates. See <a class="link" href="cairo-transformations.html#cairo-get-matrix" title="cairo_get_matrix ()"><code class="function">cairo_get_matrix()</code></a> and
|
103
|
+
<a class="link" href="cairo-transformations.html#cairo-set-matrix" title="cairo_set_matrix ()"><code class="function">cairo_set_matrix()</code></a>.
|
108
104
|
</p>
|
109
105
|
</div>
|
110
106
|
<div class="refsect1" lang="en">
|
111
|
-
<a name="
|
107
|
+
<a name="cairo-matrix.details"></a><h2>Details</h2>
|
112
108
|
<div class="refsect2" lang="en">
|
113
|
-
<a name="
|
114
|
-
<
|
115
|
-
<a class="indexterm" name="id2669118"></a><pre class="programlisting">typedef struct {
|
109
|
+
<a name="cairo-matrix-t"></a><h3>cairo_matrix_t</h3>
|
110
|
+
<pre class="programlisting">typedef struct {
|
116
111
|
double xx; double yx;
|
117
112
|
double xy; double yy;
|
118
113
|
double x0; double y0;
|
119
114
|
} cairo_matrix_t;
|
120
115
|
</pre>
|
121
116
|
<p>
|
122
|
-
A <a class="link" href="cairo-
|
117
|
+
A <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> holds an affine transformation, such as a scale,
|
123
118
|
rotation, shear, or a combination of those. The transformation of
|
124
119
|
a point (x, y) is given by:
|
125
120
|
</p>
|
@@ -134,32 +129,32 @@ a point (x, y) is given by:
|
|
134
129
|
<col align="left" valign="top">
|
135
130
|
<tbody>
|
136
131
|
<tr>
|
137
|
-
<td><p><span class="term">double
|
132
|
+
<td><p><span class="term">double <em class="structfield"><code>xx</code></em>;</span></p></td>
|
138
133
|
<td> xx component of the affine transformation
|
139
134
|
</td>
|
140
135
|
</tr>
|
141
136
|
<tr>
|
142
|
-
<td><p><span class="term">double
|
137
|
+
<td><p><span class="term">double <em class="structfield"><code>yx</code></em>;</span></p></td>
|
143
138
|
<td> yx component of the affine transformation
|
144
139
|
</td>
|
145
140
|
</tr>
|
146
141
|
<tr>
|
147
|
-
<td><p><span class="term">double
|
142
|
+
<td><p><span class="term">double <em class="structfield"><code>xy</code></em>;</span></p></td>
|
148
143
|
<td> xy component of the affine transformation
|
149
144
|
</td>
|
150
145
|
</tr>
|
151
146
|
<tr>
|
152
|
-
<td><p><span class="term">double
|
147
|
+
<td><p><span class="term">double <em class="structfield"><code>yy</code></em>;</span></p></td>
|
153
148
|
<td> yy component of the affine transformation
|
154
149
|
</td>
|
155
150
|
</tr>
|
156
151
|
<tr>
|
157
|
-
<td><p><span class="term">double
|
152
|
+
<td><p><span class="term">double <em class="structfield"><code>x0</code></em>;</span></p></td>
|
158
153
|
<td> X translation component of the affine transformation
|
159
154
|
</td>
|
160
155
|
</tr>
|
161
156
|
<tr>
|
162
|
-
<td><p><span class="term">double
|
157
|
+
<td><p><span class="term">double <em class="structfield"><code>y0</code></em>;</span></p></td>
|
163
158
|
<td> Y translation component of the affine transformation
|
164
159
|
</td>
|
165
160
|
</tr>
|
@@ -168,9 +163,8 @@ a point (x, y) is given by:
|
|
168
163
|
</div>
|
169
164
|
<hr>
|
170
165
|
<div class="refsect2" lang="en">
|
171
|
-
<a name="
|
172
|
-
<a
|
173
|
-
<a class="indexterm" name="id2669297"></a><pre class="programlisting">void cairo_matrix_init (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
166
|
+
<a name="cairo-matrix-init"></a><h3>cairo_matrix_init ()</h3>
|
167
|
+
<pre class="programlisting">void cairo_matrix_init (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
174
168
|
double xx,
|
175
169
|
double yx,
|
176
170
|
double xy,
|
@@ -193,37 +187,37 @@ by:
|
|
193
187
|
<col align="left" valign="top">
|
194
188
|
<tbody>
|
195
189
|
<tr>
|
196
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
197
|
-
<td> a <a class="link" href="cairo-
|
190
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
191
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
198
192
|
</td>
|
199
193
|
</tr>
|
200
194
|
<tr>
|
201
|
-
<td><p><span class="term"><em class="parameter"><code>xx</code></em
|
195
|
+
<td><p><span class="term"><em class="parameter"><code>xx</code></em> :</span></p></td>
|
202
196
|
<td> xx component of the affine transformation
|
203
197
|
</td>
|
204
198
|
</tr>
|
205
199
|
<tr>
|
206
|
-
<td><p><span class="term"><em class="parameter"><code>yx</code></em
|
200
|
+
<td><p><span class="term"><em class="parameter"><code>yx</code></em> :</span></p></td>
|
207
201
|
<td> yx component of the affine transformation
|
208
202
|
</td>
|
209
203
|
</tr>
|
210
204
|
<tr>
|
211
|
-
<td><p><span class="term"><em class="parameter"><code>xy</code></em
|
205
|
+
<td><p><span class="term"><em class="parameter"><code>xy</code></em> :</span></p></td>
|
212
206
|
<td> xy component of the affine transformation
|
213
207
|
</td>
|
214
208
|
</tr>
|
215
209
|
<tr>
|
216
|
-
<td><p><span class="term"><em class="parameter"><code>yy</code></em
|
210
|
+
<td><p><span class="term"><em class="parameter"><code>yy</code></em> :</span></p></td>
|
217
211
|
<td> yy component of the affine transformation
|
218
212
|
</td>
|
219
213
|
</tr>
|
220
214
|
<tr>
|
221
|
-
<td><p><span class="term"><em class="parameter"><code>x0</code></em
|
215
|
+
<td><p><span class="term"><em class="parameter"><code>x0</code></em> :</span></p></td>
|
222
216
|
<td> X translation component of the affine transformation
|
223
217
|
</td>
|
224
218
|
</tr>
|
225
219
|
<tr>
|
226
|
-
<td><p><span class="term"><em class="parameter"><code>y0</code></em
|
220
|
+
<td><p><span class="term"><em class="parameter"><code>y0</code></em> :</span></p></td>
|
227
221
|
<td> Y translation component of the affine transformation
|
228
222
|
</td>
|
229
223
|
</tr>
|
@@ -232,9 +226,8 @@ by:
|
|
232
226
|
</div>
|
233
227
|
<hr>
|
234
228
|
<div class="refsect2" lang="en">
|
235
|
-
<a name="
|
236
|
-
<a
|
237
|
-
<a class="indexterm" name="id2674884"></a><pre class="programlisting">void cairo_matrix_init_identity (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix);</pre>
|
229
|
+
<a name="cairo-matrix-init-identity"></a><h3>cairo_matrix_init_identity ()</h3>
|
230
|
+
<pre class="programlisting">void cairo_matrix_init_identity (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
238
231
|
<p>
|
239
232
|
Modifies <em class="parameter"><code>matrix</code></em> to be an identity transformation.</p>
|
240
233
|
<p>
|
@@ -243,17 +236,16 @@ Modifies <em class="parameter"><code>matrix</code></em> to be an identity transf
|
|
243
236
|
<div class="variablelist"><table border="0">
|
244
237
|
<col align="left" valign="top">
|
245
238
|
<tbody><tr>
|
246
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
247
|
-
<td> a <a class="link" href="cairo-
|
239
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
240
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
248
241
|
</td>
|
249
242
|
</tr></tbody>
|
250
243
|
</table></div>
|
251
244
|
</div>
|
252
245
|
<hr>
|
253
246
|
<div class="refsect2" lang="en">
|
254
|
-
<a name="
|
255
|
-
<a
|
256
|
-
<a class="indexterm" name="id2674950"></a><pre class="programlisting">void cairo_matrix_init_translate (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
247
|
+
<a name="cairo-matrix-init-translate"></a><h3>cairo_matrix_init_translate ()</h3>
|
248
|
+
<pre class="programlisting">void cairo_matrix_init_translate (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
257
249
|
double tx,
|
258
250
|
double ty);</pre>
|
259
251
|
<p>
|
@@ -266,17 +258,17 @@ Initializes <em class="parameter"><code>matrix</code></em> to a transformation t
|
|
266
258
|
<col align="left" valign="top">
|
267
259
|
<tbody>
|
268
260
|
<tr>
|
269
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
270
|
-
<td> a <a class="link" href="cairo-
|
261
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
262
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
271
263
|
</td>
|
272
264
|
</tr>
|
273
265
|
<tr>
|
274
|
-
<td><p><span class="term"><em class="parameter"><code>tx</code></em
|
266
|
+
<td><p><span class="term"><em class="parameter"><code>tx</code></em> :</span></p></td>
|
275
267
|
<td> amount to translate in the X direction
|
276
268
|
</td>
|
277
269
|
</tr>
|
278
270
|
<tr>
|
279
|
-
<td><p><span class="term"><em class="parameter"><code>ty</code></em
|
271
|
+
<td><p><span class="term"><em class="parameter"><code>ty</code></em> :</span></p></td>
|
280
272
|
<td> amount to translate in the Y direction
|
281
273
|
</td>
|
282
274
|
</tr>
|
@@ -285,9 +277,8 @@ Initializes <em class="parameter"><code>matrix</code></em> to a transformation t
|
|
285
277
|
</div>
|
286
278
|
<hr>
|
287
279
|
<div class="refsect2" lang="en">
|
288
|
-
<a name="
|
289
|
-
<a
|
290
|
-
<a class="indexterm" name="id2675074"></a><pre class="programlisting">void cairo_matrix_init_scale (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
280
|
+
<a name="cairo-matrix-init-scale"></a><h3>cairo_matrix_init_scale ()</h3>
|
281
|
+
<pre class="programlisting">void cairo_matrix_init_scale (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
291
282
|
double sx,
|
292
283
|
double sy);</pre>
|
293
284
|
<p>
|
@@ -300,17 +291,17 @@ in the X and Y dimensions, respectively.</p>
|
|
300
291
|
<col align="left" valign="top">
|
301
292
|
<tbody>
|
302
293
|
<tr>
|
303
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
304
|
-
<td> a <a class="link" href="cairo-
|
294
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
295
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
305
296
|
</td>
|
306
297
|
</tr>
|
307
298
|
<tr>
|
308
|
-
<td><p><span class="term"><em class="parameter"><code>sx</code></em
|
299
|
+
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
|
309
300
|
<td> scale factor in the X direction
|
310
301
|
</td>
|
311
302
|
</tr>
|
312
303
|
<tr>
|
313
|
-
<td><p><span class="term"><em class="parameter"><code>sy</code></em
|
304
|
+
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
|
314
305
|
<td> scale factor in the Y direction
|
315
306
|
</td>
|
316
307
|
</tr>
|
@@ -319,9 +310,8 @@ in the X and Y dimensions, respectively.</p>
|
|
319
310
|
</div>
|
320
311
|
<hr>
|
321
312
|
<div class="refsect2" lang="en">
|
322
|
-
<a name="
|
323
|
-
<a
|
324
|
-
<a class="indexterm" name="id2675204"></a><pre class="programlisting">void cairo_matrix_init_rotate (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
313
|
+
<a name="cairo-matrix-init-rotate"></a><h3>cairo_matrix_init_rotate ()</h3>
|
314
|
+
<pre class="programlisting">void cairo_matrix_init_rotate (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
325
315
|
double radians);</pre>
|
326
316
|
<p>
|
327
317
|
Initialized <em class="parameter"><code>matrix</code></em> to a transformation that rotates by <em class="parameter"><code>radians</code></em>.</p>
|
@@ -332,12 +322,12 @@ Initialized <em class="parameter"><code>matrix</code></em> to a transformation t
|
|
332
322
|
<col align="left" valign="top">
|
333
323
|
<tbody>
|
334
324
|
<tr>
|
335
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
336
|
-
<td> a <a class="link" href="cairo-
|
325
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
326
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
337
327
|
</td>
|
338
328
|
</tr>
|
339
329
|
<tr>
|
340
|
-
<td><p><span class="term"><em class="parameter"><code>radians</code></em
|
330
|
+
<td><p><span class="term"><em class="parameter"><code>radians</code></em> :</span></p></td>
|
341
331
|
<td> angle of rotation, in radians. The direction of rotation
|
342
332
|
is defined such that positive angles rotate in the direction from
|
343
333
|
the positive X axis toward the positive Y axis. With the default
|
@@ -350,9 +340,8 @@ direction.
|
|
350
340
|
</div>
|
351
341
|
<hr>
|
352
342
|
<div class="refsect2" lang="en">
|
353
|
-
<a name="
|
354
|
-
<a
|
355
|
-
<a class="indexterm" name="id2675310"></a><pre class="programlisting">void cairo_matrix_translate (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
343
|
+
<a name="cairo-matrix-translate"></a><h3>cairo_matrix_translate ()</h3>
|
344
|
+
<pre class="programlisting">void cairo_matrix_translate (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
356
345
|
double tx,
|
357
346
|
double ty);</pre>
|
358
347
|
<p>
|
@@ -367,17 +356,17 @@ to the coordinates.</p>
|
|
367
356
|
<col align="left" valign="top">
|
368
357
|
<tbody>
|
369
358
|
<tr>
|
370
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
371
|
-
<td> a <a class="link" href="cairo-
|
359
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
360
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
372
361
|
</td>
|
373
362
|
</tr>
|
374
363
|
<tr>
|
375
|
-
<td><p><span class="term"><em class="parameter"><code>tx</code></em
|
364
|
+
<td><p><span class="term"><em class="parameter"><code>tx</code></em> :</span></p></td>
|
376
365
|
<td> amount to translate in the X direction
|
377
366
|
</td>
|
378
367
|
</tr>
|
379
368
|
<tr>
|
380
|
-
<td><p><span class="term"><em class="parameter"><code>ty</code></em
|
369
|
+
<td><p><span class="term"><em class="parameter"><code>ty</code></em> :</span></p></td>
|
381
370
|
<td> amount to translate in the Y direction
|
382
371
|
</td>
|
383
372
|
</tr>
|
@@ -386,9 +375,8 @@ to the coordinates.</p>
|
|
386
375
|
</div>
|
387
376
|
<hr>
|
388
377
|
<div class="refsect2" lang="en">
|
389
|
-
<a name="
|
390
|
-
<a
|
391
|
-
<a class="indexterm" name="id2675455"></a><pre class="programlisting">void cairo_matrix_scale (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
378
|
+
<a name="cairo-matrix-scale"></a><h3>cairo_matrix_scale ()</h3>
|
379
|
+
<pre class="programlisting">void cairo_matrix_scale (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
392
380
|
double sx,
|
393
381
|
double sy);</pre>
|
394
382
|
<p>
|
@@ -402,17 +390,17 @@ by <em class="parameter"><code>sx</code></em> and <em class="parameter"><code>sy
|
|
402
390
|
<col align="left" valign="top">
|
403
391
|
<tbody>
|
404
392
|
<tr>
|
405
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
406
|
-
<td> a <a class="link" href="cairo-
|
393
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
394
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
407
395
|
</td>
|
408
396
|
</tr>
|
409
397
|
<tr>
|
410
|
-
<td><p><span class="term"><em class="parameter"><code>sx</code></em
|
398
|
+
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
|
411
399
|
<td> scale factor in the X direction
|
412
400
|
</td>
|
413
401
|
</tr>
|
414
402
|
<tr>
|
415
|
-
<td><p><span class="term"><em class="parameter"><code>sy</code></em
|
403
|
+
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
|
416
404
|
<td> scale factor in the Y direction
|
417
405
|
</td>
|
418
406
|
</tr>
|
@@ -421,9 +409,8 @@ by <em class="parameter"><code>sx</code></em> and <em class="parameter"><code>sy
|
|
421
409
|
</div>
|
422
410
|
<hr>
|
423
411
|
<div class="refsect2" lang="en">
|
424
|
-
<a name="
|
425
|
-
<a
|
426
|
-
<a class="indexterm" name="id2675598"></a><pre class="programlisting">void cairo_matrix_rotate (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
412
|
+
<a name="cairo-matrix-rotate"></a><h3>cairo_matrix_rotate ()</h3>
|
413
|
+
<pre class="programlisting">void cairo_matrix_rotate (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
427
414
|
double radians);</pre>
|
428
415
|
<p>
|
429
416
|
Applies rotation by <em class="parameter"><code>radians</code></em> to the transformation in
|
@@ -437,12 +424,12 @@ to the coordinates.</p>
|
|
437
424
|
<col align="left" valign="top">
|
438
425
|
<tbody>
|
439
426
|
<tr>
|
440
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
441
|
-
<td> a <a class="link" href="cairo-
|
427
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
428
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
442
429
|
</td>
|
443
430
|
</tr>
|
444
431
|
<tr>
|
445
|
-
<td><p><span class="term"><em class="parameter"><code>radians</code></em
|
432
|
+
<td><p><span class="term"><em class="parameter"><code>radians</code></em> :</span></p></td>
|
446
433
|
<td> angle of rotation, in radians. The direction of rotation
|
447
434
|
is defined such that positive angles rotate in the direction from
|
448
435
|
the positive X axis toward the positive Y axis. With the default
|
@@ -455,9 +442,8 @@ direction.
|
|
455
442
|
</div>
|
456
443
|
<hr>
|
457
444
|
<div class="refsect2" lang="en">
|
458
|
-
<a name="
|
459
|
-
<a
|
460
|
-
<a class="indexterm" name="id2675712"></a><pre class="programlisting"><a class="link" href="cairo-Error-Handling.html#cairo-status-t">cairo_status_t</a> cairo_matrix_invert (<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix);</pre>
|
445
|
+
<a name="cairo-matrix-invert"></a><h3>cairo_matrix_invert ()</h3>
|
446
|
+
<pre class="programlisting"><a class="link" href="cairo-error-status.html#cairo-status-t" title="enum cairo_status_t">cairo_status_t</a> cairo_matrix_invert (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
461
447
|
<p>
|
462
448
|
Changes <em class="parameter"><code>matrix</code></em> to be the inverse of it's original value. Not
|
463
449
|
all transformation matrices have inverses; if the matrix
|
@@ -470,15 +456,15 @@ then it has no inverse and this function will fail.</p>
|
|
470
456
|
<col align="left" valign="top">
|
471
457
|
<tbody>
|
472
458
|
<tr>
|
473
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
474
|
-
<td> a <a class="link" href="cairo-
|
459
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
460
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
475
461
|
</td>
|
476
462
|
</tr>
|
477
463
|
<tr>
|
478
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span
|
464
|
+
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
479
465
|
<td> If <em class="parameter"><code>matrix</code></em> has an inverse, modifies <em class="parameter"><code>matrix</code></em> to
|
480
|
-
be the inverse matrix and returns <a class="link" href="cairo-
|
481
|
-
returns <a class="link" href="cairo-
|
466
|
+
be the inverse matrix and returns <a class="link" href="cairo-error-status.html#CAIRO-STATUS-SUCCESS:CAPS"><code class="literal">CAIRO_STATUS_SUCCESS</code></a>. Otherwise,
|
467
|
+
returns <a class="link" href="cairo-error-status.html#CAIRO-STATUS-INVALID-MATRIX:CAPS"><code class="literal">CAIRO_STATUS_INVALID_MATRIX</code></a>.
|
482
468
|
</td>
|
483
469
|
</tr>
|
484
470
|
</tbody>
|
@@ -486,11 +472,10 @@ then it has no inverse and this function will fail.</p>
|
|
486
472
|
</div>
|
487
473
|
<hr>
|
488
474
|
<div class="refsect2" lang="en">
|
489
|
-
<a name="
|
490
|
-
<a
|
491
|
-
|
492
|
-
const <a class="link" href="cairo-
|
493
|
-
const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *b);</pre>
|
475
|
+
<a name="cairo-matrix-multiply"></a><h3>cairo_matrix_multiply ()</h3>
|
476
|
+
<pre class="programlisting">void cairo_matrix_multiply (<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *result,
|
477
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *a,
|
478
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *b);</pre>
|
494
479
|
<p>
|
495
480
|
Multiplies the affine transformations in <em class="parameter"><code>a</code></em> and <em class="parameter"><code>b</code></em> together
|
496
481
|
and stores the result in <em class="parameter"><code>result</code></em>. The effect of the resulting
|
@@ -507,18 +492,18 @@ It is allowable for <em class="parameter"><code>result</code></em> to be identic
|
|
507
492
|
<col align="left" valign="top">
|
508
493
|
<tbody>
|
509
494
|
<tr>
|
510
|
-
<td><p><span class="term"><em class="parameter"><code>result</code></em
|
511
|
-
<td> a <a class="link" href="cairo-
|
495
|
+
<td><p><span class="term"><em class="parameter"><code>result</code></em> :</span></p></td>
|
496
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> in which to store the result
|
512
497
|
</td>
|
513
498
|
</tr>
|
514
499
|
<tr>
|
515
|
-
<td><p><span class="term"><em class="parameter"><code>a</code></em
|
516
|
-
<td> a <a class="link" href="cairo-
|
500
|
+
<td><p><span class="term"><em class="parameter"><code>a</code></em> :</span></p></td>
|
501
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
517
502
|
</td>
|
518
503
|
</tr>
|
519
504
|
<tr>
|
520
|
-
<td><p><span class="term"><em class="parameter"><code>b</code></em
|
521
|
-
<td> a <a class="link" href="cairo-
|
505
|
+
<td><p><span class="term"><em class="parameter"><code>b</code></em> :</span></p></td>
|
506
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
522
507
|
</td>
|
523
508
|
</tr>
|
524
509
|
</tbody>
|
@@ -526,14 +511,13 @@ It is allowable for <em class="parameter"><code>result</code></em> to be identic
|
|
526
511
|
</div>
|
527
512
|
<hr>
|
528
513
|
<div class="refsect2" lang="en">
|
529
|
-
<a name="
|
530
|
-
<a
|
531
|
-
<a class="indexterm" name="id2676014"></a><pre class="programlisting">void cairo_matrix_transform_distance (const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
514
|
+
<a name="cairo-matrix-transform-distance"></a><h3>cairo_matrix_transform_distance ()</h3>
|
515
|
+
<pre class="programlisting">void cairo_matrix_transform_distance (const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
532
516
|
double *dx,
|
533
517
|
double *dy);</pre>
|
534
518
|
<p>
|
535
519
|
Transforms the distance vector (<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>) by <em class="parameter"><code>matrix</code></em>. This is
|
536
|
-
similar to <a class="link" href="cairo-
|
520
|
+
similar to <a class="link" href="cairo-matrix.html#cairo-matrix-transform-point" title="cairo_matrix_transform_point ()"><code class="function">cairo_matrix_transform_point()</code></a> except that the translation
|
537
521
|
components of the transformation are ignored. The calculation of
|
538
522
|
the returned vector is as follows:
|
539
523
|
</p>
|
@@ -557,17 +541,17 @@ to (<em class="parameter"><code>x2</code></em>,<em class="parameter"><code>y2</c
|
|
557
541
|
<col align="left" valign="top">
|
558
542
|
<tbody>
|
559
543
|
<tr>
|
560
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
561
|
-
<td> a <a class="link" href="cairo-
|
544
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
545
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
562
546
|
</td>
|
563
547
|
</tr>
|
564
548
|
<tr>
|
565
|
-
<td><p><span class="term"><em class="parameter"><code>dx</code></em
|
549
|
+
<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
|
566
550
|
<td> X component of a distance vector. An in/out parameter
|
567
551
|
</td>
|
568
552
|
</tr>
|
569
553
|
<tr>
|
570
|
-
<td><p><span class="term"><em class="parameter"><code>dy</code></em
|
554
|
+
<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
|
571
555
|
<td> Y component of a distance vector. An in/out parameter
|
572
556
|
</td>
|
573
557
|
</tr>
|
@@ -576,9 +560,8 @@ to (<em class="parameter"><code>x2</code></em>,<em class="parameter"><code>y2</c
|
|
576
560
|
</div>
|
577
561
|
<hr>
|
578
562
|
<div class="refsect2" lang="en">
|
579
|
-
<a name="
|
580
|
-
<a
|
581
|
-
<a class="indexterm" name="id2676220"></a><pre class="programlisting">void cairo_matrix_transform_point (const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t">cairo_matrix_t</a> *matrix,
|
563
|
+
<a name="cairo-matrix-transform-point"></a><h3>cairo_matrix_transform_point ()</h3>
|
564
|
+
<pre class="programlisting">void cairo_matrix_transform_point (const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix,
|
582
565
|
double *x,
|
583
566
|
double *y);</pre>
|
584
567
|
<p>
|
@@ -590,17 +573,17 @@ Transforms the point (<em class="parameter"><code>x</code></em>, <em class="para
|
|
590
573
|
<col align="left" valign="top">
|
591
574
|
<tbody>
|
592
575
|
<tr>
|
593
|
-
<td><p><span class="term"><em class="parameter"><code>matrix</code></em
|
594
|
-
<td> a <a class="link" href="cairo-
|
576
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
577
|
+
<td> a <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
595
578
|
</td>
|
596
579
|
</tr>
|
597
580
|
<tr>
|
598
|
-
<td><p><span class="term"><em class="parameter"><code>x</code></em
|
581
|
+
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
599
582
|
<td> X position. An in/out parameter
|
600
583
|
</td>
|
601
584
|
</tr>
|
602
585
|
<tr>
|
603
|
-
<td><p><span class="term"><em class="parameter"><code>y</code></em
|
586
|
+
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
604
587
|
<td> Y position. An in/out parameter
|
605
588
|
</td>
|
606
589
|
</tr>
|
@@ -609,18 +592,16 @@ Transforms the point (<em class="parameter"><code>x</code></em>, <em class="para
|
|
609
592
|
</div>
|
610
593
|
</div>
|
611
594
|
<div class="refsect1" lang="en">
|
612
|
-
<a name="
|
595
|
+
<a name="cairo-matrix.see-also"></a><h2>See Also</h2>
|
613
596
|
<p>
|
614
597
|
</p>
|
615
|
-
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-
|
598
|
+
<div class="itemizedlist"><ul type="disc"><li><a class="link" href="cairo-context.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a></li></ul></div>
|
616
599
|
<p>
|
617
600
|
</p>
|
618
601
|
</div>
|
619
|
-
<div class="refsect1" lang="en">
|
620
|
-
<a name="id2676348"></a><div class="refsect2" lang="en"><a name="id2676349"></a></div>
|
621
|
-
<hr>
|
622
|
-
<div class="refsect2" lang="en"><a name="id2676350"></a></div>
|
623
|
-
</div>
|
624
602
|
</div>
|
603
|
+
<div class="footer">
|
604
|
+
<hr>
|
605
|
+
Generated by GTK-Doc V1.10</div>
|
625
606
|
</body>
|
626
607
|
</html>
|