atk 2.2.4-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (252) hide show
  1. checksums.yaml +7 -0
  2. data/README +30 -0
  3. data/Rakefile +31 -0
  4. data/ext/atk/atk.def +2 -0
  5. data/ext/atk/depend +11 -0
  6. data/ext/atk/extconf.rb +81 -0
  7. data/ext/atk/rbatk.c +66 -0
  8. data/ext/atk/rbatk.h +47 -0
  9. data/ext/atk/rbatkaction.c +85 -0
  10. data/ext/atk/rbatkcomponent.c +175 -0
  11. data/ext/atk/rbatkconversions.h +70 -0
  12. data/ext/atk/rbatkdocument.c +96 -0
  13. data/ext/atk/rbatkeditabletext.c +177 -0
  14. data/ext/atk/rbatkgobjectaccessible.c +46 -0
  15. data/ext/atk/rbatkhyperlink.c +71 -0
  16. data/ext/atk/rbatkhypertext.c +53 -0
  17. data/ext/atk/rbatkimage.c +68 -0
  18. data/ext/atk/rbatkimplementor.c +38 -0
  19. data/ext/atk/rbatknoopobject.c +40 -0
  20. data/ext/atk/rbatknoopobjectfactory.c +40 -0
  21. data/ext/atk/rbatkobject.c +153 -0
  22. data/ext/atk/rbatkobjectfactory.c +53 -0
  23. data/ext/atk/rbatkobjectrole.c +50 -0
  24. data/ext/atk/rbatkprivate.h +48 -0
  25. data/ext/atk/rbatkregistry.c +63 -0
  26. data/ext/atk/rbatkrelation.c +98 -0
  27. data/ext/atk/rbatkrelationset.c +95 -0
  28. data/ext/atk/rbatkrelationtype.c +38 -0
  29. data/ext/atk/rbatkselection.c +87 -0
  30. data/ext/atk/rbatkstate.c +51 -0
  31. data/ext/atk/rbatkstateset.c +180 -0
  32. data/ext/atk/rbatkstreamablecontent.c +57 -0
  33. data/ext/atk/rbatktable.c +271 -0
  34. data/ext/atk/rbatktext.c +318 -0
  35. data/ext/atk/rbatktextattribute.c +54 -0
  36. data/ext/atk/rbatktextrange.c +92 -0
  37. data/ext/atk/rbatktextrectangle.c +149 -0
  38. data/ext/atk/rbatkutil.c +122 -0
  39. data/ext/atk/rbatkvalue.c +78 -0
  40. data/extconf.rb +49 -0
  41. data/lib/2.0/atk.so +0 -0
  42. data/lib/2.1/atk.so +0 -0
  43. data/lib/2.2/atk.so +0 -0
  44. data/lib/atk.rb +21 -0
  45. data/test/atk-test-utils.rb +21 -0
  46. data/test/run-test.rb +45 -0
  47. data/test/test-text-rectangle.rb +26 -0
  48. data/vendor/local/bin/libatk-1.0-0.dll +0 -0
  49. data/vendor/local/include/atk-1.0/atk/atk-enum-types.h +63 -0
  50. data/vendor/local/include/atk-1.0/atk/atk.h +61 -0
  51. data/vendor/local/include/atk-1.0/atk/atkaction.h +117 -0
  52. data/vendor/local/include/atk-1.0/atk/atkcomponent.h +225 -0
  53. data/vendor/local/include/atk-1.0/atk/atkdocument.h +113 -0
  54. data/vendor/local/include/atk-1.0/atk/atkeditabletext.h +109 -0
  55. data/vendor/local/include/atk-1.0/atk/atkgobjectaccessible.h +68 -0
  56. data/vendor/local/include/atk-1.0/atk/atkhyperlink.h +114 -0
  57. data/vendor/local/include/atk-1.0/atk/atkhyperlinkimpl.h +68 -0
  58. data/vendor/local/include/atk-1.0/atk/atkhypertext.h +78 -0
  59. data/vendor/local/include/atk-1.0/atk/atkimage.h +90 -0
  60. data/vendor/local/include/atk-1.0/atk/atkmisc.h +112 -0
  61. data/vendor/local/include/atk-1.0/atk/atknoopobject.h +59 -0
  62. data/vendor/local/include/atk-1.0/atk/atknoopobjectfactory.h +59 -0
  63. data/vendor/local/include/atk-1.0/atk/atkobject.h +751 -0
  64. data/vendor/local/include/atk-1.0/atk/atkobjectfactory.h +72 -0
  65. data/vendor/local/include/atk-1.0/atk/atkplug.h +66 -0
  66. data/vendor/local/include/atk-1.0/atk/atkrange.h +59 -0
  67. data/vendor/local/include/atk-1.0/atk/atkregistry.h +74 -0
  68. data/vendor/local/include/atk-1.0/atk/atkrelation.h +99 -0
  69. data/vendor/local/include/atk-1.0/atk/atkrelationset.h +91 -0
  70. data/vendor/local/include/atk-1.0/atk/atkrelationtype.h +83 -0
  71. data/vendor/local/include/atk-1.0/atk/atkselection.h +100 -0
  72. data/vendor/local/include/atk-1.0/atk/atksocket.h +71 -0
  73. data/vendor/local/include/atk-1.0/atk/atkstate.h +190 -0
  74. data/vendor/local/include/atk-1.0/atk/atkstateset.h +92 -0
  75. data/vendor/local/include/atk-1.0/atk/atkstreamablecontent.h +110 -0
  76. data/vendor/local/include/atk-1.0/atk/atktable.h +233 -0
  77. data/vendor/local/include/atk-1.0/atk/atktablecell.h +104 -0
  78. data/vendor/local/include/atk-1.0/atk/atktext.h +453 -0
  79. data/vendor/local/include/atk-1.0/atk/atkutil.h +357 -0
  80. data/vendor/local/include/atk-1.0/atk/atkvalue.h +163 -0
  81. data/vendor/local/include/atk-1.0/atk/atkversion.h +394 -0
  82. data/vendor/local/include/atk-1.0/atk/atkwindow.h +53 -0
  83. data/vendor/local/lib/girepository-1.0/Atk-1.0.typelib +0 -0
  84. data/vendor/local/lib/libatk-1.0.dll.a +0 -0
  85. data/vendor/local/lib/libatk-1.0.la +41 -0
  86. data/vendor/local/lib/pkgconfig/atk.pc +11 -0
  87. data/vendor/local/share/gir-1.0/Atk-1.0.gir +15525 -0
  88. data/vendor/local/share/gtk-doc/html/atk/AtkAction.html +477 -0
  89. data/vendor/local/share/gtk-doc/html/atk/AtkComponent.html +1146 -0
  90. data/vendor/local/share/gtk-doc/html/atk/AtkDocument.html +714 -0
  91. data/vendor/local/share/gtk-doc/html/atk/AtkEditableText.html +429 -0
  92. data/vendor/local/share/gtk-doc/html/atk/AtkGObjectAccessible.html +166 -0
  93. data/vendor/local/share/gtk-doc/html/atk/AtkHyperlink.html +570 -0
  94. data/vendor/local/share/gtk-doc/html/atk/AtkHypertext.html +286 -0
  95. data/vendor/local/share/gtk-doc/html/atk/AtkImage.html +319 -0
  96. data/vendor/local/share/gtk-doc/html/atk/AtkMisc.html +191 -0
  97. data/vendor/local/share/gtk-doc/html/atk/AtkNoOpObject.html +130 -0
  98. data/vendor/local/share/gtk-doc/html/atk/AtkNoOpObjectFactory.html +107 -0
  99. data/vendor/local/share/gtk-doc/html/atk/AtkObject.html +3056 -0
  100. data/vendor/local/share/gtk-doc/html/atk/AtkObjectFactory.html +214 -0
  101. data/vendor/local/share/gtk-doc/html/atk/AtkRegistry.html +265 -0
  102. data/vendor/local/share/gtk-doc/html/atk/AtkRelation.html +659 -0
  103. data/vendor/local/share/gtk-doc/html/atk/AtkRelationSet.html +413 -0
  104. data/vendor/local/share/gtk-doc/html/atk/AtkSelection.html +453 -0
  105. data/vendor/local/share/gtk-doc/html/atk/AtkStateSet.html +539 -0
  106. data/vendor/local/share/gtk-doc/html/atk/AtkStreamableContent.html +274 -0
  107. data/vendor/local/share/gtk-doc/html/atk/AtkTable.html +1790 -0
  108. data/vendor/local/share/gtk-doc/html/atk/AtkTableCell.html +497 -0
  109. data/vendor/local/share/gtk-doc/html/atk/AtkText.html +2547 -0
  110. data/vendor/local/share/gtk-doc/html/atk/AtkUtil.html +1111 -0
  111. data/vendor/local/share/gtk-doc/html/atk/AtkValue.html +743 -0
  112. data/vendor/local/share/gtk-doc/html/atk/AtkWindow.html +452 -0
  113. data/vendor/local/share/gtk-doc/html/atk/accessibles.html +49 -0
  114. data/vendor/local/share/gtk-doc/html/atk/api-index-1-12.html +51 -0
  115. data/vendor/local/share/gtk-doc/html/atk/api-index-1-13.html +41 -0
  116. data/vendor/local/share/gtk-doc/html/atk/api-index-1-20.html +35 -0
  117. data/vendor/local/share/gtk-doc/html/atk/api-index-1-22.html +45 -0
  118. data/vendor/local/share/gtk-doc/html/atk/api-index-1-3.html +41 -0
  119. data/vendor/local/share/gtk-doc/html/atk/api-index-1-30.html +41 -0
  120. data/vendor/local/share/gtk-doc/html/atk/api-index-1-4.html +35 -0
  121. data/vendor/local/share/gtk-doc/html/atk/api-index-1-6.html +35 -0
  122. data/vendor/local/share/gtk-doc/html/atk/api-index-1-9.html +39 -0
  123. data/vendor/local/share/gtk-doc/html/atk/api-index-2-10.html +35 -0
  124. data/vendor/local/share/gtk-doc/html/atk/api-index-2-12.html +78 -0
  125. data/vendor/local/share/gtk-doc/html/atk/api-index-2-2.html +53 -0
  126. data/vendor/local/share/gtk-doc/html/atk/api-index-2-8.html +47 -0
  127. data/vendor/local/share/gtk-doc/html/atk/api-index-deprecated.html +119 -0
  128. data/vendor/local/share/gtk-doc/html/atk/api-index-full.html +775 -0
  129. data/vendor/local/share/gtk-doc/html/atk/atk-AtkHyperlinkImpl.html +142 -0
  130. data/vendor/local/share/gtk-doc/html/atk/atk-AtkPlug.html +147 -0
  131. data/vendor/local/share/gtk-doc/html/atk/atk-AtkRange.html +328 -0
  132. data/vendor/local/share/gtk-doc/html/atk/atk-AtkSocket.html +207 -0
  133. data/vendor/local/share/gtk-doc/html/atk/atk-AtkState.html +556 -0
  134. data/vendor/local/share/gtk-doc/html/atk/atk-Versioning-Utilities.html +293 -0
  135. data/vendor/local/share/gtk-doc/html/atk/atk.devhelp2 +441 -0
  136. data/vendor/local/share/gtk-doc/html/atk/atkobject.html +33 -0
  137. data/vendor/local/share/gtk-doc/html/atk/data.html +49 -0
  138. data/vendor/local/share/gtk-doc/html/atk/deprecated.html +33 -0
  139. data/vendor/local/share/gtk-doc/html/atk/home.png +0 -0
  140. data/vendor/local/share/gtk-doc/html/atk/index.html +175 -0
  141. data/vendor/local/share/gtk-doc/html/atk/index.sgml +632 -0
  142. data/vendor/local/share/gtk-doc/html/atk/interfaces.html +89 -0
  143. data/vendor/local/share/gtk-doc/html/atk/left-insensitive.png +0 -0
  144. data/vendor/local/share/gtk-doc/html/atk/left.png +0 -0
  145. data/vendor/local/share/gtk-doc/html/atk/overview.html +47 -0
  146. data/vendor/local/share/gtk-doc/html/atk/right-insensitive.png +0 -0
  147. data/vendor/local/share/gtk-doc/html/atk/right.png +0 -0
  148. data/vendor/local/share/gtk-doc/html/atk/style.css +476 -0
  149. data/vendor/local/share/gtk-doc/html/atk/toolkit.html +33 -0
  150. data/vendor/local/share/gtk-doc/html/atk/up-insensitive.png +0 -0
  151. data/vendor/local/share/gtk-doc/html/atk/up.png +0 -0
  152. data/vendor/local/share/gtk-doc/html/atk/utilities.html +47 -0
  153. data/vendor/local/share/license/atk/AUTHORS +18 -0
  154. data/vendor/local/share/license/atk/COPYING +482 -0
  155. data/vendor/local/share/locale/af/LC_MESSAGES/atk10.mo +0 -0
  156. data/vendor/local/share/locale/am/LC_MESSAGES/atk10.mo +0 -0
  157. data/vendor/local/share/locale/an/LC_MESSAGES/atk10.mo +0 -0
  158. data/vendor/local/share/locale/ar/LC_MESSAGES/atk10.mo +0 -0
  159. data/vendor/local/share/locale/as/LC_MESSAGES/atk10.mo +0 -0
  160. data/vendor/local/share/locale/ast/LC_MESSAGES/atk10.mo +0 -0
  161. data/vendor/local/share/locale/az/LC_MESSAGES/atk10.mo +0 -0
  162. data/vendor/local/share/locale/be/LC_MESSAGES/atk10.mo +0 -0
  163. data/vendor/local/share/locale/be@latin/LC_MESSAGES/atk10.mo +0 -0
  164. data/vendor/local/share/locale/bg/LC_MESSAGES/atk10.mo +0 -0
  165. data/vendor/local/share/locale/bn/LC_MESSAGES/atk10.mo +0 -0
  166. data/vendor/local/share/locale/bn_IN/LC_MESSAGES/atk10.mo +0 -0
  167. data/vendor/local/share/locale/bs/LC_MESSAGES/atk10.mo +0 -0
  168. data/vendor/local/share/locale/ca/LC_MESSAGES/atk10.mo +0 -0
  169. data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/atk10.mo +0 -0
  170. data/vendor/local/share/locale/cs/LC_MESSAGES/atk10.mo +0 -0
  171. data/vendor/local/share/locale/cy/LC_MESSAGES/atk10.mo +0 -0
  172. data/vendor/local/share/locale/da/LC_MESSAGES/atk10.mo +0 -0
  173. data/vendor/local/share/locale/de/LC_MESSAGES/atk10.mo +0 -0
  174. data/vendor/local/share/locale/dz/LC_MESSAGES/atk10.mo +0 -0
  175. data/vendor/local/share/locale/el/LC_MESSAGES/atk10.mo +0 -0
  176. data/vendor/local/share/locale/en@shaw/LC_MESSAGES/atk10.mo +0 -0
  177. data/vendor/local/share/locale/en_CA/LC_MESSAGES/atk10.mo +0 -0
  178. data/vendor/local/share/locale/en_GB/LC_MESSAGES/atk10.mo +0 -0
  179. data/vendor/local/share/locale/eo/LC_MESSAGES/atk10.mo +0 -0
  180. data/vendor/local/share/locale/es/LC_MESSAGES/atk10.mo +0 -0
  181. data/vendor/local/share/locale/et/LC_MESSAGES/atk10.mo +0 -0
  182. data/vendor/local/share/locale/eu/LC_MESSAGES/atk10.mo +0 -0
  183. data/vendor/local/share/locale/fa/LC_MESSAGES/atk10.mo +0 -0
  184. data/vendor/local/share/locale/fi/LC_MESSAGES/atk10.mo +0 -0
  185. data/vendor/local/share/locale/fr/LC_MESSAGES/atk10.mo +0 -0
  186. data/vendor/local/share/locale/ga/LC_MESSAGES/atk10.mo +0 -0
  187. data/vendor/local/share/locale/gl/LC_MESSAGES/atk10.mo +0 -0
  188. data/vendor/local/share/locale/gu/LC_MESSAGES/atk10.mo +0 -0
  189. data/vendor/local/share/locale/he/LC_MESSAGES/atk10.mo +0 -0
  190. data/vendor/local/share/locale/hi/LC_MESSAGES/atk10.mo +0 -0
  191. data/vendor/local/share/locale/hr/LC_MESSAGES/atk10.mo +0 -0
  192. data/vendor/local/share/locale/hu/LC_MESSAGES/atk10.mo +0 -0
  193. data/vendor/local/share/locale/hy/LC_MESSAGES/atk10.mo +0 -0
  194. data/vendor/local/share/locale/id/LC_MESSAGES/atk10.mo +0 -0
  195. data/vendor/local/share/locale/is/LC_MESSAGES/atk10.mo +0 -0
  196. data/vendor/local/share/locale/it/LC_MESSAGES/atk10.mo +0 -0
  197. data/vendor/local/share/locale/ja/LC_MESSAGES/atk10.mo +0 -0
  198. data/vendor/local/share/locale/ka/LC_MESSAGES/atk10.mo +0 -0
  199. data/vendor/local/share/locale/kk/LC_MESSAGES/atk10.mo +0 -0
  200. data/vendor/local/share/locale/km/LC_MESSAGES/atk10.mo +0 -0
  201. data/vendor/local/share/locale/kn/LC_MESSAGES/atk10.mo +0 -0
  202. data/vendor/local/share/locale/ko/LC_MESSAGES/atk10.mo +0 -0
  203. data/vendor/local/share/locale/ku/LC_MESSAGES/atk10.mo +0 -0
  204. data/vendor/local/share/locale/li/LC_MESSAGES/atk10.mo +0 -0
  205. data/vendor/local/share/locale/lt/LC_MESSAGES/atk10.mo +0 -0
  206. data/vendor/local/share/locale/lv/LC_MESSAGES/atk10.mo +0 -0
  207. data/vendor/local/share/locale/mai/LC_MESSAGES/atk10.mo +0 -0
  208. data/vendor/local/share/locale/mk/LC_MESSAGES/atk10.mo +0 -0
  209. data/vendor/local/share/locale/ml/LC_MESSAGES/atk10.mo +0 -0
  210. data/vendor/local/share/locale/mn/LC_MESSAGES/atk10.mo +0 -0
  211. data/vendor/local/share/locale/mr/LC_MESSAGES/atk10.mo +0 -0
  212. data/vendor/local/share/locale/ms/LC_MESSAGES/atk10.mo +0 -0
  213. data/vendor/local/share/locale/nb/LC_MESSAGES/atk10.mo +0 -0
  214. data/vendor/local/share/locale/ne/LC_MESSAGES/atk10.mo +0 -0
  215. data/vendor/local/share/locale/nl/LC_MESSAGES/atk10.mo +0 -0
  216. data/vendor/local/share/locale/nn/LC_MESSAGES/atk10.mo +0 -0
  217. data/vendor/local/share/locale/oc/LC_MESSAGES/atk10.mo +0 -0
  218. data/vendor/local/share/locale/or/LC_MESSAGES/atk10.mo +0 -0
  219. data/vendor/local/share/locale/pa/LC_MESSAGES/atk10.mo +0 -0
  220. data/vendor/local/share/locale/pl/LC_MESSAGES/atk10.mo +0 -0
  221. data/vendor/local/share/locale/ps/LC_MESSAGES/atk10.mo +0 -0
  222. data/vendor/local/share/locale/pt/LC_MESSAGES/atk10.mo +0 -0
  223. data/vendor/local/share/locale/pt_BR/LC_MESSAGES/atk10.mo +0 -0
  224. data/vendor/local/share/locale/ro/LC_MESSAGES/atk10.mo +0 -0
  225. data/vendor/local/share/locale/ru/LC_MESSAGES/atk10.mo +0 -0
  226. data/vendor/local/share/locale/rw/LC_MESSAGES/atk10.mo +0 -0
  227. data/vendor/local/share/locale/si/LC_MESSAGES/atk10.mo +0 -0
  228. data/vendor/local/share/locale/sk/LC_MESSAGES/atk10.mo +0 -0
  229. data/vendor/local/share/locale/sl/LC_MESSAGES/atk10.mo +0 -0
  230. data/vendor/local/share/locale/sq/LC_MESSAGES/atk10.mo +0 -0
  231. data/vendor/local/share/locale/sr/LC_MESSAGES/atk10.mo +0 -0
  232. data/vendor/local/share/locale/sr@ije/LC_MESSAGES/atk10.mo +0 -0
  233. data/vendor/local/share/locale/sr@latin/LC_MESSAGES/atk10.mo +0 -0
  234. data/vendor/local/share/locale/sv/LC_MESSAGES/atk10.mo +0 -0
  235. data/vendor/local/share/locale/ta/LC_MESSAGES/atk10.mo +0 -0
  236. data/vendor/local/share/locale/te/LC_MESSAGES/atk10.mo +0 -0
  237. data/vendor/local/share/locale/tg/LC_MESSAGES/atk10.mo +0 -0
  238. data/vendor/local/share/locale/th/LC_MESSAGES/atk10.mo +0 -0
  239. data/vendor/local/share/locale/tk/LC_MESSAGES/atk10.mo +0 -0
  240. data/vendor/local/share/locale/tr/LC_MESSAGES/atk10.mo +0 -0
  241. data/vendor/local/share/locale/tt/LC_MESSAGES/atk10.mo +0 -0
  242. data/vendor/local/share/locale/ug/LC_MESSAGES/atk10.mo +0 -0
  243. data/vendor/local/share/locale/uk/LC_MESSAGES/atk10.mo +0 -0
  244. data/vendor/local/share/locale/vi/LC_MESSAGES/atk10.mo +0 -0
  245. data/vendor/local/share/locale/wa/LC_MESSAGES/atk10.mo +0 -0
  246. data/vendor/local/share/locale/xh/LC_MESSAGES/atk10.mo +0 -0
  247. data/vendor/local/share/locale/yi/LC_MESSAGES/atk10.mo +0 -0
  248. data/vendor/local/share/locale/zh_CN/LC_MESSAGES/atk10.mo +0 -0
  249. data/vendor/local/share/locale/zh_HK/LC_MESSAGES/atk10.mo +0 -0
  250. data/vendor/local/share/locale/zh_TW/LC_MESSAGES/atk10.mo +0 -0
  251. data/vendor/local/share/locale/zu/LC_MESSAGES/atk10.mo +0 -0
  252. metadata +307 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 8aecb31752233b23bf2ed2c3ec941c9d9e2771c0
