cairo 1.8.3-x86-mingw32 → 1.8.4-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of cairo might be problematic. Click here for more details.

Files changed (126) hide show
  1. data/NEWS +14 -0
  2. data/Rakefile +2 -2
  3. data/ext/cairo/rb_cairo.c +1 -1
  4. data/extconf.rb +11 -11
  5. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/freetype6.dll +0 -0
  6. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libcairo-2.dll +0 -0
  7. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libfontconfig-1.dll +0 -0
  8. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/libpng14-14.dll +0 -0
  9. data/home/kou/work/ruby/rcairo.win32/vendor/local/bin/zlib1.dll +0 -0
  10. data/home/kou/work/ruby/rcairo.win32/vendor/local/etc/fonts/fonts.conf +151 -0
  11. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-deprecated.h +138 -0
  12. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-features.h +20 -0
  13. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-ft.h +75 -0
  14. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-pdf.h +68 -0
  15. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-ps.h +114 -0
  16. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-svg.h +82 -0
  17. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-version.h +8 -0
  18. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo-win32.h +112 -0
  19. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/cairo/cairo.h +2328 -0
  20. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng14/png.h +2701 -0
  21. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/libpng14/pngconf.h +1525 -0
  22. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/png.h +2701 -0
  23. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/pngconf.h +1525 -0
  24. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/zconf.h +461 -0
  25. data/home/kou/work/ruby/rcairo.win32/vendor/local/include/zlib.h +1589 -0
  26. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/cairo.def +278 -0
  27. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/cairo.lib +0 -0
  28. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libcairo.dll.a +0 -0
  29. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng.def +192 -0
  30. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng.lib +0 -0
  31. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libpng14.dll.a +0 -0
  32. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/libz.dll.a +0 -0
  33. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-ft.pc +12 -0
  34. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-pdf.pc +12 -0
  35. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-png.pc +12 -0
  36. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-ps.pc +12 -0
  37. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-svg.pc +12 -0
  38. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-win32-font.pc +12 -0
  39. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo-win32.pc +12 -0
  40. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/cairo.pc +13 -0
  41. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/libpng.pc +11 -0
  42. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/pkgconfig/libpng14.pc +11 -0
  43. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/zdll.lib +0 -0
  44. data/home/kou/work/ruby/rcairo.win32/vendor/local/lib/zlib.def +67 -0
  45. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/cairo-dev_1.8.10-4_win32.mft +76 -0
  46. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/cairo_1.8.10-4_win32.mft +5 -0
  47. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/fontconfig_2.8.0-2_win32.mft +3 -0
  48. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/freetype_2.4.2-1_win32.mft +2 -0
  49. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/libpng-dev_1.4.3-1_win32.mft +15 -0
  50. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/libpng_1.4.3-1_win32.mft +2 -0
  51. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/zlib-dev_1.2.5-2_win32.mft +8 -0
  52. data/home/kou/work/ruby/rcairo.win32/vendor/local/manifest/zlib_1.2.5-2_win32.mft +2 -0
  53. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING +32 -0
  54. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING-LGPL-2.1 +510 -0
  55. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/doc/cairo_1.8.10-4_win32/COPYING-MPL-1.1 +470 -0
  56. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-errors.html +132 -0
  57. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-fonts.html +63 -0
  58. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-memory.html +133 -0
  59. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-overloading.html +131 -0
  60. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-path.html +127 -0
  61. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-patterns.html +67 -0
  62. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-return-values.html +130 -0
  63. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-streams.html +102 -0
  64. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/bindings-surfaces.html +103 -0
  65. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-context.html +2643 -0
  66. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-drawing.html +57 -0
  67. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-error-status.html +360 -0
  68. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-font-face.html +408 -0
  69. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-font-options.html +678 -0
  70. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-fonts.html +63 -0
  71. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-ft-font.html +319 -0
  72. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-image-surface.html +473 -0
  73. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-matrix.html +596 -0
  74. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-paths.html +1274 -0
  75. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-pattern.html +1485 -0
  76. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-pdf-surface.html +238 -0
  77. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-png-functions.html +341 -0
  78. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-ps-surface.html +622 -0
  79. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-font.html +151 -0
  80. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-quartz-surface.html +219 -0
  81. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-scaled-font.html +1023 -0
  82. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-support.html +54 -0
  83. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-surface.html +1026 -0
  84. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-surfaces.html +69 -0
  85. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-svg-surface.html +321 -0
  86. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-text.html +1222 -0
  87. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-transformations.html +436 -0
  88. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-types.html +133 -0
  89. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-user-font.html +735 -0
  90. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-version-info.html +345 -0
  91. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-win32-font.html +358 -0
  92. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-win32-surface.html +312 -0
  93. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo-xlib-surface.html +492 -0
  94. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp +417 -0
  95. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/cairo.devhelp2 +542 -0
  96. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/home.png +0 -0
  97. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.2.html +141 -0
  98. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.4.html +109 -0
  99. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.6.html +71 -0
  100. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-1.8.html +107 -0
  101. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index-all.html +759 -0
  102. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index.html +144 -0
  103. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/index.sgml +478 -0
  104. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/language-bindings.html +83 -0
  105. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/left.png +0 -0
  106. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/right.png +0 -0
  107. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/style.css +167 -0
  108. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/gtk-doc/html/cairo/up.png +0 -0
  109. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man3/libpng.3 +4455 -0
  110. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man3/libpngpf.3 +808 -0
  111. data/home/kou/work/ruby/rcairo.win32/vendor/local/share/man/man5/png.5 +74 -0
  112. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.log +920 -0
  113. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/cairo_1.8.10-4_win32.sh +76 -0
  114. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.log +272 -0
  115. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/libpng_1.4.3-1_win32.sh +71 -0
  116. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.log +42 -0
  117. data/home/kou/work/ruby/rcairo.win32/vendor/local/src/tml/packaging/zlib_1.2.5-2_win32.sh +189 -0
  118. data/lib/1.8/cairo.so +0 -0
  119. data/lib/1.9/cairo.so +0 -0
  120. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/fake.rb +0 -0
  121. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/mkmf.rb +0 -0
  122. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.8.7/rbconfig.rb +0 -0
  123. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/fake.rb +0 -0
  124. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/mkmf.rb +0 -0
  125. data/tmp/{x86-mingw32 → i386-mingw32}/cairo/1.9.2/rbconfig.rb +1 -1
  126. metadata +126 -40
