gdk_pixbuf2 2.1.0-x86-mingw32 → 2.2.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (173) hide show
  1. checksums.yaml +4 -4
  2. data/Rakefile +1 -1
  3. data/lib/1.9/gdk_pixbuf2.so +0 -0
  4. data/lib/2.0/gdk_pixbuf2.so +0 -0
  5. data/lib/2.1/gdk_pixbuf2.so +0 -0
  6. data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
  7. data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
  8. data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
  9. data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
  10. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +1 -3
  11. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +1 -3
  12. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +2 -2
  13. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +1 -3
  14. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +1 -3
  15. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +1 -3
  16. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +1 -3
  17. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +1 -3
  18. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +1 -3
  19. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +1 -1
  20. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
  21. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
  22. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
  23. data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
  24. data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
  25. data/vendor/local/lib/libgdk_pixbuf-2.0.la +1 -1
  26. data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +1 -1
  27. data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +30 -27
  28. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +557 -416
  29. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +10 -12
  30. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +5 -5
  31. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +9 -11
  32. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +22 -24
  33. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +10 -12
  34. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +8 -8
  35. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +5 -5
  36. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +16 -18
  37. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +14 -16
  38. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +6 -6
  39. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +11 -13
  40. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +165 -167
  41. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +768 -578
  42. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +546 -428
  43. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +549 -474
  44. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +321 -265
  45. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +467 -349
  46. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +887 -662
  47. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +122 -91
  48. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +656 -518
  49. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +631 -484
  50. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +247 -171
  51. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +110 -89
  52. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +119 -98
  53. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +275 -230
  54. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +784 -581
  55. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +5 -5
  56. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +86 -55
  57. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +5 -5
  58. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +5 -5
  59. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +5 -5
  60. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +153 -192
  61. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +3 -3
  62. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +98 -97
  63. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +4 -4
  64. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +4 -4
  65. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +4 -4
  66. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +247 -94
  67. data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  68. data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  69. data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  70. data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  71. data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  72. data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  73. data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  74. data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  75. data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  76. data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  77. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  78. data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  79. data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  80. data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  81. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  82. data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  83. data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  84. data/vendor/local/share/locale/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  85. data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  86. data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  87. data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  88. data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  89. data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  90. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  91. data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  92. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  93. data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  94. data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  95. data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  96. data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  97. data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  98. data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  99. data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  100. data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  101. data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  102. data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  103. data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  104. data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  105. data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  106. data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  107. data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  108. data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  109. data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  110. data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  111. data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  112. data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  113. data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  114. data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  115. data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  116. data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  117. data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  118. data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  119. data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  120. data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  121. data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  122. data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  123. data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  124. data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  125. data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  126. data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  127. data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  128. data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  129. data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  130. data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  131. data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  132. data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  133. data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  134. data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  135. data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  136. data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  137. data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  138. data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  139. data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  140. data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  141. data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  142. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  143. data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  144. data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  145. data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  146. data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  147. data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  148. data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  149. data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  150. data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  151. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  152. data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  153. data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  154. data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  155. data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  156. data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  157. data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  158. data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  159. data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  160. data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  161. data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  162. data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  163. data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  164. data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  165. data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  166. data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  167. data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  168. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  169. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  170. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  171. data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +1 -1
  172. data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +1 -1
  173. metadata +4 -4
@@ -8,15 +8,14 @@
8
8
  <link rel="up" href="rn01.html" title="API Reference">
9
9
  <link rel="prev" href="gdk-pixbuf-Image-Data-in-Memory.html" title="Image Data in Memory">
10
10
  <link rel="next" href="gdk-pixbuf-Scaling.html" title="Scaling">
11
- <meta name="generator" content="GTK-Doc V1.19.1 (XML mode)">
11
+ <meta name="generator" content="GTK-Doc V1.20.1 (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="10"><tr valign="middle">
16
- <td width="100%" align="left">
17
- <a href="#" class="shortcut">Top</a>
18
-  | 
19
- <a href="#gdk-pixbuf-Inline-data.description" class="shortcut">Description</a>
15
+ <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><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="#gdk-pixbuf-Inline-data.description" class="shortcut">Description</a></span>
20
19
  </td>
21
20
  <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
22
21
  <td><a accesskey="u" href="rn01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
@@ -30,491 +29,610 @@
30
29
  <h2><span class="refentrytitle"><a name="gdk-pixbuf-Inline-data.top_of_page"></a>Inline data</span></h2>
31
30
  <p>Inline data — Functions for inlined pixbuf handling.</p>
32
31
  </td>
33
- <td valign="top" align="right"></td>
32
+ <td class="gallery_image" valign="top" align="right"></td>
34
33
  </tr></table></div>
35
- <div class="refsynopsisdiv">
36
- <a name="gdk-pixbuf-Inline-data.synopsis"></a><h2>Synopsis</h2>
37
- <pre class="synopsis">
38
- #include &lt;gdk-pixbuf/gdk-pixdata.h&gt;
39
-
40
- struct <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata">GdkPixdata</a>;
41
- enum <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataType" title="enum GdkPixdataType">GdkPixdataType</a>;
42
- enum <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType">GdkPixdataDumpType</a>;
43
- #define <a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXBUF-MAGIC-NUMBER:CAPS" title="GDK_PIXBUF_MAGIC_NUMBER">GDK_PIXBUF_MAGIC_NUMBER</a>
44
- #define <a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXDATA-HEADER-LENGTH:CAPS" title="GDK_PIXDATA_HEADER_LENGTH">GDK_PIXDATA_HEADER_LENGTH</a>
45
- <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-from-pixbuf" title="gdk_pixdata_from_pixbuf ()">gdk_pixdata_from_pixbuf</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
46
- <em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
47
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_rle</code></em>);
48
- <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixbuf-from-pixdata" title="gdk_pixbuf_from_pixdata ()">gdk_pixbuf_from_pixdata</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
49
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
50
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
51
- <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> * <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-serialize" title="gdk_pixdata_serialize ()">gdk_pixdata_serialize</a> (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
52
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *stream_length_p</code></em>);
53
- <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-deserialize" title="gdk_pixdata_deserialize ()">gdk_pixdata_deserialize</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
54
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> stream_length</code></em>,
55
- <em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *stream</code></em>,
56
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);
57
- <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> * <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-to-csource" title="gdk_pixdata_to_csource ()">gdk_pixdata_to_csource</a> (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
58
- <em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
59
- <em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> dump_type</code></em>);
60
- </pre>
61
- </div>
62
- <div class="refsect1">
63
- <a name="gdk-pixbuf-Inline-data.description"></a><h2>Description</h2>
64
- <p>
65
- Using <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>, images can be compiled into an application,
66
- making it unnecessary to refer to external image files at runtime.
67
- GdkPixBuf includes a utility named gdk-pixbuf-csource, which
68
- can be used to convert image files into <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures suitable
69
- for inclusion in C sources. To convert the <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures back
70
- into <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>s, use gdk_pixbuf_from_pixdata.
71
- </p>
72
- </div>
73
34
  <div class="refsect1">