4
+ data.tar.gz: abeab39dab6b3ea68e8b2c3641cab02f25a1c987
5
+ SHA512:
6
+ metadata.gz: 692a1f3d4dbeecad5b161d714872a7b4a7415a86b3be2a935c64938a87b5b102a0a8fd6deec94de9388648b156f6c68c93ccf58b9eabe33926215b8ee18bc42b
7
+ data.tar.gz: bdf7e23259d59848c8996492b48d4a021338922a1e988f8d35e37c0346685def5ce91979453fa3aef7f3beeeeb175d50ee52e79125cad23b10aca2411adbd87e
data/README ADDED
@@ -0,0 +1,30 @@
1
+ Ruby/ATK
2
+ ===============
3
+ Ruby/ATK is a Ruby binding of ATK-1.12.x or later.
4
+
5
+ Requirements
6
+ ------------
7
+ Ruby: http://www.ruby-lang.org/
8
+ GLib: http://www.gtk.org/
9
+ ATK: http://developer.gnome.org/projects/gap
10
+ Ruby/GLib2: http://ruby-gnome2.sourceforge.net/
11
+
12
+ Install
13
+ -------
14
+ 0. install ruby-1.9.x or later, GLib, ATK, Ruby/GLib2.
15
+ 1. ruby extconf.rb
16
+ 2. make
17
+ 3. su
18
+ 4. make install
19
+
20
+ Copying
21
+ -------
22
+ Copyright (c) 2003-2005 Ruby-GNOME2 Project Team
23
+
24
+ This program is free software.
25
+ You can distribute/modify this program under the terms of
26
+ the GNU LESSER GENERAL PUBLIC LICENSE Version 2.1.
27
+
28
+ Project Website
29
+ ---------------
30
+ http://ruby-gnome2.sourceforge.jp/
data/Rakefile ADDED
@@ -0,0 +1,31 @@
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/ATK is a Ruby binding of ATK-1.0.x."
8
+ package.description = "Ruby/ATK is a Ruby binding of ATK-1.0.x."
9
+ package.dependency.gem.runtime = ["glib2"]
10
+ package.windows.packages = []
11
+ package.windows.dependencies = []
12
+ package.windows.build_dependencies = ["glib2", "gobject-introspection"]
13
+ package.external_packages = [
14
+ {
15
+ :name => "atk",
16
+ :download_site => :gnome,
17
+ :label => "atk",
18
+ :version => "2.14.0",
19
+ :compression_method => "xz",
20
+ :windows => {
21
+ :configure_args => [
22
+ "--enable-introspection",
23
+ ],
24
+ :build_concurrently => false,
25
+ :built_file => "bin/libatk-1.0-0.dll",
26
+ },
27
+ }
28
+ ]
29
+ end
30
+ package_task.define
31
+
data/ext/atk/atk.def ADDED
@@ -0,0 +1,2 @@
1
+ EXPORTS
2
+ Init_atk
data/ext/atk/depend ADDED
@@ -0,0 +1,11 @@
1
+ install-so: install-headers
2
+ install-headers:
3
+ $(INSTALL_DATA) $(srcdir)/rbatk.h $(RUBYARCHDIR)
4
+ $(INSTALL_DATA) rbatkversion.h $(RUBYARCHDIR)
5
+
6
+ install: install-pc
7
+ install-pc:
8
+ if test -n "$(pkgconfigdir)"; then \
9
+ $(MAKEDIRS) $(pkgconfigdir); \
10
+ $(INSTALL_DATA) ruby-atk.pc $(pkgconfigdir); \
11
+ fi
@@ -0,0 +1,81 @@
1
+ =begin
2
+ extconf.rb for Ruby/Atk 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 = "atk"
23
+ package_id = "atk"
24
+
25
+ begin
26
+ require 'mkmf-gnome2'
27
+ rescue LoadError
28
+ require 'rubygems'
29
+ gem 'glib2'
30
+ require 'mkmf-gnome2'
31
+ end
32
+
33
+ ruby_header = 'ruby.h'
34
+ have_func 'rb_errinfo', ruby_header
35
+
36
+ ["glib2"].each do |package|
37
+ directory = "#{package}#{version_suffix}"
38
+ build_dir = "#{directory}/tmp/#{RUBY_PLATFORM}/#{package}/#{RUBY_VERSION}"
39
+ add_depend_package(package, "#{directory}/ext/#{package}",
40
+ top_dir.to_s,
41
+ :top_build_dir => top_build_dir.to_s,
42
+ :target_build_dir => build_dir)
43
+ end
44
+
45
+ setup_windows(module_name, base_dir)
46
+
47
+ unless required_pkg_config_package([package_id, 1, 12, 0],
48
+ :debian => "libatk1.0-dev",
49
+ :redhat => "atk-devel",
50
+ :homebrew => "atk",
51
+ :macports => "atk")
52
+ exit(false)
53
+ end
54
+
55
+ atk_header = "atk/atk.h"
56
+ have_func('atk_action_get_localized_name', atk_header)
57
+ have_func('atk_hyperlink_is_inline', atk_header)
58
+ have_func('atk_object_add_relationship', atk_header)
59
+ have_func('atk_object_remove_relationship', atk_header)
60
+ have_func('atk_component_get_layer', atk_header)
61
+ have_func('atk_component_get_mdi_zorder', atk_header)
62
+ have_func('atk_hyperlink_is_selected_link', atk_header)
63
+ have_func('atk_text_get_bounded_ranges', atk_header)
64
+ have_func('atk_role_get_localized_name', atk_header)
65
+ have_func('atk_text_clip_type_get_type', atk_header)
66
+
67
+ have_func('atk_text_free_ranges', atk_header)
68
+
69
+ make_version_header("ATK", package_id, ".")
70
+
71
+ create_pkg_config_file("Ruby/ATK", package_id)
72
+ $defs << " -DRUBY_ATK_COMPILATION"
73
+ create_makefile(module_name)
74
+
75
+ pkg_config_dir = with_config("pkg-config-dir")
76
+ if pkg_config_dir.is_a?(String)
77
+ File.open("Makefile", "ab") do |makefile|
78
+ makefile.puts
79
+ makefile.puts("pkgconfigdir=#{pkg_config_dir}")
80
+ end
81
+ end
data/ext/atk/rbatk.c ADDED
@@ -0,0 +1,66 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2003-2005 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 "rbatkprivate.h"
23
+
24
+ #define RG_TARGET_NAMESPACE mAtk
25
+ VALUE mAtk;
26
+
27
+ extern void Init_atk(void);
28
+
29
+ void
30
+ Init_atk(void)
31
+ {
32
+ RG_TARGET_NAMESPACE = rb_define_module("Atk");
33
+
34
+ rb_define_const(RG_TARGET_NAMESPACE, "BUILD_VERSION",
35
+ rb_ary_new3(3,
36
+ INT2FIX(ATK_MAJOR_VERSION),
37
+ INT2FIX(ATK_MINOR_VERSION),
38
+ INT2FIX(ATK_MICRO_VERSION)));
39
+
40
+ Init_atk_action(RG_TARGET_NAMESPACE);
41
+ Init_atk_component(RG_TARGET_NAMESPACE);
42
+ Init_atk_document(RG_TARGET_NAMESPACE);
43
+ Init_atk_editabletext(RG_TARGET_NAMESPACE);
44
+ Init_atk_gobjectaccessible(RG_TARGET_NAMESPACE);
45
+ Init_atk_hyperlink(RG_TARGET_NAMESPACE);
46
+ Init_atk_hypertext(RG_TARGET_NAMESPACE);
47
+ Init_atk_image(RG_TARGET_NAMESPACE);
48
+ Init_atk_implementor(RG_TARGET_NAMESPACE);
49
+ Init_atk_noopobject(RG_TARGET_NAMESPACE);
50
+ Init_atk_noopobjectfactory(RG_TARGET_NAMESPACE);
51
+ Init_atk_object(RG_TARGET_NAMESPACE);
52
+ Init_atk_objectfactory(RG_TARGET_NAMESPACE);
53
+ Init_atk_registry(RG_TARGET_NAMESPACE);
54
+ Init_atk_relation(RG_TARGET_NAMESPACE);
55
+ Init_atk_relation_set(RG_TARGET_NAMESPACE);
56
+ Init_atk_selection(RG_TARGET_NAMESPACE);
57
+ Init_atk_state(RG_TARGET_NAMESPACE);
58
+ Init_atk_state_set(RG_TARGET_NAMESPACE);
59
+ Init_atk_streamable_content(RG_TARGET_NAMESPACE);
60
+ Init_atk_table(RG_TARGET_NAMESPACE);
61
+ Init_atk_text(RG_TARGET_NAMESPACE);
62
+ Init_atk_text_range(RG_TARGET_NAMESPACE);
63
+ Init_atk_text_rectangle(RG_TARGET_NAMESPACE);
64
+ Init_atk_util(RG_TARGET_NAMESPACE);
65
+ Init_atk_value(RG_TARGET_NAMESPACE);
66
+ }
data/ext/atk/rbatk.h ADDED
@@ -0,0 +1,47 @@
1
+ /* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
2
+ /*
3
+ * Copyright (C) 2011 Ruby-GNOME2 Project Team
4
+ * Copyright (C) 2003,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 "ruby.h"
23
+ #include <atk/atk.h>
24
+ #include <atk/atk-enum-types.h>
25
+ #include <atk/atknoopobject.h>
26
+ #include <atk/atknoopobjectfactory.h>
27
+ #include "rbgobject.h"
28
+ #include "rbatkversion.h"
29
+ #include "rbatkconversions.h"
30
+
31
+ #if defined(G_PLATFORM_WIN32) && !defined(RUBY_ATK_STATIC_COMPILATION)
32
+ # ifdef RUBY_ATK_COMPILATION
33
+ # define RUBY_ATK_VAR __declspec(dllexport)
34
+ # else
35
+ # define RUBY_ATK_VAR extern __declspec(dllimport)
36
+ # endif
37
+ #else
38
+ # define RUBY_ATK_VAR extern
39
+ #endif
40
+
41
+ extern GType atk_text_rectangle_get_type(void);
42
+ extern GType atk_text_range_get_type(void);
43
+
44
+ RUBY_ATK_VAR VALUE mAtk;
45
+
46
+ #define ATK_TYPE_TEXT_RECTANGLE (atk_text_rectangle_get_type())
47
+ #define ATK_TYPE_TEXT_RANGE (atk_text_range_get_type())
@@ -0,0 +1,85 @@
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 "rbatkprivate.h"
23
+
24
+ #define RG_TARGET_NAMESPACE mAction
25
+ #define _SELF(s) (RVAL2ATKACTION(s))
26
+
27
+ static VALUE
28
+ rg_do_action(VALUE self, VALUE i)
29
+ {
30
+ return CBOOL2RVAL(atk_action_do_action(_SELF(self), NUM2INT(i)));
31
+ }
32
+
33
+ static VALUE
34
+ rg_n_actions(VALUE self)
35
+ {
36
+ return INT2NUM(atk_action_get_n_actions(_SELF(self)));
37
+ }
38
+
39
+ static VALUE
40
+ rg_get_description(VALUE self, VALUE i)
41
+ {
42
+ return CSTR2RVAL(atk_action_get_description(_SELF(self), NUM2INT(i)));
43
+ }
44
+
45
+ static VALUE
46
+ rg_get_name(VALUE self, VALUE i)
47
+ {
48
+ return CSTR2RVAL(atk_action_get_name(_SELF(self), NUM2INT(i)));
49
+ }
50
+
51
+ #ifdef HAVE_ATK_ACTION_GET_LOCALIZED_NAME
52
+ static VALUE
53
+ rg_get_localized_name(VALUE self, VALUE i)
54
+ {
55
+ return CSTR2RVAL(atk_action_get_localized_name(_SELF(self), NUM2INT(i)));
56
+ }
57
+ #endif
58
+
59
+ static VALUE
60
+ rg_get_keybinding(VALUE self, VALUE i)
61
+ {
62
+ return CSTR2RVAL(atk_action_get_keybinding(_SELF(self), NUM2INT(i)));
63
+ }
64
+
65
+ static VALUE
66
+ rg_set_description(VALUE self, VALUE i, VALUE desc)
67
+ {
68
+ return CBOOL2RVAL(atk_action_set_description(_SELF(self), NUM2INT(i), RVAL2CSTR(desc)));
69
+ }
70
+
71
+ void
72
+ Init_atk_action(VALUE mAtk)
73
+ {
74
+ VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_ACTION, "Action", mAtk);
75
+
76
+ RG_DEF_METHOD(do_action, 1);
77
+ RG_DEF_METHOD(n_actions, 0);
78
+ RG_DEF_METHOD(get_description, 1);
79
+ RG_DEF_METHOD(get_name, 1);
80
+ #ifdef HAVE_ATK_ACTION_GET_LOCALIZED_NAME
81
+ RG_DEF_METHOD(get_localized_name, 1);
82
+ #endif
83
+ RG_DEF_METHOD(get_keybinding, 1);
84
+ RG_DEF_METHOD(set_description, 2);
85
+ }
@@ -0,0 +1,175 @@
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 "rbatkprivate.h"
23
+
24
+ #define RG_TARGET_NAMESPACE mComponent
25
+ #define _SELF(s) (RVAL2ATKCOMPONENT(s))
26
+
27
+ /*
28
+ static void
29
+ focus_handler(AtkObject *aobj, gboolean bool)
30
+ {
31
+ VALUE ret = rb_funcall((VALUE)func, id_call, 2,
32
+ GOBJ2RVAL(aobj), CBOOL2RVAL(bool));
33
+ }
34
+ static VALUE
35
+ rg_add_focus_handler(VALUE self)
36
+ {
37
+ VALUE func = rb_block_proc();
38
+ G_RELATIVE(self, func);
39
+ return UINT2NUM(atk_component_add_focus_handler(_SELF(self), focus_handler));
40
+ }
41
+ */
42
+
43
+ static VALUE
44
+ rg_contains_p(VALUE self, VALUE x, VALUE y, VALUE coord_type)
45
+ {
46
+ return CBOOL2RVAL(atk_component_contains(_SELF(self),
47
+ NUM2INT(x), NUM2INT(y),
48
+ RVAL2ATKCOORDTYPE(coord_type)));
49
+ }
50
+
51
+ static VALUE
52
+ rg_get_extents(VALUE self, VALUE coord_type)
53
+ {
54
+ gint x, y, width, height;
55
+ atk_component_get_extents(_SELF(self), &x, &y, &width, &height,
56
+ RVAL2ATKCOORDTYPE(coord_type));
57
+ return rb_ary_new3(4, INT2NUM(x), INT2NUM(y), INT2NUM(width), INT2NUM(height));
58
+ }
59
+
60
+ #ifdef HAVE_ATK_COMPONENT_GET_LAYER
61
+ static VALUE
62
+ rg_layer(VALUE self)
63
+ {
64
+ return ATKLAYER2RVAL(atk_component_get_layer(_SELF(self)));
65
+ }
66
+ #endif
67
+
68
+ #ifdef HAVE_ATK_COMPONENT_GET_MDI_ZORDER
69
+ static VALUE
70
+ rg_mdi_zorder(VALUE self)
71
+ {
72
+ return INT2NUM(atk_component_get_mdi_zorder(_SELF(self)));
73
+ }
74
+
75
+ #endif
76
+ static VALUE
77
+ rg_position(VALUE self, VALUE coord_type)
78
+ {
79
+ gint x, y;
80
+ atk_component_get_position(_SELF(self), &x, &y,
81
+ RVAL2ATKCOORDTYPE(coord_type));
82
+ return rb_assoc_new(INT2NUM(x), INT2NUM(y));
83
+ }
84
+
85
+ static VALUE
86
+ rg_size(VALUE self)
87
+ {
88
+ gint width, height;
89
+ atk_component_get_size(_SELF(self), &width, &height);
90
+ return rb_assoc_new(INT2NUM(width), INT2NUM(height));
91
+ }
92
+
93
+ static VALUE
94
+ rg_grab_focus(VALUE self)
95
+ {
96
+ return CBOOL2RVAL(atk_component_grab_focus(_SELF(self)));
97
+ }
98
+
99
+ static VALUE
100
+ rg_ref_accessible_at_point(VALUE self, VALUE x, VALUE y, VALUE coord_type)
101
+ {
102
+ return GOBJ2RVAL(atk_component_ref_accessible_at_point(
103
+ _SELF(self),
104
+ NUM2INT(x), NUM2INT(y),
105
+ RVAL2ATKCOORDTYPE(coord_type)));
106
+ }
107
+
108
+ static VALUE
109
+ rg_remove_focus_handler(VALUE self, VALUE handler_id)
110
+ {
111
+ atk_component_remove_focus_handler(_SELF(self), NUM2UINT(handler_id));
112
+ return self;
113
+ }
114
+
115
+ static VALUE
116
+ rg_set_extents(VALUE self, VALUE x, VALUE y, VALUE width, VALUE height, VALUE coord_type)
117
+ {
118
+ gboolean ret = atk_component_set_extents(_SELF(self),
119
+ NUM2INT(x), NUM2INT(y),
120
+ NUM2INT(width), NUM2INT(height),
121
+ RVAL2ATKCOORDTYPE(coord_type));
122
+ if (! ret) rb_raise(rb_eRuntimeError, "Can't set extents");
123
+ return self;
124
+ }
125
+
126
+ static VALUE
127
+ rg_set_position(VALUE self, VALUE x, VALUE y, VALUE coord_type)
128
+ {
129
+ gboolean ret = atk_component_set_position(_SELF(self),
130
+ NUM2INT(x), NUM2INT(y),
131
+ RVAL2ATKCOORDTYPE(coord_type));
132
+ if (! ret) rb_raise(rb_eRuntimeError, "Can't set the position");
133
+ return self;
134
+ }
135
+
136
+ static VALUE
137
+ rg_set_size(VALUE self, VALUE width, VALUE height)
138
+ {
139
+ gboolean ret = atk_component_set_size(_SELF(self),
140
+ NUM2INT(width), NUM2INT(height));
141
+ if (! ret) rb_raise(rb_eRuntimeError, "Can't set the size");
142
+ return self;
143
+ }
144
+
145
+ static VALUE
146
+ rg_alpha(VALUE self)
147
+ {
148
+ return rb_float_new(atk_component_get_alpha(_SELF(self)));
149
+ }
150
+
151
+ void
152
+ Init_atk_component(VALUE mAtk)
153
+ {
154
+ VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_COMPONENT, "Component", mAtk);
155
+ /*
156
+ RG_DEF_METHOD(add_focus_handler, 0);
157
+ */
158
+ RG_DEF_METHOD_P(contains, 3);
159
+ RG_DEF_METHOD(get_extents, 1);
160
+ #ifdef HAVE_ATK_COMPONENT_GET_LAYER
161
+ RG_DEF_METHOD(layer, 0);
162
+ #endif
163
+ #ifdef HAVE_ATK_COMPONENT_GET_MDI_ZORDER
164
+ RG_DEF_METHOD(mdi_zorder, 0);
165
+ #endif
166
+ RG_DEF_METHOD(position, 1);
167
+ RG_DEF_METHOD(size, 0);
168
+ RG_DEF_METHOD(grab_focus, 0);
169
+ RG_DEF_METHOD(ref_accessible_at_point, 3);
170
+ RG_DEF_METHOD(remove_focus_handler, 1);
171
+ RG_DEF_METHOD(set_extents, 5);
172
+ RG_DEF_METHOD(set_position, 2);
173
+ RG_DEF_METHOD(set_size, 2);
174
+ RG_DEF_METHOD(alpha, 0);
175
+ }