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>Script Surfaces</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>Cairo: A Vector Graphics Library: Script 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-XLib-XRender-Backend.html" title="XLib-XRender Backend">
|
10
10
|
<link rel="next" href="cairo-support.html" title="Utilities">
|
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-Script-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-Script-Surfaces.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#cairo-Script-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-XLib-XRender-Backend.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
+
<td><a accesskey="n" href="cairo-support.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-Script-Surfaces"></a><div class="titlepage"></div>
|
31
28
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,328 +30,474 @@
|
|
33
30
|
<h2><span class="refentrytitle"><a name="cairo-Script-Surfaces.top_of_page"></a>Script Surfaces</span></h2>
|
34
31
|
<p>Script Surfaces — Rendering to replayable scripts</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-Script-Surfaces.
|
40
|
-
<
|
41
|
-
<
|
42
|
-
<
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
<
|
47
|
-
|
48
|
-
<
|
49
|
-
|
50
|
-
<
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
<
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
35
|
+
<div class="refsect1">
|
36
|
+
<a name="cairo-Script-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-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a> *
|
46
|
+
</td>
|
47
|
+
<td class="function_name">
|
48
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-create" title="cairo_script_create ()">cairo_script_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-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a> *
|
54
|
+
</td>
|
55
|
+
<td class="function_name">
|
56
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-create-for-stream" title="cairo_script_create_for_stream ()">cairo_script_create_for_stream</a> <span class="c_punctuation">()</span>
|
57
|
+
</td>
|
58
|
+
</tr>
|
59
|
+
<tr>
|
60
|
+
<td class="function_type">
|
61
|
+
<a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a>
|
62
|
+
</td>
|
63
|
+
<td class="function_name">
|
64
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-from-recording-surface" title="cairo_script_from_recording_surface ()">cairo_script_from_recording_surface</a> <span class="c_punctuation">()</span>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<td class="function_type">
|
69
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-mode-t" title="enum cairo_script_mode_t"><span class="returnvalue">cairo_script_mode_t</span></a>
|
70
|
+
</td>
|
71
|
+
<td class="function_name">
|
72
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-get-mode" title="cairo_script_get_mode ()">cairo_script_get_mode</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-Script-Surfaces.html#cairo-script-set-mode" title="cairo_script_set_mode ()">cairo_script_set_mode</a> <span class="c_punctuation">()</span>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
<tr>
|
84
|
+
<td class="function_type">
|
85
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
|
86
|
+
</td>
|
87
|
+
<td class="function_name">
|
88
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-surface-create" title="cairo_script_surface_create ()">cairo_script_surface_create</a> <span class="c_punctuation">()</span>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td class="function_type">
|
93
|
+
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="returnvalue">cairo_surface_t</span></a> *
|
94
|
+
</td>
|
95
|
+
<td class="function_name">
|
96
|
+
<a class="link" href="cairo-Script-Surfaces.html#cairo-script-surface-create-for-target" title="cairo_script_surface_create_for_target ()">cairo_script_surface_create_for_target</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-Script-Surfaces.html#cairo-script-write-comment" title="cairo_script_write_comment ()">cairo_script_write_comment</a> <span class="c_punctuation">()</span>
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
</tbody>
|
108
|
+
</table></div>
|
109
|
+
</div>
|
110
|
+
<div class="refsect1">
|
111
|
+
<a name="cairo-Script-Surfaces.other"></a><h2>Types and Values</h2>
|
112
|
+
<div class="informaltable"><table width="100%" border="0">
|
113
|
+
<colgroup>
|
114
|
+
<col width="150px" class="name">
|
115
|
+
<col class="description">
|
116
|
+
</colgroup>
|
117
|
+
<tbody>
|
118
|
+
<tr>
|
119
|
+
<td class="define_keyword">#define</td>
|
120
|
+
<td class="function_name"><a class="link" href="cairo-Script-Surfaces.html#CAIRO-HAS-SCRIPT-SURFACE:CAPS" title="CAIRO_HAS_SCRIPT_SURFACE">CAIRO_HAS_SCRIPT_SURFACE</a></td>
|
121
|
+
</tr>
|
122
|
+
<tr>
|
123
|
+
<td class="datatype_keyword">enum</td>
|
124
|
+
<td class="function_name"><a class="link" href="cairo-Script-Surfaces.html#cairo-script-mode-t" title="enum cairo_script_mode_t">cairo_script_mode_t</a></td>
|
125
|
+
</tr>
|
126
|
+
</tbody>
|
127
|
+
</table></div>
|
128
|
+
</div>
|
129
|
+
<div class="refsect1">
|
130
|
+
<a name="cairo-Script-Surfaces.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
131
|
+
<pre class="screen">
|
60
132
|
</pre>
|
61
133
|
</div>
|
62
134
|
<div class="refsect1">
|
63
135
|
<a name="cairo-Script-Surfaces.description"></a><h2>Description</h2>
|
64
|
-
<p>
|
65
|
-
The script surface provides the ability to render to a native
|
136
|
+
<p>The script surface provides the ability to render to a native
|
66
137
|
script that matches the cairo drawing model. The scripts can
|
67
138
|
be replayed using tools under the util/cairo-script directoriy,
|
68
|
-
or with cairo-perf-trace
|
69
|
-
</p>
|
139
|
+
or with cairo-perf-trace.</p>
|
70
140
|
</div>
|
71
141
|
<div class="refsect1">
|
72
|
-
<a name="cairo-Script-Surfaces.
|
142
|
+
<a name="cairo-Script-Surfaces.functions_details"></a><h2>Functions</h2>
|
73
143
|
<div class="refsect2">
|
74
|
-
<a name="
|
75
|
-
<pre class="programlisting"
|
76
|
-
</pre>
|
77
|
-
<p>
|
78
|
-
|
79
|
-
|
80
|
-
</
|
144
|
+
<a name="cairo-script-create"></a><h3>cairo_script_create ()</h3>
|
145
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a> *
|
146
|
+
cairo_script_create (<em class="parameter"><code>const <span class="type">char</span> *filename</code></em>);</pre>
|
147
|
+
<p>Creates a output device for emitting the script, used when
|
148
|
+
creating the individual surfaces.</p>
|
149
|
+
<div class="refsect3">
|
150
|
+
<a name="id-1.5.15.7.2.5"></a><h4>Parameters</h4>
|
151
|
+
<div class="informaltable"><table width="100%" border="0">
|
152
|
+
<colgroup>
|
153
|
+
<col width="150px" class="parameters_name">
|
154
|
+
<col class="parameters_description">
|
155
|
+
<col width="200px" class="parameters_annotations">
|
156
|
+
</colgroup>
|
157
|
+
<tbody><tr>
|
158
|
+
<td class="parameter_name"><p>filename</p></td>
|
159
|
+
<td class="parameter_description"><p>the name (path) of the file to write the script to</p></td>
|
160
|
+
<td class="parameter_annotations"> </td>
|
161
|
+
</tr></tbody>
|
162
|
+
</table></div>
|
163
|
+
</div>
|
164
|
+
<div class="refsect3">
|
165
|
+
<a name="id-1.5.15.7.2.6"></a><h4>Returns</h4>
|
166
|
+
<p> a pointer to the newly created device. The caller
|
167
|
+
owns the surface and should call <a class="link" href="cairo-cairo-device-t.html#cairo-device-destroy" title="cairo_device_destroy ()"><code class="function">cairo_device_destroy()</code></a> when done
|
168
|
+
with it.</p>
|
169
|
+
<p>This function always returns a valid pointer, but it will return a
|
170
|
+
pointer to a "nil" device if an error such as out of memory
|
171
|
+
occurs. You can use <a class="link" href="cairo-cairo-device-t.html#cairo-device-status" title="cairo_device_status ()"><code class="function">cairo_device_status()</code></a> to check for this.</p>
|
172
|
+
<p></p>
|
173
|
+
</div>
|
81
174
|
<p class="since">Since 1.12</p>
|
82
175
|
</div>
|
83
176
|
<hr>
|
84
177
|
<div class="refsect2">
|
85
|
-
<a name="cairo-script-create"></a><h3>
|
86
|
-
<pre class="programlisting"><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a>
|
87
|
-
<
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
<div class="
|
92
|
-
<
|
178
|
+
<a name="cairo-script-create-for-stream"></a><h3>cairo_script_create_for_stream ()</h3>
|
179
|
+
<pre class="programlisting"><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="returnvalue">cairo_device_t</span></a> *
|
180
|
+
cairo_script_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>,
|
181
|
+
<em class="parameter"><code><span class="type">void</span> *closure</code></em>);</pre>
|
182
|
+
<p>Creates a output device for emitting the script, used when
|
183
|
+
creating the individual surfaces.</p>
|
184
|
+
<div class="refsect3">
|
185
|
+
<a name="id-1.5.15.7.3.5"></a><h4>Parameters</h4>
|
186
|
+
<div class="informaltable"><table width="100%" border="0">
|
187
|
+
<colgroup>
|
188
|
+
<col width="150px" class="parameters_name">
|
189
|
+
<col class="parameters_description">
|
190
|
+
<col width="200px" class="parameters_annotations">
|
191
|
+
</colgroup>
|
93
192
|
<tbody>
|
94
193
|
<tr>
|
95
|
-
<td
|
96
|
-
<td>
|
194
|
+
<td class="parameter_name"><p>write_func</p></td>
|
195
|
+
<td class="parameter_description"><p>callback function passed the bytes written to the script</p></td>
|
196
|
+
<td class="parameter_annotations"> </td>
|
97
197
|
</tr>
|
98
198
|
<tr>
|
99
|
-
<td
|
100
|
-
<td>
|
101
|
-
|
102
|
-
with it.
|
103
|
-
This function always returns a valid pointer, but it will return a
|
104
|
-
pointer to a "nil" device if an error such as out of memory
|
105
|
-
occurs. You can use <a class="link" href="cairo-cairo-device-t.html#cairo-device-status" title="cairo_device_status ()"><code class="function">cairo_device_status()</code></a> to check for this.</td>
|
199
|
+
<td class="parameter_name"><p>closure</p></td>
|
200
|
+
<td class="parameter_description"><p>user data to be passed to the callback</p></td>
|
201
|
+
<td class="parameter_annotations"> </td>
|
106
202
|
</tr>
|
107
203
|
</tbody>
|
108
204
|
</table></div>
|
205
|
+
</div>
|
206
|
+
<div class="refsect3">
|
207
|
+
<a name="id-1.5.15.7.3.6"></a><h4>Returns</h4>
|
208
|
+
<p> a pointer to the newly created device. The caller
|
209
|
+
owns the surface and should call <a class="link" href="cairo-cairo-device-t.html#cairo-device-destroy" title="cairo_device_destroy ()"><code class="function">cairo_device_destroy()</code></a> when done
|
210
|
+
with it.</p>
|
211
|
+
<p>This function always returns a valid pointer, but it will return a
|
212
|
+
pointer to a "nil" device if an error such as out of memory
|
213
|
+
occurs. You can use <a class="link" href="cairo-cairo-device-t.html#cairo-device-status" title="cairo_device_status ()"><code class="function">cairo_device_status()</code></a> to check for this.</p>
|
214
|
+
<p></p>
|
215
|
+
</div>
|
109
216
|
<p class="since">Since 1.12</p>
|
110
217
|
</div>
|
111
218
|
<hr>
|
112
219
|
<div class="refsect2">
|
113
|
-
<a name="cairo-script-
|
114
|
-
<pre class="programlisting"><a class="link" href="cairo-
|
115
|
-
|
116
|
-
<
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
<
|
121
|
-
<
|
220
|
+
<a name="cairo-script-from-recording-surface"></a><h3>cairo_script_from_recording_surface ()</h3>
|
221
|
+
<pre class="programlisting"><a class="link" href="cairo-Error-handling.html#cairo-status-t" title="enum cairo_status_t"><span class="returnvalue">cairo_status_t</span></a>
|
222
|
+
cairo_script_from_recording_surface (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>,
|
223
|
+
<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> *recording_surface</code></em>);</pre>
|
224
|
+
<p>Converts the record operations in <em class="parameter"><code>recording_surface</code></em>
|
225
|
+
into a script.</p>
|
226
|
+
<div class="refsect3">
|
227
|
+
<a name="id-1.5.15.7.4.5"></a><h4>Parameters</h4>
|
228
|
+
<div class="informaltable"><table width="100%" border="0">
|
229
|
+
<colgroup>
|
230
|
+
<col width="150px" class="parameters_name">
|
231
|
+
<col class="parameters_description">
|
232
|
+
<col width="200px" class="parameters_annotations">
|
233
|
+
</colgroup>
|
122
234
|
<tbody>
|
123
235
|
<tr>
|
124
|
-
<td
|
125
|
-
<td>
|
126
|
-
</
|
127
|
-
<tr>
|
128
|
-
<td><p><span class="term"><em class="parameter"><code>closure</code></em> :</span></p></td>
|
129
|
-
<td>user data to be passed to the callback</td>
|
236
|
+
<td class="parameter_name"><p>script</p></td>
|
237
|
+
<td class="parameter_description"><p>the script (output device)</p></td>
|
238
|
+
<td class="parameter_annotations"> </td>
|
130
239
|
</tr>
|
131
240
|
<tr>
|
132
|
-
<td
|
133
|
-
<td>
|
134
|
-
|
135
|
-
with it.
|
136
|
-
This function always returns a valid pointer, but it will return a
|
137
|
-
pointer to a "nil" device if an error such as out of memory
|
138
|
-
occurs. You can use <a class="link" href="cairo-cairo-device-t.html#cairo-device-status" title="cairo_device_status ()"><code class="function">cairo_device_status()</code></a> to check for this.</td>
|
241
|
+
<td class="parameter_name"><p>recording_surface</p></td>
|
242
|
+
<td class="parameter_description"><p>the recording surface to replay</p></td>
|
243
|
+
<td class="parameter_annotations"> </td>
|
139
244
|
</tr>
|
140
245
|
</tbody>
|
141
246
|
</table></div>
|
247
|
+
</div>
|
248
|
+
<div class="refsect3">
|
249
|
+
<a name="id-1.5.15.7.4.6"></a><h4>Returns</h4>
|
250
|
+
<p> <a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><span class="type">CAIRO_STATUS_SUCCESS</span></a> on successful completion or an error code.</p>
|
251
|
+
<p></p>
|
252
|
+
</div>
|
142
253
|
<p class="since">Since 1.12</p>
|
143
254
|
</div>
|
144
255
|
<hr>
|
145
256
|
<div class="refsect2">
|
146
|
-
<a name="cairo-script-
|
147
|
-
<pre class="programlisting"><a class="link" href="cairo-
|
148
|
-
|
149
|
-
<p>
|
150
|
-
|
151
|
-
</
|
152
|
-
<div class="
|
153
|
-
<
|
154
|
-
<
|
155
|
-
<
|
156
|
-
<
|
157
|
-
|
158
|
-
|
159
|
-
<
|
160
|
-
<td
|
161
|
-
<td>
|
162
|
-
</tr>
|
163
|
-
<tr>
|
164
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
165
|
-
<td>
|
166
|
-
<a class="link" href="cairo-Error-handling.html#CAIRO-STATUS-SUCCESS:CAPS"><span class="type">CAIRO_STATUS_SUCCESS</span></a> on successful completion or an error code.</td>
|
167
|
-
</tr>
|
168
|
-
</tbody>
|
257
|
+
<a name="cairo-script-get-mode"></a><h3>cairo_script_get_mode ()</h3>
|
258
|
+
<pre class="programlisting"><a class="link" href="cairo-Script-Surfaces.html#cairo-script-mode-t" title="enum cairo_script_mode_t"><span class="returnvalue">cairo_script_mode_t</span></a>
|
259
|
+
cairo_script_get_mode (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>);</pre>
|
260
|
+
<p>Queries the script for its current output mode.</p>
|
261
|
+
<div class="refsect3">
|
262
|
+
<a name="id-1.5.15.7.5.5"></a><h4>Parameters</h4>
|
263
|
+
<div class="informaltable"><table width="100%" border="0">
|
264
|
+
<colgroup>
|
265
|
+
<col width="150px" class="parameters_name">
|
266
|
+
<col class="parameters_description">
|
267
|
+
<col width="200px" class="parameters_annotations">
|
268
|
+
</colgroup>
|
269
|
+
<tbody><tr>
|
270
|
+
<td class="parameter_name"><p>script</p></td>
|
271
|
+
<td class="parameter_description"><p>The script (output device) to query</p></td>
|
272
|
+
<td class="parameter_annotations"> </td>
|
273
|
+
</tr></tbody>
|
169
274
|
</table></div>
|
275
|
+
</div>
|
276
|
+
<div class="refsect3">
|
277
|
+
<a name="id-1.5.15.7.5.6"></a><h4>Returns</h4>
|
278
|
+
<p> the current output mode of the script</p>
|
279
|
+
<p></p>
|
280
|
+
</div>
|
170
281
|
<p class="since">Since 1.12</p>
|
171
282
|
</div>
|
172
283
|
<hr>
|
173
284
|
<div class="refsect2">
|
174
|
-
<a name="cairo-script-
|
175
|
-
<pre class="programlisting"><
|
176
|
-
<
|
177
|
-
|
178
|
-
</p>
|
179
|
-
<div class="
|
180
|
-
<
|
285
|
+
<a name="cairo-script-set-mode"></a><h3>cairo_script_set_mode ()</h3>
|
286
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
287
|
+
cairo_script_set_mode (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>,
|
288
|
+
<em class="parameter"><code><a class="link" href="cairo-Script-Surfaces.html#cairo-script-mode-t" title="enum cairo_script_mode_t"><span class="type">cairo_script_mode_t</span></a> mode</code></em>);</pre>
|
289
|
+
<p>Change the output mode of the script</p>
|
290
|
+
<div class="refsect3">
|
291
|
+
<a name="id-1.5.15.7.6.5"></a><h4>Parameters</h4>
|
292
|
+
<div class="informaltable"><table width="100%" border="0">
|
293
|
+
<colgroup>
|
294
|
+
<col width="150px" class="parameters_name">
|
295
|
+
<col class="parameters_description">
|
296
|
+
<col width="200px" class="parameters_annotations">
|
297
|
+
</colgroup>
|
181
298
|
<tbody>
|
182
299
|
<tr>
|
183
|
-
<td
|
184
|
-
<td>The script (output device)
|
300
|
+
<td class="parameter_name"><p>script</p></td>
|
301
|
+
<td class="parameter_description"><p>The script (output device)</p></td>
|
302
|
+
<td class="parameter_annotations"> </td>
|
185
303
|
</tr>
|
186
304
|
<tr>
|
187
|
-
<td
|
188
|
-
<td>the
|
305
|
+
<td class="parameter_name"><p>mode</p></td>
|
306
|
+
<td class="parameter_description"><p>the new mode</p></td>
|
307
|
+
<td class="parameter_annotations"> </td>
|
189
308
|
</tr>
|
190
309
|
</tbody>
|
191
310
|
</table></div>
|
311
|
+
</div>
|
192
312
|
<p class="since">Since 1.12</p>
|
193
313
|
</div>
|
194
314
|
<hr>
|
195
315
|
<div class="refsect2">
|
196
|
-
<a name="cairo-script-
|
197
|
-
<pre class="programlisting"
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
</pre>
|
202
|
-
<p>
|
203
|
-
A set of script output variants.
|
316
|
+
<a name="cairo-script-surface-create"></a><h3>cairo_script_surface_create ()</h3>
|
317
|
+
<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> *
|
318
|
+
cairo_script_surface_create (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>,
|
319
|
+
<em class="parameter"><code><a class="link" href="cairo-cairo-surface-t.html#cairo-content-t" title="enum cairo_content_t"><span class="type">cairo_content_t</span></a> content</code></em>,
|
320
|
+
<em class="parameter"><code><span class="type">double</span> width</code></em>,
|
321
|
+
<em class="parameter"><code><span class="type">double</span> height</code></em>);</pre>
|
322
|
+
<p>Create a new surface that will emit its rendering through <em class="parameter"><code>script</code></em>
|
204
323
|
</p>
|
205
|
-
<div class="
|
206
|
-
<
|
324
|
+
<div class="refsect3">
|
325
|
+
<a name="id-1.5.15.7.7.5"></a><h4>Parameters</h4>
|
326
|
+
<div class="informaltable"><table width="100%" border="0">
|
327
|
+
<colgroup>
|
328
|
+
<col width="150px" class="parameters_name">
|
329
|
+
<col class="parameters_description">
|
330
|
+
<col width="200px" class="parameters_annotations">
|
331
|
+
</colgroup>
|
207
332
|
<tbody>
|
208
333
|
<tr>
|
209
|
-
<td
|
210
|
-
<td>the
|
211
|
-
</td>
|
334
|
+
<td class="parameter_name"><p>script</p></td>
|
335
|
+
<td class="parameter_description"><p>the script (output device)</p></td>
|
336
|
+
<td class="parameter_annotations"> </td>
|
212
337
|
</tr>
|
213
338
|
<tr>
|
214
|
-
<td
|
215
|
-
<td>the
|
216
|
-
</td>
|
339
|
+
<td class="parameter_name"><p>content</p></td>
|
340
|
+
<td class="parameter_description"><p>the content of the surface</p></td>
|
341
|
+
<td class="parameter_annotations"> </td>
|
217
342
|
</tr>
|
218
|
-
</tbody>
|
219
|
-
</table></div>
|
220
|
-
<p class="since">Since 1.12</p>
|
221
|
-
</div>
|
222
|
-
<hr>
|
223
|
-
<div class="refsect2">
|
224
|
-
<a name="cairo-script-set-mode"></a><h3>cairo_script_set_mode ()</h3>
|
225
|
-
<pre class="programlisting"><span class="returnvalue">void</span> cairo_script_set_mode (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>,
|
226
|
-
<em class="parameter"><code><a class="link" href="cairo-Script-Surfaces.html#cairo-script-mode-t" title="enum cairo_script_mode_t"><span class="type">cairo_script_mode_t</span></a> mode</code></em>);</pre>
|
227
|
-
<p>
|
228
|
-
Change the output mode of the script
|
229
|
-
</p>
|
230
|
-
<div class="variablelist"><table border="0">
|
231
|
-
<col align="left" valign="top">
|
232
|
-
<tbody>
|
233
343
|
<tr>
|
234
|
-
<td
|
235
|
-
<td>
|
344
|
+
<td class="parameter_name"><p>width</p></td>
|
345
|
+
<td class="parameter_description"><p>width in pixels</p></td>
|
346
|
+
<td class="parameter_annotations"> </td>
|
236
347
|
</tr>
|
237
348
|
<tr>
|
238
|
-
<td
|
239
|
-
<td>
|
349
|
+
<td class="parameter_name"><p>height</p></td>
|
350
|
+
<td class="parameter_description"><p>height in pixels</p></td>
|
351
|
+
<td class="parameter_annotations"> </td>
|
240
352
|
</tr>
|
241
353
|
</tbody>
|
242
354
|
</table></div>
|
355
|
+
</div>
|
356
|
+
<div class="refsect3">
|
357
|
+
<a name="id-1.5.15.7.7.6"></a><h4>Returns</h4>
|
358
|
+
<p> a pointer to the newly created surface. The caller
|
359
|
+
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
|
360
|
+
with it.</p>
|
361
|
+
<p>This function always returns a valid pointer, but it will return a
|
362
|
+
pointer to a "nil" surface if an error such as out of memory
|
363
|
+
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>
|
364
|
+
<p></p>
|
365
|
+
</div>
|
243
366
|
<p class="since">Since 1.12</p>
|
244
367
|
</div>
|
245
368
|
<hr>
|
246
369
|
<div class="refsect2">
|
247
|
-
<a name="cairo-script-surface-create"></a><h3>
|
248
|
-
<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>
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
<p>
|
253
|
-
|
254
|
-
</
|
255
|
-
|
256
|
-
<
|
370
|
+
<a name="cairo-script-surface-create-for-target"></a><h3>cairo_script_surface_create_for_target ()</h3>
|
371
|
+
<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> *
|
372
|
+
cairo_script_surface_create_for_target
|
373
|
+
(<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>,
|
374
|
+
<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> *target</code></em>);</pre>
|
375
|
+
<p>Create a pxoy surface that will render to <em class="parameter"><code>target</code></em>
|
376
|
+
and record
|
377
|
+
the operations to <em class="parameter"><code>device</code></em>
|
378
|
+
.</p>
|
379
|
+
<div class="refsect3">
|
380
|
+
<a name="id-1.5.15.7.8.5"></a><h4>Parameters</h4>
|
381
|
+
<div class="informaltable"><table width="100%" border="0">
|
382
|
+
<colgroup>
|
383
|
+
<col width="150px" class="parameters_name">
|
384
|
+
<col class="parameters_description">
|
385
|
+
<col width="200px" class="parameters_annotations">
|
386
|
+
</colgroup>
|
257
387
|
<tbody>
|
258
388
|
<tr>
|
259
|
-
<td
|
260
|
-
<td>the script (output device)</td>
|
261
|
-
</
|
262
|
-
<tr>
|
263
|
-
<td><p><span class="term"><em class="parameter"><code>content</code></em> :</span></p></td>
|
264
|
-
<td>the content of the surface</td>
|
265
|
-
</tr>
|
266
|
-
<tr>
|
267
|
-
<td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
|
268
|
-
<td>width in pixels</td>
|
389
|
+
<td class="parameter_name"><p>script</p></td>
|
390
|
+
<td class="parameter_description"><p>the script (output device)</p></td>
|
391
|
+
<td class="parameter_annotations"> </td>
|
269
392
|
</tr>
|
270
393
|
<tr>
|
271
|
-
<td
|
272
|
-
<td>
|
273
|
-
</
|
274
|
-
<tr>
|
275
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
276
|
-
<td>a pointer to the newly created surface. The caller
|
277
|
-
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
|
278
|
-
with it.
|
279
|
-
This function always returns a valid pointer, but it will return a
|
280
|
-
pointer to a "nil" surface if an error such as out of memory
|
281
|
-
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>
|
394
|
+
<td class="parameter_name"><p>target</p></td>
|
395
|
+
<td class="parameter_description"><p>a target surface to wrap</p></td>
|
396
|
+
<td class="parameter_annotations"> </td>
|
282
397
|
</tr>
|
283
398
|
</tbody>
|
284
399
|
</table></div>
|
400
|
+
</div>
|
401
|
+
<div class="refsect3">
|
402
|
+
<a name="id-1.5.15.7.8.6"></a><h4>Returns</h4>
|
403
|
+
<p> a pointer to the newly created surface. The caller
|
404
|
+
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
|
405
|
+
with it.</p>
|
406
|
+
<p>This function always returns a valid pointer, but it will return a
|
407
|
+
pointer to a "nil" surface if an error such as out of memory
|
408
|
+
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>
|
409
|
+
<p></p>
|
410
|
+
</div>
|
285
411
|
<p class="since">Since 1.12</p>
|
286
412
|
</div>
|
287
413
|
<hr>
|
288
414
|
<div class="refsect2">
|
289
|
-
<a name="cairo-script-
|
290
|
-
<pre class="programlisting"><
|
291
|
-
|
292
|
-
|
293
|
-
<
|
294
|
-
|
295
|
-
|
296
|
-
</
|
297
|
-
<div class="
|
298
|
-
<
|
415
|
+
<a name="cairo-script-write-comment"></a><h3>cairo_script_write_comment ()</h3>
|
416
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
417
|
+
cairo_script_write_comment (<em class="parameter"><code><a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> *script</code></em>,
|
418
|
+
<em class="parameter"><code>const <span class="type">char</span> *comment</code></em>,
|
419
|
+
<em class="parameter"><code><span class="type">int</span> len</code></em>);</pre>
|
420
|
+
<p>Emit a string verbatim into the script.</p>
|
421
|
+
<div class="refsect3">
|
422
|
+
<a name="id-1.5.15.7.9.5"></a><h4>Parameters</h4>
|
423
|
+
<div class="informaltable"><table width="100%" border="0">
|
424
|
+
<colgroup>
|
425
|
+
<col width="150px" class="parameters_name">
|
426
|
+
<col class="parameters_description">
|
427
|
+
<col width="200px" class="parameters_annotations">
|
428
|
+
</colgroup>
|
299
429
|
<tbody>
|
300
430
|
<tr>
|
301
|
-
<td
|
302
|
-
<td>the script (output device)</td>
|
431
|
+
<td class="parameter_name"><p>script</p></td>
|
432
|
+
<td class="parameter_description"><p>the script (output device)</p></td>
|
433
|
+
<td class="parameter_annotations"> </td>
|
303
434
|
</tr>
|
304
435
|
<tr>
|
305
|
-
<td
|
306
|
-
<td>
|
436
|
+
<td class="parameter_name"><p>comment</p></td>
|
437
|
+
<td class="parameter_description"><p>the string to emit</p></td>
|
438
|
+
<td class="parameter_annotations"> </td>
|
307
439
|
</tr>
|
308
440
|
<tr>
|
309
|
-
<td
|
310
|
-
<td>
|
311
|
-
|
312
|
-
with it.
|
313
|
-
This function always returns a valid pointer, but it will return a
|
314
|
-
pointer to a "nil" surface if an error such as out of memory
|
315
|
-
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>
|
441
|
+
<td class="parameter_name"><p>len</p></td>
|
442
|
+
<td class="parameter_description"><p>the length of the sting to write, or -1 to use <code class="function">strlen()</code></p></td>
|
443
|
+
<td class="parameter_annotations"> </td>
|
316
444
|
</tr>
|
317
445
|
</tbody>
|
318
446
|
</table></div>
|
447
|
+
</div>
|
448
|
+
<p class="since">Since 1.12</p>
|
449
|
+
</div>
|
450
|
+
</div>
|
451
|
+
<div class="refsect1">
|
452
|
+
<a name="cairo-Script-Surfaces.other_details"></a><h2>Types and Values</h2>
|
453
|
+
<div class="refsect2">
|
454
|
+
<a name="CAIRO-HAS-SCRIPT-SURFACE:CAPS"></a><h3>CAIRO_HAS_SCRIPT_SURFACE</h3>
|
455
|
+
<pre class="programlisting">#define CAIRO_HAS_SCRIPT_SURFACE 1
|
456
|
+
</pre>
|
457
|
+
<p>Defined if the script surface backend is available.
|
458
|
+
The script surface backend is always built in since 1.12.</p>
|
319
459
|
<p class="since">Since 1.12</p>
|
320
460
|
</div>
|
321
461
|
<hr>
|
322
462
|
<div class="refsect2">
|
323
|
-
<a name="cairo-script-
|
324
|
-
<
|
325
|
-
|
326
|
-
|
327
|
-
<
|
328
|
-
|
329
|
-
|
330
|
-
<
|
331
|
-
<col
|
463
|
+
<a name="cairo-script-mode-t"></a><h3>enum cairo_script_mode_t</h3>
|
464
|
+
<p>A set of script output variants.</p>
|
465
|
+
<div class="refsect3">
|
466
|
+
<a name="id-1.5.15.8.3.4"></a><h4>Members</h4>
|
467
|
+
<div class="informaltable"><table width="100%" border="0">
|
468
|
+
<colgroup>
|
469
|
+
<col width="300px" class="enum_members_name">
|
470
|
+
<col class="enum_members_description">
|
471
|
+
<col width="200px" class="enum_members_annotations">
|
472
|
+
</colgroup>
|
332
473
|
<tbody>
|
333
474
|
<tr>
|
334
|
-
<td
|
335
|
-
<td
|
336
|
-
</
|
337
|
-
|
338
|
-
<td
|
339
|
-
<td>the string to emit</td>
|
475
|
+
<td class="enum_member_name"><p><a name="CAIRO-SCRIPT-MODE-ASCII:CAPS"></a>CAIRO_SCRIPT_MODE_ASCII</p></td>
|
476
|
+
<td class="enum_member_description">
|
477
|
+
<p>the output will be in readable text (default). (Since 1.12)</p>
|
478
|
+
</td>
|
479
|
+
<td class="enum_member_annotations"> </td>
|
340
480
|
</tr>
|
341
481
|
<tr>
|
342
|
-
<td
|
343
|
-
<td
|
482
|
+
<td class="enum_member_name"><p><a name="CAIRO-SCRIPT-MODE-BINARY:CAPS"></a>CAIRO_SCRIPT_MODE_BINARY</p></td>
|
483
|
+
<td class="enum_member_description">
|
484
|
+
<p>the output will use byte codes. (Since 1.12)</p>
|
344
485
|
</td>
|
486
|
+
<td class="enum_member_annotations"> </td>
|
345
487
|
</tr>
|
346
488
|
</tbody>
|
347
489
|
</table></div>
|
490
|
+
</div>
|
348
491
|
<p class="since">Since 1.12</p>
|
349
492
|
</div>
|
350
493
|
</div>
|
351
494
|
<div class="refsect1">
|
352
495
|
<a name="cairo-Script-Surfaces.see-also"></a><h2>See Also</h2>
|
353
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
496
|
+
<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>
|
354
497
|
</div>
|
355
498
|
</div>
|
356
499
|
<div class="footer">
|
357
500
|
<hr>
|
358
|
-
Generated by GTK-Doc V1.
|
501
|
+
Generated by GTK-Doc V1.20</div>
|
359
502
|
</body>
|
360
503
|
</html>
|