cairo 1.14.1-x64-mingw32 → 1.14.2-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of cairo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/NEWS +21 -0
- data/Rakefile +17 -6
- data/ext/cairo/cairo.def +1 -0
- data/ext/cairo/extconf.rb +23 -10
- data/ext/cairo/rb_cairo.c +3 -0
- data/ext/cairo/rb_cairo.h +3 -3
- data/ext/cairo/rb_cairo_context.c +1 -1
- data/ext/cairo/rb_cairo_io.c +4 -0
- data/ext/cairo/rb_cairo_io.h +2 -0
- data/ext/cairo/rb_cairo_pattern.c +4 -4
- data/ext/cairo/rb_cairo_private.h +2 -0
- data/ext/cairo/rb_cairo_surface.c +64 -232
- data/lib/2.0/cairo.so +0 -0
- data/lib/2.1/cairo.so +0 -0
- data/lib/2.2/cairo.so +0 -0
- data/lib/cairo.rb +20 -19
- data/lib/cairo/region.rb +14 -0
- data/test/test_region.rb +26 -0
- data/vendor/local/bin/fc-cache.exe +0 -0
- data/vendor/local/bin/fc-cat.exe +0 -0
- data/vendor/local/bin/fc-list.exe +0 -0
- data/vendor/local/bin/fc-match.exe +0 -0
- data/vendor/local/bin/fc-pattern.exe +0 -0
- data/vendor/local/bin/fc-query.exe +0 -0
- data/vendor/local/bin/fc-scan.exe +0 -0
- data/vendor/local/bin/fc-validate.exe +0 -0
- data/vendor/local/bin/freetype-config +2 -2
- data/vendor/local/bin/libcairo-2.dll +0 -0
- data/vendor/local/bin/libcairo-gobject-2.dll +0 -0
- data/vendor/local/bin/libcairo-script-interpreter-2.dll +0 -0
- data/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/vendor/local/bin/libfreetype-6.dll +0 -0
- data/vendor/local/bin/libgcc_s_seh-1.dll +0 -0
- data/vendor/local/bin/libpixman-1-0.dll +0 -0
- data/vendor/local/bin/libpng-config +1 -1
- data/vendor/local/bin/libpng16-16.dll +0 -0
- data/vendor/local/bin/libpng16-config +1 -1
- data/vendor/local/bin/libstdc++-6.dll +0 -0
- data/vendor/local/bin/libwinpthread-1.dll +0 -0
- data/vendor/local/bin/libxml2-2.dll +0 -0
- data/vendor/local/bin/png-fix-itxt.exe +0 -0
- data/vendor/local/bin/pngfix.exe +0 -0
- data/vendor/local/bin/xmlcatalog.exe +0 -0
- data/vendor/local/bin/xmllint.exe +0 -0
- data/vendor/local/bin/zlib1.dll +0 -0
- data/vendor/local/include/cairo/cairo-version.h +1 -1
- data/vendor/local/include/freetype2/config/ftconfig.h +19 -2
- data/vendor/local/include/freetype2/config/ftheader.h +7 -5
- data/vendor/local/include/freetype2/config/ftoption.h +9 -22
- data/vendor/local/include/freetype2/config/ftstdlib.h +2 -3
- data/vendor/local/include/freetype2/freetype.h +38 -17
- data/vendor/local/include/freetype2/ft2build.h +1 -1
- data/vendor/local/include/freetype2/ftadvanc.h +2 -2
- data/vendor/local/include/freetype2/ftautoh.h +50 -2
- data/vendor/local/include/freetype2/ftbbox.h +1 -1
- data/vendor/local/include/freetype2/ftbdf.h +1 -1
- data/vendor/local/include/freetype2/ftbitmap.h +11 -3
- data/vendor/local/include/freetype2/ftbzip2.h +1 -1
- data/vendor/local/include/freetype2/ftcache.h +3 -3
- data/vendor/local/include/freetype2/ftcffdrv.h +1 -1
- data/vendor/local/include/freetype2/ftcid.h +2 -1
- data/vendor/local/include/freetype2/fterrdef.h +1 -1
- data/vendor/local/include/freetype2/fterrors.h +1 -1
- data/vendor/local/include/freetype2/{ftxf86.h → ftfntfmt.h} +22 -14
- data/vendor/local/include/freetype2/ftgasp.h +1 -1
- data/vendor/local/include/freetype2/ftglyph.h +1 -1
- data/vendor/local/include/freetype2/ftgxval.h +1 -1
- data/vendor/local/include/freetype2/ftgzip.h +1 -1
- data/vendor/local/include/freetype2/ftimage.h +7 -13
- data/vendor/local/include/freetype2/ftincrem.h +1 -1
- data/vendor/local/include/freetype2/ftlcdfil.h +2 -2
- data/vendor/local/include/freetype2/ftlist.h +1 -1
- data/vendor/local/include/freetype2/ftlzw.h +1 -1
- data/vendor/local/include/freetype2/ftmac.h +1 -1
- data/vendor/local/include/freetype2/ftmm.h +17 -11
- data/vendor/local/include/freetype2/ftmodapi.h +4 -2
- data/vendor/local/include/freetype2/ftmoderr.h +1 -1
- data/vendor/local/include/freetype2/ftotval.h +1 -1
- data/vendor/local/include/freetype2/ftoutln.h +1 -1
- data/vendor/local/include/freetype2/ftpfr.h +1 -1
- data/vendor/local/include/freetype2/ftrender.h +3 -8
- data/vendor/local/include/freetype2/ftsizes.h +1 -1
- data/vendor/local/include/freetype2/ftsnames.h +1 -1
- data/vendor/local/include/freetype2/ftstroke.h +1 -1
- data/vendor/local/include/freetype2/ftsynth.h +5 -3
- data/vendor/local/include/freetype2/ftsystem.h +10 -1
- data/vendor/local/include/freetype2/fttrigon.h +1 -1
- data/vendor/local/include/freetype2/ftttdrv.h +85 -22
- data/vendor/local/include/freetype2/fttypes.h +1 -1
- data/vendor/local/include/freetype2/ftwinfnt.h +3 -3
- data/vendor/local/include/freetype2/t1tables.h +4 -3
- data/vendor/local/include/freetype2/ttnameid.h +116 -116
- data/vendor/local/include/freetype2/tttables.h +2 -2
- data/vendor/local/include/freetype2/tttags.h +1 -1
- data/vendor/local/include/freetype2/ttunpat.h +1 -1
- data/vendor/local/include/libpng16/png.h +63 -80
- data/vendor/local/include/libpng16/pngconf.h +8 -30
- data/vendor/local/include/libpng16/pnglibconf.h +10 -4
- data/vendor/local/include/png.h +63 -80
- data/vendor/local/include/pngconf.h +8 -30
- data/vendor/local/include/pnglibconf.h +10 -4
- data/vendor/local/lib/libcairo-gobject.a +0 -0
- data/vendor/local/lib/libcairo-gobject.dll.a +0 -0
- data/vendor/local/lib/libcairo-gobject.la +2 -2
- data/vendor/local/lib/libcairo-script-interpreter.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.dll.a +0 -0
- data/vendor/local/lib/libcairo-script-interpreter.la +2 -2
- data/vendor/local/lib/libcairo.a +0 -0
- data/vendor/local/lib/libcairo.dll.a +0 -0
- data/vendor/local/lib/libcairo.la +2 -2
- data/vendor/local/lib/libfontconfig.dll.a +0 -0
- data/vendor/local/lib/libfreetype.a +0 -0
- data/vendor/local/lib/libfreetype.dll.a +0 -0
- data/vendor/local/lib/libfreetype.la +4 -4
- data/vendor/local/lib/libpixman-1.a +0 -0
- data/vendor/local/lib/libpixman-1.dll.a +0 -0
- data/vendor/local/lib/libpng.a +0 -0
- data/vendor/local/lib/libpng.dll.a +0 -0
- data/vendor/local/lib/libpng.la +4 -4
- data/vendor/local/lib/libpng16.a +0 -0
- data/vendor/local/lib/libpng16.dll.a +0 -0
- data/vendor/local/lib/libpng16.la +4 -4
- data/vendor/local/lib/libxml2.a +0 -0
- data/vendor/local/lib/libxml2.dll.a +0 -0
- data/vendor/local/lib/libz.a +0 -0
- data/vendor/local/lib/libz.dll.a +0 -0
- data/vendor/local/lib/pkgconfig/cairo-fc.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ft.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-gobject.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-pdf.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-png.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-ps.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-script.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-svg.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32-font.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo-win32.pc +1 -1
- data/vendor/local/lib/pkgconfig/cairo.pc +1 -1
- data/vendor/local/lib/pkgconfig/freetype2.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng.pc +1 -1
- data/vendor/local/lib/pkgconfig/libpng16.pc +1 -1
- data/vendor/local/share/aclocal/freetype2.m4 +1 -1
- data/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +35 -35
- data/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +10 -10
- data/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +11 -11
- data/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Error-handling.html +294 -225
- data/vendor/local/share/gtk-doc/html/cairo/cairo-FreeType-Fonts.html +387 -269
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Image-Surfaces.html +432 -302
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PDF-Surfaces.html +325 -217
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PNG-Support.html +298 -193
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Paths.html +1121 -812
- data/vendor/local/share/gtk-doc/html/cairo/cairo-PostScript-Surfaces.html +513 -383
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-(CGFont)-Fonts.html +126 -83
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Quartz-Surfaces.html +172 -119
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Raster-Sources.html +581 -372
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Recording-Surfaces.html +179 -130
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Regions.html +888 -539
- data/vendor/local/share/gtk-doc/html/cairo/cairo-SVG-Surfaces.html +287 -192
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Script-Surfaces.html +374 -231
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Transformations.html +395 -219
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Types.html +125 -75
- data/vendor/local/share/gtk-doc/html/cairo/cairo-User-Fonts.html +630 -464
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Version-Information.html +225 -200
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Fonts.html +336 -214
- data/vendor/local/share/gtk-doc/html/cairo/cairo-Win32-Surfaces.html +277 -186
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XCB-Surfaces.html +495 -350
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-Surfaces.html +557 -362
- data/vendor/local/share/gtk-doc/html/cairo/cairo-XLib-XRender-Backend.html +158 -111
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-device-t.html +655 -441
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-face-t.html +389 -280
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-font-options-t.html +667 -451
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-matrix-t.html +579 -351
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-pattern-t.html +2006 -1545
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-scaled-font-t.html +892 -618
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-surface-t.html +1624 -1188
- data/vendor/local/share/gtk-doc/html/cairo/cairo-cairo-t.html +2903 -2104
- data/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +13 -13
- data/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1115 -758
- data/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +419 -604
- data/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/index-1.10.html +56 -56
- data/vendor/local/share/gtk-doc/html/cairo/index-1.12.html +70 -70
- data/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +58 -58
- data/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +39 -39
- data/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +30 -30
- data/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +38 -38
- data/vendor/local/share/gtk-doc/html/cairo/index-all.html +426 -426
- data/vendor/local/share/gtk-doc/html/cairo/index.html +6 -6
- data/vendor/local/share/gtk-doc/html/cairo/index.sgml +234 -325
- data/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +12 -12
- data/vendor/local/share/gtk-doc/html/cairo/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/style.css +221 -26
- data/vendor/local/share/gtk-doc/html/cairo/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
- data/vendor/local/share/license/cairo/README +1 -1
- data/vendor/local/share/license/freetype/README +6 -6
- data/vendor/local/share/license/freetype/README.git +1 -1
- data/vendor/local/share/license/libpng/README +2 -2
- data/vendor/local/share/man/man1/freetype-config.1 +1 -1
- data/vendor/local/share/man/man3/libpng.3 +85 -92
- data/vendor/local/share/man/man3/libpngpf.3 +2 -2
- data/vendor/local/share/man/man5/png.5 +1 -1
- metadata +23 -19
@@ -2,30 +2,27 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
-
<title>Transformations</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>Cairo: A Vector Graphics Library: Transformations</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1">
|
7
7
|
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
8
|
<link rel="up" href="cairo-drawing.html" title="Drawing">
|
9
9
|
<link rel="prev" href="cairo-Regions.html" title="Regions">
|
10
10
|
<link rel="next" href="cairo-text.html" title="text">
|
11
|
-
<meta name="generator" content="GTK-Doc V1.
|
11
|
+
<meta name="generator" content="GTK-Doc V1.20 (XML mode)">
|
12
12
|
<link rel="stylesheet" href="style.css" type="text/css">
|
13
13
|
</head>
|
14
14
|
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
15
|
-
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="
|
16
|
-
<
|
17
|
-
<
|
18
|
-
<
|
19
|
-
<
|
20
|
-
|
21
|
-
<td><a accesskey="
|
22
|
-
|
23
|
-
<
|
24
|
-
<a href="
|
25
|
-
|
26
|
-
<a href="#cairo-Transformations.description" class="shortcut">Description</a>
|
27
|
-
</td></tr>
|
28
|
-
</table>
|
15
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="10"><tr valign="middle">
|
16
|
+
<td width="100%" align="left" class="shortcuts">
|
17
|
+
<a href="#" class="shortcut">Top</a><span id="nav_description"> <span class="dim">|</span>
|
18
|
+
<a href="#cairo-Transformations.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#cairo-Transformations.object-hierarchy" class="shortcut">Object Hierarchy</a></span>
|
20
|
+
</td>
|
21
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
|
22
|
+
<td><a accesskey="u" href="cairo-drawing.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
23
|
+
<td><a accesskey="p" href="cairo-Regions.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
+
<td><a accesskey="n" href="cairo-text.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
|
25
|
+
</tr></table>
|
29
26
|
<div class="refentry">
|
30
27
|
<a name="cairo-Transformations"></a><div class="titlepage"></div>
|
31
28
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,362 +30,541 @@
|
|
33
30
|
<h2><span class="refentrytitle"><a name="cairo-Transformations.top_of_page"></a>Transformations</span></h2>
|
34
31
|
<p>Transformations — Manipulating the current transformation matrix</p>
|
35
32
|
</td>
|
36
|
-
<td valign="top" align="right"></td>
|
33
|
+
<td class="gallery_image" valign="top" align="right"></td>
|
37
34
|
</tr></table></div>
|
38
|
-
<div class="
|
39
|
-
<a name="cairo-Transformations.
|
40
|
-
<
|
41
|
-
|
42
|
-
|
43
|
-
<
|
44
|
-
|
45
|
-
|
46
|
-
<
|
47
|
-
|
48
|
-
<span class="returnvalue">void</span>
|
49
|
-
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<
|
55
|
-
<
|
56
|
-
|
57
|
-
|
58
|
-
<
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
<span class="returnvalue">void</span>
|
65
|
-
|
66
|
-
|
35
|
+
<div class="refsect1">
|
36
|
+
<a name="cairo-Transformations.functions"></a><h2>Functions</h2>
|
37
|
+
<div class="informaltable"><table width="100%" border="0">
|
38
|
+
<colgroup>
|
39
|
+
<col width="150px" class="functions_return">
|
40
|
+
<col class="functions_name">
|
41
|
+
</colgroup>
|
42
|
+
<tbody>
|
43
|
+
<tr>
|
44
|
+
<td class="function_type">
|
45
|
+
<span class="returnvalue">void</span>
|
46
|
+
</td>
|
47
|
+
<td class="function_name">
|
48
|
+
<a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate ()">cairo_translate</a> <span class="c_punctuation">()</span>
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td class="function_type">
|
53
|
+
<span class="returnvalue">void</span>
|
54
|
+
</td>
|
55
|
+
<td class="function_name">
|
56
|
+
<a class="link" href="cairo-Transformations.html#cairo-scale" title="cairo_scale ()">cairo_scale</a> <span class="c_punctuation">()</span>
|
57
|
+
</td>
|
58
|
+
</tr>
|
59
|
+
<tr>
|
60
|
+
<td class="function_type">
|
61
|
+
<span class="returnvalue">void</span>
|
62
|
+
</td>
|
63
|
+
<td class="function_name">
|
64
|
+
<a class="link" href="cairo-Transformations.html#cairo-rotate" title="cairo_rotate ()">cairo_rotate</a> <span class="c_punctuation">()</span>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<td class="function_type">
|
69
|
+
<span class="returnvalue">void</span>
|
70
|
+
</td>
|
71
|
+
<td class="function_name">
|
72
|
+
<a class="link" href="cairo-Transformations.html#cairo-transform" title="cairo_transform ()">cairo_transform</a> <span class="c_punctuation">()</span>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
<tr>
|
76
|
+
<td class="function_type">
|
77
|
+
<span class="returnvalue">void</span>
|
78
|
+
</td>
|
79
|
+
<td class="function_name">
|
80
|
+
<a class="link" href="cairo-Transformations.html#cairo-set-matrix" title="cairo_set_matrix ()">cairo_set_matrix</a> <span class="c_punctuation">()</span>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
<tr>
|
84
|
+
<td class="function_type">
|
85
|
+
<span class="returnvalue">void</span>
|
86
|
+
</td>
|
87
|
+
<td class="function_name">
|
88
|
+
<a class="link" href="cairo-Transformations.html#cairo-get-matrix" title="cairo_get_matrix ()">cairo_get_matrix</a> <span class="c_punctuation">()</span>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td class="function_type">
|
93
|
+
<span class="returnvalue">void</span>
|
94
|
+
</td>
|
95
|
+
<td class="function_name">
|
96
|
+
<a class="link" href="cairo-Transformations.html#cairo-identity-matrix" title="cairo_identity_matrix ()">cairo_identity_matrix</a> <span class="c_punctuation">()</span>
|
97
|
+
</td>
|
98
|
+
</tr>
|
99
|
+
<tr>
|
100
|
+
<td class="function_type">
|
101
|
+
<span class="returnvalue">void</span>
|
102
|
+
</td>
|
103
|
+
<td class="function_name">
|
104
|
+
<a class="link" href="cairo-Transformations.html#cairo-user-to-device" title="cairo_user_to_device ()">cairo_user_to_device</a> <span class="c_punctuation">()</span>
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
<tr>
|
108
|
+
<td class="function_type">
|
109
|
+
<span class="returnvalue">void</span>
|
110
|
+
</td>
|
111
|
+
<td class="function_name">
|
112
|
+
<a class="link" href="cairo-Transformations.html#cairo-user-to-device-distance" title="cairo_user_to_device_distance ()">cairo_user_to_device_distance</a> <span class="c_punctuation">()</span>
|
113
|
+
</td>
|
114
|
+
</tr>
|
115
|
+
<tr>
|
116
|
+
<td class="function_type">
|
117
|
+
<span class="returnvalue">void</span>
|
118
|
+
</td>
|
119
|
+
<td class="function_name">
|
120
|
+
<a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user ()">cairo_device_to_user</a> <span class="c_punctuation">()</span>
|
121
|
+
</td>
|
122
|
+
</tr>
|
123
|
+
<tr>
|
124
|
+
<td class="function_type">
|
125
|
+
<span class="returnvalue">void</span>
|
126
|
+
</td>
|
127
|
+
<td class="function_name">
|
128
|
+
<a class="link" href="cairo-Transformations.html#cairo-device-to-user-distance" title="cairo_device_to_user_distance ()">cairo_device_to_user_distance</a> <span class="c_punctuation">()</span>
|
129
|
+
</td>
|
130
|
+
</tr>
|
131
|
+
</tbody>
|
132
|
+
</table></div>
|
133
|
+
</div>
|
134
|
+
<div class="refsect1">
|
135
|
+
<a name="cairo-Transformations.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
136
|
+
<pre class="screen">
|
67
137
|
</pre>
|
68
138
|
</div>
|
69
139
|
<div class="refsect1">
|
70
140
|
<a name="cairo-Transformations.description"></a><h2>Description</h2>
|
71
|
-
<p>
|
72
|
-
The current transformation matrix, <em class="firstterm">ctm</em>, is a
|
141
|
+
<p>The current transformation matrix, <em class="firstterm">ctm</em>, is a
|
73
142
|
two-dimensional affine transformation that maps all coordinates and other
|
74
143
|
drawing instruments from the <em class="firstterm">user space</em> into the
|
75
144
|
surface's canonical coordinate system, also known as the <em class="firstterm">device
|
76
|
-
space</em
|
77
|
-
</p>
|
145
|
+
space</em>.</p>
|
78
146
|
</div>
|
79
147
|
<div class="refsect1">
|
80
|
-
<a name="cairo-Transformations.
|
148
|
+
<a name="cairo-Transformations.functions_details"></a><h2>Functions</h2>
|
81
149
|
<div class="refsect2">
|
82
|
-
<a name="cairo-translate"></a><h3>cairo_translate
|
83
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
84
|
-
|
85
|
-
|
86
|
-
<
|
87
|
-
Modifies the current transformation matrix (CTM) by translating the
|
88
|
-
user-space origin by (<em class="parameter"><code>tx</code></em
|
150
|
+
<a name="cairo-translate"></a><h3>cairo_translate ()</h3>
|
151
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
152
|
+
cairo_translate (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
153
|
+
<em class="parameter"><code><span class="type">double</span> tx</code></em>,
|
154
|
+
<em class="parameter"><code><span class="type">double</span> ty</code></em>);</pre>
|
155
|
+
<p>Modifies the current transformation matrix (CTM) by translating the
|
156
|
+
user-space origin by (<em class="parameter"><code>tx</code></em>
|
157
|
+
, <em class="parameter"><code>ty</code></em>
|
158
|
+
). This offset is interpreted as a
|
89
159
|
user-space coordinate according to the CTM in place before the new
|
90
|
-
call to <a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate
|
91
|
-
user-space origin takes place after any existing transformation
|
92
|
-
|
93
|
-
<
|
94
|
-
<
|
160
|
+
call to <a class="link" href="cairo-Transformations.html#cairo-translate" title="cairo_translate ()"><code class="function">cairo_translate()</code></a>. In other words, the translation of the
|
161
|
+
user-space origin takes place after any existing transformation.</p>
|
162
|
+
<div class="refsect3">
|
163
|
+
<a name="id-1.3.6.6.2.5"></a><h4>Parameters</h4>
|
164
|
+
<div class="informaltable"><table width="100%" border="0">
|
165
|
+
<colgroup>
|
166
|
+
<col width="150px" class="parameters_name">
|
167
|
+
<col class="parameters_description">
|
168
|
+
<col width="200px" class="parameters_annotations">
|
169
|
+
</colgroup>
|
95
170
|
<tbody>
|
96
171
|
<tr>
|
97
|
-
<td
|
98
|
-
<td>a cairo context</td>
|
172
|
+
<td class="parameter_name"><p>cr</p></td>
|
173
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
174
|
+
<td class="parameter_annotations"> </td>
|
99
175
|
</tr>
|
100
176
|
<tr>
|
101
|
-
<td
|
102
|
-
<td>amount to translate in the X direction</td>
|
177
|
+
<td class="parameter_name"><p>tx</p></td>
|
178
|
+
<td class="parameter_description"><p>amount to translate in the X direction</p></td>
|
179
|
+
<td class="parameter_annotations"> </td>
|
103
180
|
</tr>
|
104
181
|
<tr>
|
105
|
-
<td
|
106
|
-
<td>amount to translate in the Y direction</td>
|
182
|
+
<td class="parameter_name"><p>ty</p></td>
|
183
|
+
<td class="parameter_description"><p>amount to translate in the Y direction</p></td>
|
184
|
+
<td class="parameter_annotations"> </td>
|
107
185
|
</tr>
|
108
186
|
</tbody>
|
109
187
|
</table></div>
|
188
|
+
</div>
|
110
189
|
<p class="since">Since 1.0</p>
|
111
190
|
</div>
|
112
191
|
<hr>
|
113
192
|
<div class="refsect2">
|
114
|
-
<a name="cairo-scale"></a><h3>cairo_scale
|
115
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
116
|
-
|
117
|
-
|
118
|
-
<
|
119
|
-
Modifies the current transformation matrix (CTM) by scaling the X
|
120
|
-
and Y user-space axes by <em class="parameter"><code>sx</code></em>
|
193
|
+
<a name="cairo-scale"></a><h3>cairo_scale ()</h3>
|
194
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
195
|
+
cairo_scale (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
196
|
+
<em class="parameter"><code><span class="type">double</span> sx</code></em>,
|
197
|
+
<em class="parameter"><code><span class="type">double</span> sy</code></em>);</pre>
|
198
|
+
<p>Modifies the current transformation matrix (CTM) by scaling the X
|
199
|
+
and Y user-space axes by <em class="parameter"><code>sx</code></em>
|
200
|
+
and <em class="parameter"><code>sy</code></em>
|
201
|
+
respectively. The scaling of
|
121
202
|
the axes takes place after any existing transformation of user
|
122
|
-
space
|
123
|
-
|
124
|
-
<
|
125
|
-
<
|
203
|
+
space.</p>
|
204
|
+
<div class="refsect3">
|
205
|
+
<a name="id-1.3.6.6.3.5"></a><h4>Parameters</h4>
|
206
|
+
<div class="informaltable"><table width="100%" border="0">
|
207
|
+
<colgroup>
|
208
|
+
<col width="150px" class="parameters_name">
|
209
|
+
<col class="parameters_description">
|
210
|
+
<col width="200px" class="parameters_annotations">
|
211
|
+
</colgroup>
|
126
212
|
<tbody>
|
127
213
|
<tr>
|
128
|
-
<td
|
129
|
-
<td>a cairo context</td>
|
214
|
+
<td class="parameter_name"><p>cr</p></td>
|
215
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
216
|
+
<td class="parameter_annotations"> </td>
|
130
217
|
</tr>
|
131
218
|
<tr>
|
132
|
-
<td
|
133
|
-
<td>scale factor for the X dimension</td>
|
219
|
+
<td class="parameter_name"><p>sx</p></td>
|
220
|
+
<td class="parameter_description"><p>scale factor for the X dimension</p></td>
|
221
|
+
<td class="parameter_annotations"> </td>
|
134
222
|
</tr>
|
135
223
|
<tr>
|
136
|
-
<td
|
137
|
-
<td>scale factor for the Y dimension</td>
|
224
|
+
<td class="parameter_name"><p>sy</p></td>
|
225
|
+
<td class="parameter_description"><p>scale factor for the Y dimension</p></td>
|
226
|
+
<td class="parameter_annotations"> </td>
|
138
227
|
</tr>
|
139
228
|
</tbody>
|
140
229
|
</table></div>
|
230
|
+
</div>
|
141
231
|
<p class="since">Since 1.0</p>
|
142
232
|
</div>
|
143
233
|
<hr>
|
144
234
|
<div class="refsect2">
|
145
|
-
<a name="cairo-rotate"></a><h3>cairo_rotate
|
146
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
147
|
-
|
148
|
-
<
|
149
|
-
Modifies the current transformation matrix (CTM) by rotating the
|
150
|
-
user-space axes by <em class="parameter"><code>angle</code></em>
|
235
|
+
<a name="cairo-rotate"></a><h3>cairo_rotate ()</h3>
|
236
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
237
|
+
cairo_rotate (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
238
|
+
<em class="parameter"><code><span class="type">double</span> angle</code></em>);</pre>
|
239
|
+
<p>Modifies the current transformation matrix (CTM) by rotating the
|
240
|
+
user-space axes by <em class="parameter"><code>angle</code></em>
|
241
|
+
radians. The rotation of the axes takes
|
151
242
|
places after any existing transformation of user space. The
|
152
243
|
rotation direction for positive angles is from the positive X axis
|
153
|
-
toward the positive Y axis
|
154
|
-
|
155
|
-
<
|
156
|
-
<
|
244
|
+
toward the positive Y axis.</p>
|
245
|
+
<div class="refsect3">
|
246
|
+
<a name="id-1.3.6.6.4.5"></a><h4>Parameters</h4>
|
247
|
+
<div class="informaltable"><table width="100%" border="0">
|
248
|
+
<colgroup>
|
249
|
+
<col width="150px" class="parameters_name">
|
250
|
+
<col class="parameters_description">
|
251
|
+
<col width="200px" class="parameters_annotations">
|
252
|
+
</colgroup>
|
157
253
|
<tbody>
|
158
254
|
<tr>
|
159
|
-
<td
|
160
|
-
<td>a cairo context</td>
|
255
|
+
<td class="parameter_name"><p>cr</p></td>
|
256
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
257
|
+
<td class="parameter_annotations"> </td>
|
161
258
|
</tr>
|
162
259
|
<tr>
|
163
|
-
<td
|
164
|
-
<td>angle (in radians) by which the user-space axes will be
|
165
|
-
rotated</td>
|
260
|
+
<td class="parameter_name"><p>angle</p></td>
|
261
|
+
<td class="parameter_description"><p>angle (in radians) by which the user-space axes will be
|
262
|
+
rotated</p></td>
|
263
|
+
<td class="parameter_annotations"> </td>
|
166
264
|
</tr>
|
167
265
|
</tbody>
|
168
266
|
</table></div>
|
267
|
+
</div>
|
169
268
|
<p class="since">Since 1.0</p>
|
170
269
|
</div>
|
171
270
|
<hr>
|
172
271
|
<div class="refsect2">
|
173
|
-
<a name="cairo-transform"></a><h3>cairo_transform
|
174
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
175
|
-
|
176
|
-
<
|
177
|
-
Modifies the current transformation matrix (CTM) by applying
|
178
|
-
<em class="parameter"><code>matrix</code></em>
|
179
|
-
|
180
|
-
|
181
|
-
<div class="
|
182
|
-
<
|
272
|
+
<a name="cairo-transform"></a><h3>cairo_transform ()</h3>
|
273
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
274
|
+
cairo_transform (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
275
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
276
|
+
<p>Modifies the current transformation matrix (CTM) by applying
|
277
|
+
<em class="parameter"><code>matrix</code></em>
|
278
|
+
as an additional transformation. The new transformation of
|
279
|
+
user space takes place after any existing transformation.</p>
|
280
|
+
<div class="refsect3">
|
281
|
+
<a name="id-1.3.6.6.5.5"></a><h4>Parameters</h4>
|
282
|
+
<div class="informaltable"><table width="100%" border="0">
|
283
|
+
<colgroup>
|
284
|
+
<col width="150px" class="parameters_name">
|
285
|
+
<col class="parameters_description">
|
286
|
+
<col width="200px" class="parameters_annotations">
|
287
|
+
</colgroup>
|
183
288
|
<tbody>
|
184
289
|
<tr>
|
185
|
-
<td
|
186
|
-
<td>a cairo context</td>
|
290
|
+
<td class="parameter_name"><p>cr</p></td>
|
291
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
292
|
+
<td class="parameter_annotations"> </td>
|
187
293
|
</tr>
|
188
294
|
<tr>
|
189
|
-
<td
|
190
|
-
<td>a transformation to be applied to the user-space axes</td>
|
295
|
+
<td class="parameter_name"><p>matrix</p></td>
|
296
|
+
<td class="parameter_description"><p>a transformation to be applied to the user-space axes</p></td>
|
297
|
+
<td class="parameter_annotations"> </td>
|
191
298
|
</tr>
|
192
299
|
</tbody>
|
193
300
|
</table></div>
|
301
|
+
</div>
|
194
302
|
<p class="since">Since 1.0</p>
|
195
303
|
</div>
|
196
304
|
<hr>
|
197
305
|
<div class="refsect2">
|
198
|
-
<a name="cairo-set-matrix"></a><h3>cairo_set_matrix
|
199
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
200
|
-
|
201
|
-
<
|
202
|
-
Modifies the current transformation matrix (CTM) by setting it
|
203
|
-
equal to <em class="parameter"><code>matrix</code></em
|
204
|
-
|
205
|
-
<div class="
|
206
|
-
<
|
306
|
+
<a name="cairo-set-matrix"></a><h3>cairo_set_matrix ()</h3>
|
307
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
308
|
+
cairo_set_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
309
|
+
<em class="parameter"><code>const <a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
310
|
+
<p>Modifies the current transformation matrix (CTM) by setting it
|
311
|
+
equal to <em class="parameter"><code>matrix</code></em>
|
312
|
+
.</p>
|
313
|
+
<div class="refsect3">
|
314
|
+
<a name="id-1.3.6.6.6.5"></a><h4>Parameters</h4>
|
315
|
+
<div class="informaltable"><table width="100%" border="0">
|
316
|
+
<colgroup>
|
317
|
+
<col width="150px" class="parameters_name">
|
318
|
+
<col class="parameters_description">
|
319
|
+
<col width="200px" class="parameters_annotations">
|
320
|
+
</colgroup>
|
207
321
|
<tbody>
|
208
322
|
<tr>
|
209
|
-
<td
|
210
|
-
<td>a cairo context</td>
|
323
|
+
<td class="parameter_name"><p>cr</p></td>
|
324
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
325
|
+
<td class="parameter_annotations"> </td>
|
211
326
|
</tr>
|
212
327
|
<tr>
|
213
|
-
<td
|
214
|
-
<td>a transformation matrix from user space to device space</td>
|
328
|
+
<td class="parameter_name"><p>matrix</p></td>
|
329
|
+
<td class="parameter_description"><p>a transformation matrix from user space to device space</p></td>
|
330
|
+
<td class="parameter_annotations"> </td>
|
215
331
|
</tr>
|
216
332
|
</tbody>
|
217
333
|
</table></div>
|
334
|
+
</div>
|
218
335
|
<p class="since">Since 1.0</p>
|
219
336
|
</div>
|
220
337
|
<hr>
|
221
338
|
<div class="refsect2">
|
222
|
-
<a name="cairo-get-matrix"></a><h3>cairo_get_matrix
|
223
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
224
|
-
|
225
|
-
<
|
226
|
-
Stores the current transformation matrix (CTM) into <em class="parameter"><code>matrix</code></em
|
227
|
-
|
228
|
-
<div class="
|
229
|
-
<
|
339
|
+
<a name="cairo-get-matrix"></a><h3>cairo_get_matrix ()</h3>
|
340
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
341
|
+
cairo_get_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
342
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a> *matrix</code></em>);</pre>
|
343
|
+
<p>Stores the current transformation matrix (CTM) into <em class="parameter"><code>matrix</code></em>
|
344
|
+
.</p>
|
345
|
+
<div class="refsect3">
|
346
|
+
<a name="id-1.3.6.6.7.5"></a><h4>Parameters</h4>
|
347
|
+
<div class="informaltable"><table width="100%" border="0">
|
348
|
+
<colgroup>
|
349
|
+
<col width="150px" class="parameters_name">
|
350
|
+
<col class="parameters_description">
|
351
|
+
<col width="200px" class="parameters_annotations">
|
352
|
+
</colgroup>
|
230
353
|
<tbody>
|
231
354
|
<tr>
|
232
|
-
<td
|
233
|
-
<td>a cairo context</td>
|
355
|
+
<td class="parameter_name"><p>cr</p></td>
|
356
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
357
|
+
<td class="parameter_annotations"> </td>
|
234
358
|
</tr>
|
235
359
|
<tr>
|
236
|
-
<td
|
237
|
-
<td>return value for the matrix</td>
|
360
|
+
<td class="parameter_name"><p>matrix</p></td>
|
361
|
+
<td class="parameter_description"><p>return value for the matrix</p></td>
|
362
|
+
<td class="parameter_annotations"> </td>
|
238
363
|
</tr>
|
239
364
|
</tbody>
|
240
365
|
</table></div>
|
366
|
+
</div>
|
241
367
|
<p class="since">Since 1.0</p>
|
242
368
|
</div>
|
243
369
|
<hr>
|
244
370
|
<div class="refsect2">
|
245
|
-
<a name="cairo-identity-matrix"></a><h3>cairo_identity_matrix
|
246
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
247
|
-
<
|
248
|
-
Resets the current transformation matrix (CTM) by setting it equal
|
371
|
+
<a name="cairo-identity-matrix"></a><h3>cairo_identity_matrix ()</h3>
|
372
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
373
|
+
cairo_identity_matrix (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>);</pre>
|
374
|
+
<p>Resets the current transformation matrix (CTM) by setting it equal
|
249
375
|
to the identity matrix. That is, the user-space and device-space
|
250
376
|
axes will be aligned and one user-space unit will transform to one
|
251
|
-
device-space unit
|
252
|
-
|
253
|
-
<
|
254
|
-
<
|
377
|
+
device-space unit.</p>
|
378
|
+
<div class="refsect3">
|
379
|
+
<a name="id-1.3.6.6.8.5"></a><h4>Parameters</h4>
|
380
|
+
<div class="informaltable"><table width="100%" border="0">
|
381
|
+
<colgroup>
|
382
|
+
<col width="150px" class="parameters_name">
|
383
|
+
<col class="parameters_description">
|
384
|
+
<col width="200px" class="parameters_annotations">
|
385
|
+
</colgroup>
|
255
386
|
<tbody><tr>
|
256
|
-
<td
|
257
|
-
<td>a cairo context</td>
|
387
|
+
<td class="parameter_name"><p>cr</p></td>
|
388
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
389
|
+
<td class="parameter_annotations"> </td>
|
258
390
|
</tr></tbody>
|
259
391
|
</table></div>
|
392
|
+
</div>
|
260
393
|
<p class="since">Since 1.0</p>
|
261
394
|
</div>
|
262
395
|
<hr>
|
263
396
|
<div class="refsect2">
|
264
|
-
<a name="cairo-user-to-device"></a><h3>cairo_user_to_device
|
265
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
266
|
-
|
267
|
-
|
268
|
-
<
|
269
|
-
Transform a coordinate from user space to device space by
|
397
|
+
<a name="cairo-user-to-device"></a><h3>cairo_user_to_device ()</h3>
|
398
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
399
|
+
cairo_user_to_device (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
400
|
+
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
401
|
+
<em class="parameter"><code><span class="type">double</span> *y</code></em>);</pre>
|
402
|
+
<p>Transform a coordinate from user space to device space by
|
270
403
|
multiplying the given point by the current transformation matrix
|
271
|
-
(CTM)
|
272
|
-
|
273
|
-
<
|
274
|
-
<
|
404
|
+
(CTM).</p>
|
405
|
+
<div class="refsect3">
|
406
|
+
<a name="id-1.3.6.6.9.5"></a><h4>Parameters</h4>
|
407
|
+
<div class="informaltable"><table width="100%" border="0">
|
408
|
+
<colgroup>
|
409
|
+
<col width="150px" class="parameters_name">
|
410
|
+
<col class="parameters_description">
|
411
|
+
<col width="200px" class="parameters_annotations">
|
412
|
+
</colgroup>
|
275
413
|
<tbody>
|
276
414
|
<tr>
|
277
|
-
<td
|
278
|
-
<td>a cairo context</td>
|
415
|
+
<td class="parameter_name"><p>cr</p></td>
|
416
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
417
|
+
<td class="parameter_annotations"> </td>
|
279
418
|
</tr>
|
280
419
|
<tr>
|
281
|
-
<td
|
282
|
-
<td>X value of coordinate (in/out parameter)</td>
|
420
|
+
<td class="parameter_name"><p>x</p></td>
|
421
|
+
<td class="parameter_description"><p>X value of coordinate (in/out parameter)</p></td>
|
422
|
+
<td class="parameter_annotations"> </td>
|
283
423
|
</tr>
|
284
424
|
<tr>
|
285
|
-
<td
|
286
|
-
<td>Y value of coordinate (in/out parameter)</td>
|
425
|
+
<td class="parameter_name"><p>y</p></td>
|
426
|
+
<td class="parameter_description"><p>Y value of coordinate (in/out parameter)</p></td>
|
427
|
+
<td class="parameter_annotations"> </td>
|
287
428
|
</tr>
|
288
429
|
</tbody>
|
289
430
|
</table></div>
|
431
|
+
</div>
|
290
432
|
<p class="since">Since 1.0</p>
|
291
433
|
</div>
|
292
434
|
<hr>
|
293
435
|
<div class="refsect2">
|
294
|
-
<a name="cairo-user-to-device-distance"></a><h3>cairo_user_to_device_distance
|
295
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
296
|
-
|
297
|
-
|
298
|
-
<
|
299
|
-
Transform a distance vector from user space to device space. This
|
300
|
-
function is similar to <a class="link" href="cairo-Transformations.html#cairo-user-to-device" title="cairo_user_to_device
|
436
|
+
<a name="cairo-user-to-device-distance"></a><h3>cairo_user_to_device_distance ()</h3>
|
437
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
438
|
+
cairo_user_to_device_distance (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
439
|
+
<em class="parameter"><code><span class="type">double</span> *dx</code></em>,
|
440
|
+
<em class="parameter"><code><span class="type">double</span> *dy</code></em>);</pre>
|
441
|
+
<p>Transform a distance vector from user space to device space. This
|
442
|
+
function is similar to <a class="link" href="cairo-Transformations.html#cairo-user-to-device" title="cairo_user_to_device ()"><code class="function">cairo_user_to_device()</code></a> except that the
|
301
443
|
translation components of the CTM will be ignored when transforming
|
302
|
-
(<em class="parameter"><code>dx</code></em
|
303
|
-
</
|
304
|
-
|
305
|
-
<
|
444
|
+
(<em class="parameter"><code>dx</code></em>
|
445
|
+
,<em class="parameter"><code>dy</code></em>
|
446
|
+
).</p>
|
447
|
+
<div class="refsect3">
|
448
|
+
<a name="id-1.3.6.6.10.5"></a><h4>Parameters</h4>
|
449
|
+
<div class="informaltable"><table width="100%" border="0">
|
450
|
+
<colgroup>
|
451
|
+
<col width="150px" class="parameters_name">
|
452
|
+
<col class="parameters_description">
|
453
|
+
<col width="200px" class="parameters_annotations">
|
454
|
+
</colgroup>
|
306
455
|
<tbody>
|
307
456
|
<tr>
|
308
|
-
<td
|
309
|
-
<td>a cairo context</td>
|
457
|
+
<td class="parameter_name"><p>cr</p></td>
|
458
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
459
|
+
<td class="parameter_annotations"> </td>
|
310
460
|
</tr>
|
311
461
|
<tr>
|
312
|
-
<td
|
313
|
-
<td>X component of a distance vector (in/out parameter)</td>
|
462
|
+
<td class="parameter_name"><p>dx</p></td>
|
463
|
+
<td class="parameter_description"><p>X component of a distance vector (in/out parameter)</p></td>
|
464
|
+
<td class="parameter_annotations"> </td>
|
314
465
|
</tr>
|
315
466
|
<tr>
|
316
|
-
<td
|
317
|
-
<td>Y component of a distance vector (in/out parameter)</td>
|
467
|
+
<td class="parameter_name"><p>dy</p></td>
|
468
|
+
<td class="parameter_description"><p>Y component of a distance vector (in/out parameter)</p></td>
|
469
|
+
<td class="parameter_annotations"> </td>
|
318
470
|
</tr>
|
319
471
|
</tbody>
|
320
472
|
</table></div>
|
473
|
+
</div>
|
321
474
|
<p class="since">Since 1.0</p>
|
322
475
|
</div>
|
323
476
|
<hr>
|
324
477
|
<div class="refsect2">
|
325
|
-
<a name="cairo-device-to-user"></a><h3>cairo_device_to_user
|
326
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
327
|
-
|
328
|
-
|
329
|
-
<
|
330
|
-
Transform a coordinate from device space to user space by
|
478
|
+
<a name="cairo-device-to-user"></a><h3>cairo_device_to_user ()</h3>
|
479
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
480
|
+
cairo_device_to_user (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
481
|
+
<em class="parameter"><code><span class="type">double</span> *x</code></em>,
|
482
|
+
<em class="parameter"><code><span class="type">double</span> *y</code></em>);</pre>
|
483
|
+
<p>Transform a coordinate from device space to user space by
|
331
484
|
multiplying the given point by the inverse of the current
|
332
|
-
transformation matrix (CTM)
|
333
|
-
|
334
|
-
<
|
335
|
-
<
|
485
|
+
transformation matrix (CTM).</p>
|
486
|
+
<div class="refsect3">
|
487
|
+
<a name="id-1.3.6.6.11.5"></a><h4>Parameters</h4>
|
488
|
+
<div class="informaltable"><table width="100%" border="0">
|
489
|
+
<colgroup>
|
490
|
+
<col width="150px" class="parameters_name">
|
491
|
+
<col class="parameters_description">
|
492
|
+
<col width="200px" class="parameters_annotations">
|
493
|
+
</colgroup>
|
336
494
|
<tbody>
|
337
495
|
<tr>
|
338
|
-
<td
|
339
|
-
<td>a cairo</td>
|
496
|
+
<td class="parameter_name"><p>cr</p></td>
|
497
|
+
<td class="parameter_description"><p>a cairo</p></td>
|
498
|
+
<td class="parameter_annotations"> </td>
|
340
499
|
</tr>
|
341
500
|
<tr>
|
342
|
-
<td
|
343
|
-
<td>X value of coordinate (in/out parameter)</td>
|
501
|
+
<td class="parameter_name"><p>x</p></td>
|
502
|
+
<td class="parameter_description"><p>X value of coordinate (in/out parameter)</p></td>
|
503
|
+
<td class="parameter_annotations"> </td>
|
344
504
|
</tr>
|
345
505
|
<tr>
|
346
|
-
<td
|
347
|
-
<td>Y value of coordinate (in/out parameter)</td>
|
506
|
+
<td class="parameter_name"><p>y</p></td>
|
507
|
+
<td class="parameter_description"><p>Y value of coordinate (in/out parameter)</p></td>
|
508
|
+
<td class="parameter_annotations"> </td>
|
348
509
|
</tr>
|
349
510
|
</tbody>
|
350
511
|
</table></div>
|
512
|
+
</div>
|
351
513
|
<p class="since">Since 1.0</p>
|
352
514
|
</div>
|
353
515
|
<hr>
|
354
516
|
<div class="refsect2">
|
355
|
-
<a name="cairo-device-to-user-distance"></a><h3>cairo_device_to_user_distance
|
356
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
357
|
-
|
358
|
-
|
359
|
-
<
|
360
|
-
Transform a distance vector from device space to user space. This
|
361
|
-
function is similar to <a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user
|
517
|
+
<a name="cairo-device-to-user-distance"></a><h3>cairo_device_to_user_distance ()</h3>
|
518
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
519
|
+
cairo_device_to_user_distance (<em class="parameter"><code><a class="link" href="cairo-cairo-t.html#cairo-t" title="cairo_t"><span class="type">cairo_t</span></a> *cr</code></em>,
|
520
|
+
<em class="parameter"><code><span class="type">double</span> *dx</code></em>,
|
521
|
+
<em class="parameter"><code><span class="type">double</span> *dy</code></em>);</pre>
|
522
|
+
<p>Transform a distance vector from device space to user space. This
|
523
|
+
function is similar to <a class="link" href="cairo-Transformations.html#cairo-device-to-user" title="cairo_device_to_user ()"><code class="function">cairo_device_to_user()</code></a> except that the
|
362
524
|
translation components of the inverse CTM will be ignored when
|
363
|
-
transforming (<em class="parameter"><code>dx</code></em
|
364
|
-
</
|
365
|
-
|
366
|
-
<
|
525
|
+
transforming (<em class="parameter"><code>dx</code></em>
|
526
|
+
,<em class="parameter"><code>dy</code></em>
|
527
|
+
).</p>
|
528
|
+
<div class="refsect3">
|
529
|
+
<a name="id-1.3.6.6.12.5"></a><h4>Parameters</h4>
|
530
|
+
<div class="informaltable"><table width="100%" border="0">
|
531
|
+
<colgroup>
|
532
|
+
<col width="150px" class="parameters_name">
|
533
|
+
<col class="parameters_description">
|
534
|
+
<col width="200px" class="parameters_annotations">
|
535
|
+
</colgroup>
|
367
536
|
<tbody>
|
368
537
|
<tr>
|
369
|
-
<td
|
370
|
-
<td>a cairo context</td>
|
538
|
+
<td class="parameter_name"><p>cr</p></td>
|
539
|
+
<td class="parameter_description"><p>a cairo context</p></td>
|
540
|
+
<td class="parameter_annotations"> </td>
|
371
541
|
</tr>
|
372
542
|
<tr>
|
373
|
-
<td
|
374
|
-
<td>X component of a distance vector (in/out parameter)</td>
|
543
|
+
<td class="parameter_name"><p>dx</p></td>
|
544
|
+
<td class="parameter_description"><p>X component of a distance vector (in/out parameter)</p></td>
|
545
|
+
<td class="parameter_annotations"> </td>
|
375
546
|
</tr>
|
376
547
|
<tr>
|
377
|
-
<td
|
378
|
-
<td>Y component of a distance vector (in/out parameter)</td>
|
548
|
+
<td class="parameter_name"><p>dy</p></td>
|
549
|
+
<td class="parameter_description"><p>Y component of a distance vector (in/out parameter)</p></td>
|
550
|
+
<td class="parameter_annotations"> </td>
|
379
551
|
</tr>
|
380
552
|
</tbody>
|
381
553
|
</table></div>
|
554
|
+
</div>
|
382
555
|
<p class="since">Since 1.0</p>
|
383
556
|
</div>
|
384
557
|
</div>
|
385
558
|
<div class="refsect1">
|
559
|
+
<a name="cairo-Transformations.other_details"></a><h2>Types and Values</h2>
|
560
|
+
</div>
|
561
|
+
<div class="refsect1">
|
386
562
|
<a name="cairo-Transformations.see-also"></a><h2>See Also</h2>
|
387
|
-
<a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a>
|
563
|
+
<p><a class="link" href="cairo-cairo-matrix-t.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a></p>
|
388
564
|
</div>
|
389
565
|
</div>
|
390
566
|
<div class="footer">
|
391
567
|
<hr>
|
392
|
-
Generated by GTK-Doc V1.
|
568
|
+
Generated by GTK-Doc V1.20</div>
|
393
569
|
</body>
|
394
570
|
</html>
|