cairo 1.14.1-x86-mingw32 → 1.14.2-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.
- checksums.yaml +4 -4
- data/NEWS +21 -0
- data/Rakefile +18 -7
- 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_sjlj-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>SVG Surfaces</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>Cairo: A Vector Graphics Library: SVG Surfaces</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-surfaces.html" title="Surfaces">
|
9
9
|
<link rel="prev" href="cairo-Win32-Surfaces.html" title="Win32 Surfaces">
|
10
10
|
<link rel="next" href="cairo-Quartz-Surfaces.html" title="Quartz Surfaces">
|
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-SVG-Surfaces.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-SVG-Surfaces.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#cairo-SVG-Surfaces.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-surfaces.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
|
23
|
+
<td><a accesskey="p" href="cairo-Win32-Surfaces.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
+
<td><a accesskey="n" href="cairo-Quartz-Surfaces.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-SVG-Surfaces"></a><div class="titlepage"></div>
|
31
28
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,270 +30,368 @@
|
|
33
30
|
<h2><span class="refentrytitle"><a name="cairo-SVG-Surfaces.top_of_page"></a>SVG Surfaces</span></h2>
|
34
31
|
<p>SVG Surfaces — Rendering SVG documents</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-SVG-Surfaces.
|
40
|
-
<
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
<
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
35
|
+
<div class="refsect1">
|
36
|
+
<a name="cairo-SVG-Surfaces.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
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
|
46
|
+
</td>
|
47
|
+
<td class="function_name">
|
48
|
+
<a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-create" title="cairo_svg_surface_create ()">cairo_svg_surface_create</a> <span class="c_punctuation">()</span>
|
49
|
+
</td>
|
50
|
+
</tr>
|
51
|
+
<tr>
|
52
|
+
<td class="function_type">
|
53
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
|
54
|
+
</td>
|
55
|
+
<td class="function_name">
|
56
|
+
<a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-create-for-stream" title="cairo_svg_surface_create_for_stream ()">cairo_svg_surface_create_for_stream</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-SVG-Surfaces.html#cairo-svg-surface-restrict-to-version" title="cairo_svg_surface_restrict_to_version ()">cairo_svg_surface_restrict_to_version</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-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()">cairo_svg_get_versions</a> <span class="c_punctuation">()</span>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
<tr>
|
76
|
+
<td class="function_type">const <span class="returnvalue">char</span> *
|
77
|
+
</td>
|
78
|
+
<td class="function_name">
|
79
|
+
<a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-to-string" title="cairo_svg_version_to_string ()">cairo_svg_version_to_string</a> <span class="c_punctuation">()</span>
|
80
|
+
</td>
|
81
|
+
</tr>
|
82
|
+
</tbody>
|
83
|
+
</table></div>
|
56
84
|
</div>
|
57
85
|
<div class="refsect1">
|
58
|
-
<a name="cairo-SVG-Surfaces.
|
59
|
-
<
|
60
|
-
|
61
|
-
|
62
|
-
|
86
|
+
<a name="cairo-SVG-Surfaces.other"></a><h2>Types and Values</h2>
|
87
|
+
<div class="informaltable"><table width="100%" border="0">
|
88
|
+
<colgroup>
|
89
|
+
<col width="150px" class="name">
|
90
|
+
<col class="description">
|
91
|
+
</colgroup>
|
92
|
+
<tbody>
|
93
|
+
<tr>
|
94
|
+
<td class="define_keyword">#define</td>
|
95
|
+
<td class="function_name"><a class="link" href="cairo-SVG-Surfaces.html#CAIRO-HAS-SVG-SURFACE:CAPS" title="CAIRO_HAS_SVG_SURFACE">CAIRO_HAS_SVG_SURFACE</a></td>
|
96
|
+
</tr>
|
97
|
+
<tr>
|
98
|
+
<td class="datatype_keyword">enum</td>
|
99
|
+
<td class="function_name"><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t">cairo_svg_version_t</a></td>
|
100
|
+
</tr>
|
101
|
+
</tbody>
|
102
|
+
</table></div>
|
63
103
|
</div>
|
64
104
|
<div class="refsect1">
|
65
|
-
<a name="cairo-SVG-Surfaces.
|
66
|
-
<
|
67
|
-
<a name="CAIRO-HAS-SVG-SURFACE:CAPS"></a><h3>CAIRO_HAS_SVG_SURFACE</h3>
|
68
|
-
<pre class="programlisting">#define CAIRO_HAS_SVG_SURFACE 1
|
105
|
+
<a name="cairo-SVG-Surfaces.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
106
|
+
<pre class="screen">
|
69
107
|
</pre>
|
70
|
-
<p>
|
71
|
-
Defined if the SVG surface backend is available.
|
72
|
-
This macro can be used to conditionally compile backend-specific code.
|
73
|
-
</p>
|
74
|
-
<p class="since">Since 1.2</p>
|
75
108
|
</div>
|
76
|
-
<
|
109
|
+
<div class="refsect1">
|
110
|
+
<a name="cairo-SVG-Surfaces.description"></a><h2>Description</h2>
|
111
|
+
<p>The SVG surface is used to render cairo graphics to
|
112
|
+
SVG files and is a multi-page vector surface backend.</p>
|
113
|
+
</div>
|
114
|
+
<div class="refsect1">
|
115
|
+
<a name="cairo-SVG-Surfaces.functions_details"></a><h2>Functions</h2>
|
77
116
|
<div class="refsect2">
|
78
|
-
<a name="cairo-svg-surface-create"></a><h3>cairo_svg_surface_create
|
79
|
-
<pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a>
|
80
|
-
|
81
|
-
|
82
|
-
<
|
83
|
-
Creates a SVG surface of the specified size in points to be written
|
84
|
-
to <em class="parameter"><code>filename</code></em
|
85
|
-
|
86
|
-
<p>
|
87
|
-
|
88
|
-
data attached to a surface (see <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-mime-data" title="cairo_surface_set_mime_data ()"><code class="function">cairo_surface_set_mime_data()</code></a>) when
|
117
|
+
<a name="cairo-svg-surface-create"></a><h3>cairo_svg_surface_create ()</h3>
|
118
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
|
119
|
+
cairo_svg_surface_create (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>,
|
120
|
+
<em class="parameter"><code><span class="type">double</span> width_in_points</code></em>,
|
121
|
+
<em class="parameter"><code><span class="type">double</span> height_in_points</code></em>);</pre>
|
122
|
+
<p>Creates a SVG surface of the specified size in points to be written
|
123
|
+
to <em class="parameter"><code>filename</code></em>
|
124
|
+
.</p>
|
125
|
+
<p>The SVG surface backend recognizes the following MIME types for the
|
126
|
+
data attached to a surface (see <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-set-mime-data" title="cairo_surface_set_mime_data ()"><code class="function">cairo_surface_set_mime_data()</code></a>) when
|
89
127
|
it is used as a source pattern for drawing on this surface:
|
90
128
|
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>, <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-PNG:CAPS" title="CAIRO_MIME_TYPE_PNG"><code class="literal">CAIRO_MIME_TYPE_PNG</code></a>,
|
91
129
|
<a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a>. If any of them is specified, the SVG backend
|
92
130
|
emits a href with the content of MIME data instead of a surface
|
93
|
-
snapshot (PNG, Base64-encoded) in the corresponding image tag
|
94
|
-
|
95
|
-
<p>
|
96
|
-
The unofficial MIME type <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a> is examined
|
131
|
+
snapshot (PNG, Base64-encoded) in the corresponding image tag.</p>
|
132
|
+
<p>The unofficial MIME type <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a> is examined
|
97
133
|
first. If present, the URI is emitted as is: assuring the
|
98
|
-
correctness of URI is left to the client code
|
99
|
-
|
100
|
-
<p>
|
101
|
-
If <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a> is not present, but <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>
|
134
|
+
correctness of URI is left to the client code.</p>
|
135
|
+
<p>If <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-URI:CAPS" title="CAIRO_MIME_TYPE_URI"><code class="literal">CAIRO_MIME_TYPE_URI</code></a> is not present, but <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-JPEG:CAPS" title="CAIRO_MIME_TYPE_JPEG"><code class="literal">CAIRO_MIME_TYPE_JPEG</code></a>
|
102
136
|
or <a class="link" href="cairo-cairo-surface-t.html#CAIRO-MIME-TYPE-PNG:CAPS" title="CAIRO_MIME_TYPE_PNG"><code class="literal">CAIRO_MIME_TYPE_PNG</code></a> is specified, the corresponding data is
|
103
|
-
Base64-encoded and emitted
|
104
|
-
|
105
|
-
<
|
106
|
-
<
|
137
|
+
Base64-encoded and emitted.</p>
|
138
|
+
<div class="refsect3">
|
139
|
+
<a name="id-1.5.10.7.2.8"></a><h4>Parameters</h4>
|
140
|
+
<div class="informaltable"><table width="100%" border="0">
|
141
|
+
<colgroup>
|
142
|
+
<col width="150px" class="parameters_name">
|
143
|
+
<col class="parameters_description">
|
144
|
+
<col width="200px" class="parameters_annotations">
|
145
|
+
</colgroup>
|
107
146
|
<tbody>
|
108
147
|
<tr>
|
109
|
-
<td
|
110
|
-
<td>a filename for the SVG output (must be writable), <
|
148
|
+
<td class="parameter_name"><p>filename</p></td>
|
149
|
+
<td class="parameter_description"><p>a filename for the SVG output (must be writable), <code class="literal">NULL</code> may be
|
111
150
|
used to specify no output. This will generate a SVG surface that
|
112
151
|
may be queried and used as a source, without generating a
|
113
|
-
temporary file.</td>
|
114
|
-
</
|
115
|
-
<tr>
|
116
|
-
<td><p><span class="term"><em class="parameter"><code>width_in_points</code></em> :</span></p></td>
|
117
|
-
<td>width of the surface, in points (1 point == 1/72.0 inch)</td>
|
152
|
+
temporary file.</p></td>
|
153
|
+
<td class="parameter_annotations"> </td>
|
118
154
|
</tr>
|
119
155
|
<tr>
|
120
|
-
<td
|
121
|
-
<td>
|
156
|
+
<td class="parameter_name"><p>width_in_points</p></td>
|
157
|
+
<td class="parameter_description"><p>width of the surface, in points (1 point == 1/72.0 inch)</p></td>
|
158
|
+
<td class="parameter_annotations"> </td>
|
122
159
|
</tr>
|
123
160
|
<tr>
|
124
|
-
<td
|
125
|
-
<td>
|
126
|
-
|
127
|
-
with it.
|
128
|
-
This function always returns a valid pointer, but it will return a
|
129
|
-
pointer to a "nil" surface if an error such as out of memory
|
130
|
-
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.</td>
|
161
|
+
<td class="parameter_name"><p>height_in_points</p></td>
|
162
|
+
<td class="parameter_description"><p>height of the surface, in points (1 point == 1/72.0 inch)</p></td>
|
163
|
+
<td class="parameter_annotations"> </td>
|
131
164
|
</tr>
|
132
165
|
</tbody>
|
133
166
|
</table></div>
|
167
|
+
</div>
|
168
|
+
<div class="refsect3">
|
169
|
+
<a name="id-1.5.10.7.2.9"></a><h4>Returns</h4>
|
170
|
+
<p> a pointer to the newly created surface. The caller
|
171
|
+
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
|
172
|
+
with it.</p>
|
173
|
+
<p>This function always returns a valid pointer, but it will return a
|
174
|
+
pointer to a "nil" surface if an error such as out of memory
|
175
|
+
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.</p>
|
176
|
+
<p></p>
|
177
|
+
</div>
|
134
178
|
<p class="since">Since 1.2</p>
|
135
179
|
</div>
|
136
180
|
<hr>
|
137
181
|
<div class="refsect2">
|
138
|
-
<a name="cairo-svg-surface-create-for-stream"></a><h3>cairo_svg_surface_create_for_stream
|
139
|
-
<pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a>
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
<
|
144
|
-
Creates a SVG surface of the specified size in points to be written
|
145
|
-
incrementally to the stream represented by <em class="parameter"><code>write_func</code></em>
|
146
|
-
</
|
147
|
-
|
148
|
-
<
|
182
|
+
<a name="cairo-svg-surface-create-for-stream"></a><h3>cairo_svg_surface_create_for_stream ()</h3>
|
183
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
|
184
|
+
cairo_svg_surface_create_for_stream (<em class="parameter"><code><a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> write_func</code></em>,
|
185
|
+
<em class="parameter"><code><span class="type">void</span> *closure</code></em>,
|
186
|
+
<em class="parameter"><code><span class="type">double</span> width_in_points</code></em>,
|
187
|
+
<em class="parameter"><code><span class="type">double</span> height_in_points</code></em>);</pre>
|
188
|
+
<p>Creates a SVG surface of the specified size in points to be written
|
189
|
+
incrementally to the stream represented by <em class="parameter"><code>write_func</code></em>
|
190
|
+
and <em class="parameter"><code>closure</code></em>
|
191
|
+
.</p>
|
192
|
+
<div class="refsect3">
|
193
|
+
<a name="id-1.5.10.7.3.5"></a><h4>Parameters</h4>
|
194
|
+
<div class="informaltable"><table width="100%" border="0">
|
195
|
+
<colgroup>
|
196
|
+
<col width="150px" class="parameters_name">
|
197
|
+
<col class="parameters_description">
|
198
|
+
<col width="200px" class="parameters_annotations">
|
199
|
+
</colgroup>
|
149
200
|
<tbody>
|
150
201
|
<tr>
|
151
|
-
<td
|
152
|
-
<td>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t
|
153
|
-
to indicate a no-op <em class="parameter"><code>write_func</code></em
|
202
|
+
<td class="parameter_name"><p>write_func</p></td>
|
203
|
+
<td class="parameter_description"><p>a <a class="link" href="cairo-PNG-Support.html#cairo-write-func-t" title="cairo_write_func_t ()"><span class="type">cairo_write_func_t</span></a> to accept the output data, may be <code class="literal">NULL</code>
|
204
|
+
to indicate a no-op <em class="parameter"><code>write_func</code></em>
|
205
|
+
. With a no-op <em class="parameter"><code>write_func</code></em>
|
206
|
+
,
|
154
207
|
the surface may be queried or used as a source without
|
155
|
-
generating any temporary files.</td>
|
208
|
+
generating any temporary files.</p></td>
|
209
|
+
<td class="parameter_annotations"> </td>
|
156
210
|
</tr>
|
157
211
|
<tr>
|
158
|
-
<td
|
159
|
-
<td>the closure argument for <em class="parameter"><code>write_func</code></em>
|
160
|
-
</td>
|
212
|
+
<td class="parameter_name"><p>closure</p></td>
|
213
|
+
<td class="parameter_description"><p>the closure argument for <em class="parameter"><code>write_func</code></em>
|
214
|
+
</p></td>
|
215
|
+
<td class="parameter_annotations"> </td>
|
161
216
|
</tr>
|
162
217
|
<tr>
|
163
|
-
<td
|
164
|
-
<td>width of the surface, in points (1 point == 1/72.0 inch)</td>
|
218
|
+
<td class="parameter_name"><p>width_in_points</p></td>
|
219
|
+
<td class="parameter_description"><p>width of the surface, in points (1 point == 1/72.0 inch)</p></td>
|
220
|
+
<td class="parameter_annotations"> </td>
|
165
221
|
</tr>
|
166
222
|
<tr>
|
167
|
-
<td
|
168
|
-
<td>height of the surface, in points (1 point == 1/72.0 inch)</td>
|
169
|
-
</
|
170
|
-
<tr>
|
171
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
172
|
-
<td>a pointer to the newly created surface. The caller
|
173
|
-
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
|
174
|
-
with it.
|
175
|
-
This function always returns a valid pointer, but it will return a
|
176
|
-
pointer to a "nil" surface if an error such as out of memory
|
177
|
-
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.</td>
|
223
|
+
<td class="parameter_name"><p>height_in_points</p></td>
|
224
|
+
<td class="parameter_description"><p>height of the surface, in points (1 point == 1/72.0 inch)</p></td>
|
225
|
+
<td class="parameter_annotations"> </td>
|
178
226
|
</tr>
|
179
227
|
</tbody>
|
180
228
|
</table></div>
|
229
|
+
</div>
|
230
|
+
<div class="refsect3">
|
231
|
+
<a name="id-1.5.10.7.3.6"></a><h4>Returns</h4>
|
232
|
+
<p> a pointer to the newly created surface. The caller
|
233
|
+
owns the surface and should call <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-destroy" title="cairo_surface_destroy ()"><code class="function">cairo_surface_destroy()</code></a> when done
|
234
|
+
with it.</p>
|
235
|
+
<p>This function always returns a valid pointer, but it will return a
|
236
|
+
pointer to a "nil" surface if an error such as out of memory
|
237
|
+
occurs. You can use <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-status" title="cairo_surface_status ()"><code class="function">cairo_surface_status()</code></a> to check for this.</p>
|
238
|
+
<p></p>
|
239
|
+
</div>
|
181
240
|
<p class="since">Since 1.2</p>
|
182
241
|
</div>
|
183
242
|
<hr>
|
184
243
|
<div class="refsect2">
|
185
|
-
<a name="cairo-svg-surface-restrict-to-version"></a><h3>cairo_svg_surface_restrict_to_version
|
186
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
187
|
-
|
188
|
-
|
189
|
-
<p>
|
190
|
-
|
191
|
-
for a list of available version values that can be used here
|
192
|
-
|
193
|
-
<p>
|
194
|
-
This function should only be called before any drawing operations
|
244
|
+
<a name="cairo-svg-surface-restrict-to-version"></a><h3>cairo_svg_surface_restrict_to_version ()</h3>
|
245
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
246
|
+
cairo_svg_surface_restrict_to_version (<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> *surface</code></em>,
|
247
|
+
<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);</pre>
|
248
|
+
<p>Restricts the generated SVG file to <em class="parameter"><code>version</code></em>
|
249
|
+
. See <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()"><code class="function">cairo_svg_get_versions()</code></a>
|
250
|
+
for a list of available version values that can be used here.</p>
|
251
|
+
<p>This function should only be called before any drawing operations
|
195
252
|
have been performed on the given surface. The simplest way to do
|
196
253
|
this is to call this function immediately after creating the
|
197
|
-
surface
|
198
|
-
|
199
|
-
<
|
200
|
-
<
|
254
|
+
surface.</p>
|
255
|
+
<div class="refsect3">
|
256
|
+
<a name="id-1.5.10.7.4.6"></a><h4>Parameters</h4>
|
257
|
+
<div class="informaltable"><table width="100%" border="0">
|
258
|
+
<colgroup>
|
259
|
+
<col width="150px" class="parameters_name">
|
260
|
+
<col class="parameters_description">
|
261
|
+
<col width="200px" class="parameters_annotations">
|
262
|
+
</colgroup>
|
201
263
|
<tbody>
|
202
264
|
<tr>
|
203
|
-
<td
|
204
|
-
<td>a SVG <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
205
|
-
</td>
|
265
|
+
<td class="parameter_name"><p>surface</p></td>
|
266
|
+
<td class="parameter_description"><p>a SVG <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></p></td>
|
267
|
+
<td class="parameter_annotations"> </td>
|
206
268
|
</tr>
|
207
269
|
<tr>
|
208
|
-
<td
|
209
|
-
<td>SVG version</td>
|
270
|
+
<td class="parameter_name"><p>version</p></td>
|
271
|
+
<td class="parameter_description"><p>SVG version</p></td>
|
272
|
+
<td class="parameter_annotations"> </td>
|
210
273
|
</tr>
|
211
274
|
</tbody>
|
212
275
|
</table></div>
|
276
|
+
</div>
|
213
277
|
<p class="since">Since 1.2</p>
|
214
278
|
</div>
|
215
279
|
<hr>
|
216
280
|
<div class="refsect2">
|
217
|
-
<a name="cairo-svg-
|
218
|
-
<pre class="programlisting">
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
</
|
223
|
-
<
|
224
|
-
<a
|
225
|
-
|
226
|
-
|
227
|
-
<
|
228
|
-
<col
|
281
|
+
<a name="cairo-svg-get-versions"></a><h3>cairo_svg_get_versions ()</h3>
|
282
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
283
|
+
cairo_svg_get_versions (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> const **versions</code></em>,
|
284
|
+
<em class="parameter"><code><span class="type">int</span> *num_versions</code></em>);</pre>
|
285
|
+
<p>Used to retrieve the list of supported versions. See
|
286
|
+
<a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-surface-restrict-to-version" title="cairo_svg_surface_restrict_to_version ()"><code class="function">cairo_svg_surface_restrict_to_version()</code></a>.</p>
|
287
|
+
<div class="refsect3">
|
288
|
+
<a name="id-1.5.10.7.5.5"></a><h4>Parameters</h4>
|
289
|
+
<div class="informaltable"><table width="100%" border="0">
|
290
|
+
<colgroup>
|
291
|
+
<col width="150px" class="parameters_name">
|
292
|
+
<col class="parameters_description">
|
293
|
+
<col width="200px" class="parameters_annotations">
|
294
|
+
</colgroup>
|
229
295
|
<tbody>
|
230
296
|
<tr>
|
231
|
-
<td
|
232
|
-
<td>
|
233
|
-
</td>
|
297
|
+
<td class="parameter_name"><p>versions</p></td>
|
298
|
+
<td class="parameter_description"><p>supported version list</p></td>
|
299
|
+
<td class="parameter_annotations"> </td>
|
234
300
|
</tr>
|
235
301
|
<tr>
|
236
|
-
<td
|
237
|
-
<td>
|
238
|
-
</td>
|
302
|
+
<td class="parameter_name"><p>num_versions</p></td>
|
303
|
+
<td class="parameter_description"><p>list length</p></td>
|
304
|
+
<td class="parameter_annotations"> </td>
|
239
305
|
</tr>
|
240
306
|
</tbody>
|
241
307
|
</table></div>
|
308
|
+
</div>
|
242
309
|
<p class="since">Since 1.2</p>
|
243
310
|
</div>
|
244
311
|
<hr>
|
245
312
|
<div class="refsect2">
|
246
|
-
<a name="cairo-svg-
|
247
|
-
<pre class="programlisting"
|
248
|
-
|
249
|
-
<p>
|
250
|
-
|
251
|
-
<
|
252
|
-
</
|
253
|
-
|
254
|
-
<
|
255
|
-
<
|
256
|
-
<
|
257
|
-
<
|
258
|
-
<
|
259
|
-
|
260
|
-
<
|
261
|
-
|
262
|
-
<
|
263
|
-
</
|
264
|
-
</
|
313
|
+
<a name="cairo-svg-version-to-string"></a><h3>cairo_svg_version_to_string ()</h3>
|
314
|
+
<pre class="programlisting">const <span class="returnvalue">char</span> *
|
315
|
+
cairo_svg_version_to_string (<em class="parameter"><code><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> version</code></em>);</pre>
|
316
|
+
<p>Get the string representation of the given <em class="parameter"><code>version</code></em>
|
317
|
+
id. This function
|
318
|
+
will return <code class="literal">NULL</code> if <em class="parameter"><code>version</code></em>
|
319
|
+
isn't valid. See <a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-get-versions" title="cairo_svg_get_versions ()"><code class="function">cairo_svg_get_versions()</code></a>
|
320
|
+
for a way to get the list of valid version ids.</p>
|
321
|
+
<div class="refsect3">
|
322
|
+
<a name="id-1.5.10.7.6.5"></a><h4>Parameters</h4>
|
323
|
+
<div class="informaltable"><table width="100%" border="0">
|
324
|
+
<colgroup>
|
325
|
+
<col width="150px" class="parameters_name">
|
326
|
+
<col class="parameters_description">
|
327
|
+
<col width="200px" class="parameters_annotations">
|
328
|
+
</colgroup>
|
329
|
+
<tbody><tr>
|
330
|
+
<td class="parameter_name"><p>version</p></td>
|
331
|
+
<td class="parameter_description"><p>a version id</p></td>
|
332
|
+
<td class="parameter_annotations"> </td>
|
333
|
+
</tr></tbody>
|
265
334
|
</table></div>
|
335
|
+
</div>
|
336
|
+
<div class="refsect3">
|
337
|
+
<a name="id-1.5.10.7.6.6"></a><h4>Returns</h4>
|
338
|
+
<p> the string associated to given version.</p>
|
339
|
+
<p></p>
|
340
|
+
</div>
|
341
|
+
<p class="since">Since 1.2</p>
|
342
|
+
</div>
|
343
|
+
</div>
|
344
|
+
<div class="refsect1">
|
345
|
+
<a name="cairo-SVG-Surfaces.other_details"></a><h2>Types and Values</h2>
|
346
|
+
<div class="refsect2">
|
347
|
+
<a name="CAIRO-HAS-SVG-SURFACE:CAPS"></a><h3>CAIRO_HAS_SVG_SURFACE</h3>
|
348
|
+
<pre class="programlisting">#define CAIRO_HAS_SVG_SURFACE 1
|
349
|
+
</pre>
|
350
|
+
<p>Defined if the SVG surface backend is available.
|
351
|
+
This macro can be used to conditionally compile backend-specific code.</p>
|
266
352
|
<p class="since">Since 1.2</p>
|
267
353
|
</div>
|
268
354
|
<hr>
|
269
355
|
<div class="refsect2">
|
270
|
-
<a name="cairo-svg-version-
|
271
|
-
<
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
<
|
278
|
-
<col
|
356
|
+
<a name="cairo-svg-version-t"></a><h3>enum cairo_svg_version_t</h3>
|
357
|
+
<p><a class="link" href="cairo-SVG-Surfaces.html#cairo-svg-version-t" title="enum cairo_svg_version_t"><span class="type">cairo_svg_version_t</span></a> is used to describe the version number of the SVG
|
358
|
+
specification that a generated SVG file will conform to.</p>
|
359
|
+
<div class="refsect3">
|
360
|
+
<a name="id-1.5.10.8.3.4"></a><h4>Members</h4>
|
361
|
+
<div class="informaltable"><table width="100%" border="0">
|
362
|
+
<colgroup>
|
363
|
+
<col width="300px" class="enum_members_name">
|
364
|
+
<col class="enum_members_description">
|
365
|
+
<col width="200px" class="enum_members_annotations">
|
366
|
+
</colgroup>
|
279
367
|
<tbody>
|
280
368
|
<tr>
|
281
|
-
<td
|
282
|
-
<td
|
369
|
+
<td class="enum_member_name"><p><a name="CAIRO-SVG-VERSION-1-1:CAPS"></a>CAIRO_SVG_VERSION_1_1</p></td>
|
370
|
+
<td class="enum_member_description">
|
371
|
+
<p>The version 1.1 of the SVG specification. (Since 1.2)</p>
|
372
|
+
</td>
|
373
|
+
<td class="enum_member_annotations"> </td>
|
283
374
|
</tr>
|
284
375
|
<tr>
|
285
|
-
<td
|
286
|
-
<td
|
376
|
+
<td class="enum_member_name"><p><a name="CAIRO-SVG-VERSION-1-2:CAPS"></a>CAIRO_SVG_VERSION_1_2</p></td>
|
377
|
+
<td class="enum_member_description">
|
378
|
+
<p>The version 1.2 of the SVG specification. (Since 1.2)</p>
|
379
|
+
</td>
|
380
|
+
<td class="enum_member_annotations"> </td>
|
287
381
|
</tr>
|
288
382
|
</tbody>
|
289
383
|
</table></div>
|
384
|
+
</div>
|
290
385
|
<p class="since">Since 1.2</p>
|
291
386
|
</div>
|
292
387
|
</div>
|
293
388
|
<div class="refsect1">
|
294
389
|
<a name="cairo-SVG-Surfaces.see-also"></a><h2>See Also</h2>
|
295
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
390
|
+
<p><a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></p>
|
296
391
|
</div>
|
297
392
|
</div>
|
298
393
|
<div class="footer">
|
299
394
|
<hr>
|
300
|
-
Generated by GTK-Doc V1.
|
395
|
+
Generated by GTK-Doc V1.20</div>
|
301
396
|
</body>
|
302
397
|
</html>
|