gdk_pixbuf2 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +7 -0
  2. data/README +29 -0
  3. data/Rakefile +34 -0
  4. data/ext/gdk_pixbuf2/depend +11 -0
  5. data/ext/gdk_pixbuf2/extconf.rb +66 -0
  6. data/ext/gdk_pixbuf2/gdk_pixbuf2.def +2 -0
  7. data/ext/gdk_pixbuf2/rbgdk-pixbuf-format.c +179 -0
  8. data/ext/gdk_pixbuf2/rbgdk-pixbuf-loader.c +164 -0
  9. data/ext/gdk_pixbuf2/rbgdk-pixbuf.c +737 -0
  10. data/ext/gdk_pixbuf2/rbgdk-pixbuf.h +41 -0
  11. data/ext/gdk_pixbuf2/rbgdk-pixbuf2conversions.h +42 -0
  12. data/ext/gdk_pixbuf2/rbgdk-pixbuf2private.h +35 -0
  13. data/ext/gdk_pixbuf2/rbgdk-pixbufanimation.c +93 -0
  14. data/ext/gdk_pixbuf2/rbgdk-pixbufanimationiter.c +71 -0
  15. data/ext/gdk_pixbuf2/rbgdk-pixbufsimpleanim.c +53 -0
  16. data/ext/gdk_pixbuf2/rbgdk-pixdata.c +213 -0
  17. data/extconf.rb +49 -0
  18. data/lib/2.0/gdk_pixbuf2.so +0 -0
  19. data/lib/2.1/gdk_pixbuf2.so +0 -0
  20. data/lib/2.2/gdk_pixbuf2.so +0 -0
  21. data/lib/gdk_pixbuf2.rb +57 -0
  22. data/sample/anim.rb +38 -0
  23. data/sample/composite.rb +45 -0
  24. data/sample/flip.rb +47 -0
  25. data/sample/floppybuddy.gif +0 -0
  26. data/sample/format.rb +39 -0
  27. data/sample/gnome-foot.png +0 -0
  28. data/sample/inline.rb +37 -0
  29. data/sample/loader.rb +20 -0
  30. data/sample/pixdata.rb +39 -0
  31. data/sample/rotate.rb +45 -0
  32. data/sample/save.rb +25 -0
  33. data/sample/scale.rb +45 -0
  34. data/sample/simpleanim.rb +34 -0
  35. data/sample/utils.rb +44 -0
  36. data/sample/xpm.rb +40 -0
  37. data/vendor/local/bin/gdk-pixbuf-csource.exe +0 -0
  38. data/vendor/local/bin/gdk-pixbuf-pixdata.exe +0 -0
  39. data/vendor/local/bin/gdk-pixbuf-query-loaders.exe +0 -0
  40. data/vendor/local/bin/libgdk_pixbuf-2.0-0.dll +0 -0
  41. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-animation.h +204 -0
  42. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-core.h +464 -0
  43. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-enum-types.h +33 -0
  44. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-features.h +120 -0
  45. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-io.h +343 -0
  46. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-loader.h +108 -0
  47. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-marshal.h +36 -0
  48. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-simple-anim.h +64 -0
  49. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf-transform.h +158 -0
  50. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixbuf.h +43 -0
  51. data/vendor/local/include/gdk-pixbuf-2.0/gdk-pixbuf/gdk-pixdata.h +168 -0
  52. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache +139 -0
  53. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.a +0 -0
  54. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll +0 -0
  55. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.dll.a +0 -0
  56. data/vendor/local/lib/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.la +41 -0
  57. data/vendor/local/lib/gdk_pixbuf-2.0.def +128 -0
  58. data/vendor/local/lib/girepository-1.0/GdkPixbuf-2.0.typelib +0 -0
  59. data/vendor/local/lib/libgdk_pixbuf-2.0.dll.a +0 -0
  60. data/vendor/local/lib/libgdk_pixbuf-2.0.la +41 -0
  61. data/vendor/local/lib/pkgconfig/gdk-pixbuf-2.0.pc +19 -0
  62. data/vendor/local/share/gir-1.0/GdkPixbuf-2.0.gir +3443 -0
  63. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/GdkPixbufLoader.html +827 -0
  64. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/annotation-glossary.html +65 -0
  65. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-12.html +35 -0
  66. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-14.html +46 -0
  67. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-2.html +108 -0
  68. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-26.html +50 -0
  69. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-28.html +47 -0
  70. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-30.html +35 -0
  71. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-4.html +72 -0
  72. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-6.html +65 -0
  73. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-2-8.html +39 -0
  74. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-deprecated.html +53 -0
  75. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/api-index-full.html +787 -0
  76. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/composite.png +0 -0
  77. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Animations.html +1068 -0
  78. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-Loading.html +794 -0
  79. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-File-saving.html +864 -0
  80. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Image-Data-in-Memory.html +491 -0
  81. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Inline-data.html +639 -0
  82. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Module-Interface.html +1298 -0
  83. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Reference-Counting-and-Memory-Mangement.html +208 -0
  84. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Scaling.html +914 -0
  85. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-The-GdkPixbuf-Structure.html +898 -0
  86. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Utilities.html +381 -0
  87. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Versioning.html +184 -0
  88. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-X-Drawables-to-Pixbufs.html +197 -0
  89. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-Xlib-Rendering.html +438 -0
  90. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-XlibRGB.html +1115 -0
  91. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-csource.html +167 -0
  92. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-Xlib-initialization.html +159 -0
  93. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-from-drawables.html +45 -0
  94. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-gdk-pixbuf-rendering.html +44 -0
  95. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf-query-loaders.html +85 -0
  96. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/gdk-pixbuf.devhelp2 +226 -0
  97. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/home.png +0 -0
  98. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.html +150 -0
  99. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/index.sgml +322 -0
  100. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left-insensitive.png +0 -0
  101. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/left.png +0 -0
  102. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/license.html +59 -0
  103. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right-insensitive.png +0 -0
  104. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/right.png +0 -0
  105. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn01.html +101 -0
  106. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/rn02.html +50 -0
  107. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/style.css +476 -0
  108. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up-insensitive.png +0 -0
  109. data/vendor/local/share/gtk-doc/html/gdk-pixbuf/up.png +0 -0
  110. data/vendor/local/share/license/gdk-pixbuf/AUTHORS +65 -0
  111. data/vendor/local/share/license/gdk-pixbuf/COPYING +482 -0
  112. data/vendor/local/share/locale/af/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  113. data/vendor/local/share/locale/ang/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  114. data/vendor/local/share/locale/ar/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  115. data/vendor/local/share/locale/as/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  116. data/vendor/local/share/locale/ast/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  117. data/vendor/local/share/locale/az/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  118. data/vendor/local/share/locale/be/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  119. data/vendor/local/share/locale/be@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  120. data/vendor/local/share/locale/bg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  121. data/vendor/local/share/locale/bn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  122. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  123. data/vendor/local/share/locale/br/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  124. data/vendor/local/share/locale/bs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  125. data/vendor/local/share/locale/ca/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  126. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  127. data/vendor/local/share/locale/crh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  128. data/vendor/local/share/locale/cs/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  129. data/vendor/local/share/locale/csb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  130. data/vendor/local/share/locale/cy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  131. data/vendor/local/share/locale/da/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  132. data/vendor/local/share/locale/de/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  133. data/vendor/local/share/locale/dz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  134. data/vendor/local/share/locale/el/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  135. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  136. data/vendor/local/share/locale/en_CA/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  137. data/vendor/local/share/locale/en_GB/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  138. data/vendor/local/share/locale/eo/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  139. data/vendor/local/share/locale/es/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  140. data/vendor/local/share/locale/et/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  141. data/vendor/local/share/locale/eu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  142. data/vendor/local/share/locale/fa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  143. data/vendor/local/share/locale/fi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  144. data/vendor/local/share/locale/fr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  145. data/vendor/local/share/locale/ga/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  146. data/vendor/local/share/locale/gl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  147. data/vendor/local/share/locale/gu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  148. data/vendor/local/share/locale/he/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  149. data/vendor/local/share/locale/hi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  150. data/vendor/local/share/locale/hr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  151. data/vendor/local/share/locale/hu/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  152. data/vendor/local/share/locale/hy/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  153. data/vendor/local/share/locale/ia/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  154. data/vendor/local/share/locale/id/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  155. data/vendor/local/share/locale/io/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  156. data/vendor/local/share/locale/is/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  157. data/vendor/local/share/locale/it/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  158. data/vendor/local/share/locale/ja/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  159. data/vendor/local/share/locale/ka/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  160. data/vendor/local/share/locale/km/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  161. data/vendor/local/share/locale/kn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  162. data/vendor/local/share/locale/ko/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  163. data/vendor/local/share/locale/ku/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  164. data/vendor/local/share/locale/li/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  165. data/vendor/local/share/locale/lt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  166. data/vendor/local/share/locale/lv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  167. data/vendor/local/share/locale/mai/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  168. data/vendor/local/share/locale/mi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  169. data/vendor/local/share/locale/mk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  170. data/vendor/local/share/locale/ml/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  171. data/vendor/local/share/locale/mn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  172. data/vendor/local/share/locale/mr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  173. data/vendor/local/share/locale/ms/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  174. data/vendor/local/share/locale/my/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  175. data/vendor/local/share/locale/nb/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  176. data/vendor/local/share/locale/nds/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  177. data/vendor/local/share/locale/ne/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  178. data/vendor/local/share/locale/nl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  179. data/vendor/local/share/locale/nn/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  180. data/vendor/local/share/locale/nso/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  181. data/vendor/local/share/locale/oc/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  182. data/vendor/local/share/locale/or/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  183. data/vendor/local/share/locale/pa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  184. data/vendor/local/share/locale/pl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  185. data/vendor/local/share/locale/ps/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  186. data/vendor/local/share/locale/pt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  187. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  188. data/vendor/local/share/locale/ro/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  189. data/vendor/local/share/locale/ru/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  190. data/vendor/local/share/locale/si/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  191. data/vendor/local/share/locale/sk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  192. data/vendor/local/share/locale/sl/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  193. data/vendor/local/share/locale/sq/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  194. data/vendor/local/share/locale/sr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  195. data/vendor/local/share/locale/sr@ije/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  196. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  197. data/vendor/local/share/locale/sv/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  198. data/vendor/local/share/locale/ta/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  199. data/vendor/local/share/locale/te/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  200. data/vendor/local/share/locale/tg/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  201. data/vendor/local/share/locale/th/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  202. data/vendor/local/share/locale/tk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  203. data/vendor/local/share/locale/tr/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  204. data/vendor/local/share/locale/tt/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  205. data/vendor/local/share/locale/ug/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  206. data/vendor/local/share/locale/uk/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  207. data/vendor/local/share/locale/uz/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  208. data/vendor/local/share/locale/uz@cyrillic/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  209. data/vendor/local/share/locale/vi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  210. data/vendor/local/share/locale/wa/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  211. data/vendor/local/share/locale/xh/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  212. data/vendor/local/share/locale/yi/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  213. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  214. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  215. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/gdk-pixbuf.mo +0 -0
  216. data/vendor/local/share/man/man1/gdk-pixbuf-csource.1 +135 -0
  217. data/vendor/local/share/man/man1/gdk-pixbuf-query-loaders.1 +73 -0
  218. metadata +273 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 768bc1c4eb6343dc7c04186245ed6d3bf2eb5b6d
