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
@@ -0,0 +1,357 @@
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_UTIL_H__
25
+ #define __ATK_UTIL_H__
26
+
27
+ #include <atk/atkobject.h>
28
+
29
+ G_BEGIN_DECLS
30
+
31
+ #define ATK_TYPE_UTIL (atk_util_get_type ())
32
+ #define ATK_IS_UTIL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_UTIL)
33
+ #define ATK_UTIL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_UTIL, AtkUtil)
34
+ #define ATK_UTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), ATK_TYPE_UTIL, AtkUtilClass))
35
+ #define ATK_IS_UTIL_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), ATK_TYPE_UTIL))
36
+ #define ATK_UTIL_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), ATK_TYPE_UTIL, AtkUtilClass))
37
+
38
+
39
+ #ifndef _TYPEDEF_ATK_UTIL_
40
+ #define _TYPEDEF_ATK_UTIL_
41
+ typedef struct _AtkUtil AtkUtil;
42
+ typedef struct _AtkUtilClass AtkUtilClass;
43
+ typedef struct _AtkKeyEventStruct AtkKeyEventStruct;
44
+ #endif
45
+
46
+ /**
47
+ * AtkEventListener:
48
+ * @obj: An #AtkObject instance for whom the callback will be called when
49
+ * the specified event (e.g. 'focus:') takes place.
50
+ *
51
+ * A function which is called when an object emits a matching event,
52
+ * as used in #atk_add_focus_tracker.
53
+ * Currently the only events for which object-specific handlers are
54
+ * supported are events of type "focus:". Most clients of ATK will prefer to
55
+ * attach signal handlers for the various ATK signals instead.
56
+ *
57
+ * see atk_add_focus_tracker.
58
+ **/
59
+ typedef void (*AtkEventListener) (AtkObject* obj);
60
+ /**
61
+ * AtkEventListenerInit:
62
+ *
63
+ * An #AtkEventListenerInit function is a special function that is
64
+ * called in order to initialize the per-object event registration system
65
+ * used by #AtkEventListener, if any preparation is required.
66
+ *
67
+ * see atk_focus_tracker_init.
68
+ **/
69
+ typedef void (*AtkEventListenerInit) (void);
70
+ /**
71
+ * AtkKeySnoopFunc:
72
+ * @event: an AtkKeyEventStruct containing information about the key event for which
73
+ * notification is being given.
74
+ * @user_data: a block of data which will be passed to the event listener, on notification.
75
+ *
76
+ * An #AtkKeySnoopFunc is a type of callback which is called whenever a key event occurs,
77
+ * if registered via atk_add_key_event_listener. It allows for pre-emptive
78
+ * interception of key events via the return code as described below.
79
+ *
80
+ * Returns: TRUE (nonzero) if the event emission should be stopped and the event
81
+ * discarded without being passed to the normal GUI recipient; FALSE (zero) if the
82
+ * event dispatch to the client application should proceed as normal.
83
+ *
84
+ * see atk_add_key_event_listener.
85
+ **/
86
+ typedef gint (*AtkKeySnoopFunc) (AtkKeyEventStruct *event,
87
+ gpointer user_data);
88
+
89
+ /**
90
+ * AtkKeyEventStruct:
91
+ * @type: An AtkKeyEventType, generally one of ATK_KEY_EVENT_PRESS or ATK_KEY_EVENT_RELEASE
92
+ * @state: A bitmask representing the state of the modifier keys immediately after the event takes place.
93
+ * The meaning of the bits is currently defined to match the bitmask used by GDK in
94
+ * GdkEventType.state, see
95
+ * http://developer.gnome.org/doc/API/2.0/gdk/gdk-Event-Structures.html#GdkEventKey
96
+ * @keyval: A guint representing a keysym value corresponding to those used by GDK and X11: see
97
+ * /usr/X11/include/keysymdef.h.
98
+ * @length: The length of member #string.
99
+ * @string: A string containing one of the following: either a string approximating the text that would
100
+ * result from this keypress, if the key is a control or graphic character, or a symbolic name for this keypress.
101
+ * Alphanumeric and printable keys will have the symbolic key name in this string member, for instance "A". "0",
102
+ * "semicolon", "aacute". Keypad keys have the prefix "KP".
103
+ * @keycode: The raw hardware code that generated the key event. This field is raraly useful.
104
+ * @timestamp: A timestamp in milliseconds indicating when the event occurred.
105
+ * These timestamps are relative to a starting point which should be considered arbitrary,
106
+ * and only used to compare the dispatch times of events to one another.
107
+ *
108
+ * Encapsulates information about a key event.
109
+ **/
110
+ struct _AtkKeyEventStruct {
111
+ gint type;
112
+ guint state;
113
+ guint keyval;
114
+ gint length;
115
+ gchar *string;
116
+ guint16 keycode;
117
+ guint32 timestamp;
118
+ };
119
+
120
+ /**
121
+ *AtkKeyEventType:
122
+ *@ATK_KEY_EVENT_PRESS: specifies a key press event
123
+ *@ATK_KEY_EVENT_RELEASE: specifies a key release event
124
+ *@ATK_KEY_EVENT_LAST_DEFINED: Not a valid value; specifies end of enumeration
125
+ *
126
+ *Specifies the type of a keyboard evemt.
127
+ **/
128
+ typedef enum
129
+ {
130
+ ATK_KEY_EVENT_PRESS,
131
+ ATK_KEY_EVENT_RELEASE,
132
+ ATK_KEY_EVENT_LAST_DEFINED
133
+ } AtkKeyEventType;
134
+
135
+ struct _AtkUtil
136
+ {
137
+ GObject parent;
138
+ };
139
+
140
+ /**
141
+ * AtkUtilClass:
142
+ * @add_global_event_listener: adds the specified function to the list
143
+ * of functions to be called when an ATK event occurs. ATK
144
+ * implementors are discouraged from reimplementing this method.
145
+ * @remove_global_event_listener: removes the specified function to
146
+ * the list of functions to be called when an ATK event occurs. ATK
147
+ * implementors are discouraged from reimplementing this method.
148
+ * @add_key_event_listener: adds the specified function to the list of
149
+ * functions to be called when a key event occurs.
150
+ * @remove_key_event_listener: remove the specified function to the
151
+ * list of functions to be called when a key event occurs.
152
+ * @get_root: gets the root accessible container for the current
153
+ * application.
154
+ * @get_toolkit_name: gets name string for the GUI toolkit
155
+ * implementing ATK for this application.
156
+ * @get_toolkit_version: gets version string for the GUI toolkit
157
+ * implementing ATK for this application.
158
+ *
159
+ */
160
+ struct _AtkUtilClass
161
+ {
162
+ GObjectClass parent;
163
+ guint (* add_global_event_listener) (GSignalEmissionHook listener,
164
+ const gchar *event_type);
165
+ void (* remove_global_event_listener) (guint listener_id);
166
+ guint (* add_key_event_listener) (AtkKeySnoopFunc listener,
167
+ gpointer data);
168
+ void (* remove_key_event_listener) (guint listener_id);
169
+ AtkObject* (* get_root) (void);
170
+ const gchar* (* get_toolkit_name) (void);
171
+ const gchar* (* get_toolkit_version) (void);
172
+ };
173
+ ATK_AVAILABLE_IN_ALL
174
+ GType atk_util_get_type (void);
175
+
176
+ /**
177
+ *AtkCoordType:
178
+ *@ATK_XY_SCREEN: specifies xy coordinates relative to the screen
179
+ *@ATK_XY_WINDOW: specifies xy coordinates relative to the widget's
180
+ * top-level window
181
+ *
182
+ *Specifies how xy coordinates are to be interpreted. Used by functions such
183
+ *as atk_component_get_position() and atk_text_get_character_extents()
184
+ **/
185
+ typedef enum {
186
+ ATK_XY_SCREEN,
187
+ ATK_XY_WINDOW
188
+ }AtkCoordType;
189
+
190
+ ATK_DEPRECATED_IN_2_10
191
+ guint atk_add_focus_tracker (AtkEventListener focus_tracker);
192
+ ATK_DEPRECATED_IN_2_10
193
+ void atk_remove_focus_tracker (guint tracker_id);
194
+ ATK_DEPRECATED_IN_2_10
195
+ void atk_focus_tracker_init (AtkEventListenerInit init);
196
+ ATK_DEPRECATED_IN_2_10
197
+ void atk_focus_tracker_notify (AtkObject *object);
198
+ ATK_AVAILABLE_IN_ALL
199
+ guint atk_add_global_event_listener (GSignalEmissionHook listener,
200
+ const gchar *event_type);
201
+ ATK_AVAILABLE_IN_ALL
202
+ void atk_remove_global_event_listener (guint listener_id);
203
+ ATK_AVAILABLE_IN_ALL
204
+ guint atk_add_key_event_listener (AtkKeySnoopFunc listener, gpointer data);
205
+ ATK_AVAILABLE_IN_ALL
206
+ void atk_remove_key_event_listener (guint listener_id);
207
+
208
+ ATK_AVAILABLE_IN_ALL
209
+ AtkObject* atk_get_root(void);
210
+ ATK_AVAILABLE_IN_ALL
211
+ AtkObject* atk_get_focus_object (void);
212
+
213
+ ATK_AVAILABLE_IN_ALL
214
+ const gchar *atk_get_toolkit_name (void);
215
+ ATK_AVAILABLE_IN_ALL
216
+ const gchar *atk_get_toolkit_version (void);
217
+ ATK_AVAILABLE_IN_ALL
218
+ const gchar *atk_get_version (void);
219
+
220
+ /* --- GType boilerplate --- */
221
+ /* convenience macros for atk type implementations, which for a type GtkGadgetAccessible will:
222
+ * - prototype: static void gtk_gadget_accessible_class_init (GtkGadgetClass *klass);
223
+ * - prototype: static void gtk_gadget_accessible_init (GtkGadget *self);
224
+ * - define: static gpointer gtk_gadget_accessible_parent_class = NULL;
225
+ * gtk_gadget_accessible_parent_class is initialized prior to calling gtk_gadget_class_init()
226
+ * - implement: GType gtk_gadget_accessible_get_type (void) { ... }
227
+ * - support custom code in gtk_gadget_accessible_get_type() after the type is registered.
228
+ *
229
+ * macro arguments: TypeName, type_name, TYPE_PARENT, CODE
230
+ * example: ATK_DEFINE_TYPE_WITH_CODE (GtkGadgetAccessible, gtk_gadget_accessible, GTK_TYPE_GADGET,
231
+ * G_IMPLEMENT_INTERFACE (ATK_TYPE_TABLE, gtk_gadget_accessible_table_iface_init))
232
+ */
233
+
234
+ /**
235
+ * ATK_DEFINE_TYPE:
236
+ * @TN: The name of the new type, in Camel case.
237
+ * @t_n: The name of the new type, in lowercase, with words separated by '_'.
238
+ * @T_P: The #GType of the parent type.
239
+ *
240
+ * A convenience macro for type ATK implementations, which declares a class
241
+ * initialization function, an instance initialization function (see #GTypeInfo
242
+ * for information about these) and a static variable named
243
+ * @t_n _parent_class pointing to the parent class. Furthermore, it
244
+ * defines a _get_type() function.
245
+ *
246
+ * Since: 1.22
247
+ */
248
+ #define ATK_DEFINE_TYPE(TN, t_n, T_P) ATK_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, {})
249
+
250
+ /**
251
+ * ATK_DEFINE_TYPE_WITH_CODE:
252
+ * @TN: The name of the new type, in Camel case.
253
+ * @t_n: The name of the new type in lowercase, with words separated by '_'.
254
+ * @T_P: The #GType of the parent type.
255
+ * @_C_: Custom code that gets inserted in the _get_type() function.
256
+ *
257
+ * A convenience macro for ATK type implementations.
258
+ * Similar to ATK_DEFINE_TYPE(), but allows you to insert custom code into the
259
+ * _get_type() function, e.g. interface implementations via G_IMPLEMENT_INTERFACE().
260
+ *
261
+ * Since: 1.22
262
+ */
263
+ #define ATK_DEFINE_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _ATK_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, 0) {_C_;} _ATK_DEFINE_TYPE_EXTENDED_END()
264
+
265
+ /**
266
+ * ATK_DEFINE_ABSTRACT_TYPE:
267
+ * @TN: The name of the new type, in Camel case.
268
+ * @t_n: The name of the new type, in lowercase, with words separated by '_'.
269
+ * @T_P: The #GType of the parent type.
270
+ *
271
+ * A convenience macro for ATK type implementations.
272
+ * Similar to ATK_DEFINE_TYPE(), but defines an abstract type.
273
+ *
274
+ * Since: 1.22
275
+ */
276
+ #define ATK_DEFINE_ABSTRACT_TYPE(TN, t_n, T_P) ATK_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT, {})
277
+
278
+ /**
279
+ * ATK_DEFINE_ABSTRACT_TYPE_WITH_CODE:
280
+ * @TN: The name of the new type, in Camel case.
281
+ * @t_n: The name of the new type, in lowercase, with words separated by '_'.
282
+ * @T_P: The #GType of the parent type.
283
+ * @_C_: Custom code that gets inserted in the _get_type() function.
284
+ *
285
+ * A convenience macro for ATK type implementations.
286
+ * Similar to ATK_DEFINE_TYPE_WITH_CODE(), but defines an abstract type.
287
+ *
288
+ * Since: 1.22
289
+ */
290
+ #define ATK_DEFINE_ABSTRACT_TYPE_WITH_CODE(TN, t_n, T_P, _C_) _ATK_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, G_TYPE_FLAG_ABSTRACT) {_C_;} _ATK_DEFINE_TYPE_EXTENDED_END()
291
+
292
+ /**
293
+ * ATK_DEFINE_TYPE_EXTENDED:
294
+ * @TN: The name of the new type, in Camel case.
295
+ * @t_n: The name of the new type, in lowercase, with words separated by '_'.
296
+ * @T_P: The #GType of the parent type.
297
+ * @_f_: #GTypeFlags to pass to g_type_register_static()
298
+ * @_C_: Custom code that gets inserted in the _get_type() function.
299
+ *
300
+ * The most general convenience macro for ATK type implementations, on which
301
+ * ATK_DEFINE_TYPE(), etc are based.
302
+ *
303
+ * Since: 1.22
304
+ */
305
+ #define ATK_DEFINE_TYPE_EXTENDED(TN, t_n, T_P, _f_, _C_) _ATK_DEFINE_TYPE_EXTENDED_BEGIN (TN, t_n, T_P, _f_) {_C_;} _ATK_DEFINE_TYPE_EXTENDED_END()
306
+
307
+ #define _ATK_DEFINE_TYPE_EXTENDED_BEGIN(TypeName, type_name, TYPE, flags) \
308
+ \
309
+ static void type_name##_init (TypeName *self); \
310
+ static void type_name##_class_init (TypeName##Class *klass); \
311
+ static gpointer type_name##_parent_class = NULL; \
312
+ static void type_name##_class_intern_init (gpointer klass) \
313
+ { \
314
+ type_name##_parent_class = g_type_class_peek_parent (klass); \
315
+ type_name##_class_init ((TypeName##Class*) klass); \
316
+ } \
317
+ \
318
+ ATK_AVAILABLE_IN_ALL \
319
+ GType \
320
+ type_name##_get_type (void) \
321
+ { \
322
+ static volatile gsize g_define_type_id__volatile = 0; \
323
+ if (g_once_init_enter (&g_define_type_id__volatile)) \
324
+ { \
325
+ AtkObjectFactory *factory; \
326
+ GType derived_type; \
327
+ GTypeQuery query; \
328
+ GType derived_atk_type; \
329
+ GType g_define_type_id; \
330
+ \
331
+ /* Figure out the size of the class and instance we are deriving from */ \
332
+ derived_type = g_type_parent (TYPE); \
333
+ factory = atk_registry_get_factory (atk_get_default_registry (), \
334
+ derived_type); \
335
+ derived_atk_type = atk_object_factory_get_accessible_type (factory); \
336
+ g_type_query (derived_atk_type, &query); \
337
+ \
338
+ g_define_type_id = \
339
+ g_type_register_static_simple (derived_atk_type, \
340
+ g_intern_static_string (#TypeName), \
341
+ query.class_size, \
342
+ (GClassInitFunc) type_name##_class_intern_init, \
343
+ query.instance_size, \
344
+ (GInstanceInitFunc) type_name##_init, \
345
+ (GTypeFlags) flags); \
346
+ { /* custom code follows */
347
+ #define _ATK_DEFINE_TYPE_EXTENDED_END() \
348
+ /* following custom code */ \
349
+ } \
350
+ g_once_init_leave (&g_define_type_id__volatile, g_define_type_id); \
351
+ } \
352
+ return g_define_type_id__volatile; \
353
+ } /* closes type_name##_get_type() */
354
+
355
+ G_END_DECLS
356
+
357
+ #endif /* __ATK_UTIL_H__ */
@@ -0,0 +1,163 @@
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_VALUE_H__
25
+ #define __ATK_VALUE_H__
26
+
27
+ #include <atk/atkobject.h>
28
+ #include <atk/atkrange.h>
29
+
30
+ G_BEGIN_DECLS
31
+
32
+ #define ATK_TYPE_VALUE (atk_value_get_type ())
33
+ #define ATK_IS_VALUE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_VALUE)
34
+ #define ATK_VALUE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_VALUE, AtkValue)
35
+ #define ATK_VALUE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_VALUE, AtkValueIface))
36
+
37
+ #ifndef _TYPEDEF_ATK_VALUE_
38
+ #define _TYPEDEF_ATK_VALUE__
39
+ typedef struct _AtkValue AtkValue;
40
+ #endif
41
+ typedef struct _AtkValueIface AtkValueIface;
42
+
43
+ /**
44
+ * AtkValueType:
45
+ *
46
+ * Default types for a given value. Those are defined in order to
47
+ * easily get localized strings to describe a given value or a given
48
+ * subrange, using atk_value_type_get_localized_name().
49
+ *
50
+ */
51
+ typedef enum
52
+ {
53
+ ATK_VALUE_VERY_WEAK,
54
+ ATK_VALUE_WEAK,
55
+ ATK_VALUE_ACCEPTABLE,
56
+ ATK_VALUE_STRONG,
57
+ ATK_VALUE_VERY_STRONG,
58
+ ATK_VALUE_VERY_LOW,
59
+ ATK_VALUE_LOW,
60
+ ATK_VALUE_MEDIUM,
61
+ ATK_VALUE_HIGH,
62
+ ATK_VALUE_VERY_HIGH,
63
+ ATK_VALUE_VERY_BAD,
64
+ ATK_VALUE_BAD,
65
+ ATK_VALUE_GOOD,
66
+ ATK_VALUE_VERY_GOOD,
67
+ ATK_VALUE_BEST,
68
+ ATK_VALUE_LAST_DEFINED
69
+ }AtkValueType;
70
+
71
+ /**
72
+ * AtkValueIface:
73
+ * @get_current_value: This virtual function is deprecated since 2.12
74
+ * and it should not be overriden.
75
+ * @get_maximum_value: This virtual function is deprecated since 2.12
76
+ * and it should not be overriden.
77
+ * @get_minimum_value: This virtual function is deprecated since 2.12
78
+ * and it should not be overriden.
79
+ * @set_current_value: This virtual function is deprecated since 2.12
80
+ * and it should not be overriden.
81
+ * @get_minimum_increment: This virtual function is deprecated since
82
+ * 2.12 and it should not be overriden.
83
+ * @get_value_and_text: gets the current value and the human readable
84
+ * text alternative (if available) of this object. Since 2.12.
85
+ * @get_range: gets the range that defines the minimum and maximum
86
+ * value of this object. Returns NULL if there is no range
87
+ * defined. Since 2.12.
88
+ * @get_increment: gets the minimum increment by which the value of
89
+ * this object may be changed. If zero it is undefined. Since 2.12.
90
+ * @get_sub_ranges: returns a list of different subranges, and their
91
+ * description (if available) of this object. Returns NULL if there
92
+ * is not subranges defined. Since 2.12.
93
+ * @set_value: sets the value of this object. Since 2.12.
94
+ */
95
+ struct _AtkValueIface
96
+ {
97
+ GTypeInterface parent;
98
+
99
+ /*<deprecated>*/
100
+ void (* get_current_value) (AtkValue *obj,
101
+ GValue *value);
102
+ void (* get_maximum_value) (AtkValue *obj,
103
+ GValue *value);
104
+ void (* get_minimum_value) (AtkValue *obj,
105
+ GValue *value);
106
+ gboolean (* set_current_value) (AtkValue *obj,
107
+ const GValue *value);
108
+ void (* get_minimum_increment) (AtkValue *obj,
109
+ GValue *value);
110
+ /*</deprecated>*/
111
+ void (* get_value_and_text) (AtkValue *obj,
112
+ gdouble *value,
113
+ gchar **text);
114
+ AtkRange*(* get_range) (AtkValue *obj);
115
+ gdouble (* get_increment) (AtkValue *obj);
116
+ GSList* (* get_sub_ranges) (AtkValue *obj);
117
+ void (* set_value) (AtkValue *obj,
118
+ const gdouble new_value);
119
+
120
+ };
121
+
122
+ ATK_AVAILABLE_IN_ALL
123
+ GType atk_value_get_type (void);
124
+
125
+ ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_value_and_text)
126
+ void atk_value_get_current_value (AtkValue *obj,
127
+ GValue *value);
128
+
129
+ ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_range)
130
+ void atk_value_get_maximum_value (AtkValue *obj,
131
+ GValue *value);
132
+ ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_range)
133
+ void atk_value_get_minimum_value (AtkValue *obj,
134
+ GValue *value);
135
+ ATK_DEPRECATED_IN_2_12_FOR(atk_value_set_value)
136
+ gboolean atk_value_set_current_value (AtkValue *obj,
137
+ const GValue *value);
138
+ ATK_DEPRECATED_IN_2_12_FOR(atk_value_get_increment)
139
+ void atk_value_get_minimum_increment (AtkValue *obj,
140
+ GValue *value);
141
+
142
+ ATK_AVAILABLE_IN_2_12
143
+ void atk_value_get_value_and_text (AtkValue *obj,
144
+ gdouble *value,
145
+ gchar **text);
146
+ ATK_AVAILABLE_IN_2_12
147
+ AtkRange* atk_value_get_range (AtkValue *obj);
148
+ ATK_AVAILABLE_IN_2_12
149
+ gdouble atk_value_get_increment (AtkValue *obj);
150
+ ATK_AVAILABLE_IN_2_12
151
+ GSList* atk_value_get_sub_ranges (AtkValue *obj);
152
+ ATK_AVAILABLE_IN_2_12
153
+ void atk_value_set_value (AtkValue *obj,
154
+ const gdouble new_value);
155
+ /* AtkValueType methods */
156
+ ATK_AVAILABLE_IN_ALL
157
+ const gchar* atk_value_type_get_name (AtkValueType value_type);
158
+ ATK_AVAILABLE_IN_ALL
159
+ const gchar* atk_value_type_get_localized_name (AtkValueType value_type);
160
+
161
+ G_END_DECLS
162
+
163
+ #endif /* __ATK_VALUE_H__ */