1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
|
using org.freestandards.atspi.Accessible.Reference = Reference;
/*
The Component interface is implemented by objects which occupy on-screen space, e.g. objects
which have onscreen visual representations. The methods in Component allow clients to identify
where the objects lie in the onscreen coordinate system, their relative size, stacking order, and
position. It also provides a mechanism whereby keyboard focus may be transferred to specific
user interface elements programmatically. This is a 2D API, coordinates of 3D objects are projected into the
2-dimensional screen view for purposes of this interface.
*/
interface org.freestandards.atspi.Component {
/*
Used by Component, Image and Text interfaces to specify whether coordinates are
relative to the window or screen.
*/
enum <uint32> CoordType {
COORD_TYPE_SCREEN = 0,
COORD_TYPE_WINDOW = 1
}
/*
Used by Component and Text interfaces, a struct defining a bounding rectange.
The coordinate system is determined by the context of the API call.
*/
struct BoundingBox {
int32 x;
int32 y;
int32 width;
int32 height;
}
/*
Indicates the relative stacking order with respect to the onscreen visual representation.
The order of layers, from bottom to top is:
LAYER_BACKGROUND
LAYER_WINDOW
LAYER_MDI
LAYER_CANVAS
LAYER_WIDGET
LAYER_POPUP
LAYER_OVERLAY
*/
enum <uint32> ComponentLayer {
LAYER_INVALID,
LAYER_BACKGROUND,
LAYER_CANVAS,
LAYER_WIDGET,
LAYER_MDI,
LAYER_POPUP,
LAYER_OVERLAY,
LAYER_WINDOW,
LAYER_LAST_DEFINED
}
/*
Describes where the object should be placed on the window.
*/
enum uint32 ScrollType {
SCROLL_TOP_LEFT = 0,
SCROLL_BOTTOM_RIGHT,
SCROLL_TOP_EDGE,
SCROLL_BOTTOM_EDGE,
SCROLL_LEFT_EDGE,
SCROLL_RIGHT_EDGE,
SCROLL_ANYWHERE
}
/*
Specifies whether the coordinates are relative to the screen, to the
window, or to the parent object.
*/
enum uint32 CoordType {
COORD_TYPE_SCREEN = 0,
COORD_TYPE_WINDOW,
COORD_TYPE_PARENT
}
/*
True if the specified point lies within the components bounding box.
*/
method Contains {
int32 x;
int32 y;
CoordType coord_type;
} reply {
boolean within;
}
/*
Return the accessible child whose bounding box contains the specified point.
*/
method GetAccessibleAtPoint {
int32 x;
int32 y;
CoordType coord_type;
} reply {
Reference child;
}
/*
Obtain the components bounding box, in pixels, relative to the specified coordinate system.
*/
method GetExtents {
CoordType cood_type;
} reply {
BoundingBox box;
}
/*
Obtain the position of the current component in the specified coordinate system.
*/
method GetPosition {
CoordType coord_type;
} reply {
int32 x;
int32 y;
}
/*
Obtain the size in the specified coordinate system.
Fully contains teh object's visual representation without accounting for viewport clipping.
*/
method GetSize reply {
int32 width;
int32 height;
}
/*
The component layer in which this object resides.
*/
method GetLayer reply {
ComponentLayer layer;
}
/*
Obtain the relative stacking order (i.e 'Z' order) of an object.
Larger values indicate that an object is on 'top' of the stack.
Only relevenat for objects in LAYER_MDI or LAYER_WINDOW.
*/
method GetMDIZOrder reply {
int16 order;
}
/*
Request that an object obtain keyboard focus.
*/
method GrabFocus reply {
boolean success;
}
/*
Obtain the alpha value of the component.
Alpha values are used with Z-Order to determine whether an obeject obscures
anothers visual representation.
*/
method GetAlpha reply {
double alpha;
}
/*
Scroll this object so it becomes visible on the screen.
*/
method ScrollTo {
ScrollType type;
}
/*
Scroll this object so it becomes visible on the screen at a given position.
*/
method ScrollToPoint {
CoordType type;
int32 x;
int32 y;
}
}
|