atk 2.2.4-x64-mingw32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README +30 -0
- data/Rakefile +31 -0
- data/ext/atk/atk.def +2 -0
- data/ext/atk/depend +11 -0
- data/ext/atk/extconf.rb +81 -0
- data/ext/atk/rbatk.c +66 -0
- data/ext/atk/rbatk.h +47 -0
- data/ext/atk/rbatkaction.c +85 -0
- data/ext/atk/rbatkcomponent.c +175 -0
- data/ext/atk/rbatkconversions.h +70 -0
- data/ext/atk/rbatkdocument.c +96 -0
- data/ext/atk/rbatkeditabletext.c +177 -0
- data/ext/atk/rbatkgobjectaccessible.c +46 -0
- data/ext/atk/rbatkhyperlink.c +71 -0
- data/ext/atk/rbatkhypertext.c +53 -0
- data/ext/atk/rbatkimage.c +68 -0
- data/ext/atk/rbatkimplementor.c +38 -0
- data/ext/atk/rbatknoopobject.c +40 -0
- data/ext/atk/rbatknoopobjectfactory.c +40 -0
- data/ext/atk/rbatkobject.c +153 -0
- data/ext/atk/rbatkobjectfactory.c +53 -0
- data/ext/atk/rbatkobjectrole.c +50 -0
- data/ext/atk/rbatkprivate.h +48 -0
- data/ext/atk/rbatkregistry.c +63 -0
- data/ext/atk/rbatkrelation.c +98 -0
- data/ext/atk/rbatkrelationset.c +95 -0
- data/ext/atk/rbatkrelationtype.c +38 -0
- data/ext/atk/rbatkselection.c +87 -0
- data/ext/atk/rbatkstate.c +51 -0
- data/ext/atk/rbatkstateset.c +180 -0
- data/ext/atk/rbatkstreamablecontent.c +57 -0
- data/ext/atk/rbatktable.c +271 -0
- data/ext/atk/rbatktext.c +318 -0
- data/ext/atk/rbatktextattribute.c +54 -0
- data/ext/atk/rbatktextrange.c +92 -0
- data/ext/atk/rbatktextrectangle.c +149 -0
- data/ext/atk/rbatkutil.c +122 -0
- data/ext/atk/rbatkvalue.c +78 -0
- data/extconf.rb +49 -0
- data/lib/2.0/atk.so +0 -0
- data/lib/2.1/atk.so +0 -0
- data/lib/2.2/atk.so +0 -0
- data/lib/atk.rb +21 -0
- data/test/atk-test-utils.rb +21 -0
- data/test/run-test.rb +45 -0
- data/test/test-text-rectangle.rb +26 -0
- data/vendor/local/bin/libatk-1.0-0.dll +0 -0
- data/vendor/local/include/atk-1.0/atk/atk-enum-types.h +63 -0
- data/vendor/local/include/atk-1.0/atk/atk.h +61 -0
- data/vendor/local/include/atk-1.0/atk/atkaction.h +117 -0
- data/vendor/local/include/atk-1.0/atk/atkcomponent.h +225 -0
- data/vendor/local/include/atk-1.0/atk/atkdocument.h +113 -0
- data/vendor/local/include/atk-1.0/atk/atkeditabletext.h +109 -0
- data/vendor/local/include/atk-1.0/atk/atkgobjectaccessible.h +68 -0
- data/vendor/local/include/atk-1.0/atk/atkhyperlink.h +114 -0
- data/vendor/local/include/atk-1.0/atk/atkhyperlinkimpl.h +68 -0
- data/vendor/local/include/atk-1.0/atk/atkhypertext.h +78 -0
- data/vendor/local/include/atk-1.0/atk/atkimage.h +90 -0
- data/vendor/local/include/atk-1.0/atk/atkmisc.h +112 -0
- data/vendor/local/include/atk-1.0/atk/atknoopobject.h +59 -0
- data/vendor/local/include/atk-1.0/atk/atknoopobjectfactory.h +59 -0
- data/vendor/local/include/atk-1.0/atk/atkobject.h +751 -0
- data/vendor/local/include/atk-1.0/atk/atkobjectfactory.h +72 -0
- data/vendor/local/include/atk-1.0/atk/atkplug.h +66 -0
- data/vendor/local/include/atk-1.0/atk/atkrange.h +59 -0
- data/vendor/local/include/atk-1.0/atk/atkregistry.h +74 -0
- data/vendor/local/include/atk-1.0/atk/atkrelation.h +99 -0
- data/vendor/local/include/atk-1.0/atk/atkrelationset.h +91 -0
- data/vendor/local/include/atk-1.0/atk/atkrelationtype.h +83 -0
- data/vendor/local/include/atk-1.0/atk/atkselection.h +100 -0
- data/vendor/local/include/atk-1.0/atk/atksocket.h +71 -0
- data/vendor/local/include/atk-1.0/atk/atkstate.h +190 -0
- data/vendor/local/include/atk-1.0/atk/atkstateset.h +92 -0
- data/vendor/local/include/atk-1.0/atk/atkstreamablecontent.h +110 -0
- data/vendor/local/include/atk-1.0/atk/atktable.h +233 -0
- data/vendor/local/include/atk-1.0/atk/atktablecell.h +104 -0
- data/vendor/local/include/atk-1.0/atk/atktext.h +453 -0
- data/vendor/local/include/atk-1.0/atk/atkutil.h +357 -0
- data/vendor/local/include/atk-1.0/atk/atkvalue.h +163 -0
- data/vendor/local/include/atk-1.0/atk/atkversion.h +394 -0
- data/vendor/local/include/atk-1.0/atk/atkwindow.h +53 -0
- data/vendor/local/lib/girepository-1.0/Atk-1.0.typelib +0 -0
- data/vendor/local/lib/libatk-1.0.dll.a +0 -0
- data/vendor/local/lib/libatk-1.0.la +41 -0
- data/vendor/local/lib/pkgconfig/atk.pc +11 -0
- data/vendor/local/share/gir-1.0/Atk-1.0.gir +15525 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkAction.html +477 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkComponent.html +1146 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkDocument.html +714 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkEditableText.html +429 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkGObjectAccessible.html +166 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkHyperlink.html +570 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkHypertext.html +286 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkImage.html +319 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkMisc.html +191 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkNoOpObject.html +130 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkNoOpObjectFactory.html +107 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkObject.html +3056 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkObjectFactory.html +214 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkRegistry.html +265 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkRelation.html +659 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkRelationSet.html +413 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkSelection.html +453 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkStateSet.html +539 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkStreamableContent.html +274 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkTable.html +1790 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkTableCell.html +497 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkText.html +2547 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkUtil.html +1111 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkValue.html +743 -0
- data/vendor/local/share/gtk-doc/html/atk/AtkWindow.html +452 -0
- data/vendor/local/share/gtk-doc/html/atk/accessibles.html +49 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-12.html +51 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-13.html +41 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-20.html +35 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-22.html +45 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-3.html +41 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-30.html +41 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-4.html +35 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-6.html +35 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-9.html +39 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-10.html +35 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-12.html +78 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-2.html +53 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-2-8.html +47 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-deprecated.html +119 -0
- data/vendor/local/share/gtk-doc/html/atk/api-index-full.html +775 -0
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkHyperlinkImpl.html +142 -0
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkPlug.html +147 -0
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkRange.html +328 -0
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkSocket.html +207 -0
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkState.html +556 -0
- data/vendor/local/share/gtk-doc/html/atk/atk-Versioning-Utilities.html +293 -0
- data/vendor/local/share/gtk-doc/html/atk/atk.devhelp2 +441 -0
- data/vendor/local/share/gtk-doc/html/atk/atkobject.html +33 -0
- data/vendor/local/share/gtk-doc/html/atk/data.html +49 -0
- data/vendor/local/share/gtk-doc/html/atk/deprecated.html +33 -0
- data/vendor/local/share/gtk-doc/html/atk/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/index.html +175 -0
- data/vendor/local/share/gtk-doc/html/atk/index.sgml +632 -0
- data/vendor/local/share/gtk-doc/html/atk/interfaces.html +89 -0
- data/vendor/local/share/gtk-doc/html/atk/left-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/left.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/overview.html +47 -0
- data/vendor/local/share/gtk-doc/html/atk/right-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/right.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/style.css +476 -0
- data/vendor/local/share/gtk-doc/html/atk/toolkit.html +33 -0
- data/vendor/local/share/gtk-doc/html/atk/up-insensitive.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/up.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/utilities.html +47 -0
- data/vendor/local/share/license/atk/AUTHORS +18 -0
- data/vendor/local/share/license/atk/COPYING +482 -0
- data/vendor/local/share/locale/af/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/am/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/an/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ar/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/as/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ast/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/az/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/be/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/be@latin/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bg/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bn_IN/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/bs/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ca/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ca@valencia/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/cs/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/cy/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/da/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/de/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/dz/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/el/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/en@shaw/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/en_CA/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/en_GB/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/eo/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/es/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/et/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/eu/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fa/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/fr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ga/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/gl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/gu/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/he/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hu/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/hy/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/id/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/is/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/it/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ka/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/kk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/km/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/kn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ko/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ku/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/li/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/lt/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/lv/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mai/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ml/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/mr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ms/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/nb/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ne/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/nl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/nn/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/oc/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/or/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pa/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ps/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pt/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/pt_BR/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ro/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ru/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/rw/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/si/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sl/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sq/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sr@ije/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sr@latin/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/sv/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ta/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/te/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/tg/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/th/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/tk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/tr/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/tt/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ug/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/uk/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/vi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/wa/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/xh/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/yi/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zh_CN/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zh_HK/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zh_TW/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/zu/LC_MESSAGES/atk10.mo +0 -0
- metadata +307 -0
@@ -0,0 +1,50 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2003,2004 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbatkprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE cRole
|
25
|
+
|
26
|
+
static VALUE
|
27
|
+
rg_localized_name(G_GNUC_UNUSED VALUE self)
|
28
|
+
{
|
29
|
+
#ifdef HAVE_ATK_ROLE_GET_LOCALIZED_NAME
|
30
|
+
return CSTR2RVAL(atk_role_get_localized_name(RVAL2ATKROLE(self)));
|
31
|
+
#else
|
32
|
+
rb_warning("not supported in this version of ATK.");
|
33
|
+
return Qnil;
|
34
|
+
#endif
|
35
|
+
}
|
36
|
+
|
37
|
+
static VALUE
|
38
|
+
rg_s_for_name(G_GNUC_UNUSED VALUE self, VALUE name)
|
39
|
+
{
|
40
|
+
return ATKROLE2RVAL(atk_role_for_name(RVAL2CSTR(name)));
|
41
|
+
}
|
42
|
+
|
43
|
+
void
|
44
|
+
Init_atk_object_role(VALUE cObject)
|
45
|
+
{
|
46
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_ROLE, "Role", cObject);
|
47
|
+
RG_DEF_METHOD(localized_name, 0);
|
48
|
+
RG_DEF_SMETHOD(for_name, 1);
|
49
|
+
G_DEF_CONSTANTS(cObject, ATK_TYPE_ROLE, "ATK_");
|
50
|
+
}
|
@@ -0,0 +1,48 @@
|
|
1
|
+
#ifndef RB_ATK_PRIVATE_H
|
2
|
+
#define RB_ATK_PRIVATE_H
|
3
|
+
|
4
|
+
#include "rbatk.h"
|
5
|
+
|
6
|
+
#ifndef HAVE_RB_ERRINFO
|
7
|
+
# define rb_errinfo() (ruby_errinfo)
|
8
|
+
#endif
|
9
|
+
|
10
|
+
#ifndef G_VALUE_INIT
|
11
|
+
# define G_VALUE_INIT { 0, { { 0 } } }
|
12
|
+
#endif
|
13
|
+
|
14
|
+
G_BEGIN_DECLS
|
15
|
+
|
16
|
+
G_GNUC_INTERNAL void Init_atk_action(VALUE mAtk);
|
17
|
+
G_GNUC_INTERNAL void Init_atk_component(VALUE mAtk);
|
18
|
+
G_GNUC_INTERNAL void Init_atk_document(VALUE mAtk);
|
19
|
+
G_GNUC_INTERNAL void Init_atk_editabletext(VALUE mAtk);
|
20
|
+
G_GNUC_INTERNAL void Init_atk_gobjectaccessible(VALUE mAtk);
|
21
|
+
G_GNUC_INTERNAL void Init_atk_hyperlink(VALUE mAtk);
|
22
|
+
G_GNUC_INTERNAL void Init_atk_hypertext(VALUE mAtk);
|
23
|
+
G_GNUC_INTERNAL void Init_atk_image(VALUE mAtk);
|
24
|
+
G_GNUC_INTERNAL void Init_atk_implementor(VALUE mAtk);
|
25
|
+
G_GNUC_INTERNAL void Init_atk_noopobject(VALUE mAtk);
|
26
|
+
G_GNUC_INTERNAL void Init_atk_noopobjectfactory(VALUE mAtk);
|
27
|
+
G_GNUC_INTERNAL void Init_atk_object(VALUE mAtk);
|
28
|
+
G_GNUC_INTERNAL void Init_atk_object_role(VALUE cObject);
|
29
|
+
G_GNUC_INTERNAL void Init_atk_objectfactory(VALUE mAtk);
|
30
|
+
G_GNUC_INTERNAL void Init_atk_registry(VALUE mAtk);
|
31
|
+
G_GNUC_INTERNAL void Init_atk_relation(VALUE mAtk);
|
32
|
+
G_GNUC_INTERNAL void Init_atk_relation_type(VALUE cRelation);
|
33
|
+
G_GNUC_INTERNAL void Init_atk_relation_set(VALUE mAtk);
|
34
|
+
G_GNUC_INTERNAL void Init_atk_selection(VALUE mAtk);
|
35
|
+
G_GNUC_INTERNAL void Init_atk_state(VALUE mAtk);
|
36
|
+
G_GNUC_INTERNAL void Init_atk_state_set(VALUE mAtk);
|
37
|
+
G_GNUC_INTERNAL void Init_atk_streamable_content(VALUE mAtk);
|
38
|
+
G_GNUC_INTERNAL void Init_atk_table(VALUE mAtk);
|
39
|
+
G_GNUC_INTERNAL void Init_atk_text(VALUE mAtk);
|
40
|
+
G_GNUC_INTERNAL void Init_atk_text_attribute(VALUE mText);
|
41
|
+
G_GNUC_INTERNAL void Init_atk_text_range(VALUE mAtk);
|
42
|
+
G_GNUC_INTERNAL void Init_atk_text_rectangle(VALUE mAtk);
|
43
|
+
G_GNUC_INTERNAL void Init_atk_util(VALUE mAtk);
|
44
|
+
G_GNUC_INTERNAL void Init_atk_value(VALUE mAtk);
|
45
|
+
|
46
|
+
G_END_DECLS
|
47
|
+
|
48
|
+
#endif /* RB_ATK_PRIVATE_H */
|
@@ -0,0 +1,63 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2003 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbatkprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE cRegistry
|
25
|
+
#define _SELF(s) (RVAL2ATKREGISTRY(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_set_factory_type(VALUE self, VALUE type, VALUE factory_type)
|
29
|
+
{
|
30
|
+
atk_registry_set_factory_type(_SELF(self),
|
31
|
+
CLASS2GTYPE(type),
|
32
|
+
CLASS2GTYPE(factory_type));
|
33
|
+
return self;
|
34
|
+
}
|
35
|
+
|
36
|
+
static VALUE
|
37
|
+
rg_get_factory_type(VALUE self, VALUE type)
|
38
|
+
{
|
39
|
+
return GTYPE2CLASS(atk_registry_get_factory_type(_SELF(self), CLASS2GTYPE(type)));
|
40
|
+
}
|
41
|
+
|
42
|
+
static VALUE
|
43
|
+
rg_get_factory(VALUE self, VALUE type)
|
44
|
+
{
|
45
|
+
return GOBJ2RVAL(atk_registry_get_factory(_SELF(self),
|
46
|
+
CLASS2GTYPE(type)));
|
47
|
+
}
|
48
|
+
|
49
|
+
static VALUE
|
50
|
+
rg_s_default_registry(G_GNUC_UNUSED VALUE self)
|
51
|
+
{
|
52
|
+
return GOBJ2RVAL(atk_get_default_registry());
|
53
|
+
}
|
54
|
+
|
55
|
+
void
|
56
|
+
Init_atk_registry(VALUE mAtk)
|
57
|
+
{
|
58
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_REGISTRY, "Registry", mAtk);
|
59
|
+
RG_DEF_METHOD(set_factory_type, 2);
|
60
|
+
RG_DEF_METHOD(get_factory_type, 1);
|
61
|
+
RG_DEF_METHOD(get_factory, 1);
|
62
|
+
RG_DEF_SMETHOD(default_registry, 0);
|
63
|
+
}
|
@@ -0,0 +1,98 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2003 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbatkprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE cRelation
|
25
|
+
#define _SELF(s) (RVAL2ATKRELATION(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_s_type_register(G_GNUC_UNUSED VALUE self, VALUE name)
|
29
|
+
{
|
30
|
+
return ATKRELATIONTYPE2RVAL(atk_relation_type_register(RVAL2CSTR(name)));
|
31
|
+
}
|
32
|
+
|
33
|
+
struct rval2atkobjects_args {
|
34
|
+
VALUE ary;
|
35
|
+
long n;
|
36
|
+
AtkObject **result;
|
37
|
+
};
|
38
|
+
|
39
|
+
static VALUE
|
40
|
+
rval2atkobjects_body(VALUE value)
|
41
|
+
{
|
42
|
+
long i;
|
43
|
+
struct rval2atkobjects_args *args = (struct rval2atkobjects_args *)value;
|
44
|
+
|
45
|
+
for (i = 0; i < args->n; i++)
|
46
|
+
args->result[i] = RVAL2ATKOBJECT(RARRAY_PTR(args->ary)[i]);
|
47
|
+
|
48
|
+
return Qnil;
|
49
|
+
}
|
50
|
+
|
51
|
+
static G_GNUC_NORETURN VALUE
|
52
|
+
rval2atkobjects_rescue(VALUE value)
|
53
|
+
{
|
54
|
+
g_free(((struct rval2atkobjects_args *)value)->result);
|
55
|
+
|
56
|
+
rb_exc_raise(rb_errinfo());
|
57
|
+
}
|
58
|
+
|
59
|
+
static VALUE
|
60
|
+
rg_initialize(VALUE self, VALUE targets, VALUE rbrelationship)
|
61
|
+
{
|
62
|
+
AtkRelationType relationship = RVAL2ATKRELATIONTYPE(rbrelationship);
|
63
|
+
struct rval2atkobjects_args args;
|
64
|
+
AtkRelation *relation;
|
65
|
+
|
66
|
+
args.ary = rb_ary_to_ary(targets);
|
67
|
+
args.n = RARRAY_LEN(args.ary);
|
68
|
+
args.result = g_new(AtkObject *, args.n + 1);
|
69
|
+
|
70
|
+
rb_rescue(rval2atkobjects_body, (VALUE)&args,
|
71
|
+
rval2atkobjects_rescue, (VALUE)&args);
|
72
|
+
|
73
|
+
relation = atk_relation_new(args.result, args.n, relationship);
|
74
|
+
|
75
|
+
g_free(args.result);
|
76
|
+
|
77
|
+
G_INITIALIZE(self, relation);
|
78
|
+
|
79
|
+
return Qnil;
|
80
|
+
}
|
81
|
+
|
82
|
+
static VALUE
|
83
|
+
rg_add_target(VALUE self, VALUE obj)
|
84
|
+
{
|
85
|
+
atk_relation_add_target(_SELF(self), RVAL2ATKOBJECT(obj));
|
86
|
+
return self;
|
87
|
+
}
|
88
|
+
|
89
|
+
void
|
90
|
+
Init_atk_relation(VALUE mAtk)
|
91
|
+
{
|
92
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_RELATION, "Relation", mAtk);
|
93
|
+
RG_DEF_SMETHOD(type_register, 1);
|
94
|
+
RG_DEF_METHOD(initialize, 2);
|
95
|
+
RG_DEF_METHOD(add_target, 1);
|
96
|
+
|
97
|
+
Init_atk_relation_type(RG_TARGET_NAMESPACE);
|
98
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2003 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbatkprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE cRelationSet
|
25
|
+
#define _SELF(s) (RVAL2ATKRELATIONSET(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_initialize(VALUE self)
|
29
|
+
{
|
30
|
+
G_INITIALIZE(self, atk_relation_set_new());
|
31
|
+
return Qnil;
|
32
|
+
}
|
33
|
+
|
34
|
+
static VALUE
|
35
|
+
rg_contains_p(VALUE self, VALUE relationship)
|
36
|
+
{
|
37
|
+
return CBOOL2RVAL(atk_relation_set_contains(
|
38
|
+
_SELF(self),
|
39
|
+
RVAL2ATKRELATIONTYPE(relationship)));
|
40
|
+
}
|
41
|
+
|
42
|
+
static VALUE
|
43
|
+
rg_remove(VALUE self, VALUE relation)
|
44
|
+
{
|
45
|
+
atk_relation_set_remove(_SELF(self), RVAL2ATKRELATION(relation));
|
46
|
+
return self;
|
47
|
+
}
|
48
|
+
|
49
|
+
static VALUE
|
50
|
+
rg_add(VALUE self, VALUE relation)
|
51
|
+
{
|
52
|
+
atk_relation_set_add(_SELF(self), RVAL2ATKRELATION(relation));
|
53
|
+
return self;
|
54
|
+
}
|
55
|
+
|
56
|
+
static VALUE
|
57
|
+
rg_n_relations(VALUE self)
|
58
|
+
{
|
59
|
+
return INT2NUM(atk_relation_set_get_n_relations(_SELF(self)));
|
60
|
+
}
|
61
|
+
|
62
|
+
static VALUE
|
63
|
+
rg_get_relation(VALUE self, VALUE i)
|
64
|
+
{
|
65
|
+
if (rb_obj_is_kind_of(i, GTYPE2CLASS(ATK_TYPE_RELATION_TYPE))){
|
66
|
+
return GOBJ2RVAL(atk_relation_set_get_relation_by_type(
|
67
|
+
_SELF(self),
|
68
|
+
RVAL2ATKRELATIONTYPE(i)));
|
69
|
+
} else {
|
70
|
+
return GOBJ2RVAL(atk_relation_set_get_relation(_SELF(self), NUM2INT(i)));
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
static VALUE
|
75
|
+
rg_add_relation(VALUE self, VALUE relationship, VALUE obj)
|
76
|
+
{
|
77
|
+
atk_relation_set_add_relation_by_type(_SELF(self),
|
78
|
+
RVAL2ATKRELATIONTYPE(relationship),
|
79
|
+
RVAL2ATKOBJECT(obj));
|
80
|
+
return self;
|
81
|
+
}
|
82
|
+
|
83
|
+
void
|
84
|
+
Init_atk_relation_set(VALUE mAtk)
|
85
|
+
{
|
86
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_RELATION_SET, "RelationSet", mAtk);
|
87
|
+
|
88
|
+
RG_DEF_METHOD(initialize, 0);
|
89
|
+
RG_DEF_METHOD_P(contains, 1);
|
90
|
+
RG_DEF_METHOD(remove, 1);
|
91
|
+
RG_DEF_METHOD(add, 1);
|
92
|
+
RG_DEF_METHOD(n_relations, 0);
|
93
|
+
RG_DEF_METHOD(get_relation, 1);
|
94
|
+
RG_DEF_METHOD(add_relation, 2);
|
95
|
+
}
|
@@ -0,0 +1,38 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2003 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbatkprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE cType
|
25
|
+
|
26
|
+
static VALUE
|
27
|
+
rg_s_for_name(G_GNUC_UNUSED VALUE self, VALUE name)
|
28
|
+
{
|
29
|
+
return ATKRELATIONTYPE2RVAL(atk_relation_type_for_name(RVAL2CSTR(name)));
|
30
|
+
}
|
31
|
+
|
32
|
+
void
|
33
|
+
Init_atk_relation_type(VALUE cRelation)
|
34
|
+
{
|
35
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_RELATION_TYPE, "Type", cRelation);
|
36
|
+
RG_DEF_SMETHOD(for_name, 1);
|
37
|
+
G_DEF_CONSTANTS(cRelation, ATK_TYPE_RELATION_TYPE, "ATK_");
|
38
|
+
}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
* Copyright (C) 2004 Masao Mutoh
|
5
|
+
*
|
6
|
+
* This library is free software; you can redistribute it and/or
|
7
|
+
* modify it under the terms of the GNU Lesser General Public
|
8
|
+
* License as published by the Free Software Foundation; either
|
9
|
+
* version 2.1 of the License, or (at your option) any later version.
|
10
|
+
*
|
11
|
+
* This library is distributed in the hope that it will be useful,
|
12
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
13
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
14
|
+
* Lesser General Public License for more details.
|
15
|
+
*
|
16
|
+
* You should have received a copy of the GNU Lesser General Public
|
17
|
+
* License along with this library; if not, write to the Free Software
|
18
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
19
|
+
* MA 02110-1301 USA
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "rbatkprivate.h"
|
23
|
+
|
24
|
+
#define RG_TARGET_NAMESPACE mSelection
|
25
|
+
#define _SELF(s) (RVAL2ATKSELECTION(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_add_selection(VALUE self, VALUE i)
|
29
|
+
{
|
30
|
+
gboolean ret = atk_selection_add_selection(_SELF(self), NUM2INT(i));
|
31
|
+
if (! ret) rb_raise(rb_eRuntimeError, "Can't add selection");
|
32
|
+
return self;
|
33
|
+
}
|
34
|
+
|
35
|
+
static VALUE
|
36
|
+
rg_clear_selection(VALUE self)
|
37
|
+
{
|
38
|
+
gboolean ret = atk_selection_clear_selection(_SELF(self));
|
39
|
+
if (! ret) rb_raise(rb_eRuntimeError, "Can't clear selection");
|
40
|
+
return self;
|
41
|
+
}
|
42
|
+
|
43
|
+
static VALUE
|
44
|
+
rg_ref_selection(VALUE self, VALUE i)
|
45
|
+
{
|
46
|
+
return GOBJ2RVAL(atk_selection_ref_selection(_SELF(self), NUM2INT(i)));
|
47
|
+
}
|
48
|
+
|
49
|
+
static VALUE
|
50
|
+
rg_selection_count(VALUE self)
|
51
|
+
{
|
52
|
+
return INT2NUM(atk_selection_get_selection_count(_SELF(self)));
|
53
|
+
}
|
54
|
+
|
55
|
+
static VALUE
|
56
|
+
rg_child_selected_p(VALUE self, VALUE i)
|
57
|
+
{
|
58
|
+
return CBOOL2RVAL(atk_selection_is_child_selected(_SELF(self), NUM2INT(i)));
|
59
|
+
}
|
60
|
+
|
61
|
+
static VALUE
|
62
|
+
rg_remove_selection(VALUE self, VALUE i)
|
63
|
+
{
|
64
|
+
gboolean ret = atk_selection_remove_selection(_SELF(self), NUM2INT(i));
|
65
|
+
if (! ret) rb_raise(rb_eRuntimeError, "Can't remove selection");
|
66
|
+
return self;
|
67
|
+
}
|
68
|
+
|
69
|
+
static VALUE
|
70
|
+
rg_select_all_selection(VALUE self)
|
71
|
+
{
|
72
|
+
return CBOOL2RVAL(atk_selection_select_all_selection(_SELF(self)));
|
73
|
+
}
|
74
|
+
|
75
|
+
void
|
76
|
+
Init_atk_selection(VALUE mAtk)
|
77
|
+
{
|
78
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_SELECTION, "Selection", mAtk);
|
79
|
+
|
80
|
+
RG_DEF_METHOD(add_selection, 1);
|
81
|
+
RG_DEF_METHOD(clear_selection, 0);
|
82
|
+
RG_DEF_METHOD(ref_selection, 1);
|
83
|
+
RG_DEF_METHOD(selection_count, 0);
|
84
|
+
RG_DEF_METHOD_P(child_selected, 1);
|
85
|
+
RG_DEF_METHOD(remove_selection, 1);
|
86
|
+
RG_DEF_METHOD(select_all_selection, 0);
|
87
|
+
}
|