74
- <a name="gdk-pixbuf-Inline-data.details"></a><h2>Details</h2>
75
- <div class="refsect2">
76
- <a name="GdkPixdata"></a><h3>struct GdkPixdata</h3>
77
- <pre class="programlisting">struct GdkPixdata {
78
- guint32 magic; /* GDK_PIXBUF_MAGIC_NUMBER */
79
- gint32 length; /* &lt;1 to disable length checks, otherwise:
80
- * GDK_PIXDATA_HEADER_LENGTH + pixel_data length
81
- */
82
- guint32 pixdata_type; /* GdkPixdataType */
83
- guint32 rowstride;
84
- guint32 width;
85
- guint32 height;
86
- guint8 *pixel_data;
87
- };
88
- </pre>
89
- <p>
90
- A <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> contains pixbuf information in a form suitable for
91
- serialization and streaming.
92
- </p>
93
- <div class="variablelist"><table border="0" class="variablelist">
35
+ <a name="gdk-pixbuf-Inline-data.functions"></a><h2>Functions</h2>
36
+ <div class="informaltable"><table width="100%" border="0">
94
37
  <colgroup>
95
- <col align="left" valign="top">
96
- <col>
38
+ <col width="150px" class="functions_return">
39
+ <col class="functions_name">
97
40
  </colgroup>
98
41
  <tbody>
99
42
  <tr>
100
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.magic"></a>magic</code></em>;</span></p></td>
101
- <td>magic number. A valid <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure must have
102
- <a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXBUF-MAGIC-NUMBER:CAPS" title="GDK_PIXBUF_MAGIC_NUMBER"><span class="type">GDK_PIXBUF_MAGIC_NUMBER</span></a> here.</td>
43
+ <td class="define_keyword">#define</td>
44
+ <td class="function_name"><a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXBUF-MAGIC-NUMBER:CAPS" title="GDK_PIXBUF_MAGIC_NUMBER">GDK_PIXBUF_MAGIC_NUMBER</a></td>
103
45
  </tr>
104
46
  <tr>
105
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GdkPixdata.length"></a>length</code></em>;</span></p></td>
106
- <td>less than 1 to disable length checks, otherwise
107
- <a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXDATA-HEADER-LENGTH:CAPS" title="GDK_PIXDATA_HEADER_LENGTH"><span class="type">GDK_PIXDATA_HEADER_LENGTH</span></a> + length of <em class="parameter"><code>pixel_data</code></em>.</td>
108
- </tr>
109
- <tr>
110
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.pixdata-type"></a>pixdata_type</code></em>;</span></p></td>
111
- <td>information about colorspace, sample width and
112
- encoding, in a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataType" title="enum GdkPixdataType"><span class="type">GdkPixdataType</span></a>.</td>
47
+ <td class="function_type">
48
+ <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
49
+ </td>
50
+ <td class="function_name">
51
+ <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-from-pixbuf" title="gdk_pixdata_from_pixbuf ()">gdk_pixdata_from_pixbuf</a> <span class="c_punctuation">()</span>
52
+ </td>
113
53
  </tr>
114
54
  <tr>
115
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.rowstride"></a>rowstride</code></em>;</span></p></td>
116
- <td>Distance in bytes between rows.</td>
55
+ <td class="function_type">
56
+ <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
57
+ </td>
58
+ <td class="function_name">
59
+ <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixbuf-from-pixdata" title="gdk_pixbuf_from_pixdata ()">gdk_pixbuf_from_pixdata</a> <span class="c_punctuation">()</span>
60
+ </td>
117
61
  </tr>
118
62
  <tr>
119
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.width"></a>width</code></em>;</span></p></td>
120
- <td>Width of the image in pixels.</td>
63
+ <td class="function_type">
64
+ <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
65
+ </td>
66
+ <td class="function_name">
67
+ <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-serialize" title="gdk_pixdata_serialize ()">gdk_pixdata_serialize</a> <span class="c_punctuation">()</span>
68
+ </td>
121
69
  </tr>
122
70
  <tr>
123
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.height"></a>height</code></em>;</span></p></td>
124
- <td>Height of the image in pixels.</td>
71
+ <td class="function_type">
72
+ <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
73
+ </td>
74
+ <td class="function_name">
75
+ <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-deserialize" title="gdk_pixdata_deserialize ()">gdk_pixdata_deserialize</a> <span class="c_punctuation">()</span>
76
+ </td>
125
77
  </tr>
126
78
  <tr>
127
- <td><p><span class="term"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *<em class="structfield"><code><a name="GdkPixdata.pixel-data"></a>pixel_data</code></em>;</span></p></td>
128
- <td>
129
- <em class="parameter"><code>width</code></em> x <em class="parameter"><code>height</code></em> pixels, encoded according to <em class="parameter"><code>pixdata_type</code></em>
130
- and <em class="parameter"><code>rowstride</code></em>. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span>
79
+ <td class="function_type">
80
+ <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> *
81
+ </td>
82
+ <td class="function_name">
83
+ <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-to-csource" title="gdk_pixdata_to_csource ()">gdk_pixdata_to_csource</a> <span class="c_punctuation">()</span>
131
84
  </td>
132
85
  </tr>
133
86
  </tbody>
134
87
  </table></div>
135
88
  </div>
136
- <hr>
137
- <div class="refsect2">
138
- <a name="GdkPixdataType"></a><h3>enum GdkPixdataType</h3>
139
- <pre class="programlisting">typedef enum {
140
- /* colorspace + alpha */
141
- GDK_PIXDATA_COLOR_TYPE_RGB = 0x01,
142
- GDK_PIXDATA_COLOR_TYPE_RGBA = 0x02,
143
- GDK_PIXDATA_COLOR_TYPE_MASK = 0xff,
144
- /* width, support 8bits only currently */
145
- GDK_PIXDATA_SAMPLE_WIDTH_8 = 0x01 &lt;&lt; 16,
146
- GDK_PIXDATA_SAMPLE_WIDTH_MASK = 0x0f &lt;&lt; 16,
147
- /* encoding */
148
- GDK_PIXDATA_ENCODING_RAW = 0x01 &lt;&lt; 24,
149
- GDK_PIXDATA_ENCODING_RLE = 0x02 &lt;&lt; 24,
150
- GDK_PIXDATA_ENCODING_MASK = 0x0f &lt;&lt; 24
151
- } GdkPixdataType;
152
- </pre>
153
- <p>
154
- An enumeration containing three sets of flags for a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> struct:
155
- one for the used colorspace, one for the width of the samples and one
156
- for the encoding of the pixel data.
157
- </p>
158
- <div class="variablelist"><table border="0" class="variablelist">
89
+ <div class="refsect1">
90
+ <a name="gdk-pixbuf-Inline-data.other"></a><h2>Types and Values</h2>
91
+ <div class="informaltable"><table width="100%" border="0">
159
92
  <colgroup>
160
- <col align="left" valign="top">
161
- <col>
93
+ <col width="150px" class="name">
94
+ <col class="description">
162
95
  </colgroup>
163
96
  <tbody>
164
97
  <tr>
165
- <td><p><a name="GDK-PIXDATA-COLOR-TYPE-RGB:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_COLOR_TYPE_RGB</code></span></p></td>
166
- <td>each pixel has red, green and blue samples.
167
- </td>
98
+ <td class="datatype_keyword">struct</td>
99
+ <td class="function_name"><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata">GdkPixdata</a></td>
168
100
  </tr>
169
101
  <tr>
