atk 2.0.2-x86-mingw32 → 2.0.3-x86-mingw32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/README +2 -2
- data/Rakefile +2 -1
- data/ext/atk/extconf.rb +1 -1
- data/ext/atk/rbatkcomponent.c +0 -4
- data/ext/atk/rbatkdocument.c +0 -4
- data/ext/atk/rbatkrelation.c +0 -4
- data/ext/atk/rbatkrelationset.c +0 -4
- data/ext/atk/rbatkutil.c +0 -4
- data/lib/1.9/atk.so +0 -0
- data/lib/2.0/atk.so +0 -0
- data/vendor/local/bin/libatk-1.0-0.dll +0 -0
- data/vendor/local/include/atk-1.0/atk/atk-enum-types.h +2 -0
- data/vendor/local/include/atk-1.0/atk/atkaction.h +0 -1
- data/vendor/local/include/atk-1.0/atk/atkcomponent.h +38 -2
- data/vendor/local/include/atk-1.0/atk/atkdocument.h +7 -7
- data/vendor/local/include/atk-1.0/atk/atkeditabletext.h +0 -3
- data/vendor/local/include/atk-1.0/atk/atkhyperlink.h +1 -2
- data/vendor/local/include/atk-1.0/atk/atkhyperlinkimpl.h +10 -19
- data/vendor/local/include/atk-1.0/atk/atkhypertext.h +0 -4
- data/vendor/local/include/atk-1.0/atk/atkimage.h +0 -3
- data/vendor/local/include/atk-1.0/atk/atkobject.h +40 -78
- data/vendor/local/include/atk-1.0/atk/atkregistry.h +15 -0
- data/vendor/local/include/atk-1.0/atk/atkselection.h +0 -3
- data/vendor/local/include/atk-1.0/atk/atktable.h +0 -5
- data/vendor/local/include/atk-1.0/atk/atktext.h +72 -11
- data/vendor/local/include/atk-1.0/atk/atkutil.h +4 -0
- data/vendor/local/include/atk-1.0/atk/atkvalue.h +0 -1
- data/vendor/local/include/atk-1.0/atk/atkversion.h +2 -2
- data/vendor/local/include/atk-1.0/atk/atkwindow.h +0 -2
- data/vendor/local/lib/atk-1.0.def +2 -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 +2 -2
- data/vendor/local/lib/pkgconfig/atk.pc +1 -1
- data/vendor/local/share/gir-1.0/Atk-1.0.gir +2497 -2086
- data/vendor/local/share/gtk-doc/html/atk/AtkAction.html +80 -43
- data/vendor/local/share/gtk-doc/html/atk/AtkComponent.html +246 -33
- data/vendor/local/share/gtk-doc/html/atk/AtkDocument.html +94 -39
- data/vendor/local/share/gtk-doc/html/atk/AtkEditableText.html +22 -27
- data/vendor/local/share/gtk-doc/html/atk/AtkGObjectAccessible.html +17 -21
- data/vendor/local/share/gtk-doc/html/atk/AtkHyperlink.html +34 -25
- data/vendor/local/share/gtk-doc/html/atk/AtkHypertext.html +25 -30
- data/vendor/local/share/gtk-doc/html/atk/AtkImage.html +26 -26
- data/vendor/local/share/gtk-doc/html/atk/AtkNoOpObject.html +15 -18
- data/vendor/local/share/gtk-doc/html/atk/AtkNoOpObjectFactory.html +14 -18
- data/vendor/local/share/gtk-doc/html/atk/AtkObject.html +119 -77
- data/vendor/local/share/gtk-doc/html/atk/AtkObjectFactory.html +15 -25
- data/vendor/local/share/gtk-doc/html/atk/AtkRegistry.html +12 -22
- data/vendor/local/share/gtk-doc/html/atk/AtkRelation.html +17 -20
- data/vendor/local/share/gtk-doc/html/atk/AtkRelationSet.html +21 -22
- data/vendor/local/share/gtk-doc/html/atk/AtkSelection.html +24 -33
- data/vendor/local/share/gtk-doc/html/atk/AtkStateSet.html +13 -16
- data/vendor/local/share/gtk-doc/html/atk/AtkStreamableContent.html +28 -29
- data/vendor/local/share/gtk-doc/html/atk/AtkTable.html +47 -54
- data/vendor/local/share/gtk-doc/html/atk/AtkText.html +451 -191
- data/vendor/local/share/gtk-doc/html/atk/AtkUtil.html +43 -20
- data/vendor/local/share/gtk-doc/html/atk/AtkValue.html +21 -24
- data/vendor/local/share/gtk-doc/html/atk/AtkWindow.html +12 -15
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-12.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-13.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-18.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-20.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-22.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-24.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-26.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-28.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-3.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-30.html +10 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-32.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-4.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-1-6.html +8 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-deprecated.html +34 -8
- data/vendor/local/share/gtk-doc/html/atk/api-index-full.html +26 -10
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkHyperlinkImpl.html +50 -37
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkPlug.html +34 -15
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkSocket.html +51 -22
- data/vendor/local/share/gtk-doc/html/atk/atk-AtkState.html +14 -17
- data/vendor/local/share/gtk-doc/html/atk/atk-Versioning-Utilities.html +14 -17
- data/vendor/local/share/gtk-doc/html/atk/atk.devhelp2 +27 -14
- data/vendor/local/share/gtk-doc/html/atk/atk.html +114 -15
- data/vendor/local/share/gtk-doc/html/atk/home.png +0 -0
- data/vendor/local/share/gtk-doc/html/atk/index.html +43 -35
- data/vendor/local/share/gtk-doc/html/atk/index.sgml +16 -7
- 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/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 +71 -16
- 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 +33 -0
- data/vendor/local/share/locale/an/LC_MESSAGES/atk10.mo +0 -0
- data/vendor/local/share/locale/ja/LC_MESSAGES/atk10.mo +0 -0
- metadata +15 -14
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 4b9a86b86ea4bcdf2a7553fa9c5ae4c2e1d7b6b5
|
4
|
+
data.tar.gz: 7432026e18ded25e0a4d5bf27821fd1ba93eb2e5
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 5ed57ba49ebd11b0c7cd65d7a760bd36823b488a51c31b7ddacf2ddd2cf3b666791e7f13e6c845b03041dc9b7f32234441d4bb56c357b6148fb68b471666af9e
|
7
|
+
data.tar.gz: 32ad5d6bc189af352df1ccc404506ead362f5fc119cff16ecdb56001d13a5b5a8bb0a3cad02fb2828fe87e5dcf17da9a06eccd09a6cafda234a41eb73d98d319
|
data/README
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Ruby/ATK
|
2
2
|
===============
|
3
|
-
Ruby/ATK is a Ruby binding of ATK-1.
|
3
|
+
Ruby/ATK is a Ruby binding of ATK-1.12.x or later.
|
4
4
|
|
5
5
|
Requirements
|
6
6
|
------------
|
@@ -11,7 +11,7 @@ Requirements
|
|
11
11
|
|
12
12
|
Install
|
13
13
|
-------
|
14
|
-
0. install ruby-1.
|
14
|
+
0. install ruby-1.9.x or later, GLib, ATK, Ruby/GLib2.
|
15
15
|
1. ruby extconf.rb
|
16
16
|
2. make
|
17
17
|
3. su
|
data/Rakefile
CHANGED
@@ -15,13 +15,14 @@ package_task = GNOME2::Rake::PackageTask.new do |package|
|
|
15
15
|
:name => "atk",
|
16
16
|
:download_site => :gnome,
|
17
17
|
:label => "atk",
|
18
|
-
:version => "2.
|
18
|
+
:version => "2.10.0",
|
19
19
|
:compression_method => "xz",
|
20
20
|
:windows => {
|
21
21
|
:configure_args => [
|
22
22
|
"--enable-introspection",
|
23
23
|
],
|
24
24
|
:build_concurrently => false,
|
25
|
+
:built_file => "bin/libatk-1.0-0.dll",
|
25
26
|
},
|
26
27
|
}
|
27
28
|
]
|
data/ext/atk/extconf.rb
CHANGED
data/ext/atk/rbatkcomponent.c
CHANGED
@@ -142,13 +142,11 @@ rg_set_size(VALUE self, VALUE width, VALUE height)
|
|
142
142
|
return self;
|
143
143
|
}
|
144
144
|
|
145
|
-
#if ATK_CHECK_VERSION(1,12,0)
|
146
145
|
static VALUE
|
147
146
|
rg_alpha(VALUE self)
|
148
147
|
{
|
149
148
|
return rb_float_new(atk_component_get_alpha(_SELF(self)));
|
150
149
|
}
|
151
|
-
#endif
|
152
150
|
|
153
151
|
void
|
154
152
|
Init_atk_component(VALUE mAtk)
|
@@ -173,7 +171,5 @@ Init_atk_component(VALUE mAtk)
|
|
173
171
|
RG_DEF_METHOD(set_extents, 5);
|
174
172
|
RG_DEF_METHOD(set_position, 2);
|
175
173
|
RG_DEF_METHOD(set_size, 2);
|
176
|
-
#if ATK_CHECK_VERSION(1,12,0)
|
177
174
|
RG_DEF_METHOD(alpha, 0);
|
178
|
-
#endif
|
179
175
|
}
|
data/ext/atk/rbatkdocument.c
CHANGED
@@ -39,7 +39,6 @@ rg_document(VALUE self)
|
|
39
39
|
}
|
40
40
|
*/
|
41
41
|
|
42
|
-
#if ATK_CHECK_VERSION(1,12,0)
|
43
42
|
static VALUE
|
44
43
|
rg_get_attribute_value(VALUE self, VALUE name)
|
45
44
|
{
|
@@ -78,7 +77,6 @@ rg_locale(VALUE self)
|
|
78
77
|
{
|
79
78
|
return CSTR2RVAL(atk_document_get_locale(_SELF(self)));
|
80
79
|
}
|
81
|
-
#endif
|
82
80
|
|
83
81
|
void
|
84
82
|
Init_atk_document(VALUE mAtk)
|
@@ -89,12 +87,10 @@ Init_atk_document(VALUE mAtk)
|
|
89
87
|
/*
|
90
88
|
RG_DEF_METHOD(document, 0);
|
91
89
|
*/
|
92
|
-
#if ATK_CHECK_VERSION(1,12,0)
|
93
90
|
RG_DEF_METHOD(get_attribute_value, 1);
|
94
91
|
RG_DEF_ALIAS("[]", "get_attribute_value");
|
95
92
|
RG_DEF_METHOD(set_attribute_value, 2);
|
96
93
|
RG_DEF_ALIAS("[]=", "set_attribute_value");
|
97
94
|
RG_DEF_METHOD(attributes, 0);
|
98
95
|
RG_DEF_METHOD(locale, 0);
|
99
|
-
#endif
|
100
96
|
}
|
data/ext/atk/rbatkrelation.c
CHANGED
@@ -79,14 +79,12 @@ rg_initialize(VALUE self, VALUE targets, VALUE rbrelationship)
|
|
79
79
|
return Qnil;
|
80
80
|
}
|
81
81
|
|
82
|
-
#if ATK_CHECK_VERSION(1,9,0)
|
83
82
|
static VALUE
|
84
83
|
rg_add_target(VALUE self, VALUE obj)
|
85
84
|
{
|
86
85
|
atk_relation_add_target(_SELF(self), RVAL2ATKOBJECT(obj));
|
87
86
|
return self;
|
88
87
|
}
|
89
|
-
#endif
|
90
88
|
|
91
89
|
void
|
92
90
|
Init_atk_relation(VALUE mAtk)
|
@@ -94,9 +92,7 @@ Init_atk_relation(VALUE mAtk)
|
|
94
92
|
VALUE RG_TARGET_NAMESPACE = G_DEF_CLASS(ATK_TYPE_RELATION, "Relation", mAtk);
|
95
93
|
RG_DEF_SMETHOD(type_register, 1);
|
96
94
|
RG_DEF_METHOD(initialize, 2);
|
97
|
-
#if ATK_CHECK_VERSION(1,9,0)
|
98
95
|
RG_DEF_METHOD(add_target, 1);
|
99
|
-
#endif
|
100
96
|
|
101
97
|
Init_atk_relation_type(RG_TARGET_NAMESPACE);
|
102
98
|
}
|
data/ext/atk/rbatkrelationset.c
CHANGED
@@ -71,7 +71,6 @@ rg_get_relation(VALUE self, VALUE i)
|
|
71
71
|
}
|
72
72
|
}
|
73
73
|
|
74
|
-
#if ATK_CHECK_VERSION(1,9,0)
|
75
74
|
static VALUE
|
76
75
|
rg_add_relation(VALUE self, VALUE relationship, VALUE obj)
|
77
76
|
{
|
@@ -80,7 +79,6 @@ rg_add_relation(VALUE self, VALUE relationship, VALUE obj)
|
|
80
79
|
RVAL2ATKOBJECT(obj));
|
81
80
|
return self;
|
82
81
|
}
|
83
|
-
#endif
|
84
82
|
|
85
83
|
void
|
86
84
|
Init_atk_relation_set(VALUE mAtk)
|
@@ -93,7 +91,5 @@ Init_atk_relation_set(VALUE mAtk)
|
|
93
91
|
RG_DEF_METHOD(add, 1);
|
94
92
|
RG_DEF_METHOD(n_relations, 0);
|
95
93
|
RG_DEF_METHOD(get_relation, 1);
|
96
|
-
#if ATK_CHECK_VERSION(1,9,0)
|
97
94
|
RG_DEF_METHOD(add_relation, 2);
|
98
|
-
#endif
|
99
95
|
}
|
data/ext/atk/rbatkutil.c
CHANGED
@@ -77,13 +77,11 @@ rg_s_root(G_GNUC_UNUSED VALUE self)
|
|
77
77
|
return GOBJ2RVAL(atk_get_root());
|
78
78
|
}
|
79
79
|
|
80
|
-
#if ATK_CHECK_VERSION(1,6,0)
|
81
80
|
static VALUE
|
82
81
|
rg_s_focus_object(G_GNUC_UNUSED VALUE self)
|
83
82
|
{
|
84
83
|
return GOBJ2RVAL(atk_get_focus_object());
|
85
84
|
}
|
86
|
-
#endif
|
87
85
|
|
88
86
|
static VALUE
|
89
87
|
rg_s_toolkit_name(G_GNUC_UNUSED VALUE self)
|
@@ -109,9 +107,7 @@ Init_atk_util(VALUE mAtk)
|
|
109
107
|
RG_DEF_SMETHOD(remove_key_event_listener, 1);
|
110
108
|
|
111
109
|
RG_DEF_SMETHOD(root, 0);
|
112
|
-
#if ATK_CHECK_VERSION(1,6,0)
|
113
110
|
RG_DEF_SMETHOD(focus_object, 0);
|
114
|
-
#endif
|
115
111
|
RG_DEF_SMETHOD(toolkit_name, 0);
|
116
112
|
RG_DEF_SMETHOD(toolkit_version, 0);
|
117
113
|
|
data/lib/1.9/atk.so
CHANGED
Binary file
|
data/lib/2.0/atk.so
CHANGED
Binary file
|
Binary file
|
@@ -30,6 +30,8 @@ GType atk_text_attribute_get_type (void);
|
|
30
30
|
#define ATK_TYPE_TEXT_ATTRIBUTE (atk_text_attribute_get_type())
|
31
31
|
GType atk_text_boundary_get_type (void);
|
32
32
|
#define ATK_TYPE_TEXT_BOUNDARY (atk_text_boundary_get_type())
|
33
|
+
GType atk_text_granularity_get_type (void);
|
34
|
+
#define ATK_TYPE_TEXT_GRANULARITY (atk_text_granularity_get_type())
|
33
35
|
GType atk_text_clip_type_get_type (void);
|
34
36
|
#define ATK_TYPE_TEXT_CLIP_TYPE (atk_text_clip_type_get_type())
|
35
37
|
/* enumerations from "atkutil.h" */
|
@@ -47,10 +47,34 @@ typedef struct _AtkComponent AtkComponent;
|
|
47
47
|
#endif
|
48
48
|
typedef struct _AtkComponentIface AtkComponentIface;
|
49
49
|
|
50
|
-
|
50
|
+
/**
|
51
|
+
* AtkFocusHandler:
|
52
|
+
* @object: the #AtkObject that receives/lose the focus
|
53
|
+
* @focus_in: TRUE if the object receives the focus
|
54
|
+
*
|
55
|
+
* The type of callback function used for
|
56
|
+
* atk_component_add_focus_handler() and
|
57
|
+
* atk_component_remove_focus_handler()
|
58
|
+
*
|
59
|
+
* Deprecated: This type is deprecated since ATK version 2.9.4. as
|
60
|
+
* atk_component_add_focus_handler() and
|
61
|
+
* atk_component_remove_focus_handler() are deprecated. See those
|
62
|
+
* methods for more information.
|
63
|
+
*/
|
64
|
+
typedef void (*AtkFocusHandler) (AtkObject* object, gboolean focus_in);
|
51
65
|
|
52
66
|
typedef struct _AtkRectangle AtkRectangle;
|
53
67
|
|
68
|
+
/**
|
69
|
+
* AtkRectangle:
|
70
|
+
* @x: X coordinate of the left side of the rectangle.
|
71
|
+
* @y: Y coordinate of the top side of the rectangle.
|
72
|
+
* @width: width of the rectangle.
|
73
|
+
* @height: height of the rectangle.
|
74
|
+
*
|
75
|
+
* A data structure for holding a rectangle. Those coordinates are
|
76
|
+
* relative to the component top-level parent.
|
77
|
+
*/
|
54
78
|
struct _AtkRectangle
|
55
79
|
{
|
56
80
|
gint x;
|
@@ -62,6 +86,17 @@ struct _AtkRectangle
|
|
62
86
|
GType atk_rectangle_get_type (void);
|
63
87
|
|
64
88
|
#define ATK_TYPE_RECTANGLE (atk_rectangle_get_type ())
|
89
|
+
|
90
|
+
/**
|
91
|
+
* AtkComponentIface:
|
92
|
+
* @add_focus_handler: This virtual function is deprecated since 2.9.4
|
93
|
+
* and it should not be overriden. See
|
94
|
+
* atk_component_add_focus_handler() for more information.
|
95
|
+
* @remove_focus_handler: This virtual function is deprecated since
|
96
|
+
* 2.9.4 and it should not be overriden. See
|
97
|
+
* atk_component_remove_focus_handler() for more information.
|
98
|
+
*/
|
99
|
+
|
65
100
|
struct _AtkComponentIface
|
66
101
|
{
|
67
102
|
GTypeInterface parent;
|
@@ -122,7 +157,7 @@ struct _AtkComponentIface
|
|
122
157
|
GType atk_component_get_type (void);
|
123
158
|
|
124
159
|
/* convenience functions */
|
125
|
-
|
160
|
+
G_DEPRECATED
|
126
161
|
guint atk_component_add_focus_handler (AtkComponent *component,
|
127
162
|
AtkFocusHandler handler);
|
128
163
|
gboolean atk_component_contains (AtkComponent *component,
|
@@ -149,6 +184,7 @@ void atk_component_get_size (AtkComponent *com
|
|
149
184
|
AtkLayer atk_component_get_layer (AtkComponent *component);
|
150
185
|
gint atk_component_get_mdi_zorder (AtkComponent *component);
|
151
186
|
gboolean atk_component_grab_focus (AtkComponent *component);
|
187
|
+
G_DEPRECATED
|
152
188
|
void atk_component_remove_focus_handler (AtkComponent *component,
|
153
189
|
guint handler_id);
|
154
190
|
gboolean atk_component_set_extents (AtkComponent *component,
|
@@ -46,6 +46,11 @@ typedef struct _AtkDocument AtkDocument;
|
|
46
46
|
#endif
|
47
47
|
typedef struct _AtkDocumentIface AtkDocumentIface;
|
48
48
|
|
49
|
+
/**
|
50
|
+
* AtkDocumentIface:
|
51
|
+
* @get_document_locale: gets locale. This virtual function is
|
52
|
+
* deprecated since 2.7.90 and it should not be overriden.
|
53
|
+
*/
|
49
54
|
struct _AtkDocumentIface
|
50
55
|
{
|
51
56
|
GTypeInterface parent;
|
@@ -59,21 +64,16 @@ struct _AtkDocumentIface
|
|
59
64
|
gboolean ( *set_document_attribute) (AtkDocument *document,
|
60
65
|
const gchar *attribute_name,
|
61
66
|
const gchar *attribute_value);
|
62
|
-
|
63
|
-
AtkFunction pad1;
|
64
|
-
AtkFunction pad2;
|
65
|
-
AtkFunction pad3;
|
66
|
-
AtkFunction pad4;
|
67
67
|
};
|
68
68
|
|
69
69
|
GType atk_document_get_type (void);
|
70
70
|
|
71
71
|
const gchar* atk_document_get_document_type (AtkDocument *document);
|
72
72
|
gpointer atk_document_get_document (AtkDocument *document);
|
73
|
-
|
73
|
+
|
74
74
|
G_DEPRECATED
|
75
75
|
const gchar* atk_document_get_locale (AtkDocument *document);
|
76
|
-
|
76
|
+
|
77
77
|
AtkAttributeSet* atk_document_get_attributes (AtkDocument *document);
|
78
78
|
const gchar* atk_document_get_attribute_value (AtkDocument *document,
|
79
79
|
const gchar *attribute_name);
|
@@ -97,10 +97,9 @@ gboolean atk_hyperlink_is_valid (AtkHyperlink *link_);
|
|
97
97
|
gboolean atk_hyperlink_is_inline (AtkHyperlink *link_);
|
98
98
|
|
99
99
|
gint atk_hyperlink_get_n_anchors (AtkHyperlink *link_);
|
100
|
-
|
100
|
+
|
101
101
|
G_DEPRECATED
|
102
102
|
gboolean atk_hyperlink_is_selected_link (AtkHyperlink *link_);
|
103
|
-
#endif /* ATK_DISABLE_DEPRECATED */
|
104
103
|
|
105
104
|
G_END_DECLS
|
106
105
|
|
@@ -29,23 +29,6 @@
|
|
29
29
|
|
30
30
|
G_BEGIN_DECLS
|
31
31
|
|
32
|
-
/*
|
33
|
-
* The AtkHyperlinkImpl interface should be supported by objects
|
34
|
-
* exposed within the hierarchy as children of an AtkHypertext container
|
35
|
-
* which correspond to "links" or embedded content within the text.
|
36
|
-
* HTML anchors are not, for instance, normally exposed this way,
|
37
|
-
* but embedded images and components which appear inline in the
|
38
|
-
* content of a text object are. The AtkHyperlinkIface interface
|
39
|
-
* allows a means of determining which children are hyperlinks in this
|
40
|
-
* sense of the word, and for obtaining their corresponding AtkHyperlink
|
41
|
-
* object, from which the embedding range, URI, etc. can be obtained.
|
42
|
-
*
|
43
|
-
* To some extent this interface exists because, for historical
|
44
|
-
* reasons, AtkHyperlink was defined as an object type, not an interface.
|
45
|
-
* Thus, in order to interact with AtkObjects via AtkHyperlink semantics,
|
46
|
-
* a new interface was required.
|
47
|
-
*/
|
48
|
-
|
49
32
|
#define ATK_TYPE_HYPERLINK_IMPL (atk_hyperlink_impl_get_type ())
|
50
33
|
#define ATK_IS_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_TYPE ((obj), ATK_TYPE_HYPERLINK_IMPL)
|
51
34
|
#define ATK_HYPERLINK_IMPL(obj) G_TYPE_CHECK_INSTANCE_CAST ((obj), ATK_TYPE_HYPERLINK_IMPL, AtkHyperlinkImpl)
|
@@ -53,6 +36,16 @@ G_BEGIN_DECLS
|
|
53
36
|
|
54
37
|
#ifndef _TYPEDEF_ATK_HYPERLINK_IMPL_
|
55
38
|
#define _TYPEDEF_ATK_HYPERLINK_IMPL__
|
39
|
+
|
40
|
+
/**
|
41
|
+
* AtkHyperlinkImpl:
|
42
|
+
*
|
43
|
+
* A queryable interface which allows AtkHyperlink instances
|
44
|
+
* associated with an AtkObject to be obtained. AtkHyperlinkImpl
|
45
|
+
* corresponds to AT-SPI's Hyperlink interface, and differs from
|
46
|
+
* AtkHyperlink in that AtkHyperlink is an object type, rather than an
|
47
|
+
* interface, and thus cannot be directly queried. FTW
|
48
|
+
*/
|
56
49
|
typedef struct _AtkHyperlinkImpl AtkHyperlinkImpl;
|
57
50
|
#endif
|
58
51
|
typedef struct _AtkHyperlinkImplIface AtkHyperlinkImplIface;
|
@@ -62,8 +55,6 @@ struct _AtkHyperlinkImplIface
|
|
62
55
|
GTypeInterface parent;
|
63
56
|
|
64
57
|
AtkHyperlink* (* get_hyperlink) (AtkHyperlinkImpl *impl);
|
65
|
-
|
66
|
-
AtkFunction pad1;
|
67
58
|
};
|
68
59
|
|
69
60
|
GType atk_hyperlink_impl_get_type (void);
|
@@ -163,8 +163,8 @@ G_BEGIN_DECLS
|
|
163
163
|
**/
|
164
164
|
typedef enum
|
165
165
|
{
|
166
|
-
ATK_ROLE_INVALID = 0,
|
167
|
-
ATK_ROLE_ACCEL_LABEL,
|
166
|
+
ATK_ROLE_INVALID = 0,
|
167
|
+
ATK_ROLE_ACCEL_LABEL, /*<nick=accelerator-label>*/
|
168
168
|
ATK_ROLE_ALERT,
|
169
169
|
ATK_ROLE_ANIMATION,
|
170
170
|
ATK_ROLE_ARROW,
|
@@ -268,8 +268,6 @@ typedef enum
|
|
268
268
|
ATK_ROLE_LAST_DEFINED
|
269
269
|
} AtkRole;
|
270
270
|
|
271
|
-
AtkRole atk_role_register (const gchar *name);
|
272
|
-
|
273
271
|
/**
|
274
272
|
*AtkLayer:
|
275
273
|
*@ATK_LAYER_INVALID: The object does not have a layer
|
@@ -374,6 +372,16 @@ struct _AtkPropertyValues
|
|
374
372
|
|
375
373
|
typedef struct _AtkPropertyValues AtkPropertyValues;
|
376
374
|
|
375
|
+
/**
|
376
|
+
* AtkFunction:
|
377
|
+
* @user_data: custom data defined by the user
|
378
|
+
*
|
379
|
+
* An AtkFunction is a function definition used for padding which has
|
380
|
+
* been added to class and interface structures to allow for expansion
|
381
|
+
* in the future.
|
382
|
+
*
|
383
|
+
* Returns: not used
|
384
|
+
*/
|
377
385
|
typedef gboolean (*AtkFunction) (gpointer user_data);
|
378
386
|
/*
|
379
387
|
* For most properties the old_value field of AtkPropertyValues will
|
@@ -387,6 +395,16 @@ typedef gboolean (*AtkFunction) (gpointer user_data);
|
|
387
395
|
* received the focus with the new_value containing an AtkState value
|
388
396
|
* corresponding to focused.
|
389
397
|
*/
|
398
|
+
|
399
|
+
/**
|
400
|
+
* AtkPropertyChangeHandler:
|
401
|
+
* @obj: atkobject which property changes
|
402
|
+
* @vals: values changed
|
403
|
+
*
|
404
|
+
* An AtkPropertyChangeHandler is a function which is executed when an
|
405
|
+
* AtkObject's property changes value. It is specified in a call to
|
406
|
+
* atk_object_connect_property_change_handler().
|
407
|
+
*/
|
390
408
|
typedef void (*AtkPropertyChangeHandler) (AtkObject* obj, AtkPropertyValues* vals);
|
391
409
|
|
392
410
|
|
@@ -402,6 +420,14 @@ struct _AtkObject
|
|
402
420
|
AtkLayer layer;
|
403
421
|
};
|
404
422
|
|
423
|
+
|
424
|
+
/**
|
425
|
+
* AtkObjectClass:
|
426
|
+
* @focus_event: The signal handler which is executed when there is a
|
427
|
+
* focus event for an object. This virtual function is deprecated
|
428
|
+
* since 2.9.4 and it should not be overriden. Use
|
429
|
+
* state-changed:focused signal instead.
|
430
|
+
*/
|
405
431
|
struct _AtkObjectClass
|
406
432
|
{
|
407
433
|
GObjectClass parent;
|
@@ -539,6 +565,13 @@ void (* initialize) (AtkObject
|
|
539
565
|
|
540
566
|
GType atk_object_get_type (void);
|
541
567
|
|
568
|
+
/**
|
569
|
+
* AtkImplementorIface:
|
570
|
+
*
|
571
|
+
* The AtkImplementor interface is implemented by objects for which
|
572
|
+
* AtkObject peers may be obtained via calls to
|
573
|
+
* iface->(ref_accessible)(implementor);
|
574
|
+
*/
|
542
575
|
struct _AtkImplementorIface
|
543
576
|
{
|
544
577
|
GTypeInterface parent;
|
@@ -547,18 +580,6 @@ struct _AtkImplementorIface
|
|
547
580
|
};
|
548
581
|
GType atk_implementor_get_type (void);
|
549
582
|
|
550
|
-
/*
|
551
|
-
* This method uses the ref_accessible method in AtkImplementorIface,
|
552
|
-
* if the object's class implements AtkImplementorIface.
|
553
|
-
* Otherwise it returns %NULL.
|
554
|
-
*
|
555
|
-
* IMPORTANT:
|
556
|
-
* Note also that because this method may return flyweight objects,
|
557
|
-
* it increments the returned AtkObject's reference count.
|
558
|
-
* Therefore it is the responsibility of the calling
|
559
|
-
* program to unreference the object when no longer needed.
|
560
|
-
* (c.f. gtk_widget_get_accessible() where this is not the case).
|
561
|
-
*/
|
562
583
|
AtkObject* atk_implementor_ref_accessible (AtkImplementor *implementor);
|
563
584
|
|
564
585
|
/*
|
@@ -573,12 +594,12 @@ AtkObject* atk_object_ref_accessible_child (AtkObject *ac
|
|
573
594
|
gint i);
|
574
595
|
AtkRelationSet* atk_object_ref_relation_set (AtkObject *accessible);
|
575
596
|
AtkRole atk_object_get_role (AtkObject *accessible);
|
576
|
-
|
597
|
+
|
577
598
|
G_DEPRECATED_FOR(atk_component_get_layer)
|
578
599
|
AtkLayer atk_object_get_layer (AtkObject *accessible);
|
579
600
|
G_DEPRECATED_FOR(atk_component_get_mdi_zorder)
|
580
601
|
gint atk_object_get_mdi_zorder (AtkObject *accessible);
|
581
|
-
|
602
|
+
|
582
603
|
AtkAttributeSet* atk_object_get_attributes (AtkObject *accessible);
|
583
604
|
AtkStateSet* atk_object_ref_state_set (AtkObject *accessible);
|
584
605
|
gint atk_object_get_index_in_parent (AtkObject *accessible);
|
@@ -615,68 +636,9 @@ gboolean atk_object_remove_relationship (AtkObject *
|
|
615
636
|
AtkRelationType relationship,
|
616
637
|
AtkObject *target);
|
617
638
|
const gchar* atk_role_get_localized_name (AtkRole role);
|
639
|
+
AtkRole atk_role_register (const gchar *name);
|
618
640
|
const gchar* atk_object_get_object_locale (AtkObject *accessible);
|
619
641
|
|
620
|
-
/* */
|
621
|
-
|
622
|
-
|
623
|
-
/*
|
624
|
-
* Note: the properties which are registered with the GType
|
625
|
-
* property registry, for type ATK_TYPE_OBJECT, are as follows:
|
626
|
-
*
|
627
|
-
* "accessible-name"
|
628
|
-
* "accessible-description"
|
629
|
-
* "accessible-parent"
|
630
|
-
* "accessible-role"
|
631
|
-
* "accessible-value"
|
632
|
-
* "accessible-component-layer"
|
633
|
-
* "accessible-component-zorder"
|
634
|
-
* "accessible-table-caption"
|
635
|
-
* "accessible-table-column-description"
|
636
|
-
* "accessible-table-column-header"
|
637
|
-
* "accessible-table-row-description"
|
638
|
-
* "accessible-table-row-header"
|
639
|
-
* "accessible-table-summary"
|
640
|
-
* "accessible-model"
|
641
|
-
*
|
642
|
-
* accessibility property change listeners should use the
|
643
|
-
* normal GObject property interfaces and "property-change"
|
644
|
-
* signal handler semantics to interpret the property change
|
645
|
-
* information relayed from AtkObject.
|
646
|
-
* (AtkObject instances will connect to the "notify"
|
647
|
-
* signal in their host objects, and relay the signals when appropriate).
|
648
|
-
*/
|
649
|
-
|
650
|
-
/* For other signals, see related interfaces
|
651
|
-
*
|
652
|
-
* AtkActionIface,
|
653
|
-
* AtkComponentIface,
|
654
|
-
* AtkHypertextIface,
|
655
|
-
* AtkImageIface,
|
656
|
-
* AtkSelectionIface,
|
657
|
-
* AtkTableIface,
|
658
|
-
* AtkTextIface,
|
659
|
-
* AtkValueIface.
|
660
|
-
*
|
661
|
-
* The usage model for obtaining these interface instances is:
|
662
|
-
* ATK_<interfacename>_GET_IFACE(GObject *accessible),
|
663
|
-
* where accessible, though specified as a GObject, is
|
664
|
-
* the AtkObject instance being queried.
|
665
|
-
* More usually, the interface will be used via a cast to the
|
666
|
-
* interface's corresponding "type":
|
667
|
-
*
|
668
|
-
* AtkText textImpl = ATK_TEXT(accessible);
|
669
|
-
* if (textImpl)
|
670
|
-
* {
|
671
|
-
* cpos = atk_text_get_caret_position(textImpl);
|
672
|
-
* }
|
673
|
-
*
|
674
|
-
* If it's known in advance that accessible implements AtkTextIface,
|
675
|
-
* this is shortened to:
|
676
|
-
*
|
677
|
-
* cpos = atk_text_get_caret_position (ATK_TEXT (accessible));
|
678
|
-
*/
|
679
|
-
|
680
642
|
G_END_DECLS
|
681
643
|
|
682
644
|
#endif /* __ATK_OBJECT_H__ */
|