cairo 1.8.3-x86-mingw32 → 1.8.4-x86-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.
- data/NEWS +14 -0
- data/Rakefile +2 -2
- data/ext/cairo/rb_cairo.c +1 -1
- data/extconf.rb +11 -11
- data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/freetype6.dll +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libcairo-2.dll +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libfontconfig-1.dll +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libpng14-14.dll +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/zlib1.dll +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/etc/fonts/fonts.conf +151 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-deprecated.h +138 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-features.h +20 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-ft.h +75 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-pdf.h +68 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-ps.h +114 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-svg.h +82 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-version.h +8 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-win32.h +112 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo.h +2328 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng14/png.h +2701 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng14/pngconf.h +1525 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/png.h +2701 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/pngconf.h +1525 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/zconf.h +461 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/include/zlib.h +1589 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/cairo.def +278 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/cairo.lib +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libcairo.dll.a +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng.def +192 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng.lib +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng14.dll.a +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libz.dll.a +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-ft.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-pdf.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-png.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-ps.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-svg.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-win32-font.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-win32.pc +12 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo.pc +13 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/libpng.pc +11 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/libpng14.pc +11 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/zdll.lib +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/zlib.def +67 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/cairo-dev_1.8.10-4_win32.mft +76 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/cairo_1.8.10-4_win32.mft +5 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/fontconfig_2.8.0-2_win32.mft +3 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/freetype_2.4.2-1_win32.mft +2 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +15 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/libpng_1.4.3-1_win32.mft +2 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +8 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/zlib_1.2.5-2_win32.mft +2 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING +32 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING-LGPL-2.1 +510 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING-MPL-1.1 +470 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +132 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +63 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +133 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +131 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +127 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +67 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +130 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +102 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +103 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-context.html +2643 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-error-status.html +360 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-font-face.html +408 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-font-options.html +678 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-ft-font.html +319 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-image-surface.html +473 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-matrix.html +596 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-paths.html +1274 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-pattern.html +1485 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html +238 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-png-functions.html +341 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-ps-surface.html +622 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-font.html +151 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html +219 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-scaled-font.html +1023 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +54 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-surface.html +1026 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-svg-surface.html +321 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1222 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-transformations.html +436 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-types.html +133 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-user-font.html +735 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-version-info.html +345 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-win32-font.html +358 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-win32-surface.html +312 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-xlib-surface.html +492 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp +417 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +542 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +141 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +109 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +71 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +107 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-all.html +759 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index.html +144 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index.sgml +478 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +83 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/style.css +167 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man3/libpng.3 +4455 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man3/libpngpf.3 +808 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man5/png.5 +74 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.log +920 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.sh +76 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.log +272 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.sh +71 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +42 -0
- data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +189 -0
- data/lib/1.8/cairo.so +0 -0
- data/lib/1.9/cairo.so +0 -0
- data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/fake.rb +0 -0
- data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/mkmf.rb +0 -0
- data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/rbconfig.rb +0 -0
- data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/fake.rb +0 -0
- data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/mkmf.rb +0 -0
- data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/rbconfig.rb +1 -1
- metadata +126 -40
@@ -0,0 +1,436 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
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.75.2">
|
7
|
+
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
+
<link rel="up" href="cairo-drawing.html" title="Drawing">
|
9
|
+
<link rel="prev" href="cairo-pattern.html" title="cairo_pattern_t">
|
10
|
+
<link rel="next" href="cairo-text.html" title="Text">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
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
|
+
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
+
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
+
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
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">
|
23
|
+
</head>
|
24
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
26
|
+
<tr valign="middle">
|
27
|
+
<td><a accesskey="p" href="cairo-pattern.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
|
28
|
+
<td><a accesskey="u" href="cairo-drawing.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
|
29
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
30
|
+
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
31
|
+
<td><a accesskey="n" href="cairo-text.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
32
|
+
</tr>
|
33
|
+
<tr><td colspan="5" class="shortcuts">
|
34
|
+
<a href="#cairo-transformations.synopsis" class="shortcut">Top</a>
|
35
|
+
|
|
36
|
+
<a href="#cairo-transformations.description" class="shortcut">Description</a>
|
37
|
+
</td></tr>
|
38
|
+
</table>
|
39
|
+
<div class="refentry" title="Transformations">
|
40
|
+
<a name="cairo-transformations"></a><div class="titlepage"></div>
|
41
|
+
<div class="refnamediv"><table width="100%"><tr>
|
42
|
+
<td valign="top">
|
43
|
+
<h2><span class="refentrytitle"><a name="cairo-transformations.top_of_page"></a>Transformations</span></h2>
|
44
|
+
<p>Transformations — Manipulating the current transformation matrix</p>
|
45
|
+
</td>
|
46
|
+
<td valign="top" align="right"></td>
|
47
|
+
</tr></table></div>
|
48
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
49
|
+
<a name="cairo-transformations.synopsis"></a><h2>Synopsis</h2>
|
50
|
+
<pre class="synopsis">
|
51
|
+
void <a class="link" href="cairo-transformations.html#cairo-translate" title="cairo_translate ()">cairo_translate</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
52
|
+
double tx,
|
53
|
+
double ty);
|
54
|
+
void <a class="link" href="cairo-transformations.html#cairo-scale" title="cairo_scale ()">cairo_scale</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
55
|
+
double sx,
|
56
|
+
double sy);
|
57
|
+
void <a class="link" href="cairo-transformations.html#cairo-rotate" title="cairo_rotate ()">cairo_rotate</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
58
|
+
double angle);
|
59
|
+
void <a class="link" href="cairo-transformations.html#cairo-transform" title="cairo_transform ()">cairo_transform</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
60
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
61
|
+
void <a class="link" href="cairo-transformations.html#cairo-set-matrix" title="cairo_set_matrix ()">cairo_set_matrix</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
62
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
63
|
+
void <a class="link" href="cairo-transformations.html#cairo-get-matrix" title="cairo_get_matrix ()">cairo_get_matrix</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
64
|
+
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);
|
65
|
+
void <a class="link" href="cairo-transformations.html#cairo-identity-matrix" title="cairo_identity_matrix ()">cairo_identity_matrix</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr);
|
66
|
+
void <a class="link" href="cairo-transformations.html#cairo-user-to-device" title="cairo_user_to_device ()">cairo_user_to_device</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
67
|
+
double *x,
|
68
|
+
double *y);
|
69
|
+
void <a class="link" href="cairo-transformations.html#cairo-user-to-device-distance" title="cairo_user_to_device_distance ()">cairo_user_to_device_distance</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
70
|
+
double *dx,
|
71
|
+
double *dy);
|
72
|
+
void <a class="link" href="cairo-transformations.html#cairo-device-to-user" title="cairo_device_to_user ()">cairo_device_to_user</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
73
|
+
double *x,
|
74
|
+
double *y);
|
75
|
+
void <a class="link" href="cairo-transformations.html#cairo-device-to-user-distance" title="cairo_device_to_user_distance ()">cairo_device_to_user_distance</a> (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
76
|
+
double *dx,
|
77
|
+
double *dy);
|
78
|
+
</pre>
|
79
|
+
</div>
|
80
|
+
<div class="refsect1" title="Description">
|
81
|
+
<a name="cairo-transformations.description"></a><h2>Description</h2>
|
82
|
+
<p>
|
83
|
+
The current transformation matrix, <em class="firstterm">ctm</em>, is a
|
84
|
+
two-dimensional affine transformation that maps all coordinates and other
|
85
|
+
drawing instruments from the <em class="firstterm">user space</em> into the
|
86
|
+
surface's canonical coordinate system, also known as the <em class="firstterm">device
|
87
|
+
space</em>.
|
88
|
+
</p>
|
89
|
+
</div>
|
90
|
+
<div class="refsect1" title="Details">
|
91
|
+
<a name="cairo-transformations.details"></a><h2>Details</h2>
|
92
|
+
<div class="refsect2" title="cairo_translate ()">
|
93
|
+
<a name="cairo-translate"></a><h3>cairo_translate ()</h3>
|
94
|
+
<pre class="programlisting">void cairo_translate (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
95
|
+
double tx,
|
96
|
+
double ty);</pre>
|
97
|
+
<p>
|
98
|
+
Modifies the current transformation matrix (CTM) by translating the
|
99
|
+
user-space origin by (<em class="parameter"><code>tx</code></em>, <em class="parameter"><code>ty</code></em>). This offset is interpreted as a
|
100
|
+
user-space coordinate according to the CTM in place before the new
|
101
|
+
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
|
102
|
+
user-space origin takes place after any existing transformation.</p>
|
103
|
+
<p>
|
104
|
+
</p>
|
105
|
+
<div class="variablelist"><table border="0">
|
106
|
+
<col align="left" valign="top">
|
107
|
+
<tbody>
|
108
|
+
<tr>
|
109
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
110
|
+
<td> a cairo context
|
111
|
+
</td>
|
112
|
+
</tr>
|
113
|
+
<tr>
|
114
|
+
<td><p><span class="term"><em class="parameter"><code>tx</code></em> :</span></p></td>
|
115
|
+
<td> amount to translate in the X direction
|
116
|
+
</td>
|
117
|
+
</tr>
|
118
|
+
<tr>
|
119
|
+
<td><p><span class="term"><em class="parameter"><code>ty</code></em> :</span></p></td>
|
120
|
+
<td> amount to translate in the Y direction
|
121
|
+
</td>
|
122
|
+
</tr>
|
123
|
+
</tbody>
|
124
|
+
</table></div>
|
125
|
+
</div>
|
126
|
+
<hr>
|
127
|
+
<div class="refsect2" title="cairo_scale ()">
|
128
|
+
<a name="cairo-scale"></a><h3>cairo_scale ()</h3>
|
129
|
+
<pre class="programlisting">void cairo_scale (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
130
|
+
double sx,
|
131
|
+
double sy);</pre>
|
132
|
+
<p>
|
133
|
+
Modifies the current transformation matrix (CTM) by scaling the X
|
134
|
+
and Y user-space axes by <em class="parameter"><code>sx</code></em> and <em class="parameter"><code>sy</code></em> respectively. The scaling of
|
135
|
+
the axes takes place after any existing transformation of user
|
136
|
+
space.</p>
|
137
|
+
<p>
|
138
|
+
</p>
|
139
|
+
<div class="variablelist"><table border="0">
|
140
|
+
<col align="left" valign="top">
|
141
|
+
<tbody>
|
142
|
+
<tr>
|
143
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
144
|
+
<td> a cairo context
|
145
|
+
</td>
|
146
|
+
</tr>
|
147
|
+
<tr>
|
148
|
+
<td><p><span class="term"><em class="parameter"><code>sx</code></em> :</span></p></td>
|
149
|
+
<td> scale factor for the X dimension
|
150
|
+
</td>
|
151
|
+
</tr>
|
152
|
+
<tr>
|
153
|
+
<td><p><span class="term"><em class="parameter"><code>sy</code></em> :</span></p></td>
|
154
|
+
<td> scale factor for the Y dimension
|
155
|
+
</td>
|
156
|
+
</tr>
|
157
|
+
</tbody>
|
158
|
+
</table></div>
|
159
|
+
</div>
|
160
|
+
<hr>
|
161
|
+
<div class="refsect2" title="cairo_rotate ()">
|
162
|
+
<a name="cairo-rotate"></a><h3>cairo_rotate ()</h3>
|
163
|
+
<pre class="programlisting">void cairo_rotate (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
164
|
+
double angle);</pre>
|
165
|
+
<p>
|
166
|
+
Modifies the current transformation matrix (CTM) by rotating the
|
167
|
+
user-space axes by <em class="parameter"><code>angle</code></em> radians. The rotation of the axes takes
|
168
|
+
places after any existing transformation of user space. The
|
169
|
+
rotation direction for positive angles is from the positive X axis
|
170
|
+
toward the positive Y axis.</p>
|
171
|
+
<p>
|
172
|
+
</p>
|
173
|
+
<div class="variablelist"><table border="0">
|
174
|
+
<col align="left" valign="top">
|
175
|
+
<tbody>
|
176
|
+
<tr>
|
177
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
178
|
+
<td> a cairo context
|
179
|
+
</td>
|
180
|
+
</tr>
|
181
|
+
<tr>
|
182
|
+
<td><p><span class="term"><em class="parameter"><code>angle</code></em> :</span></p></td>
|
183
|
+
<td> angle (in radians) by which the user-space axes will be
|
184
|
+
rotated
|
185
|
+
</td>
|
186
|
+
</tr>
|
187
|
+
</tbody>
|
188
|
+
</table></div>
|
189
|
+
</div>
|
190
|
+
<hr>
|
191
|
+
<div class="refsect2" title="cairo_transform ()">
|
192
|
+
<a name="cairo-transform"></a><h3>cairo_transform ()</h3>
|
193
|
+
<pre class="programlisting">void cairo_transform (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
194
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
195
|
+
<p>
|
196
|
+
Modifies the current transformation matrix (CTM) by applying
|
197
|
+
<em class="parameter"><code>matrix</code></em> as an additional transformation. The new transformation of
|
198
|
+
user space takes place after any existing transformation.</p>
|
199
|
+
<p>
|
200
|
+
</p>
|
201
|
+
<div class="variablelist"><table border="0">
|
202
|
+
<col align="left" valign="top">
|
203
|
+
<tbody>
|
204
|
+
<tr>
|
205
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
206
|
+
<td> a cairo context
|
207
|
+
</td>
|
208
|
+
</tr>
|
209
|
+
<tr>
|
210
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
211
|
+
<td> a transformation to be applied to the user-space axes
|
212
|
+
</td>
|
213
|
+
</tr>
|
214
|
+
</tbody>
|
215
|
+
</table></div>
|
216
|
+
</div>
|
217
|
+
<hr>
|
218
|
+
<div class="refsect2" title="cairo_set_matrix ()">
|
219
|
+
<a name="cairo-set-matrix"></a><h3>cairo_set_matrix ()</h3>
|
220
|
+
<pre class="programlisting">void cairo_set_matrix (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
221
|
+
const <a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
222
|
+
<p>
|
223
|
+
Modifies the current transformation matrix (CTM) by setting it
|
224
|
+
equal to <em class="parameter"><code>matrix</code></em>.</p>
|
225
|
+
<p>
|
226
|
+
</p>
|
227
|
+
<div class="variablelist"><table border="0">
|
228
|
+
<col align="left" valign="top">
|
229
|
+
<tbody>
|
230
|
+
<tr>
|
231
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
232
|
+
<td> a cairo context
|
233
|
+
</td>
|
234
|
+
</tr>
|
235
|
+
<tr>
|
236
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
237
|
+
<td> a transformation matrix from user space to device space
|
238
|
+
</td>
|
239
|
+
</tr>
|
240
|
+
</tbody>
|
241
|
+
</table></div>
|
242
|
+
</div>
|
243
|
+
<hr>
|
244
|
+
<div class="refsect2" title="cairo_get_matrix ()">
|
245
|
+
<a name="cairo-get-matrix"></a><h3>cairo_get_matrix ()</h3>
|
246
|
+
<pre class="programlisting">void cairo_get_matrix (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
247
|
+
<a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t">cairo_matrix_t</a> *matrix);</pre>
|
248
|
+
<p>
|
249
|
+
Stores the current transformation matrix (CTM) into <em class="parameter"><code>matrix</code></em>.</p>
|
250
|
+
<p>
|
251
|
+
</p>
|
252
|
+
<div class="variablelist"><table border="0">
|
253
|
+
<col align="left" valign="top">
|
254
|
+
<tbody>
|
255
|
+
<tr>
|
256
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
257
|
+
<td> a cairo context
|
258
|
+
</td>
|
259
|
+
</tr>
|
260
|
+
<tr>
|
261
|
+
<td><p><span class="term"><em class="parameter"><code>matrix</code></em> :</span></p></td>
|
262
|
+
<td> return value for the matrix
|
263
|
+
</td>
|
264
|
+
</tr>
|
265
|
+
</tbody>
|
266
|
+
</table></div>
|
267
|
+
</div>
|
268
|
+
<hr>
|
269
|
+
<div class="refsect2" title="cairo_identity_matrix ()">
|
270
|
+
<a name="cairo-identity-matrix"></a><h3>cairo_identity_matrix ()</h3>
|
271
|
+
<pre class="programlisting">void cairo_identity_matrix (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr);</pre>
|
272
|
+
<p>
|
273
|
+
Resets the current transformation matrix (CTM) by setting it equal
|
274
|
+
to the identity matrix. That is, the user-space and device-space
|
275
|
+
axes will be aligned and one user-space unit will transform to one
|
276
|
+
device-space unit.</p>
|
277
|
+
<p>
|
278
|
+
</p>
|
279
|
+
<div class="variablelist"><table border="0">
|
280
|
+
<col align="left" valign="top">
|
281
|
+
<tbody><tr>
|
282
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
283
|
+
<td> a cairo context
|
284
|
+
</td>
|
285
|
+
</tr></tbody>
|
286
|
+
</table></div>
|
287
|
+
</div>
|
288
|
+
<hr>
|
289
|
+
<div class="refsect2" title="cairo_user_to_device ()">
|
290
|
+
<a name="cairo-user-to-device"></a><h3>cairo_user_to_device ()</h3>
|
291
|
+
<pre class="programlisting">void cairo_user_to_device (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
292
|
+
double *x,
|
293
|
+
double *y);</pre>
|
294
|
+
<p>
|
295
|
+
Transform a coordinate from user space to device space by
|
296
|
+
multiplying the given point by the current transformation matrix
|
297
|
+
(CTM).</p>
|
298
|
+
<p>
|
299
|
+
</p>
|
300
|
+
<div class="variablelist"><table border="0">
|
301
|
+
<col align="left" valign="top">
|
302
|
+
<tbody>
|
303
|
+
<tr>
|
304
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
305
|
+
<td> a cairo context
|
306
|
+
</td>
|
307
|
+
</tr>
|
308
|
+
<tr>
|
309
|
+
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
310
|
+
<td> X value of coordinate (in/out parameter)
|
311
|
+
</td>
|
312
|
+
</tr>
|
313
|
+
<tr>
|
314
|
+
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
315
|
+
<td> Y value of coordinate (in/out parameter)
|
316
|
+
</td>
|
317
|
+
</tr>
|
318
|
+
</tbody>
|
319
|
+
</table></div>
|
320
|
+
</div>
|
321
|
+
<hr>
|
322
|
+
<div class="refsect2" title="cairo_user_to_device_distance ()">
|
323
|
+
<a name="cairo-user-to-device-distance"></a><h3>cairo_user_to_device_distance ()</h3>
|
324
|
+
<pre class="programlisting">void cairo_user_to_device_distance (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
325
|
+
double *dx,
|
326
|
+
double *dy);</pre>
|
327
|
+
<p>
|
328
|
+
Transform a distance vector from user space to device space. This
|
329
|
+
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
|
330
|
+
translation components of the CTM will be ignored when transforming
|
331
|
+
(<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>).</p>
|
332
|
+
<p>
|
333
|
+
</p>
|
334
|
+
<div class="variablelist"><table border="0">
|
335
|
+
<col align="left" valign="top">
|
336
|
+
<tbody>
|
337
|
+
<tr>
|
338
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
339
|
+
<td> a cairo context
|
340
|
+
</td>
|
341
|
+
</tr>
|
342
|
+
<tr>
|
343
|
+
<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
|
344
|
+
<td> X component of a distance vector (in/out parameter)
|
345
|
+
</td>
|
346
|
+
</tr>
|
347
|
+
<tr>
|
348
|
+
<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
|
349
|
+
<td> Y component of a distance vector (in/out parameter)
|
350
|
+
</td>
|
351
|
+
</tr>
|
352
|
+
</tbody>
|
353
|
+
</table></div>
|
354
|
+
</div>
|
355
|
+
<hr>
|
356
|
+
<div class="refsect2" title="cairo_device_to_user ()">
|
357
|
+
<a name="cairo-device-to-user"></a><h3>cairo_device_to_user ()</h3>
|
358
|
+
<pre class="programlisting">void cairo_device_to_user (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
359
|
+
double *x,
|
360
|
+
double *y);</pre>
|
361
|
+
<p>
|
362
|
+
Transform a coordinate from device space to user space by
|
363
|
+
multiplying the given point by the inverse of the current
|
364
|
+
transformation matrix (CTM).</p>
|
365
|
+
<p>
|
366
|
+
</p>
|
367
|
+
<div class="variablelist"><table border="0">
|
368
|
+
<col align="left" valign="top">
|
369
|
+
<tbody>
|
370
|
+
<tr>
|
371
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
372
|
+
<td> a cairo
|
373
|
+
</td>
|
374
|
+
</tr>
|
375
|
+
<tr>
|
376
|
+
<td><p><span class="term"><em class="parameter"><code>x</code></em> :</span></p></td>
|
377
|
+
<td> X value of coordinate (in/out parameter)
|
378
|
+
</td>
|
379
|
+
</tr>
|
380
|
+
<tr>
|
381
|
+
<td><p><span class="term"><em class="parameter"><code>y</code></em> :</span></p></td>
|
382
|
+
<td> Y value of coordinate (in/out parameter)
|
383
|
+
</td>
|
384
|
+
</tr>
|
385
|
+
</tbody>
|
386
|
+
</table></div>
|
387
|
+
</div>
|
388
|
+
<hr>
|
389
|
+
<div class="refsect2" title="cairo_device_to_user_distance ()">
|
390
|
+
<a name="cairo-device-to-user-distance"></a><h3>cairo_device_to_user_distance ()</h3>
|
391
|
+
<pre class="programlisting">void cairo_device_to_user_distance (<a class="link" href="cairo-context.html#cairo-t" title="cairo_t">cairo_t</a> *cr,
|
392
|
+
double *dx,
|
393
|
+
double *dy);</pre>
|
394
|
+
<p>
|
395
|
+
Transform a distance vector from device space to user space. This
|
396
|
+
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
|
397
|
+
translation components of the inverse CTM will be ignored when
|
398
|
+
transforming (<em class="parameter"><code>dx</code></em>,<em class="parameter"><code>dy</code></em>).</p>
|
399
|
+
<p>
|
400
|
+
</p>
|
401
|
+
<div class="variablelist"><table border="0">
|
402
|
+
<col align="left" valign="top">
|
403
|
+
<tbody>
|
404
|
+
<tr>
|
405
|
+
<td><p><span class="term"><em class="parameter"><code>cr</code></em> :</span></p></td>
|
406
|
+
<td> a cairo context
|
407
|
+
</td>
|
408
|
+
</tr>
|
409
|
+
<tr>
|
410
|
+
<td><p><span class="term"><em class="parameter"><code>dx</code></em> :</span></p></td>
|
411
|
+
<td> X component of a distance vector (in/out parameter)
|
412
|
+
</td>
|
413
|
+
</tr>
|
414
|
+
<tr>
|
415
|
+
<td><p><span class="term"><em class="parameter"><code>dy</code></em> :</span></p></td>
|
416
|
+
<td> Y component of a distance vector (in/out parameter)
|
417
|
+
</td>
|
418
|
+
</tr>
|
419
|
+
</tbody>
|
420
|
+
</table></div>
|
421
|
+
</div>
|
422
|
+
</div>
|
423
|
+
<div class="refsect1" title="See Also">
|
424
|
+
<a name="cairo-transformations.see-also"></a><h2>See Also</h2>
|
425
|
+
<p>
|
426
|
+
</p>
|
427
|
+
<div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="cairo-matrix.html#cairo-matrix-t" title="cairo_matrix_t"><span class="type">cairo_matrix_t</span></a></li></ul></div>
|
428
|
+
<p>
|
429
|
+
</p>
|
430
|
+
</div>
|
431
|
+
</div>
|
432
|
+
<div class="footer">
|
433
|
+
<hr>
|
434
|
+
Generated by GTK-Doc V1.11</div>
|
435
|
+
</body>
|
436
|
+
</html>
|
@@ -0,0 +1,133 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
5
|
+
<title>Types</title>
|
6
|
+
<meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
|
7
|
+
<link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
|
8
|
+
<link rel="up" href="cairo-support.html" title="Utilities">
|
9
|
+
<link rel="prev" href="cairo-version-info.html" title="Version Information">
|
10
|
+
<link rel="next" href="index-all.html" title="Index">
|
11
|
+
<meta name="generator" content="GTK-Doc V1.11 (XML mode)">
|
12
|
+
<link rel="stylesheet" href="style.css" type="text/css">
|
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
|
+
<link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
|
19
|
+
<link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
|
20
|
+
<link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
|
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">
|
23
|
+
</head>
|
24
|
+
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
|
25
|
+
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
|
26
|
+
<tr valign="middle">
|
27
|
+
<td><a accesskey="p" href="cairo-version-info.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>
|
29
|
+
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
|
30
|
+
<th width="100%" align="center">Cairo: A Vector Graphics Library</th>
|
31
|
+
<td><a accesskey="n" href="index-all.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
|
32
|
+
</tr>
|
33
|
+
<tr><td colspan="5" class="shortcuts">
|
34
|
+
<a href="#cairo-types.synopsis" class="shortcut">Top</a>
|
35
|
+
|
|
36
|
+
<a href="#cairo-types.description" class="shortcut">Description</a>
|
37
|
+
</td></tr>
|
38
|
+
</table>
|
39
|
+
<div class="refentry" title="Types">
|
40
|
+
<a name="cairo-types"></a><div class="titlepage"></div>
|
41
|
+
<div class="refnamediv"><table width="100%"><tr>
|
42
|
+
<td valign="top">
|
43
|
+
<h2><span class="refentrytitle"><a name="cairo-types.top_of_page"></a>Types</span></h2>
|
44
|
+
<p>Types — Generic data types</p>
|
45
|
+
</td>
|
46
|
+
<td valign="top" align="right"></td>
|
47
|
+
</tr></table></div>
|
48
|
+
<div class="refsynopsisdiv" title="Synopsis">
|
49
|
+
<a name="cairo-types.synopsis"></a><h2>Synopsis</h2>
|
50
|
+
<pre class="synopsis">
|
51
|
+
typedef <a class="link" href="cairo-types.html#cairo-bool-t" title="cairo_bool_t">cairo_bool_t</a>;
|
52
|
+
<a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t">cairo_user_data_key_t</a>;
|
53
|
+
void (<a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()">*cairo_destroy_func_t</a>) (void *data);
|
54
|
+
</pre>
|
55
|
+
</div>
|
56
|
+
<div class="refsect1" title="Description">
|
57
|
+
<a name="cairo-types.description"></a><h2>Description</h2>
|
58
|
+
<p>
|
59
|
+
Generic data types used in the cairo API
|
60
|
+
</p>
|
61
|
+
</div>
|
62
|
+
<div class="refsect1" title="Details">
|
63
|
+
<a name="cairo-types.details"></a><h2>Details</h2>
|
64
|
+
<div class="refsect2" title="cairo_bool_t">
|
65
|
+
<a name="cairo-bool-t"></a><h3>cairo_bool_t</h3>
|
66
|
+
<pre class="programlisting">typedef int cairo_bool_t;
|
67
|
+
</pre>
|
68
|
+
<p>
|
69
|
+
<a class="link" href="cairo-types.html#cairo-bool-t" title="cairo_bool_t"><span class="type">cairo_bool_t</span></a> is used for boolean values. Returns of type
|
70
|
+
<a class="link" href="cairo-types.html#cairo-bool-t" title="cairo_bool_t"><span class="type">cairo_bool_t</span></a> will always be either 0 or 1, but testing against
|
71
|
+
these values explicitly is not encouraged; just use the
|
72
|
+
value as a boolean condition.
|
73
|
+
</p>
|
74
|
+
<p>
|
75
|
+
</p>
|
76
|
+
<div class="informalexample"><pre class="programlisting">
|
77
|
+
if (cairo_in_stroke (cr, x, y)) {
|
78
|
+
/* do something */
|
79
|
+
}
|
80
|
+
</pre></div>
|
81
|
+
<p>
|
82
|
+
</p>
|
83
|
+
</div>
|
84
|
+
<hr>
|
85
|
+
<div class="refsect2" title="cairo_user_data_key_t">
|
86
|
+
<a name="cairo-user-data-key-t"></a><h3>cairo_user_data_key_t</h3>
|
87
|
+
<pre class="programlisting">typedef struct {
|
88
|
+
int unused;
|
89
|
+
} cairo_user_data_key_t;
|
90
|
+
</pre>
|
91
|
+
<p>
|
92
|
+
<a class="link" href="cairo-types.html#cairo-user-data-key-t" title="cairo_user_data_key_t"><span class="type">cairo_user_data_key_t</span></a> is used for attaching user data to cairo
|
93
|
+
data structures. The actual contents of the struct is never used,
|
94
|
+
and there is no need to initialize the object; only the unique
|
95
|
+
address of a <span class="type">cairo_data_key_t</span> object is used. Typically, you
|
96
|
+
would just use the address of a static <span class="type">cairo_data_key_t</span> object.</p>
|
97
|
+
<p>
|
98
|
+
</p>
|
99
|
+
<div class="variablelist"><table border="0">
|
100
|
+
<col align="left" valign="top">
|
101
|
+
<tbody><tr>
|
102
|
+
<td><p><span class="term">int <em class="structfield"><code>unused</code></em>;</span></p></td>
|
103
|
+
<td> not used; ignore.
|
104
|
+
</td>
|
105
|
+
</tr></tbody>
|
106
|
+
</table></div>
|
107
|
+
</div>
|
108
|
+
<hr>
|
109
|
+
<div class="refsect2" title="cairo_destroy_func_t ()">
|
110
|
+
<a name="cairo-destroy-func-t"></a><h3>cairo_destroy_func_t ()</h3>
|
111
|
+
<pre class="programlisting">void (*cairo_destroy_func_t) (void *data);</pre>
|
112
|
+
<p>
|
113
|
+
<a class="link" href="cairo-types.html#cairo-destroy-func-t" title="cairo_destroy_func_t ()"><span class="type">cairo_destroy_func_t</span></a> the type of function which is called when a
|
114
|
+
data element is destroyed. It is passed the pointer to the data
|
115
|
+
element and should free any memory and resources allocated for it.</p>
|
116
|
+
<p>
|
117
|
+
</p>
|
118
|
+
<div class="variablelist"><table border="0">
|
119
|
+
<col align="left" valign="top">
|
120
|
+
<tbody><tr>
|
121
|
+
<td><p><span class="term"><em class="parameter"><code>data</code></em> :</span></p></td>
|
122
|
+
<td> The data element being destroyed.
|
123
|
+
</td>
|
124
|
+
</tr></tbody>
|
125
|
+
</table></div>
|
126
|
+
</div>
|
127
|
+
</div>
|
128
|
+
</div>
|
129
|
+
<div class="footer">
|
130
|
+
<hr>
|
131
|
+
Generated by GTK-Doc V1.11</div>
|
132
|
+
</body>
|
133
|
+
</html>
|