170
- <td><p><a name="GDK-PIXDATA-COLOR-TYPE-RGBA:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_COLOR_TYPE_RGBA</code></span></p></td>
171
- <td>each pixel has red, green and blue samples
172
- and an alpha value.
173
- </td>
102
+ <td class="datatype_keyword">enum</td>
103
+ <td class="function_name"><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataType" title="enum GdkPixdataType">GdkPixdataType</a></td>
174
104
  </tr>
175
105
  <tr>
176
- <td><p><a name="GDK-PIXDATA-COLOR-TYPE-MASK:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_COLOR_TYPE_MASK</code></span></p></td>
177
- <td>mask for the colortype flags of the enum.
178
- </td>
106
+ <td class="datatype_keyword">enum</td>
107
+ <td class="function_name"><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType">GdkPixdataDumpType</a></td>
179
108
  </tr>
180
109
  <tr>
181
- <td><p><a name="GDK-PIXDATA-SAMPLE-WIDTH-8:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_SAMPLE_WIDTH_8</code></span></p></td>
182
- <td>each sample has 8 bits.
183
- </td>
184
- </tr>
185
- <tr>
186
- <td><p><a name="GDK-PIXDATA-SAMPLE-WIDTH-MASK:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_SAMPLE_WIDTH_MASK</code></span></p></td>
187
- <td>mask for the sample width flags of the enum.
188
- </td>
189
- </tr>
190
- <tr>
191
- <td><p><a name="GDK-PIXDATA-ENCODING-RAW:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_ENCODING_RAW</code></span></p></td>
192
- <td>the pixel data is in raw form.
193
- </td>
194
- </tr>
195
- <tr>
196
- <td><p><a name="GDK-PIXDATA-ENCODING-RLE:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_ENCODING_RLE</code></span></p></td>
197
- <td>the pixel data is run-length encoded. Runs may
198
- be up to 127 bytes long; their length is stored in a single byte
199
- preceding the pixel data for the run. If a run is constant, its length
200
- byte has the high bit set and the pixel data consists of a single pixel
201
- which must be repeated.
202
- </td>
203
- </tr>
204
- <tr>
205
- <td><p><a name="GDK-PIXDATA-ENCODING-MASK:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_ENCODING_MASK</code></span></p></td>
206
- <td>mask for the encoding flags of the enum.
207
- </td>
110
+ <td class="define_keyword">#define</td>
111
+ <td class="function_name"><a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXDATA-HEADER-LENGTH:CAPS" title="GDK_PIXDATA_HEADER_LENGTH">GDK_PIXDATA_HEADER_LENGTH</a></td>
208
112
  </tr>
209
113
  </tbody>
210
114
  </table></div>
211
115
  </div>
212
- <hr>
116
+ <div class="refsect1">
117
+ <a name="gdk-pixbuf-Inline-data.includes"></a><h2>Includes</h2>
118
+ <pre class="synopsis">#include &lt;gdk-pixbuf/gdk-pixdata.h&gt;
119
+ </pre>
120
+ </div>
121
+ <div class="refsect1">
122
+ <a name="gdk-pixbuf-Inline-data.description"></a><h2>Description</h2>
123
+ <p>Using <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>, images can be compiled into an application,
124
+ making it unnecessary to refer to external image files at runtime.
125
+ GdkPixBuf includes a utility named gdk-pixbuf-csource, which
126
+ can be used to convert image files into <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures suitable
127
+ for inclusion in C sources. To convert the <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures back
128
+ into <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>&lt;!-- --&gt;s, use gdk_pixbuf_from_pixdata.</p>
129
+ </div>
130
+ <div class="refsect1">
131
+ <a name="gdk-pixbuf-Inline-data.functions_details"></a><h2>Functions</h2>
213
132
  <div class="refsect2">
214
- <a name="GdkPixdataDumpType"></a><h3>enum GdkPixdataDumpType</h3>
215
- <pre class="programlisting">typedef enum {
216
- /* type of source to save */
217
- GDK_PIXDATA_DUMP_PIXDATA_STREAM = 0,
218
- GDK_PIXDATA_DUMP_PIXDATA_STRUCT = 1,
219
- GDK_PIXDATA_DUMP_MACROS = 2,
220
- /* type of variables to use */
221
- GDK_PIXDATA_DUMP_GTYPES = 0,
222
- GDK_PIXDATA_DUMP_CTYPES = 1 &lt;&lt; 8,
223
- GDK_PIXDATA_DUMP_STATIC = 1 &lt;&lt; 9,
224
- GDK_PIXDATA_DUMP_CONST = 1 &lt;&lt; 10,
225
- /* save RLE decoder macro? */
226
- GDK_PIXDATA_DUMP_RLE_DECODER = 1 &lt;&lt; 16
227
- } GdkPixdataDumpType;
133
+ <a name="GDK-PIXBUF-MAGIC-NUMBER:CAPS"></a><h3>GDK_PIXBUF_MAGIC_NUMBER</h3>
134
+ <pre class="programlisting">#define GDK_PIXBUF_MAGIC_NUMBER (0x47646b50) /* 'GdkP' */
228
135
  </pre>
229
- <p>
230
- An enumeration which is used by <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-to-csource" title="gdk_pixdata_to_csource ()"><code class="function">gdk_pixdata_to_csource()</code></a> to
231
- determine the form of C source to be generated. The three values
232
- <em class="parameter"><code>GDK_PIXDATA_DUMP_PIXDATA_STREAM</code></em>, <em class="parameter"><code>GDK_PIXDATA_DUMP_PIXDATA_STRUCT</code></em>
233
- and <em class="parameter"><code>GDK_PIXDATA_DUMP_MACROS</code></em> are mutually exclusive, as are
234
- <em class="parameter"><code>GDK_PIXBUF_DUMP_GTYPES</code></em> and <em class="parameter"><code>GDK_PIXBUF_DUMP_CTYPES</code></em>. The remaining
235
- elements are optional flags that can be freely added.
236
- </p>
237
- <div class="variablelist"><table border="0" class="variablelist">
136
+ <p>Magic number for <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures.</p>
137
+ </div>
138
+ <hr>
139
+ <div class="refsect2">
140
+ <a name="gdk-pixdata-from-pixbuf"></a><h3>gdk_pixdata_from_pixbuf ()</h3>
141
+ <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a>
142
+ gdk_pixdata_from_pixbuf (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
143
+ <em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
144
+ <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_rle</code></em>);</pre>
145
+ <p>Converts a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> to a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>. If <em class="parameter"><code>use_rle</code></em>
146
+ is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the
147
+ pixel data is run-length encoded into newly-allocated memory and a
148
+ pointer to that memory is returned.</p>
149
+ <div class="refsect3">
150
+ <a name="id-1.2.9.7.3.5"></a><h4>Parameters</h4>
151
+ <div class="informaltable"><table width="100%" border="0">
238
152
  <colgroup>
239
- <col align="left" valign="top">
240
- <col>
153
+ <col width="150px" class="parameters_name">
154
+ <col class="parameters_description">
155
+ <col width="200px" class="parameters_annotations">
241
156
  </colgroup>
242
157
  <tbody>
243
158
  <tr>
