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>XLib Surfaces</title>
|
6
|
-
<meta name="generator" content="DocBook XSL Stylesheets V1.
|
5
|
+
<title>Cairo: A Vector Graphics Library: XLib 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-XCB-Surfaces.html" title="XCB Surfaces">
|
10
10
|
<link rel="next" href="cairo-XLib-XRender-Backend.html" title="XLib-XRender Backend">
|
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-XLib-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-XLib-Surfaces.description" class="shortcut">Description</a></span><span id="nav_hierarchy"> <span class="dim">|</span>
|
19
|
+
<a href="#cairo-XLib-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-XCB-Surfaces.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
|
24
|
+
<td><a accesskey="n" href="cairo-XLib-XRender-Backend.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-XLib-Surfaces"></a><div class="titlepage"></div>
|
31
28
|
<div class="refnamediv"><table width="100%"><tr>
|
@@ -33,503 +30,701 @@
|
|
33
30
|
<h2><span class="refentrytitle"><a name="cairo-XLib-Surfaces.top_of_page"></a>XLib Surfaces</span></h2>
|
34
31
|
<p>XLib Surfaces — X Window System rendering using XLib</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-XLib-Surfaces.
|
40
|
-
<
|
41
|
-
<
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
<
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
<
|
56
|
-
<
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
<
|
63
|
-
<
|
64
|
-
<span class="returnvalue">
|
65
|
-
|
66
|
-
<
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
<
|
71
|
-
|
72
|
-
<span class="returnvalue">
|
73
|
-
|
74
|
-
|
75
|
-
</
|
35
|
+
<div class="refsect1">
|
36
|
+
<a name="cairo-XLib-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-XLib-Surfaces.html#cairo-xlib-surface-create" title="cairo_xlib_surface_create ()">cairo_xlib_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-XLib-Surfaces.html#cairo-xlib-surface-create-for-bitmap" title="cairo_xlib_surface_create_for_bitmap ()">cairo_xlib_surface_create_for_bitmap</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-XLib-Surfaces.html#cairo-xlib-surface-set-size" title="cairo_xlib_surface_set_size ()">cairo_xlib_surface_set_size</a> <span class="c_punctuation">()</span>
|
65
|
+
</td>
|
66
|
+
</tr>
|
67
|
+
<tr>
|
68
|
+
<td class="function_type">
|
69
|
+
<span class="returnvalue">Display</span> *
|
70
|
+
</td>
|
71
|
+
<td class="function_name">
|
72
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-display" title="cairo_xlib_surface_get_display ()">cairo_xlib_surface_get_display</a> <span class="c_punctuation">()</span>
|
73
|
+
</td>
|
74
|
+
</tr>
|
75
|
+
<tr>
|
76
|
+
<td class="function_type">
|
77
|
+
<span class="returnvalue">Screen</span> *
|
78
|
+
</td>
|
79
|
+
<td class="function_name">
|
80
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-screen" title="cairo_xlib_surface_get_screen ()">cairo_xlib_surface_get_screen</a> <span class="c_punctuation">()</span>
|
81
|
+
</td>
|
82
|
+
</tr>
|
83
|
+
<tr>
|
84
|
+
<td class="function_type">
|
85
|
+
<span class="returnvalue">void</span>
|
86
|
+
</td>
|
87
|
+
<td class="function_name">
|
88
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-set-drawable" title="cairo_xlib_surface_set_drawable ()">cairo_xlib_surface_set_drawable</a> <span class="c_punctuation">()</span>
|
89
|
+
</td>
|
90
|
+
</tr>
|
91
|
+
<tr>
|
92
|
+
<td class="function_type">
|
93
|
+
<span class="returnvalue">Drawable</span>
|
94
|
+
</td>
|
95
|
+
<td class="function_name">
|
96
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-drawable" title="cairo_xlib_surface_get_drawable ()">cairo_xlib_surface_get_drawable</a> <span class="c_punctuation">()</span>
|
97
|
+
</td>
|
98
|
+
</tr>
|
99
|
+
<tr>
|
100
|
+
<td class="function_type">
|
101
|
+
<span class="returnvalue">Visual</span> *
|
102
|
+
</td>
|
103
|
+
<td class="function_name">
|
104
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-visual" title="cairo_xlib_surface_get_visual ()">cairo_xlib_surface_get_visual</a> <span class="c_punctuation">()</span>
|
105
|
+
</td>
|
106
|
+
</tr>
|
107
|
+
<tr>
|
108
|
+
<td class="function_type">
|
109
|
+
<span class="returnvalue">int</span>
|
110
|
+
</td>
|
111
|
+
<td class="function_name">
|
112
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-width" title="cairo_xlib_surface_get_width ()">cairo_xlib_surface_get_width</a> <span class="c_punctuation">()</span>
|
113
|
+
</td>
|
114
|
+
</tr>
|
115
|
+
<tr>
|
116
|
+
<td class="function_type">
|
117
|
+
<span class="returnvalue">int</span>
|
118
|
+
</td>
|
119
|
+
<td class="function_name">
|
120
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-height" title="cairo_xlib_surface_get_height ()">cairo_xlib_surface_get_height</a> <span class="c_punctuation">()</span>
|
121
|
+
</td>
|
122
|
+
</tr>
|
123
|
+
<tr>
|
124
|
+
<td class="function_type">
|
125
|
+
<span class="returnvalue">int</span>
|
126
|
+
</td>
|
127
|
+
<td class="function_name">
|
128
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-get-depth" title="cairo_xlib_surface_get_depth ()">cairo_xlib_surface_get_depth</a> <span class="c_punctuation">()</span>
|
129
|
+
</td>
|
130
|
+
</tr>
|
131
|
+
<tr>
|
132
|
+
<td class="function_type">
|
133
|
+
<span class="returnvalue">void</span>
|
134
|
+
</td>
|
135
|
+
<td class="function_name">
|
136
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-device-debug-cap-xrender-version" title="cairo_xlib_device_debug_cap_xrender_version ()">cairo_xlib_device_debug_cap_xrender_version</a> <span class="c_punctuation">()</span>
|
137
|
+
</td>
|
138
|
+
</tr>
|
139
|
+
<tr>
|
140
|
+
<td class="function_type">
|
141
|
+
<span class="returnvalue">int</span>
|
142
|
+
</td>
|
143
|
+
<td class="function_name">
|
144
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-device-debug-get-precision" title="cairo_xlib_device_debug_get_precision ()">cairo_xlib_device_debug_get_precision</a> <span class="c_punctuation">()</span>
|
145
|
+
</td>
|
146
|
+
</tr>
|
147
|
+
<tr>
|
148
|
+
<td class="function_type">
|
149
|
+
<span class="returnvalue">void</span>
|
150
|
+
</td>
|
151
|
+
<td class="function_name">
|
152
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-device-debug-set-precision" title="cairo_xlib_device_debug_set_precision ()">cairo_xlib_device_debug_set_precision</a> <span class="c_punctuation">()</span>
|
153
|
+
</td>
|
154
|
+
</tr>
|
155
|
+
</tbody>
|
156
|
+
</table></div>
|
76
157
|
</div>
|
77
158
|
<div class="refsect1">
|
78
|
-
<a name="cairo-XLib-Surfaces.
|
79
|
-
<
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
</
|
159
|
+
<a name="cairo-XLib-Surfaces.other"></a><h2>Types and Values</h2>
|
160
|
+
<div class="informaltable"><table width="100%" border="0">
|
161
|
+
<colgroup>
|
162
|
+
<col width="150px" class="name">
|
163
|
+
<col class="description">
|
164
|
+
</colgroup>
|
165
|
+
<tbody><tr>
|
166
|
+
<td class="define_keyword">#define</td>
|
167
|
+
<td class="function_name"><a class="link" href="cairo-XLib-Surfaces.html#CAIRO-HAS-XLIB-SURFACE:CAPS" title="CAIRO_HAS_XLIB_SURFACE">CAIRO_HAS_XLIB_SURFACE</a></td>
|
168
|
+
</tr></tbody>
|
169
|
+
</table></div>
|
87
170
|
</div>
|
88
171
|
<div class="refsect1">
|
89
|
-
<a name="cairo-XLib-Surfaces.
|
90
|
-
<
|
91
|
-
<a name="CAIRO-HAS-XLIB-SURFACE:CAPS"></a><h3>CAIRO_HAS_XLIB_SURFACE</h3>
|
92
|
-
<pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
|
172
|
+
<a name="cairo-XLib-Surfaces.object-hierarchy"></a><h2>Object Hierarchy</h2>
|
173
|
+
<pre class="screen">
|
93
174
|
</pre>
|
94
|
-
<p>
|
95
|
-
Defined if the Xlib surface backend is available.
|
96
|
-
This macro can be used to conditionally compile backend-specific code.
|
97
|
-
</p>
|
98
|
-
<p class="since">Since 1.0</p>
|
99
175
|
</div>
|
100
|
-
<
|
176
|
+
<div class="refsect1">
|
177
|
+
<a name="cairo-XLib-Surfaces.description"></a><h2>Description</h2>
|
178
|
+
<p>The XLib surface is used to render cairo graphics to X Window System
|
179
|
+
windows and pixmaps using the XLib library.</p>
|
180
|
+
<p>Note that the XLib surface automatically takes advantage of X render extension
|
181
|
+
if it is available.</p>
|
182
|
+
</div>
|
183
|
+
<div class="refsect1">
|
184
|
+
<a name="cairo-XLib-Surfaces.functions_details"></a><h2>Functions</h2>
|
101
185
|
<div class="refsect2">
|
102
|
-
<a name="cairo-xlib-surface-create"></a><h3>cairo_xlib_surface_create
|
103
|
-
<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>
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
<
|
109
|
-
Creates an Xlib surface that draws to the given drawable.
|
186
|
+
<a name="cairo-xlib-surface-create"></a><h3>cairo_xlib_surface_create ()</h3>
|
187
|
+
<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> *
|
188
|
+
cairo_xlib_surface_create (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
|
189
|
+
<em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
|
190
|
+
<em class="parameter"><code><span class="type">Visual</span> *visual</code></em>,
|
191
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
192
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
193
|
+
<p>Creates an Xlib surface that draws to the given drawable.
|
110
194
|
The way that colors are represented in the drawable is specified
|
111
|
-
by the provided visual
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
<p>
|
119
|
-
When <em class="parameter"><code>drawable</code></em> is a Window containing child windows then drawing to
|
195
|
+
by the provided visual.</p>
|
196
|
+
<p>Note: If <em class="parameter"><code>drawable</code></em>
|
197
|
+
is a Window, then the function
|
198
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-set-size" title="cairo_xlib_surface_set_size ()"><code class="function">cairo_xlib_surface_set_size()</code></a> must be called whenever the size of the
|
199
|
+
window changes.</p>
|
200
|
+
<p>When <em class="parameter"><code>drawable</code></em>
|
201
|
+
is a Window containing child windows then drawing to
|
120
202
|
the created surface will be clipped by those child windows. When
|
121
203
|
the created surface is used as a source, the contents of the
|
122
|
-
children will be included
|
123
|
-
|
124
|
-
<
|
125
|
-
<
|
204
|
+
children will be included.</p>
|
205
|
+
<div class="refsect3">
|
206
|
+
<a name="id-1.5.13.7.2.7"></a><h4>Parameters</h4>
|
207
|
+
<div class="informaltable"><table width="100%" border="0">
|
208
|
+
<colgroup>
|
209
|
+
<col width="150px" class="parameters_name">
|
210
|
+
<col class="parameters_description">
|
211
|
+
<col width="200px" class="parameters_annotations">
|
212
|
+
</colgroup>
|
126
213
|
<tbody>
|
127
214
|
<tr>
|
128
|
-
<td
|
129
|
-
<td>an X Display</td>
|
215
|
+
<td class="parameter_name"><p>dpy</p></td>
|
216
|
+
<td class="parameter_description"><p>an X Display</p></td>
|
217
|
+
<td class="parameter_annotations"> </td>
|
130
218
|
</tr>
|
131
219
|
<tr>
|
132
|
-
<td
|
133
|
-
<td>an X Drawable, (a Pixmap or a Window)</td>
|
220
|
+
<td class="parameter_name"><p>drawable</p></td>
|
221
|
+
<td class="parameter_description"><p>an X Drawable, (a Pixmap or a Window)</p></td>
|
222
|
+
<td class="parameter_annotations"> </td>
|
134
223
|
</tr>
|
135
224
|
<tr>
|
136
|
-
<td
|
137
|
-
<td>the visual to use for drawing to <em class="parameter"><code>drawable</code></em
|
225
|
+
<td class="parameter_name"><p>visual</p></td>
|
226
|
+
<td class="parameter_description"><p>the visual to use for drawing to <em class="parameter"><code>drawable</code></em>
|
227
|
+
. The depth
|
138
228
|
of the visual must match the depth of the drawable.
|
139
|
-
Currently, only TrueColor visuals are fully supported.</td>
|
229
|
+
Currently, only TrueColor visuals are fully supported.</p></td>
|
230
|
+
<td class="parameter_annotations"> </td>
|
140
231
|
</tr>
|
141
232
|
<tr>
|
142
|
-
<td
|
143
|
-
<td>the current width of <em class="parameter"><code>drawable</code></em
|
233
|
+
<td class="parameter_name"><p>width</p></td>
|
234
|
+
<td class="parameter_description"><p>the current width of <em class="parameter"><code>drawable</code></em>
|
235
|
+
.</p></td>
|
236
|
+
<td class="parameter_annotations"> </td>
|
144
237
|
</tr>
|
145
238
|
<tr>
|
146
|
-
<td
|
147
|
-
<td>the current height of <em class="parameter"><code>drawable</code></em
|
148
|
-
|
149
|
-
<
|
150
|
-
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
|
151
|
-
<td>the newly created surface</td>
|
239
|
+
<td class="parameter_name"><p>height</p></td>
|
240
|
+
<td class="parameter_description"><p>the current height of <em class="parameter"><code>drawable</code></em>
|
241
|
+
.</p></td>
|
242
|
+
<td class="parameter_annotations"> </td>
|
152
243
|
</tr>
|
153
244
|
</tbody>
|
154
245
|
</table></div>
|
246
|
+
</div>
|
247
|
+
<div class="refsect3">
|
248
|
+
<a name="id-1.5.13.7.2.8"></a><h4>Returns</h4>
|
249
|
+
<p> the newly created surface</p>
|
250
|
+
<p></p>
|
251
|
+
</div>
|
155
252
|
<p class="since">Since 1.0</p>
|
156
253
|
</div>
|
157
254
|
<hr>
|
158
255
|
<div class="refsect2">
|
159
|
-
<a name="cairo-xlib-surface-create-for-bitmap"></a><h3>cairo_xlib_surface_create_for_bitmap
|
160
|
-
<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>
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
<p>
|
167
|
-
|
168
|
-
|
169
|
-
</
|
170
|
-
<div class="
|
171
|
-
<
|
256
|
+
<a name="cairo-xlib-surface-create-for-bitmap"></a><h3>cairo_xlib_surface_create_for_bitmap ()</h3>
|
257
|
+
<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> *
|
258
|
+
cairo_xlib_surface_create_for_bitmap (<em class="parameter"><code><span class="type">Display</span> *dpy</code></em>,
|
259
|
+
<em class="parameter"><code><span class="type">Pixmap</span> bitmap</code></em>,
|
260
|
+
<em class="parameter"><code><span class="type">Screen</span> *screen</code></em>,
|
261
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
262
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
263
|
+
<p>Creates an Xlib surface that draws to the given bitmap.
|
264
|
+
This will be drawn to as a <a class="link" href="cairo-Image-Surfaces.html#CAIRO-FORMAT-A1:CAPS"><code class="literal">CAIRO_FORMAT_A1</code></a> object.</p>
|
265
|
+
<div class="refsect3">
|
266
|
+
<a name="id-1.5.13.7.3.5"></a><h4>Parameters</h4>
|
267
|
+
<div class="informaltable"><table width="100%" border="0">
|
268
|
+
<colgroup>
|
269
|
+
<col width="150px" class="parameters_name">
|
270
|
+
<col class="parameters_description">
|
271
|
+
<col width="200px" class="parameters_annotations">
|
272
|
+
</colgroup>
|
172
273
|
<tbody>
|
173
274
|
<tr>
|
174
|
-
<td
|
175
|
-
<td>an X Display</td>
|
176
|
-
</
|
177
|
-
<tr>
|
178
|
-
<td><p><span class="term"><em class="parameter"><code>bitmap</code></em> :</span></p></td>
|
179
|
-
<td>an X Drawable, (a depth-1 Pixmap)</td>
|
275
|
+
<td class="parameter_name"><p>dpy</p></td>
|
276
|
+
<td class="parameter_description"><p>an X Display</p></td>
|
277
|
+
<td class="parameter_annotations"> </td>
|
180
278
|
</tr>
|
181
279
|
<tr>
|
182
|
-
<td
|
183
|
-
<td>
|
184
|
-
</td>
|
280
|
+
<td class="parameter_name"><p>bitmap</p></td>
|
281
|
+
<td class="parameter_description"><p>an X Drawable, (a depth-1 Pixmap)</p></td>
|
282
|
+
<td class="parameter_annotations"> </td>
|
185
283
|
</tr>
|
186
284
|
<tr>
|
187
|
-
<td
|
188
|
-
<td>the
|
285
|
+
<td class="parameter_name"><p>screen</p></td>
|
286
|
+
<td class="parameter_description"><p>the X Screen associated with <em class="parameter"><code>bitmap</code></em>
|
287
|
+
</p></td>
|
288
|
+
<td class="parameter_annotations"> </td>
|
189
289
|
</tr>
|
190
290
|
<tr>
|
191
|
-
<td
|
192
|
-
<td>the current
|
291
|
+
<td class="parameter_name"><p>width</p></td>
|
292
|
+
<td class="parameter_description"><p>the current width of <em class="parameter"><code>bitmap</code></em>
|
293
|
+
.</p></td>
|
294
|
+
<td class="parameter_annotations"> </td>
|
193
295
|
</tr>
|
194
296
|
<tr>
|
195
|
-
<td
|
196
|
-
<td>the
|
297
|
+
<td class="parameter_name"><p>height</p></td>
|
298
|
+
<td class="parameter_description"><p>the current height of <em class="parameter"><code>bitmap</code></em>
|
299
|
+
.</p></td>
|
300
|
+
<td class="parameter_annotations"> </td>
|
197
301
|
</tr>
|
198
302
|
</tbody>
|
199
303
|
</table></div>
|
304
|
+
</div>
|
305
|
+
<div class="refsect3">
|
306
|
+
<a name="id-1.5.13.7.3.6"></a><h4>Returns</h4>
|
307
|
+
<p> the newly created surface</p>
|
308
|
+
<p></p>
|
309
|
+
</div>
|
200
310
|
<p class="since">Since 1.0</p>
|
201
311
|
</div>
|
202
312
|
<hr>
|
203
313
|
<div class="refsect2">
|
204
|
-
<a name="cairo-xlib-surface-set-size"></a><h3>cairo_xlib_surface_set_size
|
205
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
206
|
-
|
207
|
-
|
208
|
-
<
|
209
|
-
Informs cairo of the new size of the X Drawable underlying the
|
314
|
+
<a name="cairo-xlib-surface-set-size"></a><h3>cairo_xlib_surface_set_size ()</h3>
|
315
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
316
|
+
cairo_xlib_surface_set_size (<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>,
|
317
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
318
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
319
|
+
<p>Informs cairo of the new size of the X Drawable underlying the
|
210
320
|
surface. For a surface created for a Window (rather than a Pixmap),
|
211
321
|
this function must be called each time the size of the window
|
212
322
|
changes. (For a subwindow, you are normally resizing the window
|
213
323
|
yourself, but for a toplevel window, it is necessary to listen for
|
214
|
-
ConfigureNotify events.)
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
<
|
221
|
-
<col
|
324
|
+
ConfigureNotify events.)</p>
|
325
|
+
<p>A Pixmap can never change size, so it is never necessary to call
|
326
|
+
this function on a surface created for a Pixmap.</p>
|
327
|
+
<div class="refsect3">
|
328
|
+
<a name="id-1.5.13.7.4.6"></a><h4>Parameters</h4>
|
329
|
+
<div class="informaltable"><table width="100%" border="0">
|
330
|
+
<colgroup>
|
331
|
+
<col width="150px" class="parameters_name">
|
332
|
+
<col class="parameters_description">
|
333
|
+
<col width="200px" class="parameters_annotations">
|
334
|
+
</colgroup>
|
222
335
|
<tbody>
|
223
336
|
<tr>
|
224
|
-
<td
|
225
|
-
<td>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend</td>
|
337
|
+
<td class="parameter_name"><p>surface</p></td>
|
338
|
+
<td class="parameter_description"><p>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend</p></td>
|
339
|
+
<td class="parameter_annotations"> </td>
|
226
340
|
</tr>
|
227
341
|
<tr>
|
228
|
-
<td
|
229
|
-
<td>the new width of the surface</td>
|
342
|
+
<td class="parameter_name"><p>width</p></td>
|
343
|
+
<td class="parameter_description"><p>the new width of the surface</p></td>
|
344
|
+
<td class="parameter_annotations"> </td>
|
230
345
|
</tr>
|
231
346
|
<tr>
|
232
|
-
<td
|
233
|
-
<td>the new height of the surface</td>
|
347
|
+
<td class="parameter_name"><p>height</p></td>
|
348
|
+
<td class="parameter_description"><p>the new height of the surface</p></td>
|
349
|
+
<td class="parameter_annotations"> </td>
|
234
350
|
</tr>
|
235
351
|
</tbody>
|
236
352
|
</table></div>
|
353
|
+
</div>
|
237
354
|
<p class="since">Since 1.0</p>
|
238
355
|
</div>
|
239
356
|
<hr>
|
240
357
|
<div class="refsect2">
|
241
|
-
<a name="cairo-xlib-surface-get-display"></a><h3>cairo_xlib_surface_get_display
|
242
|
-
<pre class="programlisting"><span class="returnvalue">Display</span>
|
243
|
-
<
|
244
|
-
Get the X Display for the underlying X Drawable
|
245
|
-
|
246
|
-
<
|
247
|
-
<
|
248
|
-
<
|
249
|
-
<
|
250
|
-
<
|
251
|
-
<
|
252
|
-
</
|
253
|
-
|
254
|
-
<
|
255
|
-
<td
|
256
|
-
<td>
|
257
|
-
</tr>
|
258
|
-
</tbody>
|
358
|
+
<a name="cairo-xlib-surface-get-display"></a><h3>cairo_xlib_surface_get_display ()</h3>
|
359
|
+
<pre class="programlisting"><span class="returnvalue">Display</span> *
|
360
|
+
cairo_xlib_surface_get_display (<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>);</pre>
|
361
|
+
<p>Get the X Display for the underlying X Drawable.</p>
|
362
|
+
<div class="refsect3">
|
363
|
+
<a name="id-1.5.13.7.5.5"></a><h4>Parameters</h4>
|
364
|
+
<div class="informaltable"><table width="100%" border="0">
|
365
|
+
<colgroup>
|
366
|
+
<col width="150px" class="parameters_name">
|
367
|
+
<col class="parameters_description">
|
368
|
+
<col width="200px" class="parameters_annotations">
|
369
|
+
</colgroup>
|
370
|
+
<tbody><tr>
|
371
|
+
<td class="parameter_name"><p>surface</p></td>
|
372
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
373
|
+
<td class="parameter_annotations"> </td>
|
374
|
+
</tr></tbody>
|
259
375
|
</table></div>
|
376
|
+
</div>
|
377
|
+
<div class="refsect3">
|
378
|
+
<a name="id-1.5.13.7.5.6"></a><h4>Returns</h4>
|
379
|
+
<p> the display.</p>
|
380
|
+
<p></p>
|
381
|
+
</div>
|
260
382
|
<p class="since">Since 1.2</p>
|
261
383
|
</div>
|
262
384
|
<hr>
|
263
385
|
<div class="refsect2">
|
264
|
-
<a name="cairo-xlib-surface-get-screen"></a><h3>cairo_xlib_surface_get_screen
|
265
|
-
<pre class="programlisting"><span class="returnvalue">Screen</span>
|
266
|
-
<
|
267
|
-
Get the X Screen for the underlying X Drawable
|
268
|
-
|
269
|
-
<
|
270
|
-
<
|
271
|
-
<
|
272
|
-
<
|
273
|
-
<
|
274
|
-
<
|
275
|
-
</
|
276
|
-
|
277
|
-
<
|
278
|
-
<td
|
279
|
-
<td>
|
280
|
-
</tr>
|
281
|
-
</tbody>
|
386
|
+
<a name="cairo-xlib-surface-get-screen"></a><h3>cairo_xlib_surface_get_screen ()</h3>
|
387
|
+
<pre class="programlisting"><span class="returnvalue">Screen</span> *
|
388
|
+
cairo_xlib_surface_get_screen (<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>);</pre>
|
389
|
+
<p>Get the X Screen for the underlying X Drawable.</p>
|
390
|
+
<div class="refsect3">
|
391
|
+
<a name="id-1.5.13.7.6.5"></a><h4>Parameters</h4>
|
392
|
+
<div class="informaltable"><table width="100%" border="0">
|
393
|
+
<colgroup>
|
394
|
+
<col width="150px" class="parameters_name">
|
395
|
+
<col class="parameters_description">
|
396
|
+
<col width="200px" class="parameters_annotations">
|
397
|
+
</colgroup>
|
398
|
+
<tbody><tr>
|
399
|
+
<td class="parameter_name"><p>surface</p></td>
|
400
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
401
|
+
<td class="parameter_annotations"> </td>
|
402
|
+
</tr></tbody>
|
282
403
|
</table></div>
|
404
|
+
</div>
|
405
|
+
<div class="refsect3">
|
406
|
+
<a name="id-1.5.13.7.6.6"></a><h4>Returns</h4>
|
407
|
+
<p> the screen.</p>
|
408
|
+
<p></p>
|
409
|
+
</div>
|
283
410
|
<p class="since">Since 1.2</p>
|
284
411
|
</div>
|
285
412
|
<hr>
|
286
413
|
<div class="refsect2">
|
287
|
-
<a name="cairo-xlib-surface-set-drawable"></a><h3>cairo_xlib_surface_set_drawable
|
288
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
<
|
293
|
-
Informs cairo of a new X Drawable underlying the
|
414
|
+
<a name="cairo-xlib-surface-set-drawable"></a><h3>cairo_xlib_surface_set_drawable ()</h3>
|
415
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
416
|
+
cairo_xlib_surface_set_drawable (<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>,
|
417
|
+
<em class="parameter"><code><span class="type">Drawable</span> drawable</code></em>,
|
418
|
+
<em class="parameter"><code><span class="type">int</span> width</code></em>,
|
419
|
+
<em class="parameter"><code><span class="type">int</span> height</code></em>);</pre>
|
420
|
+
<p>Informs cairo of a new X Drawable underlying the
|
294
421
|
surface. The drawable must match the display, screen
|
295
422
|
and format of the existing drawable or the application
|
296
423
|
will get X protocol errors and will probably terminate.
|
297
424
|
No checks are done by this function to ensure this
|
298
|
-
compatibility
|
299
|
-
|
300
|
-
<
|
301
|
-
<
|
425
|
+
compatibility.</p>
|
426
|
+
<div class="refsect3">
|
427
|
+
<a name="id-1.5.13.7.7.5"></a><h4>Parameters</h4>
|
428
|
+
<div class="informaltable"><table width="100%" border="0">
|
429
|
+
<colgroup>
|
430
|
+
<col width="150px" class="parameters_name">
|
431
|
+
<col class="parameters_description">
|
432
|
+
<col width="200px" class="parameters_annotations">
|
433
|
+
</colgroup>
|
302
434
|
<tbody>
|
303
435
|
<tr>
|
304
|
-
<td
|
305
|
-
<td>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend</td>
|
436
|
+
<td class="parameter_name"><p>surface</p></td>
|
437
|
+
<td class="parameter_description"><p>a <a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend</p></td>
|
438
|
+
<td class="parameter_annotations"> </td>
|
306
439
|
</tr>
|
307
440
|
<tr>
|
308
|
-
<td
|
309
|
-
<td>the new drawable for the surface</td>
|
441
|
+
<td class="parameter_name"><p>drawable</p></td>
|
442
|
+
<td class="parameter_description"><p>the new drawable for the surface</p></td>
|
443
|
+
<td class="parameter_annotations"> </td>
|
310
444
|
</tr>
|
311
445
|
<tr>
|
312
|
-
<td
|
313
|
-
<td>the width of the new drawable</td>
|
446
|
+
<td class="parameter_name"><p>width</p></td>
|
447
|
+
<td class="parameter_description"><p>the width of the new drawable</p></td>
|
448
|
+
<td class="parameter_annotations"> </td>
|
314
449
|
</tr>
|
315
450
|
<tr>
|
316
|
-
<td
|
317
|
-
<td>the height of the new drawable</td>
|
451
|
+
<td class="parameter_name"><p>height</p></td>
|
452
|
+
<td class="parameter_description"><p>the height of the new drawable</p></td>
|
453
|
+
<td class="parameter_annotations"> </td>
|
318
454
|
</tr>
|
319
455
|
</tbody>
|
320
456
|
</table></div>
|
457
|
+
</div>
|
321
458
|
<p class="since">Since 1.0</p>
|
322
459
|
</div>
|
323
460
|
<hr>
|
324
461
|
<div class="refsect2">
|
325
|
-
<a name="cairo-xlib-surface-get-drawable"></a><h3>cairo_xlib_surface_get_drawable
|
326
|
-
<pre class="programlisting"><span class="returnvalue">Drawable</span>
|
327
|
-
<
|
328
|
-
Get the underlying X Drawable used for the surface
|
329
|
-
|
330
|
-
<
|
331
|
-
<
|
332
|
-
<
|
333
|
-
<
|
334
|
-
<
|
335
|
-
<
|
336
|
-
</
|
337
|
-
|
338
|
-
<
|
339
|
-
<td
|
340
|
-
<td>
|
341
|
-
</tr>
|
342
|
-
</tbody>
|
462
|
+
<a name="cairo-xlib-surface-get-drawable"></a><h3>cairo_xlib_surface_get_drawable ()</h3>
|
463
|
+
<pre class="programlisting"><span class="returnvalue">Drawable</span>
|
464
|
+
cairo_xlib_surface_get_drawable (<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>);</pre>
|
465
|
+
<p>Get the underlying X Drawable used for the surface.</p>
|
466
|
+
<div class="refsect3">
|
467
|
+
<a name="id-1.5.13.7.8.5"></a><h4>Parameters</h4>
|
468
|
+
<div class="informaltable"><table width="100%" border="0">
|
469
|
+
<colgroup>
|
470
|
+
<col width="150px" class="parameters_name">
|
471
|
+
<col class="parameters_description">
|
472
|
+
<col width="200px" class="parameters_annotations">
|
473
|
+
</colgroup>
|
474
|
+
<tbody><tr>
|
475
|
+
<td class="parameter_name"><p>surface</p></td>
|
476
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
477
|
+
<td class="parameter_annotations"> </td>
|
478
|
+
</tr></tbody>
|
343
479
|
</table></div>
|
480
|
+
</div>
|
481
|
+
<div class="refsect3">
|
482
|
+
<a name="id-1.5.13.7.8.6"></a><h4>Returns</h4>
|
483
|
+
<p> the drawable.</p>
|
484
|
+
<p></p>
|
485
|
+
</div>
|
344
486
|
<p class="since">Since 1.2</p>
|
345
487
|
</div>
|
346
488
|
<hr>
|
347
489
|
<div class="refsect2">
|
348
|
-
<a name="cairo-xlib-surface-get-visual"></a><h3>cairo_xlib_surface_get_visual
|
349
|
-
<pre class="programlisting"><span class="returnvalue">Visual</span>
|
350
|
-
<
|
351
|
-
Gets the X Visual associated with <em class="parameter"><code>surface</code></em
|
352
|
-
|
353
|
-
|
354
|
-
|
355
|
-
</
|
356
|
-
|
357
|
-
<
|
358
|
-
<
|
359
|
-
<
|
360
|
-
<
|
361
|
-
<
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
<
|
366
|
-
<td
|
367
|
-
<
|
368
|
-
</
|
369
|
-
</tbody>
|
490
|
+
<a name="cairo-xlib-surface-get-visual"></a><h3>cairo_xlib_surface_get_visual ()</h3>
|
491
|
+
<pre class="programlisting"><span class="returnvalue">Visual</span> *
|
492
|
+
cairo_xlib_surface_get_visual (<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>);</pre>
|
493
|
+
<p>Gets the X Visual associated with <em class="parameter"><code>surface</code></em>
|
494
|
+
, suitable for use with the
|
495
|
+
underlying X Drawable. If <em class="parameter"><code>surface</code></em>
|
496
|
+
was created by
|
497
|
+
<a class="link" href="cairo-XLib-Surfaces.html#cairo-xlib-surface-create" title="cairo_xlib_surface_create ()"><code class="function">cairo_xlib_surface_create()</code></a>, the return value is the Visual passed to that
|
498
|
+
constructor.</p>
|
499
|
+
<div class="refsect3">
|
500
|
+
<a name="id-1.5.13.7.9.5"></a><h4>Parameters</h4>
|
501
|
+
<div class="informaltable"><table width="100%" border="0">
|
502
|
+
<colgroup>
|
503
|
+
<col width="150px" class="parameters_name">
|
504
|
+
<col class="parameters_description">
|
505
|
+
<col width="200px" class="parameters_annotations">
|
506
|
+
</colgroup>
|
507
|
+
<tbody><tr>
|
508
|
+
<td class="parameter_name"><p>surface</p></td>
|
509
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
510
|
+
<td class="parameter_annotations"> </td>
|
511
|
+
</tr></tbody>
|
370
512
|
</table></div>
|
513
|
+
</div>
|
514
|
+
<div class="refsect3">
|
515
|
+
<a name="id-1.5.13.7.9.6"></a><h4>Returns</h4>
|
516
|
+
<p> the Visual or <code class="literal">NULL</code> if there is no appropriate Visual for
|
517
|
+
<em class="parameter"><code>surface</code></em>
|
518
|
+
.</p>
|
519
|
+
<p></p>
|
520
|
+
</div>
|
371
521
|
<p class="since">Since 1.2</p>
|
372
522
|
</div>
|
373
523
|
<hr>
|
374
524
|
<div class="refsect2">
|
375
|
-
<a name="cairo-xlib-surface-get-width"></a><h3>cairo_xlib_surface_get_width
|
376
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
377
|
-
<
|
378
|
-
Get the width of the X Drawable underlying the surface in pixels
|
379
|
-
|
380
|
-
<
|
381
|
-
<
|
382
|
-
<
|
383
|
-
<
|
384
|
-
<
|
385
|
-
<
|
386
|
-
</
|
387
|
-
|
388
|
-
<
|
389
|
-
<td
|
390
|
-
<td>
|
391
|
-
</tr>
|
392
|
-
</tbody>
|
525
|
+
<a name="cairo-xlib-surface-get-width"></a><h3>cairo_xlib_surface_get_width ()</h3>
|
526
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
527
|
+
cairo_xlib_surface_get_width (<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>);</pre>
|
528
|
+
<p>Get the width of the X Drawable underlying the surface in pixels.</p>
|
529
|
+
<div class="refsect3">
|
530
|
+
<a name="id-1.5.13.7.10.5"></a><h4>Parameters</h4>
|
531
|
+
<div class="informaltable"><table width="100%" border="0">
|
532
|
+
<colgroup>
|
533
|
+
<col width="150px" class="parameters_name">
|
534
|
+
<col class="parameters_description">
|
535
|
+
<col width="200px" class="parameters_annotations">
|
536
|
+
</colgroup>
|
537
|
+
<tbody><tr>
|
538
|
+
<td class="parameter_name"><p>surface</p></td>
|
539
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
540
|
+
<td class="parameter_annotations"> </td>
|
541
|
+
</tr></tbody>
|
393
542
|
</table></div>
|
543
|
+
</div>
|
544
|
+
<div class="refsect3">
|
545
|
+
<a name="id-1.5.13.7.10.6"></a><h4>Returns</h4>
|
546
|
+
<p> the width of the surface in pixels.</p>
|
547
|
+
<p></p>
|
548
|
+
</div>
|
394
549
|
<p class="since">Since 1.2</p>
|
395
550
|
</div>
|
396
551
|
<hr>
|
397
552
|
<div class="refsect2">
|
398
|
-
<a name="cairo-xlib-surface-get-height"></a><h3>cairo_xlib_surface_get_height
|
399
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
400
|
-
<
|
401
|
-
Get the height of the X Drawable underlying the surface in pixels
|
402
|
-
|
403
|
-
<
|
404
|
-
<
|
405
|
-
<
|
406
|
-
<
|
407
|
-
<
|
408
|
-
<
|
409
|
-
</
|
410
|
-
|
411
|
-
<
|
412
|
-
<td
|
413
|
-
<td>
|
414
|
-
</tr>
|
415
|
-
</tbody>
|
553
|
+
<a name="cairo-xlib-surface-get-height"></a><h3>cairo_xlib_surface_get_height ()</h3>
|
554
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
555
|
+
cairo_xlib_surface_get_height (<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>);</pre>
|
556
|
+
<p>Get the height of the X Drawable underlying the surface in pixels.</p>
|
557
|
+
<div class="refsect3">
|
558
|
+
<a name="id-1.5.13.7.11.5"></a><h4>Parameters</h4>
|
559
|
+
<div class="informaltable"><table width="100%" border="0">
|
560
|
+
<colgroup>
|
561
|
+
<col width="150px" class="parameters_name">
|
562
|
+
<col class="parameters_description">
|
563
|
+
<col width="200px" class="parameters_annotations">
|
564
|
+
</colgroup>
|
565
|
+
<tbody><tr>
|
566
|
+
<td class="parameter_name"><p>surface</p></td>
|
567
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
568
|
+
<td class="parameter_annotations"> </td>
|
569
|
+
</tr></tbody>
|
416
570
|
</table></div>
|
571
|
+
</div>
|
572
|
+
<div class="refsect3">
|
573
|
+
<a name="id-1.5.13.7.11.6"></a><h4>Returns</h4>
|
574
|
+
<p> the height of the surface in pixels.</p>
|
575
|
+
<p></p>
|
576
|
+
</div>
|
417
577
|
<p class="since">Since 1.2</p>
|
418
578
|
</div>
|
419
579
|
<hr>
|
420
580
|
<div class="refsect2">
|
421
|
-
<a name="cairo-xlib-surface-get-depth"></a><h3>cairo_xlib_surface_get_depth
|
422
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
423
|
-
<
|
424
|
-
Get the number of bits used to represent each pixel value
|
425
|
-
|
426
|
-
<
|
427
|
-
<
|
428
|
-
<
|
429
|
-
<
|
430
|
-
<
|
431
|
-
<
|
432
|
-
</
|
433
|
-
|
434
|
-
<
|
435
|
-
<td
|
436
|
-
<td>
|
437
|
-
</tr>
|
438
|
-
</tbody>
|
581
|
+
<a name="cairo-xlib-surface-get-depth"></a><h3>cairo_xlib_surface_get_depth ()</h3>
|
582
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
583
|
+
cairo_xlib_surface_get_depth (<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>);</pre>
|
584
|
+
<p>Get the number of bits used to represent each pixel value.</p>
|
585
|
+
<div class="refsect3">
|
586
|
+
<a name="id-1.5.13.7.12.5"></a><h4>Parameters</h4>
|
587
|
+
<div class="informaltable"><table width="100%" border="0">
|
588
|
+
<colgroup>
|
589
|
+
<col width="150px" class="parameters_name">
|
590
|
+
<col class="parameters_description">
|
591
|
+
<col width="200px" class="parameters_annotations">
|
592
|
+
</colgroup>
|
593
|
+
<tbody><tr>
|
594
|
+
<td class="parameter_name"><p>surface</p></td>
|
595
|
+
<td class="parameter_description"><p>a <span class="type">cairo_xlib_surface_t</span></p></td>
|
596
|
+
<td class="parameter_annotations"> </td>
|
597
|
+
</tr></tbody>
|
439
598
|
</table></div>
|
599
|
+
</div>
|
600
|
+
<div class="refsect3">
|
601
|
+
<a name="id-1.5.13.7.12.6"></a><h4>Returns</h4>
|
602
|
+
<p> the depth of the surface in bits.</p>
|
603
|
+
<p></p>
|
604
|
+
</div>
|
440
605
|
<p class="since">Since 1.2</p>
|
441
606
|
</div>
|
442
607
|
<hr>
|
443
608
|
<div class="refsect2">
|
444
|
-
<a name="cairo-xlib-device-debug-cap-xrender-version"></a><h3>cairo_xlib_device_debug_cap_xrender_version
|
445
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
<
|
450
|
-
Restricts all future Xlib surfaces for this devices to the specified version
|
609
|
+
<a name="cairo-xlib-device-debug-cap-xrender-version"></a><h3>cairo_xlib_device_debug_cap_xrender_version ()</h3>
|
610
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
611
|
+
cairo_xlib_device_debug_cap_xrender_version
|
612
|
+
(<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> *device</code></em>,
|
613
|
+
<em class="parameter"><code><span class="type">int</span> major_version</code></em>,
|
614
|
+
<em class="parameter"><code><span class="type">int</span> minor_version</code></em>);</pre>
|
615
|
+
<p>Restricts all future Xlib surfaces for this devices to the specified version
|
451
616
|
of the RENDER extension. This function exists solely for debugging purpose.
|
452
617
|
It lets you find out how cairo would behave with an older version of
|
453
|
-
the RENDER extension
|
454
|
-
|
455
|
-
<
|
456
|
-
|
457
|
-
|
458
|
-
<
|
459
|
-
<col
|
618
|
+
the RENDER extension.</p>
|
619
|
+
<p>Use the special values -1 and -1 for disabling the RENDER extension.</p>
|
620
|
+
<div class="refsect3">
|
621
|
+
<a name="id-1.5.13.7.13.6"></a><h4>Parameters</h4>
|
622
|
+
<div class="informaltable"><table width="100%" border="0">
|
623
|
+
<colgroup>
|
624
|
+
<col width="150px" class="parameters_name">
|
625
|
+
<col class="parameters_description">
|
626
|
+
<col width="200px" class="parameters_annotations">
|
627
|
+
</colgroup>
|
460
628
|
<tbody>
|
461
629
|
<tr>
|
462
|
-
<td
|
463
|
-
<td>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</td>
|
630
|
+
<td class="parameter_name"><p>device</p></td>
|
631
|
+
<td class="parameter_description"><p>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</p></td>
|
632
|
+
<td class="parameter_annotations"> </td>
|
464
633
|
</tr>
|
465
634
|
<tr>
|
466
|
-
<td
|
467
|
-
<td>major version to restrict to</td>
|
635
|
+
<td class="parameter_name"><p>major_version</p></td>
|
636
|
+
<td class="parameter_description"><p>major version to restrict to</p></td>
|
637
|
+
<td class="parameter_annotations"> </td>
|
468
638
|
</tr>
|
469
639
|
<tr>
|
470
|
-
<td
|
471
|
-
<td>minor version to restrict to</td>
|
640
|
+
<td class="parameter_name"><p>minor_version</p></td>
|
641
|
+
<td class="parameter_description"><p>minor version to restrict to</p></td>
|
642
|
+
<td class="parameter_annotations"> </td>
|
472
643
|
</tr>
|
473
644
|
</tbody>
|
474
645
|
</table></div>
|
646
|
+
</div>
|
475
647
|
<p class="since">Since 1.12</p>
|
476
648
|
</div>
|
477
649
|
<hr>
|
478
650
|
<div class="refsect2">
|
479
|
-
<a name="cairo-xlib-device-debug-get-precision"></a><h3>cairo_xlib_device_debug_get_precision
|
480
|
-
<pre class="programlisting"><span class="returnvalue">int</span>
|
481
|
-
|
482
|
-
<p>
|
483
|
-
|
484
|
-
</
|
485
|
-
<div class="
|
486
|
-
<
|
487
|
-
<
|
488
|
-
<
|
489
|
-
<
|
490
|
-
|
491
|
-
|
492
|
-
<
|
493
|
-
<td><p
|
494
|
-
<td>
|
495
|
-
</tr>
|
496
|
-
</tbody>
|
651
|
+
<a name="cairo-xlib-device-debug-get-precision"></a><h3>cairo_xlib_device_debug_get_precision ()</h3>
|
652
|
+
<pre class="programlisting"><span class="returnvalue">int</span>
|
653
|
+
cairo_xlib_device_debug_get_precision (<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> *device</code></em>);</pre>
|
654
|
+
<p>Get the Xrender precision mode.</p>
|
655
|
+
<div class="refsect3">
|
656
|
+
<a name="id-1.5.13.7.14.5"></a><h4>Parameters</h4>
|
657
|
+
<div class="informaltable"><table width="100%" border="0">
|
658
|
+
<colgroup>
|
659
|
+
<col width="150px" class="parameters_name">
|
660
|
+
<col class="parameters_description">
|
661
|
+
<col width="200px" class="parameters_annotations">
|
662
|
+
</colgroup>
|
663
|
+
<tbody><tr>
|
664
|
+
<td class="parameter_name"><p>device</p></td>
|
665
|
+
<td class="parameter_description"><p>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</p></td>
|
666
|
+
<td class="parameter_annotations"> </td>
|
667
|
+
</tr></tbody>
|
497
668
|
</table></div>
|
669
|
+
</div>
|
670
|
+
<div class="refsect3">
|
671
|
+
<a name="id-1.5.13.7.14.6"></a><h4>Returns</h4>
|
672
|
+
<p> the render precision mode</p>
|
673
|
+
<p></p>
|
674
|
+
</div>
|
498
675
|
<p class="since">Since 1.12</p>
|
499
676
|
</div>
|
500
677
|
<hr>
|
501
678
|
<div class="refsect2">
|
502
|
-
<a name="cairo-xlib-device-debug-set-precision"></a><h3>cairo_xlib_device_debug_set_precision
|
503
|
-
<pre class="programlisting"><span class="returnvalue">void</span>
|
504
|
-
|
505
|
-
|
506
|
-
<p>
|
507
|
-
|
508
|
-
|
509
|
-
</
|
510
|
-
<div class="
|
511
|
-
<
|
679
|
+
<a name="cairo-xlib-device-debug-set-precision"></a><h3>cairo_xlib_device_debug_set_precision ()</h3>
|
680
|
+
<pre class="programlisting"><span class="returnvalue">void</span>
|
681
|
+
cairo_xlib_device_debug_set_precision (<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> *device</code></em>,
|
682
|
+
<em class="parameter"><code><span class="type">int</span> precision</code></em>);</pre>
|
683
|
+
<p>Render supports two modes of precision when rendering trapezoids. Set
|
684
|
+
the precision to the desired mode.</p>
|
685
|
+
<div class="refsect3">
|
686
|
+
<a name="id-1.5.13.7.15.5"></a><h4>Parameters</h4>
|
687
|
+
<div class="informaltable"><table width="100%" border="0">
|
688
|
+
<colgroup>
|
689
|
+
<col width="150px" class="parameters_name">
|
690
|
+
<col class="parameters_description">
|
691
|
+
<col width="200px" class="parameters_annotations">
|
692
|
+
</colgroup>
|
512
693
|
<tbody>
|
513
694
|
<tr>
|
514
|
-
<td
|
515
|
-
<td>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</td>
|
695
|
+
<td class="parameter_name"><p>device</p></td>
|
696
|
+
<td class="parameter_description"><p>a <a class="link" href="cairo-cairo-device-t.html#cairo-device-t" title="cairo_device_t"><span class="type">cairo_device_t</span></a> for the Xlib backend</p></td>
|
697
|
+
<td class="parameter_annotations"> </td>
|
516
698
|
</tr>
|
517
699
|
<tr>
|
518
|
-
<td
|
519
|
-
<td>the precision to use</td>
|
700
|
+
<td class="parameter_name"><p>precision</p></td>
|
701
|
+
<td class="parameter_description"><p>the precision to use</p></td>
|
702
|
+
<td class="parameter_annotations"> </td>
|
520
703
|
</tr>
|
521
704
|
</tbody>
|
522
705
|
</table></div>
|
706
|
+
</div>
|
523
707
|
<p class="since">Since 1.12</p>
|
524
708
|
</div>
|
525
709
|
</div>
|
526
710
|
<div class="refsect1">
|
711
|
+
<a name="cairo-XLib-Surfaces.other_details"></a><h2>Types and Values</h2>
|
712
|
+
<div class="refsect2">
|
713
|
+
<a name="CAIRO-HAS-XLIB-SURFACE:CAPS"></a><h3>CAIRO_HAS_XLIB_SURFACE</h3>
|
714
|
+
<pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
|
715
|
+
</pre>
|
716
|
+
<p>Defined if the Xlib surface backend is available.
|
717
|
+
This macro can be used to conditionally compile backend-specific code.</p>
|
718
|
+
<p class="since">Since 1.0</p>
|
719
|
+
</div>
|
720
|
+
</div>
|
721
|
+
<div class="refsect1">
|
527
722
|
<a name="cairo-XLib-Surfaces.see-also"></a><h2>See Also</h2>
|
528
|
-
<a class="link" href="cairo-cairo-surface-t.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
|
723
|
+
<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>
|
529
724
|
</div>
|
530
725
|
</div>
|
531
726
|
<div class="footer">
|
532
727
|
<hr>
|
533
|
-
Generated by GTK-Doc V1.
|
728
|
+
Generated by GTK-Doc V1.20</div>
|
534
729
|
</body>
|
535
730
|
</html>
|