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,70 @@
|
|
1
|
+
/* -*- c-file-style: "ruby"; indent-tabs-mode: nil -*- */
|
2
|
+
/*
|
3
|
+
* Copyright (C) 2011 Ruby-GNOME2 Project Team
|
4
|
+
*
|
5
|
+
* This library is free software; you can redistribute it and/or
|
6
|
+
* modify it under the terms of the GNU Lesser General Public
|
7
|
+
* License as published by the Free Software Foundation; either
|
8
|
+
* version 2.1 of the License, or (at your option) any later version.
|
9
|
+
*
|
10
|
+
* This library is distributed in the hope that it will be useful,
|
11
|
+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
12
|
+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
13
|
+
* Lesser General Public License for more details.
|
14
|
+
*
|
15
|
+
* You should have received a copy of the GNU Lesser General Public
|
16
|
+
* License along with this library; if not, write to the Free Software
|
17
|
+
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
18
|
+
* MA 02110-1301 USA
|
19
|
+
*/
|
20
|
+
|
21
|
+
#ifndef __RBATKCONVERSIONS_H__
|
22
|
+
#define __RBATKCONVERSIONS_H__
|
23
|
+
|
24
|
+
#define RVAL2ATKACTION(o) (ATK_ACTION(RVAL2GOBJ(o)))
|
25
|
+
#define RVAL2ATKCOMPONENT(o) (ATK_COMPONENT(RVAL2GOBJ(o)))
|
26
|
+
#define RVAL2ATKDOCUMENT(o) (ATK_DOCUMENT(RVAL2GOBJ(o)))
|
27
|
+
#define RVAL2ATKEDITABLETEXT(o) (ATK_EDITABLE_TEXT(RVAL2GOBJ(o)))
|
28
|
+
#define RVAL2ATKGOBJECTACCESSIBLE(o) (ATK_GOBJECT_ACCESSIBLE(RVAL2GOBJ(o)))
|
29
|
+
#define RVAL2ATKHYPERLINK(o) (ATK_HYPERLINK(RVAL2GOBJ(o)))
|
30
|
+
#define RVAL2ATKHYPERTEXT(o) (ATK_HYPERTEXT(RVAL2GOBJ(o)))
|
31
|
+
#define RVAL2ATKIMAGE(o) (ATK_IMAGE(RVAL2GOBJ(o)))
|
32
|
+
#define RVAL2ATKIMPLEMENTOR(o) (ATK_IMPLEMENTOR(RVAL2GOBJ(o)))
|
33
|
+
#define RVAL2ATKNOOPOBJECT(o) (ATK_NOOPOBJECT(RVAL2GOBJ(o)))
|
34
|
+
#define RVAL2ATKNOOPOBJECTFACTORY(o) (ATK_NO_OP_OBJECT_FACTORY(RVAL2GOBJ(o)))
|
35
|
+
#define RVAL2ATKOBJECT(o) (ATK_OBJECT(RVAL2GOBJ(o)))
|
36
|
+
#define RVAL2ATKOBJECTFACTORY(o) (ATK_OBJECT_FACTORY(RVAL2GOBJ(o)))
|
37
|
+
#define RVAL2ATKREGISTRY(o) (ATK_REGISTRY(RVAL2GOBJ(o)))
|
38
|
+
#define RVAL2ATKRELATION(o) (ATK_RELATION(RVAL2GOBJ(o)))
|
39
|
+
#define RVAL2ATKRELATIONSET(o) (ATK_RELATION_SET(RVAL2GOBJ(o)))
|
40
|
+
#define RVAL2ATKSELECTION(o) (ATK_SELECTION(RVAL2GOBJ(o)))
|
41
|
+
#define RVAL2ATKSTATE(o) (ATK_STATE(RVAL2GOBJ(o)))
|
42
|
+
#define RVAL2ATKSTATESET(o) (ATK_STATE_SET(RVAL2GOBJ(o)))
|
43
|
+
#define RVAL2ATKSTREAMABLECONTENT(o) (ATK_STREAMABLE_CONTENT(RVAL2GOBJ(o)))
|
44
|
+
#define RVAL2ATKTABLE(o) (ATK_TABLE(RVAL2GOBJ(o)))
|
45
|
+
#define RVAL2ATKTEXT(o) (ATK_TEXT(RVAL2GOBJ(o)))
|
46
|
+
#define RVAL2ATKVALUE(o) (ATK_VALUE(RVAL2GOBJ(o)))
|
47
|
+
|
48
|
+
#define RVAL2ATKTEXTRANGE(o) ((AtkTextRange*)RVAL2BOXED(o, ATK_TYPE_TEXT_RANGE))
|
49
|
+
#define ATKTEXTRANGE2RVAL(o) (BOXED2RVAL(o, ATK_TYPE_TEXT_RANGE))
|
50
|
+
#define RVAL2ATKTEXTRECTANGLE(o) ((AtkTextRectangle*)RVAL2BOXED(o, ATK_TYPE_TEXT_RECTANGLE))
|
51
|
+
#define ATKTEXTRECTANGLE2RVAL(o) (BOXED2RVAL(o, ATK_TYPE_TEXT_RECTANGLE))
|
52
|
+
|
53
|
+
#define RVAL2ATKCOORDTYPE(o) (RVAL2GENUM(o, ATK_TYPE_COORD_TYPE))
|
54
|
+
#define ATKCOORDTYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_COORD_TYPE))
|
55
|
+
#define RVAL2ATKLAYER(o) (RVAL2GENUM(o, ATK_TYPE_LAYER))
|
56
|
+
#define ATKLAYER2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_LAYER))
|
57
|
+
#define RVAL2ATKRELATIONTYPE(o) (RVAL2GENUM(o, ATK_TYPE_RELATION_TYPE))
|
58
|
+
#define ATKRELATIONTYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_RELATION_TYPE))
|
59
|
+
#define RVAL2ATKROLE(o) (RVAL2GENUM(o, ATK_TYPE_ROLE))
|
60
|
+
#define ATKROLE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_ROLE))
|
61
|
+
#define RVAL2ATKSTATETYPE(o) (RVAL2GENUM(o, ATK_TYPE_STATE_TYPE))
|
62
|
+
#define ATKSTATETYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_STATE_TYPE))
|
63
|
+
#define RVAL2ATKTEXTATTRIBUTE(o) (RVAL2GENUM(o, ATK_TYPE_TEXT_ATTRIBUTE))
|
64
|
+
#define ATKTEXTATTRIBUTE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_TEXT_ATTRIBUTE))
|
65
|
+
#define RVAL2ATKTEXTBOUNDARY(o) (RVAL2GENUM(o, ATK_TYPE_TEXT_BOUNDARY))
|
66
|
+
#define ATKTEXTBOUNDARY2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_TEXT_BOUNDARY))
|
67
|
+
#define RVAL2ATKTEXTCLIPTYPE(o) (RVAL2GENUM(o, ATK_TYPE_TEXT_CLIP_TYPE))
|
68
|
+
#define ATKTEXTCLIPTYPE2RVAL(o) (GENUM2RVAL(o, ATK_TYPE_TEXT_CLIP_TYPE))
|
69
|
+
|
70
|
+
#endif /* __RBATKCONVERSIONS_H__ */
|
@@ -0,0 +1,96 @@
|
|
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 mDocument
|
25
|
+
#define _SELF(s) (RVAL2ATKDOCUMENT(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_document_type(VALUE self)
|
29
|
+
{
|
30
|
+
return CSTR2RVAL(atk_document_get_document_type(_SELF(self)));
|
31
|
+
}
|
32
|
+
|
33
|
+
/*
|
34
|
+
How can I implement this?
|
35
|
+
static VALUE
|
36
|
+
rg_document(VALUE self)
|
37
|
+
{
|
38
|
+
return GOBJ2RVAL(atk_document_get_document(_SELF(self)));
|
39
|
+
}
|
40
|
+
*/
|
41
|
+
|
42
|
+
static VALUE
|
43
|
+
rg_get_attribute_value(VALUE self, VALUE name)
|
44
|
+
{
|
45
|
+
return CSTR2RVAL(atk_document_get_attribute_value(_SELF(self),
|
46
|
+
RVAL2CSTR(name)));
|
47
|
+
}
|
48
|
+
|
49
|
+
static VALUE
|
50
|
+
rg_set_attribute_value(VALUE self, VALUE name, VALUE value)
|
51
|
+
{
|
52
|
+
gboolean ret = atk_document_set_attribute_value(_SELF(self),
|
53
|
+
RVAL2CSTR(name),
|
54
|
+
RVAL2CSTR(value));
|
55
|
+
|
56
|
+
if (! ret) rb_raise(rb_eRuntimeError, "Can't set attribute value: %s, %s",
|
57
|
+
RVAL2CSTR(name), RVAL2CSTR(value));
|
58
|
+
|
59
|
+
return self;
|
60
|
+
}
|
61
|
+
|
62
|
+
static VALUE
|
63
|
+
rg_attributes(VALUE self)
|
64
|
+
{
|
65
|
+
AtkAttributeSet* list = atk_document_get_attributes(_SELF(self));
|
66
|
+
VALUE ary = rb_ary_new();
|
67
|
+
while (list) {
|
68
|
+
AtkAttribute* attr = list->data;
|
69
|
+
rb_ary_push(ary, rb_assoc_new(CSTR2RVAL(attr->name), CSTR2RVAL(attr->value)));
|
70
|
+
list = list->next;
|
71
|
+
}
|
72
|
+
return ary;
|
73
|
+
}
|
74
|
+
|
75
|
+
static VALUE
|
76
|
+
rg_locale(VALUE self)
|
77
|
+
{
|
78
|
+
return CSTR2RVAL(atk_document_get_locale(_SELF(self)));
|
79
|
+
}
|
80
|
+
|
81
|
+
void
|
82
|
+
Init_atk_document(VALUE mAtk)
|
83
|
+
{
|
84
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_DOCUMENT, "Document", mAtk);
|
85
|
+
|
86
|
+
RG_DEF_METHOD(document_type, 0);
|
87
|
+
/*
|
88
|
+
RG_DEF_METHOD(document, 0);
|
89
|
+
*/
|
90
|
+
RG_DEF_METHOD(get_attribute_value, 1);
|
91
|
+
RG_DEF_ALIAS("[]", "get_attribute_value");
|
92
|
+
RG_DEF_METHOD(set_attribute_value, 2);
|
93
|
+
RG_DEF_ALIAS("[]=", "set_attribute_value");
|
94
|
+
RG_DEF_METHOD(attributes, 0);
|
95
|
+
RG_DEF_METHOD(locale, 0);
|
96
|
+
}
|
@@ -0,0 +1,177 @@
|
|
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 mEditableText
|
25
|
+
#define _SELF(s) (RVAL2ATKEDITABLETEXT(s))
|
26
|
+
|
27
|
+
struct rval2atkattributegslist_args {
|
28
|
+
VALUE ary;
|
29
|
+
long n;
|
30
|
+
GSList *result;
|
31
|
+
};
|
32
|
+
|
33
|
+
static VALUE
|
34
|
+
rbatk_rval2atkattributegslist_body(VALUE value)
|
35
|
+
{
|
36
|
+
long i;
|
37
|
+
struct rval2atkattributegslist_args *args = (struct rval2atkattributegslist_args *)value;
|
38
|
+
|
39
|
+
for (i = 0; i < args->n; i++) {
|
40
|
+
VALUE ary = rb_ary_to_ary(RARRAY_PTR(args->ary)[i]);
|
41
|
+
AtkAttribute *attribute;
|
42
|
+
|
43
|
+
if (RARRAY_LEN(ary) != 2)
|
44
|
+
rb_raise(rb_eArgError, "attribute %ld should be an array of length 2", i);
|
45
|
+
|
46
|
+
attribute = g_new(AtkAttribute, 1);
|
47
|
+
args->result = g_slist_append(args->result, attribute);
|
48
|
+
attribute->name = g_strdup(RVAL2CSTR(RARRAY_PTR(ary)[0]));
|
49
|
+
attribute->value = g_strdup(RVAL2CSTR(RARRAY_PTR(ary)[1]));
|
50
|
+
}
|
51
|
+
|
52
|
+
return Qnil;
|
53
|
+
}
|
54
|
+
|
55
|
+
static void
|
56
|
+
rbatk_atkattributegslist_free(GSList *list)
|
57
|
+
{
|
58
|
+
GSList *p;
|
59
|
+
|
60
|
+
for (p = list; p != NULL; p = g_slist_next(p)) {
|
61
|
+
AtkAttribute *attribute = (AtkAttribute *)p->data;
|
62
|
+
|
63
|
+
g_free(attribute->value);
|
64
|
+
g_free(attribute->name);
|
65
|
+
g_free(attribute);
|
66
|
+
}
|
67
|
+
|
68
|
+
g_slist_free(list);
|
69
|
+
}
|
70
|
+
|
71
|
+
static G_GNUC_NORETURN VALUE
|
72
|
+
rbatk_rval2atkattributegslist_rescue(VALUE value)
|
73
|
+
{
|
74
|
+
rbatk_atkattributegslist_free(((struct rval2atkattributegslist_args *)value)->result);
|
75
|
+
|
76
|
+
rb_exc_raise(rb_errinfo());
|
77
|
+
}
|
78
|
+
|
79
|
+
static GSList *
|
80
|
+
rbatk_rval2atkattributegslist(VALUE value)
|
81
|
+
{
|
82
|
+
struct rval2atkattributegslist_args args;
|
83
|
+
|
84
|
+
args.ary = rb_ary_to_ary(value);
|
85
|
+
args.n = RARRAY_LEN(args.ary);
|
86
|
+
args.result = NULL;
|
87
|
+
|
88
|
+
rb_rescue(rbatk_rval2atkattributegslist_body, (VALUE)&args,
|
89
|
+
rbatk_rval2atkattributegslist_rescue, (VALUE)&args);
|
90
|
+
|
91
|
+
return args.result;
|
92
|
+
}
|
93
|
+
|
94
|
+
#define RVAL2ATKATTRIBUTEGSLIST(value) rbatk_rval2atkattributegslist(value)
|
95
|
+
|
96
|
+
static VALUE
|
97
|
+
rg_set_run_attributes(VALUE self,
|
98
|
+
VALUE attributes,
|
99
|
+
VALUE rbstart_offset,
|
100
|
+
VALUE rbend_offset)
|
101
|
+
{
|
102
|
+
AtkEditableText *editable;
|
103
|
+
gint start_offset, end_offset;
|
104
|
+
AtkAttributeSet *list;
|
105
|
+
gboolean result;
|
106
|
+
|
107
|
+
if (NIL_P(attributes))
|
108
|
+
return Qfalse;
|
109
|
+
|
110
|
+
editable = _SELF(self);
|
111
|
+
start_offset = NUM2INT(rbstart_offset);
|
112
|
+
end_offset = NUM2INT(rbend_offset);
|
113
|
+
list = RVAL2ATKATTRIBUTEGSLIST(attributes);
|
114
|
+
result = atk_editable_text_set_run_attributes(editable, list, start_offset, end_offset);
|
115
|
+
rbatk_atkattributegslist_free(list);
|
116
|
+
|
117
|
+
return CBOOL2RVAL(result);
|
118
|
+
}
|
119
|
+
|
120
|
+
static VALUE
|
121
|
+
rg_set_text_contents(VALUE self, VALUE str)
|
122
|
+
{
|
123
|
+
atk_editable_text_set_text_contents(_SELF(self), RVAL2CSTR(str));
|
124
|
+
return self;
|
125
|
+
}
|
126
|
+
|
127
|
+
static VALUE
|
128
|
+
rg_insert_text(VALUE self, VALUE str, VALUE position)
|
129
|
+
{
|
130
|
+
gint pos = NUM2INT(position);
|
131
|
+
|
132
|
+
StringValue(str);
|
133
|
+
atk_editable_text_insert_text(_SELF(self), RVAL2CSTR(str), RSTRING_LEN(str), &pos);
|
134
|
+
return INT2NUM(pos);
|
135
|
+
}
|
136
|
+
|
137
|
+
static VALUE
|
138
|
+
rg_copy_text(VALUE self, VALUE start_pos, VALUE end_pos)
|
139
|
+
{
|
140
|
+
atk_editable_text_copy_text(_SELF(self), NUM2INT(start_pos), NUM2INT(end_pos));
|
141
|
+
return self;
|
142
|
+
}
|
143
|
+
|
144
|
+
static VALUE
|
145
|
+
rg_cut_text(VALUE self, VALUE start_pos, VALUE end_pos)
|
146
|
+
{
|
147
|
+
atk_editable_text_cut_text(_SELF(self), NUM2INT(start_pos), NUM2INT(end_pos));
|
148
|
+
return self;
|
149
|
+
}
|
150
|
+
|
151
|
+
static VALUE
|
152
|
+
rg_delete_text(VALUE self, VALUE start_pos, VALUE end_pos)
|
153
|
+
{
|
154
|
+
atk_editable_text_delete_text(_SELF(self), NUM2INT(start_pos), NUM2INT(end_pos));
|
155
|
+
return self;
|
156
|
+
}
|
157
|
+
|
158
|
+
static VALUE
|
159
|
+
rg_paste_text(VALUE self, VALUE position)
|
160
|
+
{
|
161
|
+
atk_editable_text_paste_text(_SELF(self), NUM2INT(position));
|
162
|
+
return self;
|
163
|
+
}
|
164
|
+
|
165
|
+
void
|
166
|
+
Init_atk_editabletext(VALUE mAtk)
|
167
|
+
{
|
168
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_INTERFACE(ATK_TYPE_EDITABLE_TEXT, "EditableText", mAtk);
|
169
|
+
|
170
|
+
RG_DEF_METHOD(set_run_attributes, 3);
|
171
|
+
RG_DEF_METHOD(set_text_contents, 1);
|
172
|
+
RG_DEF_METHOD(insert_text, 2);
|
173
|
+
RG_DEF_METHOD(copy_text, 2);
|
174
|
+
RG_DEF_METHOD(cut_text, 2);
|
175
|
+
RG_DEF_METHOD(delete_text, 2);
|
176
|
+
RG_DEF_METHOD(paste_text, 1);
|
177
|
+
}
|
@@ -0,0 +1,46 @@
|
|
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 cGObjectAccessible
|
25
|
+
#define _SELF(s) (RVAL2ATKGOBJECTACCESSIBLE(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_s_for_object(G_GNUC_UNUSED VALUE self, VALUE obj)
|
29
|
+
{
|
30
|
+
return GOBJ2RVAL(atk_gobject_accessible_for_object(RVAL2GOBJ(obj)));
|
31
|
+
}
|
32
|
+
|
33
|
+
static VALUE
|
34
|
+
rg_object(VALUE self)
|
35
|
+
{
|
36
|
+
return GOBJ2RVAL(atk_gobject_accessible_get_object(_SELF(self)));
|
37
|
+
}
|
38
|
+
|
39
|
+
void
|
40
|
+
Init_atk_gobjectaccessible(VALUE mAtk)
|
41
|
+
{
|
42
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_GOBJECT_ACCESSIBLE, "GObjectAccessible", mAtk);
|
43
|
+
|
44
|
+
RG_DEF_SMETHOD(for_object, 1);
|
45
|
+
RG_DEF_METHOD(object, 0);
|
46
|
+
}
|
@@ -0,0 +1,71 @@
|
|
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 cHyperlink
|
25
|
+
#define _SELF(s) (RVAL2ATKHYPERLINK(s))
|
26
|
+
|
27
|
+
static VALUE
|
28
|
+
rg_get_uri(VALUE self, VALUE i)
|
29
|
+
{
|
30
|
+
return CSTR2RVAL(atk_hyperlink_get_uri(_SELF(self), NUM2INT(i)));
|
31
|
+
}
|
32
|
+
|
33
|
+
static VALUE
|
34
|
+
rg_get_object(VALUE self, VALUE i)
|
35
|
+
{
|
36
|
+
return GOBJ2RVAL(atk_hyperlink_get_object(_SELF(self), NUM2INT(i)));
|
37
|
+
}
|
38
|
+
|
39
|
+
static VALUE
|
40
|
+
rg_valid_p(VALUE self)
|
41
|
+
{
|
42
|
+
return CBOOL2RVAL(atk_hyperlink_is_valid(_SELF(self)));
|
43
|
+
}
|
44
|
+
|
45
|
+
#ifdef HAVE_ATK_HYPERLINK_IS_INLINE
|
46
|
+
static VALUE
|
47
|
+
rg_inline_p(VALUE self)
|
48
|
+
{
|
49
|
+
return CBOOL2RVAL(atk_hyperlink_is_inline(_SELF(self)));
|
50
|
+
}
|
51
|
+
#endif
|
52
|
+
|
53
|
+
static VALUE
|
54
|
+
rg_n_anchors(VALUE self)
|
55
|
+
{
|
56
|
+
return INT2NUM(atk_hyperlink_get_n_anchors(_SELF(self)));
|
57
|
+
}
|
58
|
+
|
59
|
+
void
|
60
|
+
Init_atk_hyperlink(VALUE mAtk)
|
61
|
+
{
|
62
|
+
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_HYPERLINK, "Hyperlink", mAtk);
|
63
|
+
|
64
|
+
RG_DEF_METHOD(get_uri, 1);
|
65
|
+
RG_DEF_METHOD(get_object, 1);
|
66
|
+
RG_DEF_METHOD_P(valid, 0);
|
67
|
+
#ifdef HAVE_ATK_HYPERLINK_IS_INLINE
|
68
|
+
RG_DEF_METHOD_P(inline, 0);
|
69
|
+
#endif
|
70
|
+
RG_DEF_METHOD(n_anchors, 0);
|
71
|
+
}
|