244
- <td><p><a name="GDK-PIXDATA-DUMP-PIXDATA-STREAM:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_PIXDATA_STREAM</code></span></p></td>
245
- <td>Generate pixbuf data stream (a single
246
- string containing a serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure in network byte
247
- order).
248
- </td>
159
+ <td class="parameter_name"><p>pixdata</p></td>
160
+ <td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to fill.</p></td>
161
+ <td class="parameter_annotations"> </td>
249
162
  </tr>
250
163
  <tr>
251
- <td><p><a name="GDK-PIXDATA-DUMP-PIXDATA-STRUCT:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_PIXDATA_STRUCT</code></span></p></td>
252
- <td>Generate <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure (needs
253
- the <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure definition from gdk-pixdata.h).
254
- </td>
164
+ <td class="parameter_name"><p>pixbuf</p></td>
165
+ <td class="parameter_description"><p>the data to fill <em class="parameter"><code>pixdata</code></em>
166
+ with.</p></td>
167
+ <td class="parameter_annotations"> </td>
255
168
  </tr>
256
169
  <tr>
257
- <td><p><a name="GDK-PIXDATA-DUMP-MACROS:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_MACROS</code></span></p></td>
258
- <td>Generate <code class="function">*_ROWSTRIDE</code>,
259
- <code class="function">*_WIDTH</code>, <code class="function">*_HEIGHT</code>,
260
- <code class="function">*_BYTES_PER_PIXEL</code> and
261
- <code class="function">*_RLE_PIXEL_DATA</code> or <code class="function">*_PIXEL_DATA</code>
262
- macro definitions for the image.
263
- </td>
170
+ <td class="parameter_name"><p>use_rle</p></td>
171
+ <td class="parameter_description"><p>whether to use run-length encoding for the pixel data.</p></td>
172
+ <td class="parameter_annotations"</td>
264
173
  </tr>
174
+ </tbody>
175
+ </table></div>
176
+ </div>
177
+ <div class="refsect3">
178
+ <a name="id-1.2.9.7.3.6"></a><h4>Returns</h4>
179
+ <p> If <em class="parameter"><code>ure_rle</code></em>
180
+ is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a pointer to the newly-allocated memory
181
+ for the run-length encoded pixel data, otherwise <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</p>
182
+ <p></p>
183
+ </div>
184
+ </div>
185
+ <hr>
186
+ <div class="refsect2">
187
+ <a name="gdk-pixbuf-from-pixdata"></a><h3>gdk_pixbuf_from_pixdata ()</h3>
188
+ <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> *
189
+ gdk_pixbuf_from_pixdata (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
190
+ <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
191
+ <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
192
+ <p>Converts a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. If <em class="parameter"><code>copy_pixels</code></em>
193
+ is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> or
194
+ if the pixel data is run-length-encoded, the pixel data is copied into
195
+ newly-allocated memory; otherwise it is reused.</p>
196
+ <div class="refsect3">
197
+ <a name="id-1.2.9.7.4.5"></a><h4>Parameters</h4>
198
+ <div class="informaltable"><table width="100%" border="0">
199
+ <colgroup>
200
+ <col width="150px" class="parameters_name">
201
+ <col class="parameters_description">
202
+ <col width="200px" class="parameters_annotations">
203
+ </colgroup>
204
+ <tbody>
265
205
  <tr>
266
- <td><p><a name="GDK-PIXDATA-DUMP-GTYPES:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_GTYPES</code></span></p></td>
267
- <td>Generate GLib data types instead of
268
- standard C data types.
269
- </td>
206
+ <td class="parameter_name"><p>pixdata</p></td>
207
+ <td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to convert into a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</p></td>
208
+ <td class="parameter_annotations"> </td>
270
209
  </tr>
271
210
  <tr>
272
- <td><p><a name="GDK-PIXDATA-DUMP-CTYPES:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_CTYPES</code></span></p></td>
273
- <td>Generate standard C data types instead of
274
- GLib data types.
275
- </td>
211
+ <td class="parameter_name"><p>copy_pixels</p></td>
212
+ <td class="parameter_description"><p>whether to copy raw pixel data; run-length encoded
213
+ pixel data is always copied.</p></td>
214
+ <td class="parameter_annotations"> </td>
276
215
  </tr>
277
216
  <tr>
278
- <td><p><a name="GDK-PIXDATA-DUMP-STATIC:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_STATIC</code></span></p></td>
279
- <td>Generate static symbols.
280
- </td>
217
+ <td class="parameter_name"><p>error</p></td>
218
+ <td class="parameter_description"><p>location to store possible errors.</p></td>
219
+ <td class="parameter_annotations"> </td>
281
220
  </tr>
221
+ </tbody>
222
+ </table></div>
223
+ </div>
224
+ <div class="refsect3">
225
+ <a name="id-1.2.9.7.4.6"></a><h4>Returns</h4>
226
+ <p> a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. </p>
227
+ <p><span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
228
+ </div>
229
+ </div>
230
+ <hr>
231
+ <div class="refsect2">
232
+ <a name="gdk-pixdata-serialize"></a><h3>gdk_pixdata_serialize ()</h3>
233
+ <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> *
234
+ gdk_pixdata_serialize (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
235
+ <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *stream_length_p</code></em>);</pre>
236
+ <p>Serializes a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure into a byte stream.
237
+ The byte stream consists of a straightforward writeout of the
238
+ <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> fields in network byte order, plus the <em class="parameter"><code>pixel_data</code></em>
239
+
240
+ bytes the structure points to.</p>
241
+ <div class="refsect3">
242
+ <a name="id-1.2.9.7.5.5"></a><h4>Parameters</h4>
243
+ <div class="informaltable"><table width="100%" border="0">
244
+ <colgroup>
245
+ <col width="150px" class="parameters_name">
246
+ <col class="parameters_description">
247
+ <col width="200px" class="parameters_annotations">
248
+ </colgroup>
249
+ <tbody>
282
250
  <tr>
283
- <td><p><a name="GDK-PIXDATA-DUMP-CONST:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_CONST</code></span></p></td>
284
- <td>Generate const symbols.
285
- </td>
251
+ <td class="parameter_name"><p>pixdata</p></td>
252
+ <td class="parameter_description"><p>a valid <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure to serialize.</p></td>
253
+ <td class="parameter_annotations"> </td>
286
254
  </tr>
287
255
  <tr>
288
- <td><p><a name="GDK-PIXDATA-DUMP-RLE-DECODER:CAPS"></a><span class="term"><code class="literal">GDK_PIXDATA_DUMP_RLE_DECODER</code></span></p></td>
289
- <td>Provide a <code class="function">*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)</code>
290
- macro definition to decode run-length encoded image data.
291
- </td>
256
+ <td class="parameter_name"><p>stream_length_p</p></td>
257
+ <td class="parameter_description"><p>location to store the resulting stream length in.</p></td>
258
+ <td class="parameter_annotations"> </td>
292
259
  </tr>
293
260
  </tbody>
294
261
  </table></div>
295
262
  </div>
