1 <?xml version="1.0" encoding="UTF-8"?>
2 <node xmlns:tp="http://telepathy.freedesktop.org/wiki/DbusSpec#extensions-v0" name="/node">
8 <tp:enum name="ComponentLayer" type="u">
9 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
10 <p>The ComponentLayer of a Component instance indicates its relative stacking order
11 with respect to the onscreen visual representation of the UI.
12 ComponentLayer, in combination with Component bounds information, can be used
13 to compute the visibility of all or part of a component. This is important in
14 programmatic determination of region-of-interest for magnification, and in
15 ¨flat screen review¨ models of the screen, as well as for other uses.
16 Objects residing in two of the ComponentLayer categories support
17 further z-ordering information, with respect to their peers in the same layer:
18 namely, LAYER_WINDOW and LAYER_MDI. Relative stacking order for other objects within
19 the same layer is not available; the recommended heuristic is ¨first child paints first¨,
20 in other words, assume that the first siblings in the child list are subject to being
21 overpainted by later siblings if their bounds intersect. </p>
23 <p>The order of layers, from bottom to top, is:
32 <tp:enumvalue suffix="LAYER_INVALID">
34 < Indicates an error condition or uninitialized value.
37 <tp:enumvalue suffix="LAYER_BACKGROUND" value="1">
38 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
39 <p>< The bottom-most layer, over which everything else is painted.
40 The 'desktop background' is generally in this layer. </p>
43 <tp:enumvalue suffix="LAYER_CANVAS" value="2">
44 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
45 <p>< The 'background' layer for most content renderers and UI Component
49 <tp:enumvalue suffix="LAYER_WIDGET" value="3">
51 < The layer in which the majority of ordinary 'foreground' widgets reside.
54 <tp:enumvalue suffix="LAYER_MDI" value="4">
55 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
56 <p>< A special layer between LAYER_CANVAS and LAYER_WIDGET, in which the
57 'pseudo windows' (e.g. the MDI frames) reside.
58 @see Component::getMDIZOrder </p>
61 <tp:enumvalue suffix="LAYER_POPUP" value="5">
63 < A layer for popup window content, above LAYER_WIDGET.
66 <tp:enumvalue suffix="LAYER_OVERLAY" value="6">
68 < The topmost layer.
71 <tp:enumvalue suffix="LAYER_WINDOW" value="7">
73 < The layer in which a toplevel window background usually resides.
76 <tp:enumvalue suffix="LAYER_LAST_DEFINED" value="8">
78 < Used only to determine the end of the enumeration.
82 <interface name="org.freedesktop.atspi.Component">
83 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
84 <p>The Component interface is implemented by objects which occupy on-screen space, e.g. objects
85 which have onscreen visual representations. The methods in Component allow clients to identify
86 where the objects lie in the onscreen coordinate system, their relative size, stacking order, and
87 position. It also provides a mechanism whereby keyboard focus may be transferred to specific
88 user interface elements programmatically. This is a 2D API, coordinates of 3D objects are projected into the
89 2-dimensional screen view for purposes of this interface. </p>
91 <p>@note the meaning and defined values of the \c short \c coord_type parameter used by some
92 Component methods is as follows:
93 \li 0 indicates coord_type_xy_screen, coordinates are relative to the display screen, in pixels.
94 \li 1 indicates coord_type_xy_window, coordinates are relative to the current toplevel window, in pixels. </p>
96 <p>@note Events emitted by Component instances include:
97 \li \c "object:bounds-changed"
98 \li \c "object:visible-data-changed"</p>
100 <method name="contains">
101 <arg direction="in" name="x" type="i"/>
102 <arg direction="in" name="y" type="i"/>
103 <arg direction="in" name="coord_type" type="n" tp:type="short"/>
104 <arg direction="out" type="b" tp:type="boolean">
106 \c True if the specified point lies within the Component's bounding box, \c False otherwise.
110 <method name="getAccessibleAtPoint">
111 <arg direction="in" name="x" type="i"/>
112 <arg direction="in" name="y" type="i"/>
113 <arg direction="in" name="coord_type" type="n" tp:type="short"/>
114 <arg direction="out" type="o" tp:type="Accessible">
116 the Accessible child whose bounding box contains the specified point.
120 <method name="getExtents">
122 Obtain the Component's bounding box, in pixels, relative to the specified coordinate system.
124 <arg direction="in" name="coord_type" type="n" tp:type="short"/>
125 <arg direction="out" type="(iiii)" tp:type="BoundingBox">
127 a BoundingBox which entirely contains the object's onscreen visual representation.
131 <method name="getPosition">
132 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
133 <p>Obtain the position of the current component in the coordinate system specified
136 @param x an out parameter which will be back-filled with the returned x coordinate.
137 @param y an out parameter which will be back-filled with the returned y coordinate.</p>
139 <arg direction="out" name="x" type="i"/>
140 <arg direction="out" name="y" type="i"/>
141 <arg direction="in" name="coord_type" type="n" tp:type="short"/>
143 <method name="getSize">
144 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
145 <p>Obtain the size, in the coordinate system specified by \c coord_type,
146 of the rectangular area which fully contains the object's
147 visual representation, without accounting for viewport clipping.
148 @param width the object's horizontal extents in the specified coordinate system.
149 @param height the object's vertical extents in the specified coordinate system.</p>
151 <arg direction="out" name="width" type="i"/>
152 <arg direction="out" name="height" type="i"/>
154 <method name="getLayer">
155 <arg direction="out" type="u" tp:type="ComponentLayer">
157 the ComponentLayer in which this object resides.
161 <method name="getMDIZOrder">
162 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
163 <p>Obtain the relative stacking order (i.e. 'Z' order) of an object.
164 Larger values indicate that an object is on "top" of the stack, therefore
165 objects with smaller MDIZOrder may be obscured by objects with a larger MDIZOrder,
167 @note only relevant for objects in LAYER_MDI or LAYER_WINDOW </p>
169 <arg direction="out" type="n" tp:type="short">
171 an integer indicating the object's place in the stacking order.
175 <method name="grabFocus">
176 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
177 <p>Request that the object obtain keyboard focus. </p>
179 <arg direction="out" type="b" tp:type="boolean">
181 \c True if keyboard focus was successfully transferred to the Component.
185 <method name="registerFocusHandler">
186 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
187 <p>Register an EventListener for notification when this object receives keyboard focus.
188 @note you probably want to register for ¨focus:¨ events via
189 Registry::registerGlobalEventListener instead. </p>
191 <arg direction="in" name="handler" type="o" tp:type="EventListener"/>
193 <method name="deregisterFocusHandler">
194 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
195 <p>Request that an EventListener registered via registerFocusHandler no longer be notified
196 when this object receives keyboard focus.</p>
198 <arg direction="in" name="handler" type="o" tp:type="EventListener"/>
200 <method name="getAlpha">
201 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
202 <p>Obtain the alpha value of the component. An alpha value of 1.0 or greater
203 indicates that the object is fully opaque, and an alpha value of 0.0 indicates
204 that the object is fully transparent. Negative alpha values have no defined
205 meaning at this time. </p>
207 <p>@note alpha values are used in conjunction with Z-order calculations to
208 determine whether an object wholly or partially obscures another object's
209 visual intersection, in the event that their bounds intersect. </p>
211 <p>@see STATE_OPAQUE </p>
213 <p>@since AT-SPI 1.7.0</p>
215 <arg direction="out" type="d"/>
217 <method name="unImplemented">
218 <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
222 <p>placeholders for future expansion.</p>
225 <method name="unImplemented2">
227 <method name="unImplemented3">