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,110 @@
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_STREAMABLE_CONTENT_H__
25
+ #define __ATK_STREAMABLE_CONTENT_H__
26
+
27
+ #include <atk/atkobject.h>
28
+
29
+ G_BEGIN_DECLS
30
+
31
+ #define ATK_TYPE_STREAMABLE_CONTENT (atk_streamable_content_get_type ())
32
+ #define ATK_IS_STREAMABLE_CONTENT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_STREAMABLE_CONTENT)
33
+ #define ATK_STREAMABLE_CONTENT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_STREAMABLE_CONTENT, AtkStreamableContent)
34
+ #define ATK_STREAMABLE_CONTENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_STREAMABLE_CONTENT, AtkStreamableContentIface))
35
+
36
+ #ifndef _TYPEDEF_ATK_STREAMABLE_CONTENT
37
+ #define _TYPEDEF_ATK_STREAMABLE_CONTENT
38
+ typedef struct _AtkStreamableContent AtkStreamableContent;
39
+ #endif
40
+ typedef struct _AtkStreamableContentIface AtkStreamableContentIface;
41
+
42
+ struct _AtkStreamableContentIface
43
+ {
44
+ GTypeInterface parent;
45
+
46
+ /*
47
+ * Get the number of mime types supported by this object
48
+ */
49
+ gint (* get_n_mime_types) (AtkStreamableContent *streamable);
50
+ /*
51
+ * Gets the specified mime type supported by this object.
52
+ * The mime types are 0-based so the first mime type is
53
+ * at index 0, the second at index 1 and so on. The mime-type
54
+ * at index 0 should be considered the "default" data type for the stream.
55
+ *
56
+ * This assumes that the strings for the mime types are stored in the
57
+ * AtkStreamableContent. Alternatively the const could be removed
58
+ * and the caller would be responsible for calling g_free() on the
59
+ * returned value.
60
+ */
61
+ const gchar* (* get_mime_type) (AtkStreamableContent *streamable,
62
+ gint i);
63
+ /*
64
+ * One possible implementation for this method is that it constructs the
65
+ * content appropriate for the mime type and then creates a temporary
66
+ * file containing the content, opens the file and then calls
67
+ * g_io_channel_unix_new_fd().
68
+ */
69
+ GIOChannel* (* get_stream) (AtkStreamableContent *streamable,
70
+ const gchar *mime_type);
71
+
72
+ /*
73
+ * Returns a string representing a URI in IETF standard format
74
+ * (see http://www.ietf.org/rfc/rfc2396.txt) from which the object's content
75
+ * may be streamed in the specified mime-type.
76
+ * If mime_type is NULL, the URI for the default (and possibly only) mime-type is
77
+ * returned.
78
+ *
79
+ * returns NULL if the mime-type is not supported, or if no URI can be
80
+ * constructed. Note that it is possible for get_uri to return NULL but for
81
+ * get_stream to work nonetheless, since not all GIOChannels connect to URIs.
82
+ */
83
+ const gchar* (* get_uri) (AtkStreamableContent *streamable,
84
+ const gchar *mime_type);
85
+
86
+
87
+ AtkFunction pad1;
88
+ AtkFunction pad2;
89
+ AtkFunction pad3;
90
+ };
91
+ ATK_AVAILABLE_IN_ALL
92
+ GType atk_streamable_content_get_type (void);
93
+
94
+ ATK_AVAILABLE_IN_ALL
95
+ gint atk_streamable_content_get_n_mime_types (AtkStreamableContent *streamable);
96
+
97
+ ATK_AVAILABLE_IN_ALL
98
+ const gchar* atk_streamable_content_get_mime_type (AtkStreamableContent *streamable,
99
+ gint i);
100
+ ATK_AVAILABLE_IN_ALL
101
+ GIOChannel* atk_streamable_content_get_stream (AtkStreamableContent *streamable,
102
+ const gchar *mime_type);
103
+
104
+ ATK_AVAILABLE_IN_ALL
105
+ const gchar* atk_streamable_content_get_uri (AtkStreamableContent *streamable,
106
+ const gchar *mime_type);
107
+
108
+ G_END_DECLS
109
+
110
+ #endif /* __ATK_STREAMABLE_CONTENT_H__ */
@@ -0,0 +1,233 @@
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_TABLE_H__
25
+ #define __ATK_TABLE_H__
26
+
27
+ #include <atk/atkobject.h>
28
+
29
+ G_BEGIN_DECLS
30
+
31
+ #define ATK_TYPE_TABLE (atk_table_get_type ())
32
+ #define ATK_IS_TABLE(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE)
33
+ #define ATK_TABLE(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE, AtkTable)
34
+ #define ATK_TABLE_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE, AtkTableIface))
35
+
36
+ #ifndef _TYPEDEF_ATK_TABLE_
37
+ #define _TYPEDEF_ATK_TABLE_
38
+ typedef struct _AtkTable AtkTable;
39
+ #endif
40
+ typedef struct _AtkTableIface AtkTableIface;
41
+
42
+ struct _AtkTableIface
43
+ {
44
+ GTypeInterface parent;
45
+
46
+ AtkObject* (* ref_at) (AtkTable *table,
47
+ gint row,
48
+ gint column);
49
+ gint (* get_index_at) (AtkTable *table,
50
+ gint row,
51
+ gint column);
52
+ gint (* get_column_at_index) (AtkTable *table,
53
+ gint index_);
54
+ gint (* get_row_at_index) (AtkTable *table,
55
+ gint index_);
56
+ gint (* get_n_columns) (AtkTable *table);
57
+ gint (* get_n_rows) (AtkTable *table);
58
+ gint (* get_column_extent_at) (AtkTable *table,
59
+ gint row,
60
+ gint column);
61
+ gint (* get_row_extent_at) (AtkTable *table,
62
+ gint row,
63
+ gint column);
64
+ AtkObject*
65
+ (* get_caption) (AtkTable *table);
66
+ const gchar* (* get_column_description) (AtkTable *table,
67
+ gint column);
68
+ AtkObject* (* get_column_header) (AtkTable *table,
69
+ gint column);
70
+ const gchar* (* get_row_description) (AtkTable *table,
71
+ gint row);
72
+ AtkObject* (* get_row_header) (AtkTable *table,
73
+ gint row);
74
+ AtkObject* (* get_summary) (AtkTable *table);
75
+ void (* set_caption) (AtkTable *table,
76
+ AtkObject *caption);
77
+ void (* set_column_description) (AtkTable *table,
78
+ gint column,
79
+ const gchar *description);
80
+ void (* set_column_header) (AtkTable *table,
81
+ gint column,
82
+ AtkObject *header);
83
+ void (* set_row_description) (AtkTable *table,
84
+ gint row,
85
+ const gchar *description);
86
+ void (* set_row_header) (AtkTable *table,
87
+ gint row,
88
+ AtkObject *header);
89
+ void (* set_summary) (AtkTable *table,
90
+ AtkObject *accessible);
91
+ gint (* get_selected_columns) (AtkTable *table,
92
+ gint **selected);
93
+ gint (* get_selected_rows) (AtkTable *table,
94
+ gint **selected);
95
+ gboolean (* is_column_selected) (AtkTable *table,
96
+ gint column);
97
+ gboolean (* is_row_selected) (AtkTable *table,
98
+ gint row);
99
+ gboolean (* is_selected) (AtkTable *table,
100
+ gint row,
101
+ gint column);
102
+ gboolean (* add_row_selection) (AtkTable *table,
103
+ gint row);
104
+ gboolean (* remove_row_selection) (AtkTable *table,
105
+ gint row);
106
+ gboolean (* add_column_selection) (AtkTable *table,
107
+ gint column);
108
+ gboolean (* remove_column_selection) (AtkTable *table,
109
+ gint column);
110
+
111
+ /*
112
+ * signal handlers
113
+ */
114
+ void (* row_inserted) (AtkTable *table,
115
+ gint row,
116
+ gint num_inserted);
117
+ void (* column_inserted) (AtkTable *table,
118
+ gint column,
119
+ gint num_inserted);
120
+ void (* row_deleted) (AtkTable *table,
121
+ gint row,
122
+ gint num_deleted);
123
+ void (* column_deleted) (AtkTable *table,
124
+ gint column,
125
+ gint num_deleted);
126
+ void (* row_reordered) (AtkTable *table);
127
+ void (* column_reordered) (AtkTable *table);
128
+ void (* model_changed) (AtkTable *table);
129
+ };
130
+
131
+ ATK_AVAILABLE_IN_ALL
132
+ GType atk_table_get_type (void);
133
+
134
+ ATK_AVAILABLE_IN_ALL
135
+ AtkObject* atk_table_ref_at (AtkTable *table,
136
+ gint row,
137
+ gint column);
138
+ ATK_DEPRECATED_IN_2_12_FOR(atk_table_ref_at)
139
+ gint atk_table_get_index_at (AtkTable *table,
140
+ gint row,
141
+ gint column);
142
+ ATK_DEPRECATED_IN_2_12
143
+ gint atk_table_get_column_at_index (AtkTable *table,
144
+ gint index_);
145
+ ATK_DEPRECATED_IN_2_12
146
+ gint atk_table_get_row_at_index (AtkTable *table,
147
+ gint index_);
148
+ ATK_AVAILABLE_IN_ALL
149
+ gint atk_table_get_n_columns (AtkTable *table);
150
+ ATK_AVAILABLE_IN_ALL
151
+ gint atk_table_get_n_rows (AtkTable *table);
152
+ ATK_AVAILABLE_IN_ALL
153
+ gint atk_table_get_column_extent_at (AtkTable *table,
154
+ gint row,
155
+ gint column);
156
+ ATK_AVAILABLE_IN_ALL
157
+ gint atk_table_get_row_extent_at (AtkTable *table,
158
+ gint row,
159
+ gint column);
160
+ ATK_AVAILABLE_IN_ALL
161
+ AtkObject*
162
+ atk_table_get_caption (AtkTable *table);
163
+ ATK_AVAILABLE_IN_ALL
164
+ const gchar* atk_table_get_column_description
165
+ (AtkTable *table,
166
+ gint column);
167
+ ATK_AVAILABLE_IN_ALL
168
+ AtkObject* atk_table_get_column_header (AtkTable *table,
169
+ gint column);
170
+ ATK_AVAILABLE_IN_ALL
171
+ const gchar* atk_table_get_row_description (AtkTable *table,
172
+ gint row);
173
+ ATK_AVAILABLE_IN_ALL
174
+ AtkObject* atk_table_get_row_header (AtkTable *table,
175
+ gint row);
176
+ ATK_AVAILABLE_IN_ALL
177
+ AtkObject* atk_table_get_summary (AtkTable *table);
178
+ ATK_AVAILABLE_IN_ALL
179
+ void atk_table_set_caption (AtkTable *table,
180
+ AtkObject *caption);
181
+ ATK_AVAILABLE_IN_ALL
182
+ void atk_table_set_column_description
183
+ (AtkTable *table,
184
+ gint column,
185
+ const gchar *description);
186
+ ATK_AVAILABLE_IN_ALL
187
+ void atk_table_set_column_header (AtkTable *table,
188
+ gint column,
189
+ AtkObject *header);
190
+ ATK_AVAILABLE_IN_ALL
191
+ void atk_table_set_row_description (AtkTable *table,
192
+ gint row,
193
+ const gchar *description);
194
+ ATK_AVAILABLE_IN_ALL
195
+ void atk_table_set_row_header (AtkTable *table,
196
+ gint row,
197
+ AtkObject *header);
198
+ ATK_AVAILABLE_IN_ALL
199
+ void atk_table_set_summary (AtkTable *table,
200
+ AtkObject *accessible);
201
+ ATK_AVAILABLE_IN_ALL
202
+ gint atk_table_get_selected_columns (AtkTable *table,
203
+ gint **selected);
204
+ ATK_AVAILABLE_IN_ALL
205
+ gint atk_table_get_selected_rows (AtkTable *table,
206
+ gint **selected);
207
+ ATK_AVAILABLE_IN_ALL
208
+ gboolean atk_table_is_column_selected (AtkTable *table,
209
+ gint column);
210
+ ATK_AVAILABLE_IN_ALL
211
+ gboolean atk_table_is_row_selected (AtkTable *table,
212
+ gint row);
213
+ ATK_AVAILABLE_IN_ALL
214
+ gboolean atk_table_is_selected (AtkTable *table,
215
+ gint row,
216
+ gint column);
217
+ ATK_AVAILABLE_IN_ALL
218
+ gboolean atk_table_add_row_selection (AtkTable *table,
219
+ gint row);
220
+ ATK_AVAILABLE_IN_ALL
221
+ gboolean atk_table_remove_row_selection (AtkTable *table,
222
+ gint row);
223
+ ATK_AVAILABLE_IN_ALL
224
+ gboolean atk_table_add_column_selection (AtkTable *table,
225
+ gint column);
226
+ ATK_AVAILABLE_IN_ALL
227
+ gboolean atk_table_remove_column_selection
228
+ (AtkTable *table,
229
+ gint column);
230
+
231
+ G_END_DECLS
232
+
233
+ #endif /* __ATK_TABLE_H__ */
@@ -0,0 +1,104 @@
1
+ /* ATK - Accessibility Toolkit
2
+ * Copyright 2014 SUSE LLC.
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_TABLE_CELL_H__
25
+ #define __ATK_TABLE_CELL_H__
26
+
27
+ #include <atk/atkobject.h>
28
+
29
+ G_BEGIN_DECLS
30
+
31
+ #define ATK_TYPE_TABLE_CELL (atk_table_cell_get_type ())
32
+ #define ATK_IS_TABLE_CELL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TABLE_CELL)
33
+ #define ATK_TABLE_CELL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TABLE_CELL, AtkTableCell)
34
+ #define ATK_TABLE_CELL_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TABLE_CELL, AtkTableCellIface))
35
+
36
+ #ifndef _TYPEDEF_ATK_TABLE_CELL_
37
+ #define _TYPEDEF_ATK_TABLE_CELL_
38
+ typedef struct _AtkTableCell AtkTableCell;
39
+ #endif
40
+ typedef struct _AtkTableCellIface AtkTableCellIface;
41
+
42
+ /**
43
+ * AtkTableCellIface:
44
+ * @get_column_span: virtual function that returns the number of
45
+ * columns occupied by this cell accessible. @Since: 2.12
46
+ * @get_column_header_cells: virtual function that returns the column
47
+ * headers as an array of cell accessibles. @Since: 2.12
48
+ * @get_position: virtual function that retrieves the tabular position
49
+ * of this cell. @Since: 2.12
50
+ * @get_row_span: virtual function that returns the number of rows
51
+ * occupied by this cell. @Since: 2.12
52
+ * @get_row_header_cells: virtual function that returns the row
53
+ * headers as an array of cell accessibles. @Since: 2.12
54
+ * @get_row_column_span: virtual function that get the row an column
55
+ * indexes and span of this cell. @Since: 2.12
56
+ * @get_table: virtual function that returns a reference to the
57
+ * accessible of the containing table. @Since: 2.12
58
+ */
59
+ struct _AtkTableCellIface
60
+ {
61
+ GTypeInterface parent;
62
+
63
+ gint (*get_column_span) (AtkTableCell *cell);
64
+ GPtrArray * (*get_column_header_cells) (AtkTableCell *cell);
65
+ gboolean (*get_position) (AtkTableCell *cell,
66
+ gint *row,
67
+ gint *column);
68
+ gint (*get_row_span) (AtkTableCell *cell);
69
+ GPtrArray * (*get_row_header_cells) (AtkTableCell *cell);
70
+ gboolean (*get_row_column_span) (AtkTableCell *cell,
71
+ gint *row,
72
+ gint *column,
73
+ gint *row_span,
74
+ gint *column_span);
75
+ AtkObject * (*get_table) (AtkTableCell *cell);
76
+ };
77
+
78
+ ATK_AVAILABLE_IN_2_12
79
+ GType atk_table_cell_get_type (void);
80
+
81
+ ATK_AVAILABLE_IN_2_12
82
+ gint atk_table_cell_get_column_span (AtkTableCell *cell);
83
+ ATK_AVAILABLE_IN_2_12
84
+ GPtrArray * atk_table_cell_get_column_header_cells (AtkTableCell *cell);
85
+ ATK_AVAILABLE_IN_2_12
86
+ gboolean atk_table_cell_get_position (AtkTableCell *cell,
87
+ gint *row,
88
+ gint *column);
89
+ ATK_AVAILABLE_IN_2_12
90
+ gint atk_table_cell_get_row_span (AtkTableCell *cell);
91
+ ATK_AVAILABLE_IN_2_12
92
+ GPtrArray * atk_table_cell_get_row_header_cells (AtkTableCell *cell);
93
+ ATK_AVAILABLE_IN_2_12
94
+ gboolean atk_table_cell_get_row_column_span (AtkTableCell *cell,
95
+ gint *row,
96
+ gint *column,
97
+ gint *row_span,
98
+ gint *column_span);
99
+ ATK_AVAILABLE_IN_2_12
100
+ AtkObject * atk_table_cell_get_table (AtkTableCell *cell);
101
+
102
+ G_END_DECLS
103
+
104
+ #endif /* __ATK_TABLE_CELL_H__ */
@@ -0,0 +1,453 @@
1
+ /* ATK - The Accessibility Toolkit for GTK+
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_TEXT_H__
25
+ #define __ATK_TEXT_H__
26
+
27
+ #include <glib-object.h>
28
+ #include <atk/atkobject.h>
29
+ #include <atk/atkutil.h>
30
+
31
+ G_BEGIN_DECLS
32
+
33
+ /**
34
+ *AtkTextAttribute:
35
+ *@ATK_TEXT_ATTR_INVALID: Invalid attribute, like bad spelling or grammar.
36
+ *@ATK_TEXT_ATTR_LEFT_MARGIN: The pixel width of the left margin
37
+ *@ATK_TEXT_ATTR_RIGHT_MARGIN: The pixel width of the right margin
38
+ *@ATK_TEXT_ATTR_INDENT: The number of pixels that the text is indented
39
+ *@ATK_TEXT_ATTR_INVISIBLE: Either "true" or "false" indicating whether text is visible or not
40
+ *@ATK_TEXT_ATTR_EDITABLE: Either "true" or "false" indicating whether text is editable or not
41
+ *@ATK_TEXT_ATTR_PIXELS_ABOVE_LINES: Pixels of blank space to leave above each newline-terminated line.
42
+ *@ATK_TEXT_ATTR_PIXELS_BELOW_LINES: Pixels of blank space to leave below each newline-terminated line.
43
+ *@ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP: Pixels of blank space to leave between wrapped lines inside the same newline-terminated line (paragraph).
44
+ *@ATK_TEXT_ATTR_BG_FULL_HEIGHT: "true" or "false" whether to make the background color for each character the height of the highest font used on the current line, or the height of the font used for the current character.
45
+ *@ATK_TEXT_ATTR_RISE: Number of pixels that the characters are risen above the baseline
46
+ *@ATK_TEXT_ATTR_UNDERLINE: "none", "single", "double", "low", or "error"
47
+ *@ATK_TEXT_ATTR_STRIKETHROUGH: "true" or "false" whether the text is strikethrough
48
+ *@ATK_TEXT_ATTR_SIZE: The size of the characters in points. eg: 10
49
+ *@ATK_TEXT_ATTR_SCALE: The scale of the characters. The value is a string representation of a double
50
+ *@ATK_TEXT_ATTR_WEIGHT: The weight of the characters.
51
+ *@ATK_TEXT_ATTR_LANGUAGE: The language used
52
+ *@ATK_TEXT_ATTR_FAMILY_NAME: The font family name
53
+ *@ATK_TEXT_ATTR_BG_COLOR: The background color. The value is an RGB value of the format "%u,%u,%u"
54
+ *@ATK_TEXT_ATTR_FG_COLOR:The foreground color. The value is an RGB value of the format "%u,%u,%u"
55
+ *@ATK_TEXT_ATTR_BG_STIPPLE: "true" if a #GdkBitmap is set for stippling the background color.
56
+ *@ATK_TEXT_ATTR_FG_STIPPLE: "true" if a #GdkBitmap is set for stippling the foreground color.
57
+ *@ATK_TEXT_ATTR_WRAP_MODE: The wrap mode of the text, if any. Values are "none", "char", "word", or "word_char".
58
+ *@ATK_TEXT_ATTR_DIRECTION: The direction of the text, if set. Values are "none", "ltr" or "rtl"
59
+ *@ATK_TEXT_ATTR_JUSTIFICATION: The justification of the text, if set. Values are "left", "right", "center" or "fill"
60
+ *@ATK_TEXT_ATTR_STRETCH: The stretch of the text, if set. Values are "ultra_condensed", "extra_condensed", "condensed", "semi_condensed", "normal", "semi_expanded", "expanded", "extra_expanded" or "ultra_expanded"
61
+ *@ATK_TEXT_ATTR_VARIANT: The capitalization variant of the text, if set. Values are "normal" or "small_caps"
62
+ *@ATK_TEXT_ATTR_STYLE: The slant style of the text, if set. Values are "normal", "oblique" or "italic"
63
+ *@ATK_TEXT_ATTR_LAST_DEFINED: not a valid text attribute, used for finding end of enumeration
64
+ *
65
+ * Describes the text attributes supported
66
+ **/
67
+ typedef enum
68
+ {
69
+ ATK_TEXT_ATTR_INVALID = 0,
70
+ ATK_TEXT_ATTR_LEFT_MARGIN,
71
+ ATK_TEXT_ATTR_RIGHT_MARGIN,
72
+ ATK_TEXT_ATTR_INDENT,
73
+ ATK_TEXT_ATTR_INVISIBLE,
74
+ ATK_TEXT_ATTR_EDITABLE,
75
+ ATK_TEXT_ATTR_PIXELS_ABOVE_LINES,
76
+ ATK_TEXT_ATTR_PIXELS_BELOW_LINES,
77
+ ATK_TEXT_ATTR_PIXELS_INSIDE_WRAP,
78
+ ATK_TEXT_ATTR_BG_FULL_HEIGHT,
79
+ ATK_TEXT_ATTR_RISE,
80
+ ATK_TEXT_ATTR_UNDERLINE,
81
+ ATK_TEXT_ATTR_STRIKETHROUGH,
82
+ ATK_TEXT_ATTR_SIZE,
83
+ ATK_TEXT_ATTR_SCALE,
84
+ ATK_TEXT_ATTR_WEIGHT,
85
+ ATK_TEXT_ATTR_LANGUAGE,
86
+ ATK_TEXT_ATTR_FAMILY_NAME,
87
+ ATK_TEXT_ATTR_BG_COLOR,
88
+ ATK_TEXT_ATTR_FG_COLOR,
89
+ ATK_TEXT_ATTR_BG_STIPPLE,
90
+ ATK_TEXT_ATTR_FG_STIPPLE,
91
+ ATK_TEXT_ATTR_WRAP_MODE,
92
+ ATK_TEXT_ATTR_DIRECTION,
93
+ ATK_TEXT_ATTR_JUSTIFICATION,
94
+ ATK_TEXT_ATTR_STRETCH,
95
+ ATK_TEXT_ATTR_VARIANT,
96
+ ATK_TEXT_ATTR_STYLE,
97
+ ATK_TEXT_ATTR_LAST_DEFINED
98
+ } AtkTextAttribute;
99
+
100
+ ATK_AVAILABLE_IN_ALL
101
+ AtkTextAttribute atk_text_attribute_register (const gchar *name);
102
+
103
+
104
+ #define ATK_TYPE_TEXT (atk_text_get_type ())
105
+ #define ATK_IS_TEXT(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_TEXT)
106
+ #define ATK_TEXT(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_TEXT, AtkText)
107
+ #define ATK_TEXT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), ATK_TYPE_TEXT, AtkTextIface))
108
+
109
+ #ifndef _TYPEDEF_ATK_TEXT_
110
+ #define _TYPEDEF_ATK_TEXT_
111
+ typedef struct _AtkText AtkText;
112
+ #endif
113
+ typedef struct _AtkTextIface AtkTextIface;
114
+
115
+
116
+ /**
117
+ *AtkTextBoundary:
118
+ *@ATK_TEXT_BOUNDARY_CHAR: Boundary is the boundary between characters
119
+ * (including non-printing characters)
120
+ *@ATK_TEXT_BOUNDARY_WORD_START: Boundary is the start (i.e. first character) of a word.
121
+ *@ATK_TEXT_BOUNDARY_WORD_END: Boundary is the end (i.e. last
122
+ * character) of a word.
123
+ *@ATK_TEXT_BOUNDARY_SENTENCE_START: Boundary is the first character in a sentence.
124
+ *@ATK_TEXT_BOUNDARY_SENTENCE_END: Boundary is the last (terminal)
125
+ * character in a sentence; in languages which use "sentence stop"
126
+ * punctuation such as English, the boundary is thus the '.', '?', or
127
+ * similar terminal punctuation character.
128
+ *@ATK_TEXT_BOUNDARY_LINE_START: Boundary is the initial character of the content or a
129
+ * character immediately following a newline, linefeed, or return character.
130
+ *@ATK_TEXT_BOUNDARY_LINE_END: Boundary is the linefeed, or return
131
+ * character.
132
+ *
133
+ * Text boundary types used for specifying boundaries for regions of text.
134
+ * This enumerationis deprecated since 2.9.4 and should not be used. Use
135
+ * AtkTextGranularity with #atk_text_get_string_at_offset instead.
136
+ **/
137
+ typedef enum {
138
+ ATK_TEXT_BOUNDARY_CHAR,
139
+ ATK_TEXT_BOUNDARY_WORD_START,
140
+ ATK_TEXT_BOUNDARY_WORD_END,
141
+ ATK_TEXT_BOUNDARY_SENTENCE_START,
142
+ ATK_TEXT_BOUNDARY_SENTENCE_END,
143
+ ATK_TEXT_BOUNDARY_LINE_START,
144
+ ATK_TEXT_BOUNDARY_LINE_END
145
+ } AtkTextBoundary;
146
+
147
+ /**
148
+ *AtkTextGranularity:
149
+ *@ATK_TEXT_GRANULARITY_CHAR: Granularity is defined by the boundaries between characters
150
+ * (including non-printing characters)
151
+ *@ATK_TEXT_GRANULARITY_WORD: Granularity is defined by the boundaries of a word,
152
+ * starting at the beginning of the current word and finishing at the beginning of
153
+ * the following one, if present.
154
+ *@ATK_TEXT_GRANULARITY_SENTENCE: Granularity is defined by the boundaries of a sentence,
155
+ * starting at the beginning of the current sentence and finishing at the beginning of
156
+ * the following one, if present.
157
+ *@ATK_TEXT_GRANULARITY_LINE: Granularity is defined by the boundaries of a line,
158
+ * starting at the beginning of the current line and finishing at the beginning of
159
+ * the following one, if present.
160
+ *@ATK_TEXT_GRANULARITY_PARAGRAPH: Granularity is defined by the boundaries of a paragraph,
161
+ * starting at the beginning of the current paragraph and finishing at the beginning of
162
+ * the following one, if present.
163
+ *
164
+ * Text granularity types used for specifying the granularity of the region of
165
+ * text we are interested in.
166
+ **/
167
+ typedef enum {
168
+ ATK_TEXT_GRANULARITY_CHAR,
169
+ ATK_TEXT_GRANULARITY_WORD,
170
+ ATK_TEXT_GRANULARITY_SENTENCE,
171
+ ATK_TEXT_GRANULARITY_LINE,
172
+ ATK_TEXT_GRANULARITY_PARAGRAPH
173
+ } AtkTextGranularity;
174
+
175
+ /**
176
+ * AtkTextRectangle:
177
+ * @x: The horizontal coordinate of a rectangle
178
+ * @y: The vertical coordinate of a rectangle
179
+ * @width: The width of a rectangle
180
+ * @height: The height of a rectangle
181
+ *
182
+ * A structure used to store a rectangle used by AtkText.
183
+ **/
184
+
185
+ typedef struct _AtkTextRectangle AtkTextRectangle;
186
+
187
+ struct _AtkTextRectangle {
188
+ gint x;
189
+ gint y;
190
+ gint width;
191
+ gint height;
192
+ };
193
+
194
+ /**
195
+ * AtkTextRange:
196
+ * @bounds: A rectangle giving the bounds of the text range
197
+ * @start_offset: The start offset of a AtkTextRange
198
+ * @end_offset: The end offset of a AtkTextRange
199
+ * @content: The text in the text range
200
+ *
201
+ * A structure used to describe a text range.
202
+ **/
203
+ typedef struct _AtkTextRange AtkTextRange;
204
+
205
+ struct _AtkTextRange {
206
+ AtkTextRectangle bounds;
207
+ gint start_offset;
208
+ gint end_offset;
209
+ gchar* content;
210
+ };
211
+
212
+ ATK_AVAILABLE_IN_ALL
213
+ GType atk_text_range_get_type (void);
214
+
215
+ /**
216
+ *AtkTextClipType:
217
+ *@ATK_TEXT_CLIP_NONE: No clipping to be done
218
+ *@ATK_TEXT_CLIP_MIN: Text clipped by min coordinate is omitted
219
+ *@ATK_TEXT_CLIP_MAX: Text clipped by max coordinate is omitted
220
+ *@ATK_TEXT_CLIP_BOTH: Only text fully within mix/max bound is retained
221
+ *
222
+ *Describes the type of clipping required.
223
+ **/
224
+ typedef enum {
225
+ ATK_TEXT_CLIP_NONE,
226
+ ATK_TEXT_CLIP_MIN,
227
+ ATK_TEXT_CLIP_MAX,
228
+ ATK_TEXT_CLIP_BOTH
229
+ } AtkTextClipType;
230
+
231
+ /**
232
+ * AtkTextIface:
233
+ * @get_text_after_offset: Gets specified text. This virtual function
234
+ * is deprecated and it should not be overridden.
235
+ * @get_text_at_offset: Gets specified text. This virtual function
236
+ * is deprecated and it should not be overridden.
237
+ * @get_text_before_offset: Gets specified text. This virtual function
238
+ * is deprecated and it should not be overridden.
239
+ * @get_string_at_offset: Gets a portion of the text exposed through
240
+ * an AtkText according to a given offset and a specific
241
+ * granularity, along with the start and end offsets defining the
242
+ * boundaries of such a portion of text.
243
+ * @text_changed: the signal handler which is executed when there is a
244
+ * text change. This virtual function is deprecated sice 2.9.4 and
245
+ * it should not be overriden.
246
+ */
247
+ struct _AtkTextIface
248
+ {
249
+ GTypeInterface parent;
250
+
251
+ gchar* (* get_text) (AtkText *text,
252
+ gint start_offset,
253
+ gint end_offset);
254
+ gchar* (* get_text_after_offset) (AtkText *text,
255
+ gint offset,
256
+ AtkTextBoundary boundary_type,
257
+ gint *start_offset,
258
+ gint *end_offset);
259
+ gchar* (* get_text_at_offset) (AtkText *text,
260
+ gint offset,
261
+ AtkTextBoundary boundary_type,
262
+ gint *start_offset,
263
+ gint *end_offset);
264
+ gunichar (* get_character_at_offset) (AtkText *text,
265
+ gint offset);
266
+ gchar* (* get_text_before_offset) (AtkText *text,
267
+ gint offset,
268
+ AtkTextBoundary boundary_type,
269
+ gint *start_offset,
270
+ gint *end_offset);
271
+ gint (* get_caret_offset) (AtkText *text);
272
+ AtkAttributeSet* (* get_run_attributes) (AtkText *text,
273
+ gint offset,
274
+ gint *start_offset,
275
+ gint *end_offset);
276
+ AtkAttributeSet* (* get_default_attributes) (AtkText *text);
277
+ void (* get_character_extents) (AtkText *text,
278
+ gint offset,
279
+ gint *x,
280
+ gint *y,
281
+ gint *width,
282
+ gint *height,
283
+ AtkCoordType coords);
284
+ gint (* get_character_count) (AtkText *text);
285
+ gint (* get_offset_at_point) (AtkText *text,
286
+ gint x,
287
+ gint y,
288
+ AtkCoordType coords);
289
+ gint (* get_n_selections) (AtkText *text);
290
+ gchar* (* get_selection) (AtkText *text,
291
+ gint selection_num,
292
+ gint *start_offset,
293
+ gint *end_offset);
294
+ gboolean (* add_selection) (AtkText *text,
295
+ gint start_offset,
296
+ gint end_offset);
297
+ gboolean (* remove_selection) (AtkText *text,
298
+ gint selection_num);
299
+ gboolean (* set_selection) (AtkText *text,
300
+ gint selection_num,
301
+ gint start_offset,
302
+ gint end_offset);
303
+ gboolean (* set_caret_offset) (AtkText *text,
304
+ gint offset);
305
+
306
+ /*
307
+ * signal handlers
308
+ */
309
+ void (* text_changed) (AtkText *text,
310
+ gint position,
311
+ gint length);
312
+ void (* text_caret_moved) (AtkText *text,
313
+ gint location);
314
+ void (* text_selection_changed) (AtkText *text);
315
+
316
+ void (* text_attributes_changed) (AtkText *text);
317
+
318
+
319
+ void (* get_range_extents) (AtkText *text,
320
+ gint start_offset,
321
+ gint end_offset,
322
+ AtkCoordType coord_type,
323
+ AtkTextRectangle *rect);
324
+
325
+ AtkTextRange** (* get_bounded_ranges) (AtkText *text,
326
+ AtkTextRectangle *rect,
327
+ AtkCoordType coord_type,
328
+ AtkTextClipType x_clip_type,
329
+ AtkTextClipType y_clip_type);
330
+
331
+ gchar* (* get_string_at_offset) (AtkText *text,
332
+ gint offset,
333
+ AtkTextGranularity granularity,
334
+ gint *start_offset,
335
+ gint *end_offset);
336
+ };
337
+
338
+ ATK_AVAILABLE_IN_ALL
339
+ GType atk_text_get_type (void);
340
+
341
+
342
+ /*
343
+ * Additional AtkObject properties used by AtkText:
344
+ * "accessible_text" (accessible text has changed)
345
+ * "accessible_caret" (accessible text cursor position changed:
346
+ * editable text only)
347
+ */
348
+
349
+ ATK_AVAILABLE_IN_ALL
350
+ gchar* atk_text_get_text (AtkText *text,
351
+ gint start_offset,
352
+ gint end_offset);
353
+ ATK_AVAILABLE_IN_ALL
354
+ gunichar atk_text_get_character_at_offset (AtkText *text,
355
+ gint offset);
356
+ ATK_DEPRECATED_IN_2_10_FOR(atk_text_get_string_at_offset)
357
+ gchar* atk_text_get_text_after_offset (AtkText *text,
358
+ gint offset,
359
+ AtkTextBoundary boundary_type,
360
+ gint *start_offset,
361
+ gint *end_offset);
362
+ ATK_DEPRECATED_IN_2_10_FOR(atk_text_get_string_at_offset)
363
+ gchar* atk_text_get_text_at_offset (AtkText *text,
364
+ gint offset,
365
+ AtkTextBoundary boundary_type,
366
+ gint *start_offset,
367
+ gint *end_offset);
368
+ ATK_DEPRECATED_IN_2_10_FOR(atk_text_get_string_at_offset)
369
+ gchar* atk_text_get_text_before_offset (AtkText *text,
370
+ gint offset,
371
+ AtkTextBoundary boundary_type,
372
+ gint *start_offset,
373
+ gint *end_offset);
374
+ ATK_AVAILABLE_IN_2_10
375
+ gchar* atk_text_get_string_at_offset (AtkText *text,
376
+ gint offset,
377
+ AtkTextGranularity granularity,
378
+ gint *start_offset,
379
+ gint *end_offset);
380
+ ATK_AVAILABLE_IN_ALL
381
+ gint atk_text_get_caret_offset (AtkText *text);
382
+ ATK_AVAILABLE_IN_ALL
383
+ void atk_text_get_character_extents (AtkText *text,
384
+ gint offset,
385
+ gint *x,
386
+ gint *y,
387
+ gint *width,
388
+ gint *height,
389
+ AtkCoordType coords);
390
+ ATK_AVAILABLE_IN_ALL
391
+ AtkAttributeSet* atk_text_get_run_attributes (AtkText *text,
392
+ gint offset,
393
+ gint *start_offset,
394
+ gint *end_offset);
395
+ ATK_AVAILABLE_IN_ALL
396
+ AtkAttributeSet* atk_text_get_default_attributes (AtkText *text);
397
+ ATK_AVAILABLE_IN_ALL
398
+ gint atk_text_get_character_count (AtkText *text);
399
+ ATK_AVAILABLE_IN_ALL
400
+ gint atk_text_get_offset_at_point (AtkText *text,
401
+ gint x,
402
+ gint y,
403
+ AtkCoordType coords);
404
+ ATK_AVAILABLE_IN_ALL
405
+ gint atk_text_get_n_selections (AtkText *text);
406
+ ATK_AVAILABLE_IN_ALL
407
+ gchar* atk_text_get_selection (AtkText *text,
408
+ gint selection_num,
409
+ gint *start_offset,
410
+ gint *end_offset);
411
+ ATK_AVAILABLE_IN_ALL
412
+ gboolean atk_text_add_selection (AtkText *text,
413
+ gint start_offset,
414
+ gint end_offset);
415
+ ATK_AVAILABLE_IN_ALL
416
+ gboolean atk_text_remove_selection (AtkText *text,
417
+ gint selection_num);
418
+ ATK_AVAILABLE_IN_ALL
419
+ gboolean atk_text_set_selection (AtkText *text,
420
+ gint selection_num,
421
+ gint start_offset,
422
+ gint end_offset);
423
+ ATK_AVAILABLE_IN_ALL
424
+ gboolean atk_text_set_caret_offset (AtkText *text,
425
+ gint offset);
426
+ ATK_AVAILABLE_IN_ALL
427
+ void atk_text_get_range_extents (AtkText *text,
428
+
429
+ gint start_offset,
430
+ gint end_offset,
431
+ AtkCoordType coord_type,
432
+ AtkTextRectangle *rect);
433
+ ATK_AVAILABLE_IN_ALL
434
+ AtkTextRange** atk_text_get_bounded_ranges (AtkText *text,
435
+ AtkTextRectangle *rect,
436
+ AtkCoordType coord_type,
437
+ AtkTextClipType x_clip_type,
438
+ AtkTextClipType y_clip_type);
439
+ ATK_AVAILABLE_IN_ALL
440
+ void atk_text_free_ranges (AtkTextRange **ranges);
441
+ ATK_AVAILABLE_IN_ALL
442
+ void atk_attribute_set_free (AtkAttributeSet *attrib_set);
443
+ ATK_AVAILABLE_IN_ALL
444
+ const gchar* atk_text_attribute_get_name (AtkTextAttribute attr);
445
+ ATK_AVAILABLE_IN_ALL
446
+ AtkTextAttribute atk_text_attribute_for_name (const gchar *name);
447
+ ATK_AVAILABLE_IN_ALL
448
+ const gchar* atk_text_attribute_get_value (AtkTextAttribute attr,
449
+ gint index_);
450
+
451
+ G_END_DECLS
452
+
453
+ #endif /* __ATK_TEXT_H__ */