296
- <hr>
297
- <div class="refsect2">
298
- <a name="GDK-PIXBUF-MAGIC-NUMBER:CAPS"></a><h3>GDK_PIXBUF_MAGIC_NUMBER</h3>
299
- <pre class="programlisting">#define GDK_PIXBUF_MAGIC_NUMBER (0x47646b50) /* 'GdkP' */
300
- </pre>
301
- <p>
302
- Magic number for <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structures.
303
- </p>
263
+ <div class="refsect3">
264
+ <a name="id-1.2.9.7.5.6"></a><h4>Returns</h4>
265
+ <p> A
266
+ newly-allocated string containing the serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>
267
+ structure. </p>
268
+ <p><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=stream_length_p][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
304
269
  </div>
305
- <hr>
306
- <div class="refsect2">
307
- <a name="GDK-PIXDATA-HEADER-LENGTH:CAPS"></a><h3>GDK_PIXDATA_HEADER_LENGTH</h3>
308
- <pre class="programlisting">#define GDK_PIXDATA_HEADER_LENGTH (4 + 4 + 4 + 4 + 4 + 4)
309
- </pre>
310
- <p>
311
- The length of a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure without the <em class="parameter"><code>pixel_data</code></em> pointer.
312
- </p>
313
270
  </div>
314
271
  <hr>
315
272
  <div class="refsect2">
316
- <a name="gdk-pixdata-from-pixbuf"></a><h3>gdk_pixdata_from_pixbuf ()</h3>
317
- <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gpointer"><span class="returnvalue">gpointer</span></a> gdk_pixdata_from_pixbuf (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
318
- <em class="parameter"><code>const <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> *pixbuf</code></em>,
319
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> use_rle</code></em>);</pre>
320
- <p>
321
- Converts a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a> to a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>. If <em class="parameter"><code>use_rle</code></em> is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, the
322
- pixel data is run-length encoded into newly-allocated memory and a
323
- pointer to that memory is returned.
324
- </p>
325
- <div class="variablelist"><table border="0" class="variablelist">
273
+ <a name="gdk-pixdata-deserialize"></a><h3>gdk_pixdata_deserialize ()</h3>
274
+ <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a>
275
+ gdk_pixdata_deserialize (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
276
+ <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> stream_length</code></em>,
277
+ <em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *stream</code></em>,
278
+ <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
279
+ <p>Deserializes (reconstruct) a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure from a byte stream.
280
+ The byte stream consists of a straightforward writeout of the
281
+ <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> fields in network byte order, plus the <em class="parameter"><code>pixel_data</code></em>
282
+
283
+ bytes the structure points to.
284
+ The <em class="parameter"><code>pixdata</code></em>
285
+ contents are reconstructed byte by byte and are checked
286
+ for validity. This function may fail with <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR-CORRUPT-IMAGE:CAPS"><code class="literal">GDK_PIXBUF_ERROR_CORRUPT_IMAGE</code></a>
287
+ or <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR-UNKNOWN-TYPE:CAPS"><code class="literal">GDK_PIXBUF_ERROR_UNKNOWN_TYPE</code></a>.</p>
288
+ <div class="refsect3">
289
+ <a name="id-1.2.9.7.6.5"></a><h4>Parameters</h4>
290
+ <div class="informaltable"><table width="100%" border="0">
326
291
  <colgroup>
327
- <col align="left" valign="top">
328
- <col>
292
+ <col width="150px" class="parameters_name">
293
+ <col class="parameters_description">
294
+ <col width="200px" class="parameters_annotations">
329
295
  </colgroup>
330
296
  <tbody>
331
297
  <tr>
332
- <td><p><span class="term"><em class="parameter"><code>pixdata</code></em> :</span></p></td>
333
- <td>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to fill.</td>
298
+ <td class="parameter_name"><p>pixdata</p></td>
299
+ <td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure to be filled in.</p></td>
300
+ <td class="parameter_annotations"> </td>
334
301
  </tr>
335
302
  <tr>
336
- <td><p><span class="term"><em class="parameter"><code>pixbuf</code></em> :</span></p></td>
337
- <td>the data to fill <em class="parameter"><code>pixdata</code></em> with.</td>
303
+ <td class="parameter_name"><p>stream_length</p></td>
304
+ <td class="parameter_description"><p>length of the stream used for deserialization.</p></td>
305
+ <td class="parameter_annotations"> </td>
338
306
  </tr>
339
307
  <tr>
340
- <td><p><span class="term"><em class="parameter"><code>use_rle</code></em> :</span></p></td>
341
- <td>whether to use run-length encoding for the pixel data.</td>
308
+ <td class="parameter_name"><p>stream</p></td>
309
+ <td class="parameter_description"><p> stream of bytes containing a
310
+ serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure. </p></td>
311
+ <td class="parameter_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=stream_length]</span></td>
342
312
  </tr>
343
313
  <tr>
344
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
345
- <td>If <em class="parameter"><code>ure_rle</code></em> is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a>, a pointer to the newly-allocated memory
346
- for the run-length encoded pixel data, otherwise <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>.</td>
314
+ <td class="parameter_name"><p>error</p></td>
315
+ <td class="parameter_description"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to indicate failures (maybe <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors).</p></td>
316
+ <td class="parameter_annotations"> </td>
347
317
  </tr>
348
318
  </tbody>
349
319
  </table></div>
350
320
  </div>
321
+ <div class="refsect3">
322
+ <a name="id-1.2.9.7.6.6"></a><h4>Returns</h4>
323
+ <p> Upon successful deserialization <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned,
324
+ <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</p>
325
+ <p></p>
326
+ </div>
327
+ </div>
351
328
  <hr>
352
329
  <div class="refsect2">
353
- <a name="gdk-pixbuf-from-pixdata"></a><h3>gdk_pixbuf_from_pixdata ()</h3>
354
- <pre class="programlisting"><a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="returnvalue">GdkPixbuf</span></a> * gdk_pixbuf_from_pixdata (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
355
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a> copy_pixels</code></em>,
356
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
357
- <p>
358
- Converts a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. If <em class="parameter"><code>copy_pixels</code></em> is <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> or
359
- if the pixel data is run-length-encoded, the pixel data is copied into
360
- newly-allocated memory; otherwise it is reused.
361
- </p>
362
- <div class="variablelist"><table border="0" class="variablelist">
330
+ <a name="gdk-pixdata-to-csource"></a><h3>gdk_pixdata_to_csource ()</h3>
331
+ <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> *
332
+ gdk_pixdata_to_csource (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
333
+ <em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
334
+ <em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> dump_type</code></em>);</pre>
335
+ <p>Generates C source code suitable for compiling images directly
336
+ into programs. </p>
337
+ <p>gdk-pixbuf ships with a program called
338
+ <a class="link" href="gdk-pixbuf-csource.html" title="gdk-pixbuf-csource">gdk-pixbuf-csource</a>, which offers a command
339
+ line interface to this function.</p>
340
+ <div class="refsect3">
341
+ <a name="id-1.2.9.7.7.6"></a><h4>Parameters</h4>
342
+ <div class="informaltable"><table width="100%" border="0">
363
343
  <colgroup>
364
- <col align="left" valign="top">
365
- <col>
344
+ <col width="150px" class="parameters_name">
345
+ <col class="parameters_description">
346
+ <col width="200px" class="parameters_annotations">
366
347
  </colgroup>
367
348
  <tbody>
368
349
  <tr>
369
- <td><p><span class="term"><em class="parameter"><code>pixdata</code></em> :</span></p></td>
370
- <td>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to convert into a <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>.</td>
350
+ <td class="parameter_name"><p>pixdata</p></td>
351
+ <td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to convert to C source.</p></td>
352
+ <td class="parameter_annotations"> </td>
371
353
  </tr>
372
354
  <tr>
373
- <td><p><span class="term"><em class="parameter"><code>copy_pixels</code></em> :</span></p></td>
374
- <td>whether to copy raw pixel data; run-length encoded
375
- pixel data is always copied.</td>
355
+ <td class="parameter_name"><p>name</p></td>
356
+ <td class="parameter_description"><p>used for naming generated data structures or macros.</p></td>
357
+ <td class="parameter_annotations"> </td>
376
358
  </tr>
377
359
  <tr>
378
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
379
- <td>location to store possible errors.</td>
380
- </tr>
381
- <tr>
382
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
383
- <td>a new <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GdkPixbuf"><span class="type">GdkPixbuf</span></a>. <span class="annotation">[<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
384
- </td>
360
+ <td class="parameter_name"><p>dump_type</p></td>
361
+ <td class="parameter_description"><p>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> determining the kind of C
362
+ source to be generated.</p></td>
363
+ <td class="parameter_annotations"> </td>
385
364
  </tr>
386
365
  </tbody>
387
366
  </table></div>
388
367
  </div>
389
- <hr>
368
+ <div class="refsect3">
369
+ <a name="id-1.2.9.7.7.7"></a><h4>Returns</h4>
370
+ <p> a newly-allocated string containing the C source form
371
+ of <em class="parameter"><code>pixdata</code></em>
372
+ .</p>
373
+ <p></p>
374
+ </div>
375
+ </div>
376
+ </div>
377
+ <div class="refsect1">
378
+ <a name="gdk-pixbuf-Inline-data.other_details"></a><h2>Types and Values</h2>
390
379
  <div class="refsect2">
391
- <a name="gdk-pixdata-serialize"></a><h3>gdk_pixdata_serialize ()</h3>
392
- <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="returnvalue">guint8</span></a> * gdk_pixdata_serialize (<em class="parameter"><code>const <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
393
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> *stream_length_p</code></em>);</pre>
394
- <p>
395
- Serializes a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure into a byte stream.
396
- The byte stream consists of a straightforward writeout of the
397
- <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> fields in network byte order, plus the <em class="parameter"><code>pixel_data</code></em>
398
- bytes the structure points to.
399
- </p>
400
- <div class="variablelist"><table border="0" class="variablelist">
380
+ <a name="GdkPixdata"></a><h3>struct GdkPixdata</h3>
381
+ <pre class="programlisting">struct GdkPixdata {
382
+ guint32 magic; /* GDK_PIXBUF_MAGIC_NUMBER */
383
+ gint32 length; /* &lt;1 to disable length checks, otherwise:
384
+ * GDK_PIXDATA_HEADER_LENGTH + pixel_data length
385
+ */
386
+ guint32 pixdata_type; /* GdkPixdataType */
387
+ guint32 rowstride;
388
+ guint32 width;
389
+ guint32 height;
390
+ guint8 *pixel_data;
391
+ };
392
+ </pre>
393
+ <p>A <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> contains pixbuf information in a form suitable for
394
+ serialization and streaming.</p>
395
+ <div class="refsect3">
396
+ <a name="id-1.2.9.8.2.5"></a><h4>Members</h4>
397
+ <div class="informaltable"><table width="100%" border="0">
401
398
  <colgroup>
402
- <col align="left" valign="top">
403
- <col>
399
+ <col width="300px" class="struct_members_name">
400
+ <col class="struct_members_description">
401
+ <col width="200px" class="struct_members_annotations">
404
402
  </colgroup>
405
403
  <tbody>
406
404
  <tr>
407
- <td><p><span class="term"><em class="parameter"><code>pixdata</code></em> :</span></p></td>
408
- <td>a valid <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure to serialize.</td>
405
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.magic"></a>magic</code></em>;</p></td>
406
+ <td class="struct_member_description"><p>magic number. A valid <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure must have
407
+ <a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXBUF-MAGIC-NUMBER:CAPS" title="GDK_PIXBUF_MAGIC_NUMBER"><span class="type">GDK_PIXBUF_MAGIC_NUMBER</span></a> here.</p></td>
408
+ <td class="struct_member_annotations"> </td>
409
409
  </tr>
410
410
  <tr>
411
- <td><p><span class="term"><em class="parameter"><code>stream_length_p</code></em> :</span></p></td>
412
- <td>location to store the resulting stream length in.</td>
411
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gint32"><span class="type">gint32</span></a> <em class="structfield"><code><a name="GdkPixdata.length"></a>length</code></em>;</p></td>
412
+ <td class="struct_member_description"><p>less than 1 to disable length checks, otherwise
413
+ <a class="link" href="gdk-pixbuf-Inline-data.html#GDK-PIXDATA-HEADER-LENGTH:CAPS" title="GDK_PIXDATA_HEADER_LENGTH"><span class="type">GDK_PIXDATA_HEADER_LENGTH</span></a> + length of <em class="parameter"><code>pixel_data</code></em>
414
+ . </p></td>
415
+ <td class="struct_member_annotations"> </td>
413
416
  </tr>
414
417
  <tr>
415
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span:</span></p></td>
416
- <td>A
417
- newly-allocated string containing the serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a>
418
- structure. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=stream_length_p][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span>
419
- </td>
418
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a<em class="structfield"><code><a name="GdkPixdata.pixdata-type"></a>pixdata_type</code></em>;</p></td>
419
+ <td class="struct_member_description"><p>information about colorspace, sample width and
420
+ encoding, in a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataType" title="enum GdkPixdataType"><span class="type">GdkPixdataType</span></a>. </p></td>
421
+ <td class="struct_member_annotations"> </td>
422
+ </tr>
423
+ <tr>
424
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.rowstride"></a>rowstride</code></em>;</p></td>
425
+ <td class="struct_member_description"><p>Distance in bytes between rows.</p></td>
426
+ <td class="struct_member_annotations"> </td>
427
+ </tr>
428
+ <tr>
429
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.width"></a>width</code></em>;</p></td>
430
+ <td class="struct_member_description"><p>Width of the image in pixels.</p></td>
431
+ <td class="struct_member_annotations"> </td>
432
+ </tr>
433
+ <tr>
434
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint32"><span class="type">guint32</span></a> <em class="structfield"><code><a name="GdkPixdata.height"></a>height</code></em>;</p></td>
435
+ <td class="struct_member_description"><p>Height of the image in pixels.</p></td>
436
+ <td class="struct_member_annotations"> </td>
437
+ </tr>
438
+ <tr>
439
+ <td class="struct_member_name"><p><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *<em class="structfield"><code><a name="GdkPixdata.pixel-data"></a>pixel_data</code></em>;</p></td>
440
+ <td class="struct_member_description"><p> <em class="parameter"><code>width</code></em>
441
+ x <em class="parameter"><code>height</code></em>
442
+ pixels, encoded according to <em class="parameter"><code>pixdata_type</code></em>
443
+ and <em class="parameter"><code>rowstride</code></em>
444
+ . </p></td>
445
+ <td class="struct_member_annotations"><span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym>][<acronym title="Generics and defining elements of containers and arrays."><span class="acronym">element-type</span></acronym> guint8]</span></td>
420
446
  </tr>
421
447
  </tbody>
422
448
  </table></div>
423
449
  </div>
450
+ </div>
424
451
  <hr>
425
452
  <div class="refsect2">
426
- <a name="gdk-pixdata-deserialize"></a><h3>gdk_pixdata_deserialize ()</h3>
427
- <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="returnvalue">gboolean</span></a> gdk_pixdata_deserialize (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
428
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a> stream_length</code></em>,
429
- <em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#guint8"><span class="type">guint8</span></a> *stream</code></em>,
430
- <em class="parameter"><code><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
431
- <p>
432
- Deserializes (reconstruct) a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure from a byte stream.
433
- The byte stream consists of a straightforward writeout of the
434
- <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> fields in network byte order, plus the <em class="parameter"><code>pixel_data</code></em>
435
- bytes the structure points to.
436
- The <em class="parameter"><code>pixdata</code></em> contents are reconstructed byte by byte and are checked
437
- for validity. This function may fail with <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR-CORRUPT-IMAGE:CAPS"><code class="literal">GDK_PIXBUF_ERROR_CORRUPT_IMAGE</code></a>
438
- or <a class="link" href="gdk-pixbuf-The-GdkPixbuf-Structure.html#GDK-PIXBUF-ERROR-UNKNOWN-TYPE:CAPS"><code class="literal">GDK_PIXBUF_ERROR_UNKNOWN_TYPE</code></a>.
439
- </p>
440
- <div class="variablelist"><table border="0" class="variablelist">
453
+ <a name="GdkPixdataType"></a><h3>enum GdkPixdataType</h3>
454
+ <p>An enumeration containing three sets of flags for a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> struct:
455
+ one for the used colorspace, one for the width of the samples and one
456
+ for the encoding of the pixel data.</p>
457
+ <div class="refsect3">
458
+ <a name="id-1.2.9.8.3.4"></a><h4>Members</h4>
459
+ <div class="informaltable"><table width="100%" border="0">
441
460
  <colgroup>
442
- <col align="left" valign="top">
443
- <col>
461
+ <col width="300px" class="enum_members_name">
462
+ <col class="enum_members_description">
463
+ <col width="200px" class="enum_members_annotations">
444
464
  </colgroup>
445
465
  <tbody>
446
466
  <tr>
447
- <td><p><span class="term"><em class="parameter"><code>pixdata</code></em> :</span></p></td>
448
- <td>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure to be filled in.</td>
467
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-COLOR-TYPE-RGB:CAPS"></a>GDK_PIXDATA_COLOR_TYPE_RGB</p></td>
468
+ <td class="enum_member_description">
469
+ <p>each pixel has red, green and blue samples.</p>
470
+ </td>
471
+ <td class="enum_member_annotations"> </td>
449
472
  </tr>
450
473
  <tr>
451
- <td><p><span class="term"><em class="parameter"><code>stream_length</code></em> :</span></p></td>
452
- <td>length of the stream used for deserialization.</td>
474
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-COLOR-TYPE-RGBA:CAPS"></a>GDK_PIXDATA_COLOR_TYPE_RGBA</p></td>
475
+ <td class="enum_member_description">
476
+ <p>each pixel has red, green and blue samples
477
+ and an alpha value.</p>
478
+ </td>
479
+ <td class="enum_member_annotations"> </td>
453
480
  </tr>
454
481
  <tr>
455
- <td><p><span class="term"><em class="parameter"><code>stream</code></em> :</span></p></td>
456
- <td>stream of bytes containing a
457
- serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure. <span class="annotation">[<acronym title="Parameter points to an array of items."><span class="acronym">array</span></acronym> length=stream_length]</span>
482
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-COLOR-TYPE-MASK:CAPS"></a>GDK_PIXDATA_COLOR_TYPE_MASK</p></td>
483
+ <td class="enum_member_description">
484
+ <p>mask for the colortype flags of the enum.</p>
458
485
  </td>
486
+ <td class="enum_member_annotations"> </td>
459
487
  </tr>
460
488
  <tr>
461
- <td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
462
- <td>
463
- <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> location to indicate failures (maybe <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> to ignore errors).</td>
489
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-SAMPLE-WIDTH-8:CAPS"></a>GDK_PIXDATA_SAMPLE_WIDTH_8</p></td>
490
+ <td class="enum_member_description">
491
+ <p>each sample has 8 bits.</p>
492
+ </td>
493
+ <td class="enum_member_annotations"> </td>
464
494
  </tr>
465
495
  <tr>
466
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
467
- <td>Upon successful deserialization <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#TRUE:CAPS"><code class="literal">TRUE</code></a> is returned,
468
- <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Standard-Macros.html#FALSE:CAPS"><code class="literal">FALSE</code></a> otherwise.</td>
496
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-SAMPLE-WIDTH-MASK:CAPS"></a>GDK_PIXDATA_SAMPLE_WIDTH_MASK</p></td>
497
+ <td class="enum_member_description">
498
+ <p>mask for the sample width flags of the enum.</p>
499
+ </td>
500
+ <td class="enum_member_annotations"> </td>
501
+ </tr>
502
+ <tr>
503
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-ENCODING-RAW:CAPS"></a>GDK_PIXDATA_ENCODING_RAW</p></td>
504
+ <td class="enum_member_description">
505
+ <p>the pixel data is in raw form. </p>
506
+ </td>
507
+ <td class="enum_member_annotations"> </td>
508
+ </tr>
509
+ <tr>
510
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-ENCODING-RLE:CAPS"></a>GDK_PIXDATA_ENCODING_RLE</p></td>
511
+ <td class="enum_member_description">
512
+ <p>the pixel data is run-length encoded. Runs may
513
+ be up to 127 bytes long; their length is stored in a single byte
514
+ preceding the pixel data for the run. If a run is constant, its length
515
+ byte has the high bit set and the pixel data consists of a single pixel
516
+ which must be repeated. </p>
517
+ </td>
518
+ <td class="enum_member_annotations"> </td>
519
+ </tr>
520
+ <tr>
521
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-ENCODING-MASK:CAPS"></a>GDK_PIXDATA_ENCODING_MASK</p></td>
522
+ <td class="enum_member_description">
523
+ <p>mask for the encoding flags of the enum.</p>
524
+ </td>
525
+ <td class="enum_member_annotations"> </td>
469
526
  </tr>
470
527
  </tbody>
471
528
  </table></div>
472
529
  </div>
530
+ </div>
473
531
  <hr>
474
532
  <div class="refsect2">
475
- <a name="gdk-pixdata-to-csource"></a><h3>gdk_pixdata_to_csource ()</h3>
476
- <pre class="programlisting"><a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Strings.html#GString"><span class="returnvalue">GString</span></a> * gdk_pixdata_to_csource (<em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> *pixdata</code></em>,
477
- <em class="parameter"><code>const <a href="/home/kou/work/ruby/ruby-gnome2.win32/glib2/vendor/local/share/gtk-doc/html/glib/glib-Basic-Types.html#gchar"><span class="type">gchar</span></a> *name</code></em>,
478
- <em class="parameter"><code><a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> dump_type</code></em>);</pre>
479
- <p>
480
- Generates C source code suitable for compiling images directly
481
- into programs.
482
- </p>
483
- <p>
484
- gdk-pixbuf ships with a program called <span class="command"><strong>gdk-pixbuf-csource</strong></span>
485
- which offers a command line interface to this function.
486
- </p>
487
- <div class="variablelist"><table border="0" class="variablelist">
533
+ <a name="GdkPixdataDumpType"></a><h3>enum GdkPixdataDumpType</h3>
534
+ <p>An enumeration which is used by <a class="link" href="gdk-pixbuf-Inline-data.html#gdk-pixdata-to-csource" title="gdk_pixdata_to_csource ()"><code class="function">gdk_pixdata_to_csource()</code></a> to
535
+ determine the form of C source to be generated. The three values
536
+ <em class="parameter"><code>GDK_PIXDATA_DUMP_PIXDATA_STREAM</code></em>
537
+ , <em class="parameter"><code>GDK_PIXDATA_DUMP_PIXDATA_STRUCT</code></em>
538
+
539
+ and <em class="parameter"><code>GDK_PIXDATA_DUMP_MACROS</code></em>
540
+ are mutually exclusive, as are
541
+ <em class="parameter"><code>GDK_PIXBUF_DUMP_GTYPES</code></em>
542
+ and <em class="parameter"><code>GDK_PIXBUF_DUMP_CTYPES</code></em>
543
+ . The remaining
544
+ elements are optional flags that can be freely added.</p>
545
+ <div class="refsect3">
546
+ <a name="id-1.2.9.8.4.4"></a><h4>Members</h4>
547
+ <div class="informaltable"><table width="100%" border="0">
488
548
  <colgroup>
489
- <col align="left" valign="top">
490
- <col>
549
+ <col width="300px" class="enum_members_name">
550
+ <col class="enum_members_description">
551
+ <col width="200px" class="enum_members_annotations">
491
552
  </colgroup>
492
553
  <tbody>
493
554
  <tr>
494
- <td><p><span class="term"><em class="parameter"><code>pixdata</code></em> :</span></p></td>
495
- <td>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> to convert to C source.</td>
555
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-PIXDATA-STREAM:CAPS"></a>GDK_PIXDATA_DUMP_PIXDATA_STREAM</p></td>
556
+ <td class="enum_member_description">
557
+ <p>Generate pixbuf data stream (a single
558
+ string containing a serialized <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure in network byte
559
+ order).</p>
560
+ </td>
561
+ <td class="enum_member_annotations"> </td>
562
+ </tr>
563
+ <tr>
564
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-PIXDATA-STRUCT:CAPS"></a>GDK_PIXDATA_DUMP_PIXDATA_STRUCT</p></td>
565
+ <td class="enum_member_description">
566
+ <p>Generate <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure (needs
567
+ the <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure definition from gdk-pixdata.h).</p>
568
+ </td>
569
+ <td class="enum_member_annotations"> </td>
496
570
  </tr>
497
571
  <tr>
498
- <td><p><span class="term"><em class="parameter"><code>name</code></em> :</span></p></td>
499
- <td>used for naming generated data structures or macros.</td>
572
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-MACROS:CAPS"></a>GDK_PIXDATA_DUMP_MACROS</p></td>
573
+ <td class="enum_member_description">
574
+ <p>Generate &lt;function&gt;*_ROWSTRIDE&lt;/function&gt;,
575
+ &lt;function&gt;*_WIDTH&lt;/function&gt;, &lt;function&gt;*_HEIGHT&lt;/function&gt;,
576
+ &lt;function&gt;*_BYTES_PER_PIXEL&lt;/function&gt; and
577
+ &lt;function&gt;*_RLE_PIXEL_DATA&lt;/function&gt; or &lt;function&gt;*_PIXEL_DATA&lt;/function&gt;
578
+ macro definitions for the image.</p>
579
+ </td>
580
+ <td class="enum_member_annotations"> </td>
500
581
  </tr>
501
582
  <tr>
502
- <td><p><span class="term"><em class="parameter"><code>dump_type</code></em> :</span></p></td>
503
- <td>a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdataDumpType" title="enum GdkPixdataDumpType"><span class="type">GdkPixdataDumpType</span></a> determining the kind of C
504
- source to be generated.</td>
583
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-GTYPES:CAPS"></a>GDK_PIXDATA_DUMP_GTYPES</p></td>
584
+ <td class="enum_member_description">
585
+ <p>Generate GLib data types instead of
586
+ standard C data types.</p>
587
+ </td>
588
+ <td class="enum_member_annotations"> </td>
505
589
  </tr>
506
590
  <tr>
507
- <td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
508
- <td>a newly-allocated string containing the C source form
509
- of <em class="parameter"><code>pixdata</code></em>.</td>
591
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-CTYPES:CAPS"></a>GDK_PIXDATA_DUMP_CTYPES</p></td>
592
+ <td class="enum_member_description">
593
+ <p>Generate standard C data types instead of
594
+ GLib data types.</p>
595
+ </td>
596
+ <td class="enum_member_annotations"> </td>
597
+ </tr>
598
+ <tr>
599
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-STATIC:CAPS"></a>GDK_PIXDATA_DUMP_STATIC</p></td>
600
+ <td class="enum_member_description">
601
+ <p>Generate static symbols.</p>
602
+ </td>
603
+ <td class="enum_member_annotations"> </td>
604
+ </tr>
605
+ <tr>
606
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-CONST:CAPS"></a>GDK_PIXDATA_DUMP_CONST</p></td>
607
+ <td class="enum_member_description">
608
+ <p>Generate const symbols.</p>
609
+ </td>
610
+ <td class="enum_member_annotations"> </td>
611
+ </tr>
612
+ <tr>
613
+ <td class="enum_member_name"><p><a name="GDK-PIXDATA-DUMP-RLE-DECODER:CAPS"></a>GDK_PIXDATA_DUMP_RLE_DECODER</p></td>
614
+ <td class="enum_member_description">
615
+ <p>Provide a &lt;function&gt;*_RUN_LENGTH_DECODE(image_buf, rle_data, size, bpp)&lt;/function&gt;
616
+ macro definition to decode run-length encoded image data.</p>
617
+ </td>
618
+ <td class="enum_member_annotations"> </td>
510
619
  </tr>
511
620
  </tbody>
512
621
  </table></div>
513
622
  </div>
514
623
  </div>
624
+ <hr>
625
+ <div class="refsect2">
626
+ <a name="GDK-PIXDATA-HEADER-LENGTH:CAPS"></a><h3>GDK_PIXDATA_HEADER_LENGTH</h3>
627
+ <pre class="programlisting">#define GDK_PIXDATA_HEADER_LENGTH (4 + 4 + 4 + 4 + 4 + 4)
628
+ </pre>
629
+ <p>The length of a <a class="link" href="gdk-pixbuf-Inline-data.html#GdkPixdata" title="struct GdkPixdata"><span class="type">GdkPixdata</span></a> structure without the <em class="parameter"><code>pixel_data</code></em>
630
+ pointer.</p>
631
+ </div>
632
+ </div>
515
633
  </div>
516
634
  <div class="footer">
517
635
  <hr>
518
- Generated by GTK-Doc V1.19.1</div>
636
+ Generated by GTK-Doc V1.20.1</div>
519
637
  </body>
520
638
  </html>