@@ -0,0 +1,312 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>Win32 Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-ps-surface.html" title="PostScript Surfaces">
10
+ <link rel="next" href="cairo-svg-surface.html" title="SVG Surfaces">
11
+ <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
+ <tr valign="middle">
27
+ <td><a accesskey="p" href="cairo-ps-surface.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
31
+ <td><a accesskey="n" href="cairo-svg-surface.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
+ </tr>
33
+ <tr><td colspan="5" class="shortcuts">
34
+ <a href="#cairo-win32-surface.synopsis" class="shortcut">Top</a>
35
+  | 
36
+ <a href="#cairo-win32-surface.description" class="shortcut">Description</a>
37
+ </td></tr>
38
+ </table>
39
+ <div class="refentry" title="Win32 Surfaces">
40
+ <a name="cairo-win32-surface"></a><div class="titlepage"></div>
41
+ <div class="refnamediv"><table width="100%"><tr>
42
+ <td valign="top">
43
+ <h2><span class="refentrytitle"><a name="cairo-win32-surface.top_of_page"></a>Win32 Surfaces</span></h2>
44
+ <p>Win32 Surfaces — Microsoft Windows surface support</p>
45
+ </td>
46
+ <td valign="top" align="right"></td>
47
+ </tr></table></div>
48
+ <div class="refsynopsisdiv" title="Synopsis">
49
+ <a name="cairo-win32-surface.synopsis"></a><h2>Synopsis</h2>
50
+ <pre class="synopsis">
51
+ #define <a class="link" href="cairo-win32-surface.html#CAIRO-HAS-WIN32-SURFACE--CAPS" title="CAIRO_HAS_WIN32_SURFACE">CAIRO_HAS_WIN32_SURFACE</a>
52
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-win32-surface.html#cairo-win32-surface-create" title="cairo_win32_surface_create ()">cairo_win32_surface_create</a> (HDC hdc);
53
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-win32-surface.html#cairo-win32-surface-create-with-dib" title="cairo_win32_surface_create_with_dib ()">cairo_win32_surface_create_with_dib</a> (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
54
+ int width,
55
+ int height);
56
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-win32-surface.html#cairo-win32-surface-create-with-ddb" title="cairo_win32_surface_create_with_ddb ()">cairo_win32_surface_create_with_ddb</a> (HDC hdc,
57
+ <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
58
+ int width,
59
+ int height);
60
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-win32-surface.html#cairo-win32-printing-surface-create" title="cairo_win32_printing_surface_create ()">cairo_win32_printing_surface_create</a> (HDC hdc);
61
+ HDC <a class="link" href="cairo-win32-surface.html#cairo-win32-surface-get-dc" title="cairo_win32_surface_get_dc ()">cairo_win32_surface_get_dc</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
62
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-win32-surface.html#cairo-win32-surface-get-image" title="cairo_win32_surface_get_image ()">cairo_win32_surface_get_image</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
63
+ </pre>
64
+ </div>
65
+ <div class="refsect1" title="Description">
66
+ <a name="cairo-win32-surface.description"></a><h2>Description</h2>
67
+ <p>
68
+ The Microsoft Windows surface is used to render cairo graphics to
69
+ Microsoft Windows windows, bitmaps, and printing device contexts.
70
+ </p>
71
+ <p>
72
+ The surface returned by <a class="link" href="cairo-win32-surface.html#cairo-win32-printing-surface-create" title="cairo_win32_printing_surface_create ()"><code class="function">cairo_win32_printing_surface_create()</code></a> is of surface
73
+ type <a class="link" href="cairo-surface.html#CAIRO-SURFACE-TYPE-WIN32-PRINTING--CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32_PRINTING</code></a> and is a multi-page vector surface
74
+ type.
75
+ </p>
76
+ <p>
77
+ The surface returned by the other win32 constructors is of surface type
78
+ <a class="link" href="cairo-surface.html#CAIRO-SURFACE-TYPE-WIN32--CAPS"><code class="literal">CAIRO_SURFACE_TYPE_WIN32</code></a> and is a raster surface type.
79
+ </p>
80
+ </div>
81
+ <div class="refsect1" title="Details">
82
+ <a name="cairo-win32-surface.details"></a><h2>Details</h2>
83
+ <div class="refsect2" title="CAIRO_HAS_WIN32_SURFACE">
84
+ <a name="CAIRO-HAS-WIN32-SURFACE--CAPS"></a><h3>CAIRO_HAS_WIN32_SURFACE</h3>
85
+ <pre class="programlisting">#define CAIRO_HAS_WIN32_SURFACE 1
86
+ </pre>
87
+ <p>
88
+ Defined if the Microsoft Windows surface backend is available.
89
+ This macro can be used to conditionally compile backend-specific code.
90
+ </p>
91
+ </div>
92
+ <hr>
93
+ <div class="refsect2" title="cairo_win32_surface_create ()">
94
+ <a name="cairo-win32-surface-create"></a><h3>cairo_win32_surface_create ()</h3>
95
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_win32_surface_create (HDC hdc);</pre>
96
+ <p>
97
+ Creates a cairo surface that targets the given DC. The DC will be
98
+ queried for its initial clip extents, and this will be used as the
99
+ size of the cairo surface. The resulting surface will always be of
100
+ format <a class="link" href="cairo-image-surface.html#CAIRO-FORMAT-RGB24--CAPS"><code class="literal">CAIRO_FORMAT_RGB24</code></a>; should you need another surface format,
101
+ you will need to create one through
102
+ <a class="link" href="cairo-win32-surface.html#cairo-win32-surface-create-with-dib" title="cairo_win32_surface_create_with_dib ()"><code class="function">cairo_win32_surface_create_with_dib()</code></a>.</p>
103
+ <p>
104
+ </p>
105
+ <div class="variablelist"><table border="0">
106
+ <col align="left" valign="top">
107
+ <tbody>
108
+ <tr>
109
+ <td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
110
+ <td> the DC to create a surface for
111
+ </td>
112
+ </tr>
113
+ <tr>
114
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
115
+ <td> the newly created surface
116
+ </td>
117
+ </tr>
118
+ </tbody>
119
+ </table></div>
120
+ </div>
121
+ <hr>
122
+ <div class="refsect2" title="cairo_win32_surface_create_with_dib ()">
123
+ <a name="cairo-win32-surface-create-with-dib"></a><h3>cairo_win32_surface_create_with_dib ()</h3>
124
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_win32_surface_create_with_dib (<a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
125
+ int width,
126
+ int height);</pre>
127
+ <p>
128
+ Creates a device-independent-bitmap surface not associated with
129
+ any particular existing surface or device context. The created
130
+ bitmap will be uninitialized.</p>
131
+ <p>
132
+ </p>
133
+ <div class="variablelist"><table border="0">
134
+ <col align="left" valign="top">
135
+ <tbody>
136
+ <tr>
137
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
138
+ <td> format of pixels in the surface to create
139
+ </td>
140
+ </tr>
141
+ <tr>
142
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
143
+ <td> width of the surface, in pixels
144
+ </td>
145
+ </tr>
146
+ <tr>
147
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
148
+ <td> height of the surface, in pixels
149
+ </td>
150
+ </tr>
151
+ <tr>
152
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
153
+ <td> the newly created surface
154
+
155
+ </td>
156
+ </tr>
157
+ </tbody>
158
+ </table></div>
159
+ <p class="since">Since 1.2</p>
160
+ </div>
161
+ <hr>
162
+ <div class="refsect2" title="cairo_win32_surface_create_with_ddb ()">
163
+ <a name="cairo-win32-surface-create-with-ddb"></a><h3>cairo_win32_surface_create_with_ddb ()</h3>
164
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_win32_surface_create_with_ddb (HDC hdc,
165
+ <a class="link" href="cairo-image-surface.html#cairo-format-t" title="enum cairo_format_t">cairo_format_t</a> format,
166
+ int width,
167
+ int height);</pre>
168
+ <p>
169
+ Creates a device-independent-bitmap surface not associated with
170
+ any particular existing surface or device context. The created
171
+ bitmap will be uninitialized.</p>
172
+ <p>
173
+ </p>
174
+ <div class="variablelist"><table border="0">
175
+ <col align="left" valign="top">
176
+ <tbody>
177
+ <tr>
178
+ <td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
179
+ <td> the DC to create a surface for
180
+ </td>
181
+ </tr>
182
+ <tr>
183
+ <td><p><span class="term"><em class="parameter"><code>format</code></em> :</span></p></td>
184
+ <td> format of pixels in the surface to create
185
+ </td>
186
+ </tr>
187
+ <tr>
188
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
189
+ <td> width of the surface, in pixels
190
+ </td>
191
+ </tr>
192
+ <tr>
193
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
194
+ <td> height of the surface, in pixels
195
+ </td>
196
+ </tr>
197
+ <tr>
198
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
199
+ <td> the newly created surface
200
+
201
+ </td>
202
+ </tr>
203
+ </tbody>
204
+ </table></div>
205
+ <p class="since">Since 1.4</p>
206
+ </div>
207
+ <hr>
208
+ <div class="refsect2" title="cairo_win32_printing_surface_create ()">
209
+ <a name="cairo-win32-printing-surface-create"></a><h3>cairo_win32_printing_surface_create ()</h3>
210
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_win32_printing_surface_create (HDC hdc);</pre>
211
+ <p>
212
+ Creates a cairo surface that targets the given DC. The DC will be
213
+ queried for its initial clip extents, and this will be used as the
214
+ size of the cairo surface. The DC should be a printing DC;
215
+ antialiasing will be ignored, and GDI will be used as much as
216
+ possible to draw to the surface.
217
+ </p>
218
+ <p>
219
+ The returned surface will be wrapped using the paginated surface to
220
+ provide correct complex rendering behaviour; <code class="function">show_page()</code> and
221
+ associated methods must be used for correct output.</p>
222
+ <p>
223
+ </p>
224
+ <div class="variablelist"><table border="0">
225
+ <col align="left" valign="top">
226
+ <tbody>
227
+ <tr>
228
+ <td><p><span class="term"><em class="parameter"><code>hdc</code></em> :</span></p></td>
229
+ <td> the DC to create a surface for
230
+ </td>
231
+ </tr>
232
+ <tr>
233
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
234
+ <td> the newly created surface
235
+
236
+ </td>
237
+ </tr>
238
+ </tbody>
239
+ </table></div>
240
+ <p class="since">Since 1.6</p>
241
+ </div>
242
+ <hr>
243
+ <div class="refsect2" title="cairo_win32_surface_get_dc ()">
244
+ <a name="cairo-win32-surface-get-dc"></a><h3>cairo_win32_surface_get_dc ()</h3>
245
+ <pre class="programlisting">HDC cairo_win32_surface_get_dc (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
246
+ <p>
247
+ Returns the HDC associated with this surface, or <code class="literal">NULL</code> if none.
248
+ Also returns <code class="literal">NULL</code> if the surface is not a win32 surface.</p>
249
+ <p>
250
+ </p>
251
+ <div class="variablelist"><table border="0">
252
+ <col align="left" valign="top">
253
+ <tbody>
254
+ <tr>
255
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
256
+ <td> a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
257
+ </td>
258
+ </tr>
259
+ <tr>
260
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
261
+ <td> HDC or <code class="literal">NULL</code> if no HDC available.
262
+
263
+ </td>
264
+ </tr>
265
+ </tbody>
266
+ </table></div>
267
+ <p class="since">Since 1.2</p>
268
+ </div>
269
+ <hr>
270
+ <div class="refsect2" title="cairo_win32_surface_get_image ()">
271
+ <a name="cairo-win32-surface-get-image"></a><h3>cairo_win32_surface_get_image ()</h3>
272
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_win32_surface_get_image (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
273
+ <p>
274
+ Returns a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> image surface that refers to the same bits
275
+ as the DIB of the Win32 surface. If the passed-in win32 surface
276
+ is not a DIB surface, <code class="literal">NULL</code> is returned.</p>
277
+ <p>
278
+ </p>
279
+ <div class="variablelist"><table border="0">
280
+ <col align="left" valign="top">
281
+ <tbody>
282
+ <tr>
283
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
284
+ <td> a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>
285
+ </td>
286
+ </tr>
287
+ <tr>
288
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
289
+ <td> a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> (owned by the win32 <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a>),
290
+ or <code class="literal">NULL</code> if the win32 surface is not a DIB.
291
+
292
+ </td>
293
+ </tr>
294
+ </tbody>
295
+ </table></div>
296
+ <p class="since">Since 1.4</p>
297
+ </div>
298
+ </div>
299
+ <div class="refsect1" title="See Also">
300
+ <a name="cairo-win32-surface.see-also"></a><h2>See Also</h2>
301
+ <p>
302
+ </p>
303
+ <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></li></ul></div>
304
+ <p>
305
+ </p>
306
+ </div>
307
+ </div>
308
+ <div class="footer">
309
+ <hr>
310
+ Generated by GTK-Doc V1.11</div>
311
+ </body>
312
+ </html>
@@ -0,0 +1,492 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
+ <html>
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5
+ <title>XLib Surfaces</title>
6
+ <meta name="generator" content="DocBook XSL Stylesheets V1.75.2">
7
+ <link rel="home" href="index.html" title="Cairo: A Vector Graphics Library">
8
+ <link rel="up" href="cairo-surfaces.html" title="Surfaces">
9
+ <link rel="prev" href="cairo-quartz-surface.html" title="Quartz Surfaces">
10
+ <link rel="next" href="cairo-support.html" title="Utilities">
11
+ <meta name="generator" content="GTK-Doc V1.11 (XML mode)">
12
+ <link rel="stylesheet" href="style.css" type="text/css">
13
+ <link rel="chapter" href="cairo-drawing.html" title="Drawing">
14
+ <link rel="chapter" href="cairo-fonts.html" title="Fonts">
15
+ <link rel="chapter" href="cairo-surfaces.html" title="Surfaces">
16
+ <link rel="chapter" href="cairo-support.html" title="Utilities">
17
+ <link rel="index" href="index-all.html" title="Index">
18
+ <link rel="index" href="index-1.2.html" title="Index of new symbols in 1.2">
19
+ <link rel="index" href="index-1.4.html" title="Index of new symbols in 1.4">
20
+ <link rel="index" href="index-1.6.html" title="Index of new symbols in 1.6">
21
+ <link rel="index" href="index-1.8.html" title="Index of new symbols in 1.8">
22
+ <link rel="appendix" href="language-bindings.html" title="Appendix A. Creating a language binding for cairo">
23
+ </head>
24
+ <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
25
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
26
+ <tr valign="middle">
27
+ <td><a accesskey="p" href="cairo-quartz-surface.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
28
+ <td><a accesskey="u" href="cairo-surfaces.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
29
+ <td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
30
+ <th width="100%" align="center">Cairo: A Vector Graphics Library</th>
31
+ <td><a accesskey="n" href="cairo-support.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
32
+ </tr>
33
+ <tr><td colspan="5" class="shortcuts">
34
+ <a href="#cairo-xlib-surface.synopsis" class="shortcut">Top</a>
35
+  | 
36
+ <a href="#cairo-xlib-surface.description" class="shortcut">Description</a>
37
+ </td></tr>
38
+ </table>
39
+ <div class="refentry" title="XLib Surfaces">
40
+ <a name="cairo-xlib-surface"></a><div class="titlepage"></div>
41
+ <div class="refnamediv"><table width="100%"><tr>
42
+ <td valign="top">
43
+ <h2><span class="refentrytitle"><a name="cairo-xlib-surface.top_of_page"></a>XLib Surfaces</span></h2>
44
+ <p>XLib Surfaces — X Window System rendering using XLib</p>
45
+ </td>
46
+ <td valign="top" align="right"></td>
47
+ </tr></table></div>
48
+ <div class="refsynopsisdiv" title="Synopsis">
49
+ <a name="cairo-xlib-surface.synopsis"></a><h2>Synopsis</h2>
50
+ <pre class="synopsis">
51
+ #define <a class="link" href="cairo-xlib-surface.html#CAIRO-HAS-XLIB-SURFACE--CAPS" title="CAIRO_HAS_XLIB_SURFACE">CAIRO_HAS_XLIB_SURFACE</a>
52
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-create" title="cairo_xlib_surface_create ()">cairo_xlib_surface_create</a> (Display *dpy,
53
+ Drawable drawable,
54
+ Visual *visual,
55
+ int width,
56
+ int height);
57
+ <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-create-for-bitmap" title="cairo_xlib_surface_create_for_bitmap ()">cairo_xlib_surface_create_for_bitmap</a>
58
+ (Display *dpy,
59
+ Pixmap bitmap,
60
+ Screen *screen,
61
+ int width,
62
+ int height);
63
+ void <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-set-size" title="cairo_xlib_surface_set_size ()">cairo_xlib_surface_set_size</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
64
+ int width,
65
+ int height);
66
+ Display * <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-display" title="cairo_xlib_surface_get_display ()">cairo_xlib_surface_get_display</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
67
+ Screen * <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-screen" title="cairo_xlib_surface_get_screen ()">cairo_xlib_surface_get_screen</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
68
+ void <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-set-drawable" title="cairo_xlib_surface_set_drawable ()">cairo_xlib_surface_set_drawable</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
69
+ Drawable drawable,
70
+ int width,
71
+ int height);
72
+ Drawable <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-drawable" title="cairo_xlib_surface_get_drawable ()">cairo_xlib_surface_get_drawable</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
73
+ Visual * <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-visual" title="cairo_xlib_surface_get_visual ()">cairo_xlib_surface_get_visual</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
74
+ int <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-width" title="cairo_xlib_surface_get_width ()">cairo_xlib_surface_get_width</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
75
+ int <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-height" title="cairo_xlib_surface_get_height ()">cairo_xlib_surface_get_height</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
76
+ int <a class="link" href="cairo-xlib-surface.html#cairo-xlib-surface-get-depth" title="cairo_xlib_surface_get_depth ()">cairo_xlib_surface_get_depth</a> (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);
77
+ </pre>
78
+ </div>
79
+ <div class="refsect1" title="Description">
80
+ <a name="cairo-xlib-surface.description"></a><h2>Description</h2>
81
+ <p>
82
+ The XLib surface is used to render cairo graphics to X Window System
83
+ windows and pixmaps using the XLib library.
84
+ </p>
85
+ <p>
86
+ Note that the XLib surface automatically takes advantage of X render extension
87
+ if it is available.
88
+ </p>
89
+ </div>
90
+ <div class="refsect1" title="Details">
91
+ <a name="cairo-xlib-surface.details"></a><h2>Details</h2>
92
+ <div class="refsect2" title="CAIRO_HAS_XLIB_SURFACE">
93
+ <a name="CAIRO-HAS-XLIB-SURFACE--CAPS"></a><h3>CAIRO_HAS_XLIB_SURFACE</h3>
94
+ <pre class="programlisting">#define CAIRO_HAS_XLIB_SURFACE 1
95
+ </pre>
96
+ <p>
97
+ Defined if the Xlib surface backend is available.
98
+ This macro can be used to conditionally compile backend-specific code.
99
+ </p>
100
+ </div>
101
+ <hr>
102
+ <div class="refsect2" title="cairo_xlib_surface_create ()">
103
+ <a name="cairo-xlib-surface-create"></a><h3>cairo_xlib_surface_create ()</h3>
104
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_xlib_surface_create (Display *dpy,
105
+ Drawable drawable,
106
+ Visual *visual,
107
+ int width,
108
+ int height);</pre>
109
+ <p>
110
+ Creates an Xlib surface that draws to the given drawable.
111
+ The way that colors are represented in the drawable is specified
112
+ by the provided visual.
113
+ </p>
114
+ <p>
115
+ Note: If <em class="parameter"><code>drawable</code></em> is a Window, then the function
116
+ <a class="link" href="cairo-xlib-surface.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
117
+ window changes.
118
+ </p>
119
+ <p>
120
+ When <em class="parameter"><code>drawable</code></em> is a Window containing child windows then drawing to
121
+ the created surface will be clipped by those child windows. When
122
+ the created surface is used as a source, the contents of the
123
+ children will be included.</p>
124
+ <p>
125
+ </p>
126
+ <div class="variablelist"><table border="0">
127
+ <col align="left" valign="top">
128
+ <tbody>
129
+ <tr>
130
+ <td><p><span class="term"><em class="parameter"><code>dpy</code></em> :</span></p></td>
131
+ <td> an X Display
132
+ </td>
133
+ </tr>
134
+ <tr>
135
+ <td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
136
+ <td> an X Drawable, (a Pixmap or a Window)
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <td><p><span class="term"><em class="parameter"><code>visual</code></em> :</span></p></td>
141
+ <td> the visual to use for drawing to <em class="parameter"><code>drawable</code></em>. The depth
142
+ of the visual must match the depth of the drawable.
143
+ Currently, only TrueColor visuals are fully supported.
144
+ </td>
145
+ </tr>
146
+ <tr>
147
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
148
+ <td> the current width of <em class="parameter"><code>drawable</code></em>.
149
+ </td>
150
+ </tr>
151
+ <tr>
152
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
153
+ <td> the current height of <em class="parameter"><code>drawable</code></em>.
154
+ </td>
155
+ </tr>
156
+ <tr>
157
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
158
+ <td> the newly created surface
159
+ </td>
160
+ </tr>
161
+ </tbody>
162
+ </table></div>
163
+ </div>
164
+ <hr>
165
+ <div class="refsect2" title="cairo_xlib_surface_create_for_bitmap ()">
166
+ <a name="cairo-xlib-surface-create-for-bitmap"></a><h3>cairo_xlib_surface_create_for_bitmap ()</h3>
167
+ <pre class="programlisting"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> * cairo_xlib_surface_create_for_bitmap
168
+ (Display *dpy,
169
+ Pixmap bitmap,
170
+ Screen *screen,
171
+ int width,
172
+ int height);</pre>
173
+ <p>
174
+ Creates an Xlib surface that draws to the given bitmap.
175
+ This will be drawn to as a <a class="link" href="cairo-image-surface.html#CAIRO-FORMAT-A1--CAPS"><code class="literal">CAIRO_FORMAT_A1</code></a> object.</p>
176
+ <p>
177
+ </p>
178
+ <div class="variablelist"><table border="0">
179
+ <col align="left" valign="top">
180
+ <tbody>
181
+ <tr>
182
+ <td><p><span class="term"><em class="parameter"><code>dpy</code></em> :</span></p></td>
183
+ <td> an X Display
184
+ </td>
185
+ </tr>
186
+ <tr>
187
+ <td><p><span class="term"><em class="parameter"><code>bitmap</code></em> :</span></p></td>
188
+ <td> an X Drawable, (a depth-1 Pixmap)
189
+ </td>
190
+ </tr>
191
+ <tr>
192
+ <td><p><span class="term"><em class="parameter"><code>screen</code></em> :</span></p></td>
193
+ <td> the X Screen associated with <em class="parameter"><code>bitmap</code></em>
194
+ </td>
195
+ </tr>
196
+ <tr>
197
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
198
+ <td> the current width of <em class="parameter"><code>bitmap</code></em>.
199
+ </td>
200
+ </tr>
201
+ <tr>
202
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
203
+ <td> the current height of <em class="parameter"><code>bitmap</code></em>.
204
+ </td>
205
+ </tr>
206
+ <tr>
207
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
208
+ <td> the newly created surface
209
+ </td>
210
+ </tr>
211
+ </tbody>
212
+ </table></div>
213
+ </div>
214
+ <hr>
215
+ <div class="refsect2" title="cairo_xlib_surface_set_size ()">
216
+ <a name="cairo-xlib-surface-set-size"></a><h3>cairo_xlib_surface_set_size ()</h3>
217
+ <pre class="programlisting">void cairo_xlib_surface_set_size (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
218
+ int width,
219
+ int height);</pre>
220
+ <p>
221
+ Informs cairo of the new size of the X Drawable underlying the
222
+ surface. For a surface created for a Window (rather than a Pixmap),
223
+ this function must be called each time the size of the window
224
+ changes. (For a subwindow, you are normally resizing the window
225
+ yourself, but for a toplevel window, it is necessary to listen for
226
+ ConfigureNotify events.)
227
+ </p>
228
+ <p>
229
+ A Pixmap can never change size, so it is never necessary to call
230
+ this function on a surface created for a Pixmap.</p>
231
+ <p>
232
+ </p>
233
+ <div class="variablelist"><table border="0">
234
+ <col align="left" valign="top">
235
+ <tbody>
236
+ <tr>
237
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
238
+ <td> a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend
239
+ </td>
240
+ </tr>
241
+ <tr>
242
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
243
+ <td> the new width of the surface
244
+ </td>
245
+ </tr>
246
+ <tr>
247
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
248
+ <td> the new height of the surface
249
+ </td>
250
+ </tr>
251
+ </tbody>
252
+ </table></div>
253
+ </div>
254
+ <hr>
255
+ <div class="refsect2" title="cairo_xlib_surface_get_display ()">
256
+ <a name="cairo-xlib-surface-get-display"></a><h3>cairo_xlib_surface_get_display ()</h3>
257
+ <pre class="programlisting">Display * cairo_xlib_surface_get_display (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
258
+ <p>
259
+ Get the X Display for the underlying X Drawable.</p>
260
+ <p>
261
+ </p>
262
+ <div class="variablelist"><table border="0">
263
+ <col align="left" valign="top">
264
+ <tbody>
265
+ <tr>
266
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
267
+ <td> a <span class="type">cairo_xlib_surface_t</span>
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
272
+ <td> the display.
273
+
274
+ </td>
275
+ </tr>
276
+ </tbody>
277
+ </table></div>
278
+ <p class="since">Since 1.2</p>
279
+ </div>
280
+ <hr>
281
+ <div class="refsect2" title="cairo_xlib_surface_get_screen ()">
282
+ <a name="cairo-xlib-surface-get-screen"></a><h3>cairo_xlib_surface_get_screen ()</h3>
283
+ <pre class="programlisting">Screen * cairo_xlib_surface_get_screen (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
284
+ <p>
285
+ Get the X Screen for the underlying X Drawable.</p>
286
+ <p>
287
+ </p>
288
+ <div class="variablelist"><table border="0">
289
+ <col align="left" valign="top">
290
+ <tbody>
291
+ <tr>
292
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
293
+ <td> a <span class="type">cairo_xlib_surface_t</span>
294
+ </td>
295
+ </tr>
296
+ <tr>
297
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
298
+ <td> the screen.
299
+
300
+ </td>
301
+ </tr>
302
+ </tbody>
303
+ </table></div>
304
+ <p class="since">Since 1.2</p>
305
+ </div>
306
+ <hr>
307
+ <div class="refsect2" title="cairo_xlib_surface_set_drawable ()">
308
+ <a name="cairo-xlib-surface-set-drawable"></a><h3>cairo_xlib_surface_set_drawable ()</h3>
309
+ <pre class="programlisting">void cairo_xlib_surface_set_drawable (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface,
310
+ Drawable drawable,
311
+ int width,
312
+ int height);</pre>
313
+ <p>
314
+ Informs cairo of a new X Drawable underlying the
315
+ surface. The drawable must match the display, screen
316
+ and format of the existing drawable or the application
317
+ will get X protocol errors and will probably terminate.
318
+ No checks are done by this function to ensure this
319
+ compatibility.</p>
320
+ <p>
321
+ </p>
322
+ <div class="variablelist"><table border="0">
323
+ <col align="left" valign="top">
324
+ <tbody>
325
+ <tr>
326
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
327
+ <td> a <a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a> for the XLib backend
328
+ </td>
329
+ </tr>
330
+ <tr>
331
+ <td><p><span class="term"><em class="parameter"><code>drawable</code></em> :</span></p></td>
332
+ <td> the new drawable for the surface
333
+ </td>
334
+ </tr>
335
+ <tr>
336
+ <td><p><span class="term"><em class="parameter"><code>width</code></em> :</span></p></td>
337
+ <td> the width of the new drawable
338
+ </td>
339
+ </tr>
340
+ <tr>
341
+ <td><p><span class="term"><em class="parameter"><code>height</code></em> :</span></p></td>
342
+ <td> the height of the new drawable
343
+ </td>
344
+ </tr>
345
+ </tbody>
346
+ </table></div>
347
+ </div>
348
+ <hr>
349
+ <div class="refsect2" title="cairo_xlib_surface_get_drawable ()">
350
+ <a name="cairo-xlib-surface-get-drawable"></a><h3>cairo_xlib_surface_get_drawable ()</h3>
351
+ <pre class="programlisting">Drawable cairo_xlib_surface_get_drawable (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
352
+ <p>
353
+ Get the underlying X Drawable used for the surface.</p>
354
+ <p>
355
+ </p>
356
+ <div class="variablelist"><table border="0">
357
+ <col align="left" valign="top">
358
+ <tbody>
359
+ <tr>
360
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
361
+ <td> a <span class="type">cairo_xlib_surface_t</span>
362
+ </td>
363
+ </tr>
364
+ <tr>
365
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
366
+ <td> the drawable.
367
+
368
+ </td>
369
+ </tr>
370
+ </tbody>
371
+ </table></div>
372
+ <p class="since">Since 1.2</p>
373
+ </div>
374
+ <hr>
375
+ <div class="refsect2" title="cairo_xlib_surface_get_visual ()">
376
+ <a name="cairo-xlib-surface-get-visual"></a><h3>cairo_xlib_surface_get_visual ()</h3>
377
+ <pre class="programlisting">Visual * cairo_xlib_surface_get_visual (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
378
+ <p>
379
+ Get the X Visual used for underlying X Drawable.</p>
380
+ <p>
381
+ </p>
382
+ <div class="variablelist"><table border="0">
383
+ <col align="left" valign="top">
384
+ <tbody>
385
+ <tr>
386
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
387
+ <td> a <span class="type">cairo_xlib_surface_t</span>
388
+ </td>
389
+ </tr>
390
+ <tr>
391
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
392
+ <td> the visual.
393
+
394
+ </td>
395
+ </tr>
396
+ </tbody>
397
+ </table></div>
398
+ <p class="since">Since 1.2</p>
399
+ </div>
400
+ <hr>
401
+ <div class="refsect2" title="cairo_xlib_surface_get_width ()">
402
+ <a name="cairo-xlib-surface-get-width"></a><h3>cairo_xlib_surface_get_width ()</h3>
403
+ <pre class="programlisting">int cairo_xlib_surface_get_width (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
404
+ <p>
405
+ Get the width of the X Drawable underlying the surface in pixels.</p>
406
+ <p>
407
+ </p>
408
+ <div class="variablelist"><table border="0">
409
+ <col align="left" valign="top">
410
+ <tbody>
411
+ <tr>
412
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
413
+ <td> a <span class="type">cairo_xlib_surface_t</span>
414
+ </td>
415
+ </tr>
416
+ <tr>
417
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
418
+ <td> the width of the surface in pixels.
419
+
420
+ </td>
421
+ </tr>
422
+ </tbody>
423
+ </table></div>
424
+ <p class="since">Since 1.2</p>
425
+ </div>
426
+ <hr>
427
+ <div class="refsect2" title="cairo_xlib_surface_get_height ()">
428
+ <a name="cairo-xlib-surface-get-height"></a><h3>cairo_xlib_surface_get_height ()</h3>
429
+ <pre class="programlisting">int cairo_xlib_surface_get_height (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
430
+ <p>
431
+ Get the height of the X Drawable underlying the surface in pixels.</p>
432
+ <p>
433
+ </p>
434
+ <div class="variablelist"><table border="0">
435
+ <col align="left" valign="top">
436
+ <tbody>
437
+ <tr>
438
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
439
+ <td> a <span class="type">cairo_xlib_surface_t</span>
440
+ </td>
441
+ </tr>
442
+ <tr>
443
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
444
+ <td> the height of the surface in pixels.
445
+
446
+ </td>
447
+ </tr>
448
+ </tbody>
449
+ </table></div>
450
+ <p class="since">Since 1.2</p>
451
+ </div>
452
+ <hr>
453
+ <div class="refsect2" title="cairo_xlib_surface_get_depth ()">
454
+ <a name="cairo-xlib-surface-get-depth"></a><h3>cairo_xlib_surface_get_depth ()</h3>
455
+ <pre class="programlisting">int cairo_xlib_surface_get_depth (<a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t">cairo_surface_t</a> *surface);</pre>
456
+ <p>
457
+ Get the number of bits used to represent each pixel value.</p>
458
+ <p>
459
+ </p>
460
+ <div class="variablelist"><table border="0">
461
+ <col align="left" valign="top">
462
+ <tbody>
463
+ <tr>
464
+ <td><p><span class="term"><em class="parameter"><code>surface</code></em> :</span></p></td>
465
+ <td> a <span class="type">cairo_xlib_surface_t</span>
466
+ </td>
467
+ </tr>
468
+ <tr>
469
+ <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
470
+ <td> the depth of the surface in bits.
471
+
472
+ </td>
473
+ </tr>
474
+ </tbody>
475
+ </table></div>
476
+ <p class="since">Since 1.2</p>
477
+ </div>
478
+ </div>
479
+ <div class="refsect1" title="See Also">
480
+ <a name="cairo-xlib-surface.see-also"></a><h2>See Also</h2>
481
+ <p>
482
+ </p>
483
+ <div class="itemizedlist"><ul class="itemizedlist" type="disc"><li class="listitem"><a class="link" href="cairo-surface.html#cairo-surface-t" title="cairo_surface_t"><span class="type">cairo_surface_t</span></a></li></ul></div>
484
+ <p>
485
+ </p>
486
+ </div>
487
+ </div>
488
+ <div class="footer">
489
+ <hr>
490
+ Generated by GTK-Doc V1.11</div>
491
+ </body>
492
+ </html>