4
+ data.tar.gz: 26c0c6c38dbf394a925a0403e8e2efe73432580e
5
+ SHA512:
6
+ metadata.gz: 279948983235b6ef2d1f50d433715a25f81f4015b32277c33cfb0c5fad1c8ba6277dd715936845427398129921f7e2e6ba4e7920342bfa2d8a93c6dd1edd7413
7
+ data.tar.gz: 72f280b5551f67676b8865f890dcf0a55ff87ee27357247e826635afcd85ec674717542aadb542384e190091b09e7fd7f545ec92f13bab0bb2b91f3b739b22f8
data/README ADDED
@@ -0,0 +1,29 @@
1
+ Ruby/GdkPixbuf2
2
+ ===============
3
+ Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
4
+
5
+ Requirements
6
+ ------------
7
+ Ruby: http://www.ruby-lang.org/
8
+ GTK+: http://www.gtk.org/
9
+ Ruby/GLib2, Ruby/GTK2: http://ruby-gnome2.sourceforge.net/
10
+
11
+ Install
12
+ -------
13
+ 0. install ruby-1.9.x or later, GTK+, Ruby/GLib2 and Ruby/GTK2.
14
+ 1. ruby extconf.rb
15
+ 2. make
16
+ 3. su
17
+ 4. make install
18
+
19
+ Copying
20
+ -------
21
+ Copyright (c) 2002-2005 Ruby-GNOME2 Project Team
22
+
23
+ This program is free software.
24
+ You can distribute/modify this program under the terms of
25
+ the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
26
+
27
+ Project Website
28
+ ---------------
29
+ http://ruby-gnome2.sourceforge.jp/
@@ -0,0 +1,34 @@
1
+ # -*- ruby -*-
2
+
3
+ $LOAD_PATH.unshift("./../glib2/lib")
4
+ require "gnome2/rake/package-task"
5
+
6
+ package_task = GNOME2::Rake::PackageTask.new do |package|
7
+ package.summary = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
8
+ package.description = "Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x."
9
+ package.dependency.gem.runtime = ["glib2"]
10
+ package.windows.packages = []
11
+ package.windows.dependencies = []
12
+ package.windows.build_dependencies = [
13
+ "glib2",
14
+ "gobject-introspection",
15
+ ]
16
+ package.external_packages = [
17
+ {
18
+ :name => "gdk-pixbuf",
19
+ :download_site => :gnome,
20
+ :label => "gdk-pixbuf",
21
+ :version => "2.30.8",
22
+ :compression_method => "xz",
23
+ :windows => {
24
+ :configure_args => [
25
+ "--with-included-loaders",
26
+ "--enable-introspection",
27
+ ],
28
+ :build_concurrently => false,
29
+ :built_file => "bin/libgdk_pixbuf-2.0-0.dll",
30
+ },
31
+ }
32
+ ]
33
+ end
34
+ package_task.define
@@ -0,0 +1,11 @@
1
+ install-so: install-headers
2
+ install-headers:
3
+ $(INSTALL_DATA) $(srcdir)/rbgdk-pixbuf.h $(RUBYARCHDIR)
4
+ $(INSTALL_DATA) $(srcdir)/rbgdk-pixbuf2conversions.h $(RUBYARCHDIR)
5
+
6
+ install: install-pc
7
+ install-pc:
8
+ if test -n "$(pkgconfigdir)"; then \
9
+ $(MAKEDIRS) $(pkgconfigdir); \
10
+ $(INSTALL_DATA) ruby-gdk-pixbuf2.pc $(pkgconfigdir); \
11
+ fi
@@ -0,0 +1,66 @@
1
+ =begin
2
+ extconf.rb for Ruby/GdkPixbuf2 extention library
3
+ =end
4
+
5
+ require 'pathname'
6
+
7
+ base_dir = Pathname(__FILE__).dirname.parent.parent.expand_path
8
+ top_dir = base_dir.parent
9
+ top_build_dir = Pathname(".").parent.parent.parent.expand_path
10
+
11
+ mkmf_gnome2_dir = top_dir + "glib2" + 'lib'
12
+ version_suffix = ""
13
+ unless mkmf_gnome2_dir.exist?
14
+ if /(-\d+\.\d+\.\d+)(?:\.\d+)?\z/ =~ base_dir.basename.to_s
15
+ version_suffix = $1
16
+ mkmf_gnome2_dir = top_dir + "glib2#{version_suffix}" + 'lib'
17
+ end
18
+ end
19
+
20
+ $LOAD_PATH.unshift(mkmf_gnome2_dir.to_s)
21
+
22
+ module_name = "gdk_pixbuf2"
23
+ package_id = "gdk-pixbuf-2.0"
24
+
25
+ begin
26
+ require 'mkmf-gnome2'
27
+ rescue LoadError
28
+ require 'rubygems'
29
+ gem 'glib2'
30
+ require 'mkmf-gnome2'
31
+ end
32
+
33
+ ["glib2"].each do |package|
34
+ directory = "#{package}#{version_suffix}"
35
+ build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
36
+ add_depend_package(package, "#{directory}/ext/#{package}",
37
+ top_dir.to_s,
38
+ :top_build_dir => top_build_dir.to_s,
39
+ :target_build_dir => build_dir)
40
+ end
41
+
42
+ setup_windows(module_name, base_dir)
43
+
44
+ unless required_pkg_config_package(package_id,
45
+ :debian => "libgdk-pixbuf2.0-dev",
46
+ :redhat => "gtk2-devel",
47
+ :fedora => "gdk-pixbuf2-devel",
48
+ :homebrew => "gdk-pixbuf",
49
+ :macports => "gdk-pixbuf2")
50
+ exit(false)
51
+ end
52
+
53
+ have_func("gdk_pixbuf_set_option", "gdk-pixbuf/gdk-pixbuf.h") do |src|
54
+ "#define GDK_PIXBUF_ENABLE_BACKEND\n#{src}"
55
+ end
56
+
57
+ create_pkg_config_file("Ruby/GdkPixbuf2", package_id, nil, "ruby-gdk-pixbuf2.pc")
58
+ create_makefile(module_name)
59
+
60
+ pkg_config_dir = with_config("pkg-config-dir")
61
+ if pkg_config_dir.is_a?(String)
62
+ File.open("Makefile", "ab") do |makefile|
63
+ makefile.puts
64
+ makefile.puts("pkgconfigdir=#{pkg_config_dir}")
65
+ end
66
+ end
@@ -0,0 +1,2 @@
1
+ EXPORTS
2
+ Init_gdk_pixbuf2
@@ -0,0 +1,179 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2004 Masao Mutoh
5
+ *
6
+ * This library is free software; you can redistribute it and/or
7
+ * modify it under the terms of the GNU Lesser General Public
8
+ * License as published by the Free Software Foundation; either
9
+ * version 2.1 of the License, or (at your option) any later version.
10
+ *
11
+ * This library is distributed in the hope that it will be useful,
12
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
+ * Lesser General Public License for more details.
15
+ *
16
+ * You should have received a copy of the GNU Lesser General Public
17
+ * License along with this library; if not, write to the Free Software
18
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
+ * MA 02110-1301 USA
20
+ */
21
+
22
+ #include "rbgdk-pixbuf2private.h"
23
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
24
+
25
+ #ifdef HAVE_GDK_PIXBUF_GDK_PIXBUF_IO_H
26
+ #include <gdk-pixbuf/gdk-pixbuf-io.h>
27
+ #endif
28
+
29
+ #define RG_TARGET_NAMESPACE cPixbufFormat
30
+ #define _SELF(r) (RVAL2GDKPIXBUFFORMAT(r))
31
+
32
+ /**********************************/
33
+ static GdkPixbufFormat*
34
+ format_copy(const GdkPixbufFormat* val)
35
+ {
36
+ GdkPixbufFormat* new_val;
37
+ g_return_val_if_fail (val != NULL, NULL);
38
+ new_val = g_new(GdkPixbufFormat, 1);
39
+ *new_val = *val;
40
+ return new_val;
41
+ }
42
+
43
+ GType
44
+ gdk_pixbuf_format_get_type(void)
45
+ {
46
+ static GType our_type = 0;
47
+
48
+ if (our_type == 0)
49
+ our_type = g_boxed_type_register_static ("GdkPixbufFormat",
50
+ (GBoxedCopyFunc)format_copy,
51
+ (GBoxedFreeFunc)g_free);
52
+ return our_type;
53
+ }
54
+ /**********************************/
55
+
56
+ /* Move to rbgdk-pixbuf.c
57
+ gboolean gdk_pixbuf_set_option (GdkPixbuf *pixbuf,
58
+ const gchar *key,
59
+ const gchar *value);
60
+ GSList* gdk_pixbuf_get_formats (void);
61
+ */
62
+
63
+ static VALUE
64
+ rg_name(VALUE self)
65
+ {
66
+ return CSTR2RVAL_FREE(gdk_pixbuf_format_get_name(_SELF(self)));
67
+ }
68
+
69
+ static VALUE
70
+ rg_description(VALUE self)
71
+ {
72
+ return CSTR2RVAL_FREE(gdk_pixbuf_format_get_description(_SELF(self)));
73
+ }
74
+
75
+ static VALUE
76
+ rg_mime_types(VALUE self)
77
+ {
78
+ gint i = 0;
79
+ gchar** mime_types = gdk_pixbuf_format_get_mime_types(_SELF(self));
80
+ VALUE array = rb_ary_new();
81
+ while(mime_types[i]){
82
+ rb_ary_push(array, CSTR2RVAL(mime_types[i]));
83
+ i++;
84
+ }
85
+ g_strfreev(mime_types);
86
+ return array;
87
+ }
88
+
89
+ static VALUE
90
+ rg_extensions(VALUE self)
91
+ {
92
+ gint i = 0;
93
+ gchar** extensions = gdk_pixbuf_format_get_extensions(_SELF(self));
94
+ VALUE array = rb_ary_new();
95
+
96
+ while(extensions[i]){
97
+ rb_ary_push(array, CSTR2RVAL(extensions[i]));
98
+ i++;
99
+ }
100
+ g_strfreev(extensions);
101
+ return array;
102
+ }
103
+
104
+ static VALUE
105
+ rg_writable_p(VALUE self)
106
+ {
107
+ return CBOOL2RVAL(gdk_pixbuf_format_is_writable(_SELF(self)));
108
+ }
109
+
110
+ /* Structure */
111
+ static VALUE
112
+ rg_domain(VALUE self)
113
+ {
114
+ return CSTR2RVAL(_SELF(self)->domain);
115
+ }
116
+
117
+ static VALUE
118
+ rg_signature(VALUE self)
119
+ {
120
+ GdkPixbufModulePattern* signature = _SELF(self)->signature;
121
+
122
+ VALUE array = rb_ary_new();
123
+ int i = 0;
124
+ while(signature[i].prefix){
125
+ rb_ary_push(array, rb_ary_new3(3, CSTR2RVAL((const char*)signature[i].prefix),
126
+ CSTR2RVAL((const char*)signature[i].mask),
127
+ INT2NUM(signature[i].relevance)));
128
+ i++;
129
+ }
130
+ return array;
131
+ }
132
+ #endif
133
+
134
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,6,0)
135
+ static VALUE
136
+ rg_scalable_p(VALUE self)
137
+ {
138
+ return CBOOL2RVAL(gdk_pixbuf_format_is_scalable(_SELF(self)));
139
+ }
140
+ static VALUE
141
+ rg_disabled_p(VALUE self)
142
+ {
143
+ return CBOOL2RVAL(gdk_pixbuf_format_is_disabled(_SELF(self)));
144
+ }
145
+ static VALUE
146
+ rg_set_disabled(VALUE self, VALUE disabled)
147
+ {
148
+ gdk_pixbuf_format_set_disabled(_SELF(self), RVAL2CBOOL(disabled));
149
+ return self;
150
+ }
151
+ static VALUE
152
+ rg_license(VALUE self)
153
+ {
154
+ return CSTR2RVAL(gdk_pixbuf_format_get_license(_SELF(self)));
155
+ }
156
+ #endif
157
+
158
+ void
159
+ Init_gdk_pixbuf_format(VALUE mGdk)
160
+ {
161
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
162
+ VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_PIXBUF_FORMAT, "PixbufFormat", mGdk);
163
+
164
+ RG_DEF_METHOD(name, 0);
165
+ RG_DEF_METHOD(description, 0);
166
+ RG_DEF_METHOD(mime_types, 0);
167
+ RG_DEF_METHOD(extensions, 0);
168
+ RG_DEF_METHOD_P(writable, 0);
169
+ RG_DEF_METHOD(domain, 0);
170
+ RG_DEF_METHOD(signature, 0);
171
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,6,0)
172
+ RG_DEF_METHOD_P(scalable, 0);
173
+ RG_DEF_METHOD_P(disabled, 0);
174
+ RG_DEF_METHOD(set_disabled, 1);
175
+ RG_DEF_METHOD(license, 0);
176
+
177
+ #endif
178
+ #endif
179
+ }
@@ -0,0 +1,164 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2004 Masao Mutoh
5
+ * Copyright (C) 2003 Geoff Youngs
6
+ *
7
+ * This library is free software; you can redistribute it and/or
8
+ * modify it under the terms of the GNU Lesser General Public
9
+ * License as published by the Free Software Foundation; either
10
+ * version 2.1 of the License, or (at your option) any later version.
11
+ *
12
+ * This library is distributed in the hope that it will be useful,
13
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
14
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
+ * Lesser General Public License for more details.
16
+ *
17
+ * You should have received a copy of the GNU Lesser General Public
18
+ * License along with this library; if not, write to the Free Software
19
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
20
+ * MA 02110-1301 USA
21
+ */
22
+
23
+ #include "rbgdk-pixbuf2private.h"
24
+
25
+ #define RG_TARGET_NAMESPACE cPixbufLoader
26
+ #define _SELF(s) RVAL2GDKPIXBUFLOADER(s)
27
+
28
+ /****************************************************/
29
+ /* File opening */
30
+ /* Image Data in Memory */
31
+ static VALUE
32
+ rg_initialize(int argc, VALUE *argv, VALUE self)
33
+ {
34
+ GdkPixbufLoader* loader;
35
+ GError* error = NULL;
36
+ VALUE arg1, is_mime_type;
37
+
38
+ rb_scan_args(argc, argv, "02", &arg1, &is_mime_type);
39
+
40
+ if (NIL_P(arg1)) {
41
+ loader = gdk_pixbuf_loader_new();
42
+ } else {
43
+ if (is_mime_type == Qtrue) {
44
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,4,0)
45
+ loader = gdk_pixbuf_loader_new_with_mime_type(RVAL2CSTR(arg1), &error);
46
+ #else
47
+ rb_warning("Not supported GTK+-2.0/2.2.");
48
+ loader = gdk_pixbuf_loader_new();
49
+ #endif
50
+ } else {
51
+ /* Default behavior */
52
+ loader = gdk_pixbuf_loader_new_with_type(RVAL2CSTR(arg1), &error);
53
+ }
54
+ if(error) RAISE_GERROR(error);
55
+ }
56
+
57
+ G_INITIALIZE(self, loader);
58
+ return Qnil;
59
+ }
60
+
61
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
62
+ static VALUE
63
+ rg_format(VALUE self)
64
+ {
65
+ GdkPixbufFormat* format = gdk_pixbuf_loader_get_format(_SELF(self));
66
+ return GDKPIXBUFFORMAT2RVAL(format);
67
+ }
68
+ #endif
69
+
70
+ static VALUE
71
+ rg_write(VALUE self, VALUE data)
72
+ {
73
+ GError *error = NULL;
74
+
75
+ StringValue(data);
76
+ if (!gdk_pixbuf_loader_write(_SELF(self),
77
+ (const guchar *)RSTRING_PTR(data),
78
+ RSTRING_LEN(data),
79
+ &error))
80
+ RAISE_GERROR(error);
81
+
82
+ return Qtrue;
83
+ }
84
+
85
+ static VALUE
86
+ rg_last_write(VALUE self, VALUE data)
87
+ {
88
+ GError *error = NULL;
89
+
90
+ StringValue(data);
91
+ if (!gdk_pixbuf_loader_write(_SELF(self),
92
+ (const guchar *)RSTRING_PTR(data),
93
+ RSTRING_LEN(data),
94
+ &error))
95
+ RAISE_GERROR(error);
96
+
97
+ if (!gdk_pixbuf_loader_close(_SELF(self), &error))
98
+ RAISE_GERROR(error);
99
+
100
+ return Qtrue;
101
+ }
102
+
103
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
104
+ static VALUE
105
+ rg_set_size(VALUE self, VALUE width, VALUE height)
106
+ {
107
+ gdk_pixbuf_loader_set_size(_SELF(self), NUM2INT(width), NUM2INT(height));
108
+ return self;
109
+ }
110
+ #endif
111
+
112
+ static VALUE
113
+ rg_close(VALUE self)
114
+ {
115
+ GError *error = NULL;
116
+ gboolean res;
117
+
118
+ res = gdk_pixbuf_loader_close(_SELF(self), &error);
119
+ if(error)
120
+ RAISE_GERROR(error);
121
+
122
+ return CBOOL2RVAL(res);
123
+ }
124
+
125
+ /****************************************************/
126
+ /* Creating image */
127
+ static VALUE
128
+ rg_pixbuf(VALUE self)
129
+ {
130
+ return GOBJ2RVAL(gdk_pixbuf_loader_get_pixbuf(_SELF(self)));
131
+ }
132
+
133
+ /* Creating animation */
134
+ static VALUE
135
+ rg_animation(VALUE self)
136
+ {
137
+ return GOBJ2RVAL(gdk_pixbuf_loader_get_animation(_SELF(self)));
138
+ }
139
+
140
+ void
141
+ Init_gdk_pixbuf_loader(VALUE mGdk)
142
+ {
143
+ VALUE RG_TARGET_NAMESPACE;
144
+ /* initialize it */
145
+ RG_TARGET_NAMESPACE = G_DEF_CLASS(GDK_TYPE_PIXBUF_LOADER, "PixbufLoader", mGdk);
146
+
147
+ /*
148
+ * File Loading, Image Data in Memory
149
+ */
150
+ RG_DEF_METHOD(initialize, -1);
151
+
152
+ rb_undef_method(RG_TARGET_NAMESPACE, "dup");
153
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
154
+ RG_DEF_METHOD(format, 0);
155
+ #endif
156
+ RG_DEF_METHOD(write, 1);
157
+ RG_DEF_METHOD(last_write, 1);
158
+ #if RBGDK_PIXBUF_CHECK_VERSION(2,2,0)
159
+ RG_DEF_METHOD(set_size, 2);
160
+ #endif
161
+ RG_DEF_METHOD(close, 0);
162
+ RG_DEF_METHOD(pixbuf, 0);
163
+ RG_DEF_METHOD(animation, 0);
164
+ }