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
data/test/run-test.rb ADDED
@@ -0,0 +1,45 @@
1
+ #!/usr/bin/env ruby
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ ruby_gnome2_base = File.join(File.dirname(__FILE__), "..", "..")
20
+ ruby_gnome2_base = File.expand_path(ruby_gnome2_base)
21
+
22
+ glib_base = File.join(ruby_gnome2_base, "glib2")
23
+ atk_base = File.join(ruby_gnome2_base, "atk")
24
+
25
+ modules = [
26
+ [glib_base, "glib2"],
27
+ [atk_base, "atk"]
28
+ ]
29
+ modules.each do |target, module_name|
30
+ if system("which make > /dev/null")
31
+ `make -C #{target.dump} > /dev/null` or exit(false)
32
+ end
33
+ $LOAD_PATH.unshift(File.join(target, "ext", module_name))
34
+ $LOAD_PATH.unshift(File.join(target, "lib"))
35
+ end
36
+
37
+ $LOAD_PATH.unshift(File.join(glib_base, "test"))
38
+ require "glib-test-init"
39
+
40
+ $LOAD_PATH.unshift(File.join(atk_base, "test"))
41
+ require "atk-test-utils"
42
+
43
+ require "atk"
44
+
45
+ exit Test::Unit::AutoRunner.run(true)
@@ -0,0 +1,26 @@
1
+ # -*- coding: utf-8 -*-
2
+ #
3
+ # Copyright (C) 2013 Ruby-GNOME2 Project Team
4
+ #
5
+ # This library is free software; you can redistribute it and/or
6
+ # modify it under the terms of the GNU Lesser General Public
7
+ # License as published by the Free Software Foundation; either
8
+ # version 2.1 of the License, or (at your option) any later version.
9
+ #
10
+ # This library is distributed in the hope that it will be useful,
11
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
12
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # Lesser General Public License for more details.
14
+ #
15
+ # You should have received a copy of the GNU Lesser General Public
16
+ # License along with this library; if not, write to the Free Software
17
+ # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
18
+
19
+ class TestAtkRectangle < Test::Unit::TestCase
20
+ include AtkTestUtils
21
+
22
+ def test_width
23
+ rectangle = Atk::TextRectangle.new(0, 10, 20, 30)
24
+ assert_equal(20, rectangle.width)
25
+ end
26
+ end
Binary file
@@ -0,0 +1,63 @@
1
+
2
+
3
+
4
+ #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
5
+ #error "Only <atk/atk.h> can be included directly."
6
+ #endif
7
+
8
+ #ifndef __ATK_ENUM_TYPES_H__
9
+ #define __ATK_ENUM_TYPES_H__
10
+
11
+ #include <atk/atkversion.h>
12
+ #include <glib-object.h>
13
+
14
+ G_BEGIN_DECLS
15
+ /* enumerations from "atkhyperlink.h" */
16
+ ATK_AVAILABLE_IN_ALL
17
+ GType atk_hyperlink_state_flags_get_type (void);
18
+ #define ATK_TYPE_HYPERLINK_STATE_FLAGS (atk_hyperlink_state_flags_get_type())
19
+ /* enumerations from "atkobject.h" */
20
+ ATK_AVAILABLE_IN_ALL
21
+ GType atk_role_get_type (void);
22
+ #define ATK_TYPE_ROLE (atk_role_get_type())
23
+ ATK_AVAILABLE_IN_ALL
24
+ GType atk_layer_get_type (void);
25
+ #define ATK_TYPE_LAYER (atk_layer_get_type())
26
+ /* enumerations from "atkrelationtype.h" */
27
+ ATK_AVAILABLE_IN_ALL
28
+ GType atk_relation_type_get_type (void);
29
+ #define ATK_TYPE_RELATION_TYPE (atk_relation_type_get_type())
30
+ /* enumerations from "atkstate.h" */
31
+ ATK_AVAILABLE_IN_ALL
32
+ GType atk_state_type_get_type (void);
33
+ #define ATK_TYPE_STATE_TYPE (atk_state_type_get_type())
34
+ /* enumerations from "atktext.h" */
35
+ ATK_AVAILABLE_IN_ALL
36
+ GType atk_text_attribute_get_type (void);
37
+ #define ATK_TYPE_TEXT_ATTRIBUTE (atk_text_attribute_get_type())
38
+ ATK_AVAILABLE_IN_ALL
39
+ GType atk_text_boundary_get_type (void);
40
+ #define ATK_TYPE_TEXT_BOUNDARY (atk_text_boundary_get_type())
41
+ ATK_AVAILABLE_IN_ALL
42
+ GType atk_text_granularity_get_type (void);
43
+ #define ATK_TYPE_TEXT_GRANULARITY (atk_text_granularity_get_type())
44
+ ATK_AVAILABLE_IN_ALL
45
+ GType atk_text_clip_type_get_type (void);
46
+ #define ATK_TYPE_TEXT_CLIP_TYPE (atk_text_clip_type_get_type())
47
+ /* enumerations from "atkutil.h" */
48
+ ATK_AVAILABLE_IN_ALL
49
+ GType atk_key_event_type_get_type (void);
50
+ #define ATK_TYPE_KEY_EVENT_TYPE (atk_key_event_type_get_type())
51
+ ATK_AVAILABLE_IN_ALL
52
+ GType atk_coord_type_get_type (void);
53
+ #define ATK_TYPE_COORD_TYPE (atk_coord_type_get_type())
54
+ /* enumerations from "atkvalue.h" */
55
+ ATK_AVAILABLE_IN_ALL
56
+ GType atk_value_type_get_type (void);
57
+ #define ATK_TYPE_VALUE_TYPE (atk_value_type_get_type())
58
+ G_END_DECLS
59
+
60
+ #endif /* __ATK_ENUM_TYPES_H__ */
61
+
62
+
63
+
@@ -0,0 +1,61 @@
1
+ /* ATK - Accessibility Toolkit
2
+ * Copyright 2001 Sun Microsystems Inc.
3
+ *
4
+ * This library is free software; you can redistribute it and/or
5
+ * modify it under the terms of the GNU Library General Public
6
+ * License as published by the Free Software Foundation; either
7
+ * version 2 of the License, or (at your option) any later version.
8
+ *
9
+ * This library is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ * Library General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU Library General Public
15
+ * License along with this library; if not, write to the
16
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
+ * Boston, MA 02111-1307, USA.
18
+ */
19
+
20
+ #ifndef __ATK_H__
21
+ #define __ATK_H__
22
+
23
+ #define __ATK_H_INSIDE__
24
+
25
+ #include <atk/atkobject.h>
26
+ #include <atk/atkaction.h>
27
+ #include <atk/atkcomponent.h>
28
+ #include <atk/atkdocument.h>
29
+ #include <atk/atkeditabletext.h>
30
+ #include <atk/atk-enum-types.h>
31
+ #include <atk/atkgobjectaccessible.h>
32
+ #include <atk/atkhyperlink.h>
33
+ #include <atk/atkhyperlinkimpl.h>
34
+ #include <atk/atkhypertext.h>
35
+ #include <atk/atkimage.h>
36
+ #include <atk/atknoopobject.h>
37
+ #include <atk/atknoopobjectfactory.h>
38
+ #include <atk/atkobjectfactory.h>
39
+ #include <atk/atkplug.h>
40
+ #include <atk/atkrange.h>
41
+ #include <atk/atkregistry.h>
42
+ #include <atk/atkrelation.h>
43
+ #include <atk/atkrelationset.h>
44
+ #include <atk/atkrelationtype.h>
45
+ #include <atk/atkselection.h>
46
+ #include <atk/atksocket.h>
47
+ #include <atk/atkstate.h>
48
+ #include <atk/atkstateset.h>
49
+ #include <atk/atkstreamablecontent.h>
50
+ #include <atk/atktable.h>
51
+ #include <atk/atktablecell.h>
52
+ #include <atk/atktext.h>
53
+ #include <atk/atkutil.h>
54
+ #include <atk/atkmisc.h>
55
+ #include <atk/atkvalue.h>
56
+ #include <atk/atkversion.h>
57
+ #include <atk/atkwindow.h>
58
+
59
+ #undef __ATK_H_INSIDE__
60
+
61
+ #endif /* __ATK_H__ */
@@ -0,0 +1,117 @@
1
+ /* ATK - Accessibility Toolkit
2
+ * Copyright 2001 Sun Microsystems Inc.
3
+ *
4
+ * This library is free software; you can redistribute it and/or
5
+ * modify it under the terms of the GNU Library General Public
6
+ * License as published by the Free Software Foundation; either
7
+ * version 2 of the License, or (at your option) any later version.
8
+ *
9
+ * This library is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ * Library General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU Library General Public
15
+ * License along with this library; if not, write to the
16
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
+ * Boston, MA 02111-1307, USA.
18
+ */
19
+
20
+ #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
21
+ #error "Only <atk/atk.h> can be included directly."
22
+ #endif
23
+
24
+ #ifndef __ATK_ACTION_H__
25
+ #define __ATK_ACTION_H__
26
+
27
+ #include <atk/atkobject.h>
28
+
29
+ G_BEGIN_DECLS
30
+
31
+ /*
32
+ * The interface AtkAction should be supported by any object that can
33
+ * perform one or more actions. The interface provides the standard
34
+ * mechanism for an assistive technology to determine what those actions
35
+ * are as well as tell the object to perform them. Any object that can
36
+ * be manipulated should support this interface.
37
+ */
38
+
39
+
40
+ #define ATK_TYPE_ACTION (atk_action_get_type ())
41
+ #define ATK_IS_ACTION(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_ACTION)
42
+ #define ATK_ACTION(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_ACTION, AtkAction)
43
+ #define ATK_ACTION_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_ACTION, AtkActionIface))
44
+
45
+ #ifndef _TYPEDEF_ATK_ACTION_
46
+ #define _TYPEDEF_ATK_ACTION_
47
+ typedef struct _AtkAction AtkAction;
48
+ #endif
49
+ typedef struct _AtkActionIface AtkActionIface;
50
+
51
+ struct _AtkActionIface
52
+ {
53
+ GTypeInterface parent;
54
+
55
+ gboolean (*do_action) (AtkAction *action,
56
+ gint i);
57
+ gint (*get_n_actions) (AtkAction *action);
58
+ const gchar* (*get_description) (AtkAction *action,
59
+ gint i);
60
+ const gchar* (*get_name) (AtkAction *action,
61
+ gint i);
62
+ const gchar* (*get_keybinding) (AtkAction *action,
63
+ gint i);
64
+ gboolean (*set_description) (AtkAction *action,
65
+ gint i,
66
+ const gchar *desc);
67
+ const gchar* (*get_localized_name)(AtkAction *action,
68
+ gint i);
69
+ };
70
+
71
+ ATK_AVAILABLE_IN_ALL
72
+ GType atk_action_get_type (void);
73
+
74
+ /*
75
+ * These are the function which would be called by an application with
76
+ * the argument being a AtkObject object cast to (AtkAction).
77
+ *
78
+ * The function will just check that * the corresponding
79
+ * function pointer is not NULL and will call it.
80
+ *
81
+ * The "real" implementation of the function for accessible will be
82
+ * provided in a support library
83
+ */
84
+
85
+ ATK_AVAILABLE_IN_ALL
86
+ gboolean atk_action_do_action (AtkAction *action,
87
+ gint i);
88
+ ATK_AVAILABLE_IN_ALL
89
+ gint atk_action_get_n_actions (AtkAction *action);
90
+ ATK_AVAILABLE_IN_ALL
91
+ const gchar* atk_action_get_description (AtkAction *action,
92
+ gint i);
93
+ ATK_AVAILABLE_IN_ALL
94
+ const gchar* atk_action_get_name (AtkAction *action,
95
+ gint i);
96
+ ATK_AVAILABLE_IN_ALL
97
+ const gchar* atk_action_get_keybinding (AtkAction *action,
98
+ gint i);
99
+ ATK_AVAILABLE_IN_ALL
100
+ gboolean atk_action_set_description (AtkAction *action,
101
+ gint i,
102
+ const gchar *desc);
103
+
104
+ /* NEW in ATK 1.1: */
105
+ ATK_AVAILABLE_IN_ALL
106
+ const gchar* atk_action_get_localized_name (AtkAction *action,
107
+ gint i);
108
+
109
+ /*
110
+ * Additional GObject properties exported by AtkAction:
111
+ * "accessible_action"
112
+ * (an accessible action, or the list of actions, has changed)
113
+ */
114
+
115
+ G_END_DECLS
116
+
117
+ #endif /* __ATK_ACTION_H__ */
@@ -0,0 +1,225 @@
1
+ /* ATK - Accessibility Toolkit
2
+ * Copyright 2001 Sun Microsystems Inc.
3
+ *
4
+ * This library is free software; you can redistribute it and/or
5
+ * modify it under the terms of the GNU Library General Public
6
+ * License as published by the Free Software Foundation; either
7
+ * version 2 of the License, or (at your option) any later version.
8
+ *
9
+ * This library is distributed in the hope that it will be useful,
10
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
+ * Library General Public License for more details.
13
+ *
14
+ * You should have received a copy of the GNU Library General Public
15
+ * License along with this library; if not, write to the
16
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17
+ * Boston, MA 02111-1307, USA.
18
+ */
19
+
20
+ #if defined(ATK_DISABLE_SINGLE_INCLUDES) && !defined (__ATK_H_INSIDE__) && !defined (ATK_COMPILATION)
21
+ #error "Only <atk/atk.h> can be included directly."
22
+ #endif
23
+
24
+ #ifndef __ATK_COMPONENT_H__
25
+ #define __ATK_COMPONENT_H__
26
+
27
+ #include <atk/atkobject.h>
28
+ #include <atk/atkutil.h>
29
+
30
+ G_BEGIN_DECLS
31
+
32
+ /*
33
+ * The AtkComponent interface should be supported by any object that is
34
+ * rendered on the screen. The interface provides the standard mechanism
35
+ * for an assistive technology to determine and set the graphical
36
+ * representation of an object.
37
+ */
38
+
39
+ #define ATK_TYPE_COMPONENT (atk_component_get_type ())
40
+ #define ATK_IS_COMPONENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_COMPONENT)
41
+ #define ATK_COMPONENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_COMPONENT, AtkComponent)
42
+ #define ATK_COMPONENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_COMPONENT, AtkComponentIface))
43
+
44
+ #ifndef _TYPEDEF_ATK_COMPONENT_
45
+ #define _TYPEDEF_ATK_COMPONENT_
46
+ typedef struct _AtkComponent AtkComponent;
47
+ #endif
48
+ typedef struct _AtkComponentIface AtkComponentIface;
49
+
50
+ /**
51
+ * AtkFocusHandler:
52
+ * @object: the #AtkObject that receives/lose the focus
53
+ * @focus_in: TRUE if the object receives the focus
54
+ *
55
+ * The type of callback function used for
56
+ * atk_component_add_focus_handler() and
57
+ * atk_component_remove_focus_handler()
58
+ *
59
+ * Deprecated: This type is deprecated since ATK version 2.9.4. as
60
+ * atk_component_add_focus_handler() and
61
+ * atk_component_remove_focus_handler() are deprecated. See those
62
+ * methods for more information.
63
+ */
64
+ typedef void (*AtkFocusHandler) (AtkObject* object, gboolean focus_in);
65
+
66
+ typedef struct _AtkRectangle AtkRectangle;
67
+
68
+ /**
69
+ * AtkRectangle:
70
+ * @x: X coordinate of the left side of the rectangle.
71
+ * @y: Y coordinate of the top side of the rectangle.
72
+ * @width: width of the rectangle.
73
+ * @height: height of the rectangle.
74
+ *
75
+ * A data structure for holding a rectangle. Those coordinates are
76
+ * relative to the component top-level parent.
77
+ */
78
+ struct _AtkRectangle
79
+ {
80
+ gint x;
81
+ gint y;
82
+ gint width;
83
+ gint height;
84
+ };
85
+
86
+ ATK_AVAILABLE_IN_ALL
87
+ GType atk_rectangle_get_type (void);
88
+
89
+ #define ATK_TYPE_RECTANGLE (atk_rectangle_get_type ())
90
+
91
+ /**
92
+ * AtkComponentIface:
93
+ * @add_focus_handler: This virtual function is deprecated since 2.9.4
94
+ * and it should not be overriden. See
95
+ * atk_component_add_focus_handler() for more information.
96
+ * @get_position: This virtual function is deprecated since 2.12 and
97
+ * it should not be overriden. Use @get_extents instead.
98
+ * @get_size: This virtual function is deprecated since 2.12 and it
99
+ * should not be overriden. Use @get_extents instead.
100
+ * @remove_focus_handler: This virtual function is deprecated since
101
+ * 2.9.4 and it should not be overriden. See
102
+ * atk_component_remove_focus_handler() for more information.
103
+ */
104
+
105
+ struct _AtkComponentIface
106
+ {
107
+ GTypeInterface parent;
108
+
109
+ guint (* add_focus_handler) (AtkComponent *component,
110
+ AtkFocusHandler handler);
111
+
112
+ gboolean (* contains) (AtkComponent *component,
113
+ gint x,
114
+ gint y,
115
+ AtkCoordType coord_type);
116
+
117
+ AtkObject* (* ref_accessible_at_point) (AtkComponent *component,
118
+ gint x,
119
+ gint y,
120
+ AtkCoordType coord_type);
121
+ void (* get_extents) (AtkComponent *component,
122
+ gint *x,
123
+ gint *y,
124
+ gint *width,
125
+ gint *height,
126
+ AtkCoordType coord_type);
127
+ void (* get_position) (AtkComponent *component,
128
+ gint *x,
129
+ gint *y,
130
+ AtkCoordType coord_type);
131
+ void (* get_size) (AtkComponent *component,
132
+ gint *width,
133
+ gint *height);
134
+ gboolean (* grab_focus) (AtkComponent *component);
135
+ void (* remove_focus_handler) (AtkComponent *component,
136
+ guint handler_id);
137
+ gboolean (* set_extents) (AtkComponent *component,
138
+ gint x,
139
+ gint y,
140
+ gint width,
141
+ gint height,
142
+ AtkCoordType coord_type);
143
+ gboolean (* set_position) (AtkComponent *component,
144
+ gint x,
145
+ gint y,
146
+ AtkCoordType coord_type);
147
+ gboolean (* set_size) (AtkComponent *component,
148
+ gint width,
149
+ gint height);
150
+
151
+ AtkLayer (* get_layer) (AtkComponent *component);
152
+ gint (* get_mdi_zorder) (AtkComponent *component);
153
+
154
+ /*
155
+ * signal handlers
156
+ */
157
+ void (* bounds_changed) (AtkComponent *component,
158
+ AtkRectangle *bounds);
159
+ gdouble (* get_alpha) (AtkComponent *component);
160
+ };
161
+
162
+ ATK_AVAILABLE_IN_ALL
163
+ GType atk_component_get_type (void);
164
+
165
+ /* convenience functions */
166
+ ATK_DEPRECATED_IN_2_10
167
+ guint atk_component_add_focus_handler (AtkComponent *component,
168
+ AtkFocusHandler handler);
169
+ ATK_AVAILABLE_IN_ALL
170
+ gboolean atk_component_contains (AtkComponent *component,
171
+ gint x,
172
+ gint y,
173
+ AtkCoordType coord_type);
174
+ ATK_AVAILABLE_IN_ALL
175
+ AtkObject* atk_component_ref_accessible_at_point(AtkComponent *component,
176
+ gint x,
177
+ gint y,
178
+ AtkCoordType coord_type);
179
+ ATK_AVAILABLE_IN_ALL
180
+ void atk_component_get_extents (AtkComponent *component,
181
+ gint *x,
182
+ gint *y,
183
+ gint *width,
184
+ gint *height,
185
+ AtkCoordType coord_type);
186
+ ATK_DEPRECATED_IN_2_12_FOR(atk_component_get_extents)
187
+ void atk_component_get_position (AtkComponent *component,
188
+ gint *x,
189
+ gint *y,
190
+ AtkCoordType coord_type);
191
+ ATK_DEPRECATED_IN_2_12_FOR(atk_component_get_extents)
192
+ void atk_component_get_size (AtkComponent *component,
193
+ gint *width,
194
+ gint *height);
195
+ ATK_AVAILABLE_IN_ALL
196
+ AtkLayer atk_component_get_layer (AtkComponent *component);
197
+ ATK_AVAILABLE_IN_ALL
198
+ gint atk_component_get_mdi_zorder (AtkComponent *component);
199
+ ATK_AVAILABLE_IN_ALL
200
+ gboolean atk_component_grab_focus (AtkComponent *component);
201
+ ATK_DEPRECATED_IN_2_10
202
+ void atk_component_remove_focus_handler (AtkComponent *component,
203
+ guint handler_id);
204
+ ATK_AVAILABLE_IN_ALL
205
+ gboolean atk_component_set_extents (AtkComponent *component,
206
+ gint x,
207
+ gint y,
208
+ gint width,
209
+ gint height,
210
+ AtkCoordType coord_type);
211
+ ATK_AVAILABLE_IN_ALL
212
+ gboolean atk_component_set_position (AtkComponent *component,
213
+ gint x,
214
+ gint y,
215
+ AtkCoordType coord_type);
216
+ ATK_AVAILABLE_IN_ALL
217
+ gboolean atk_component_set_size (AtkComponent *component,
218
+ gint width,
219
+ gint height);
220
+ ATK_AVAILABLE_IN_ALL
221
+ gdouble atk_component_get_alpha (AtkComponent *component);
222
+
223
+ G_END_DECLS
224
+
225
+ #endif /* __ATK_COMPONENT_H__ */