From: Mark Doffman Date: Mon, 18 Aug 2008 13:54:20 +0000 (+0100) Subject: 2008-08-18 Mark Doffman X-Git-Tag: AT_SPI2_ATK_2_12_0~614 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fat-spi2-atk.git;a=commitdiff_plain;h=7ba64dd7b169ebdfc34b3b8738a040c22ffa6136 2008-08-18 Mark Doffman * xml/Accessibility.xml Add new (Missing) xml files * xml/org.freedesktop.atspi.Event.xml Add missing event types that were in Registry_Common.xml * xml/*.xml Rewrite some of the documentation removing doxygen characters. --- diff --git a/xml/Accessibility.xml b/xml/Accessibility.xml index 65d13a4..f15646e 100644 --- a/xml/Accessibility.xml +++ b/xml/Accessibility.xml @@ -85,18 +85,19 @@ - + - + + - - + + diff --git a/xml/org.freedesktop.atspi.Accessible.xml b/xml/org.freedesktop.atspi.Accessible.xml index 55de240..a59d303 100644 --- a/xml/org.freedesktop.atspi.Accessible.xml +++ b/xml/org.freedesktop.atspi.Accessible.xml @@ -1,13 +1,9 @@ - - - - - used by Text and Document: these correspond to the POSIX setlocale() enum values. + Used by Text and Document interfaces these correspond to the POSIX 'setlocale' enum values. @@ -18,32 +14,32 @@ -

Used by Component and Text, a struct defining a bounding rectangle. - The relevant coordinate system is determined by the context of the - API call which returned or receives the value.

+ Used by Component and Text interfaces, a struct defining a bounding rectangle. + The relevant coordinate system is determined by the context of the + API call which returned or receives the value.
- < the value corresponding to the minimum or leftmost x position. + The value corresponding to the minimum or leftmost x position. - < the value corresponding to the minimum y value. + The value corresponding to the minimum y value. -

< the horizontal extent of the bounding box, - that is, the difference between the maximum and minimum - x coordinate bounds.

+ The horizontal extent of the bounding box, + that is, the difference between the maximum and minimum + x coordinate bounds.
-

< the vertical extent of the bounding box, + The vertical extent of the bounding box, that is, the difference between the maximum and minimum - y coordinate bounds.

+ y coordinate bounds.
@@ -54,45 +50,49 @@ and position in the accessible-object hierarchy, whether or not they actually have children.

-

@note Events that may be emitted by instances of Accessible include: - \li \c "object:property-change" A base (strongly-typed) object attribute has changed, +

Events that may be emitted by instances of Accessible include: + "object:property-change" A base (strongly-typed) object attribute has changed, for instance "object:property-change:accessible-name". Notifed property subtypes include accessible-name, accessible-description, - accessible-parent and accessible-role.

+ accessible-parent and accessible-role.

-

\li \c "object:children-changed" The number or identity of an object's children +

"object:children-changed" The number or identity of an object's children has changed. - \li \c "object:state-changed" The object's StateSet has had a state added + + "object:state-changed" The object's StateSet has had a state added or removed. - \li \c "object:active-descendant-changed" If the object includes + + "object:active-descendant-changed" If the object includes STATE_MANAGES_DESCENDANTS, this event is fired to indicate that the descendant having STATE_ACTIVE has changed; this corresponds to "micro" keyboard focus when the containing/emitting object has "macro" or technical keyboard focus. For instance, this event is usually emitted while traversing tables and/or spreadsheet cells. - \li \c "object:attribute-change" A weakly-typed property, as contained in the + + "object:attribute-change" A weakly-typed property, as contained in the AttributeSet returned by Accessible::getAttributes, has changed in value, been added, or been removed from the object. ("object:attribute-change" notifications were added in AT-SPI 1.7.0)

+ - a (short) \c string representing the object's name. + A (short) string representing the object's name. - a \c string describing the object in more detail than \a name. + A string describing the object in more detail than name. - an ::Accessible object which is this object's containing object. + The Accessible object which is this object's containing object. - childCount: the number of children contained by this object. + The number of children contained by this object. @@ -101,7 +101,7 @@ - the ::Accessible children of this object. + The Accessible children of this object. @@ -111,60 +111,58 @@ - a long integer indicating this object's index in the parent's list. + A long integer indicating this object's index in the parent's list. - -

Get the ::Role indicating the type of UI role played by this object.

+ Get the Role indicating the type of UI role played by this object.
- a ::Role indicating the type of UI role played by this object. + A Role indicating the type of UI role played by this object.
-

Get a string indicating the type of UI role played by this object.

+ Get a string indicating the type of UI role played by this object.
- a UTF-8 string indicating the type of UI role played by this object. + A UTF-8 string indicating the type of UI role played by this object.
-

Get a string indicating the type of UI role played by this object, - translated to the current locale.

+ Get a string indicating the type of UI role played by this object, + translated to the current locale.
- a UTF-8 string indicating the type of UI role played by this object. + A UTF-8 string indicating the type of UI role played by this object.
- Get the current state of the object as a ::StateSet. + Get the current state of the object as a StateSet. - a ::StateSet encapsulating the currently true states of the object. + A StateSet encapsulating the currently true states of the object. Returns an array of (currently two) 32-bit integers giving bitwise flags. @@ -172,22 +170,22 @@

Get a list of properties applied to this object as a whole, as an - ::AttributeSet consisting of name-value pairs. As such these attributes + AttributeSet consisting of name-value pairs. As such these attributes may be considered weakly-typed properties or annotations, as distinct from the strongly-typed interface instance data declared using the IDL - "attribute" keyword.

+ "attribute" keyword.

Not all objects have explicit "name-value pair" AttributeSet properties.

Attribute names and values may have any UTF-8 string value, however where possible, in order to facilitate consistent use and exposure of "attribute" properties by applications and AT clients, attribute names and values should chosen from - a publicly-specified namespace where appropriate.

+ a publicly-specified namespace where appropriate.

Where possible, the names and values in the name-value pairs should be chosen from well-established attribute namespaces using standard semantics. - For example, attributes of ::Accessible objects corresponding to XHTML content + For example, attributes of Accessible objects corresponding to XHTML content elements should correspond to attribute names and values specified in the w3c XHTML specification, at http://www.w3.org/TR/xhtml2, where such values are not already exposed via a more strongly-typed aspect of the AT-SPI API. @@ -200,33 +198,27 @@ http://www.w3.org/TR/1998/REC-CSS2-19980512 WICD (http://www.w3.org/TR/2005/WD-WICD-20051121/).

-

@note Clients seeking semantic or typographical attributes associated with - specific character spans of text content should use ::Text::getAttributeRun instead. - The attributes returned by Accessible::getAttributes do not include - "text attributes".

+

Clients seeking semantic or typographical attributes associated with + specific character spans of text content should use Text.getAttributeRun instead. + The attributes returned by Accessible.getAttributes do not include + "text attributes". (See Text.getAttributeRun)

-

@see ::Accessibility::Text::getAttributeRun

- an ::AttributeSet encapsulating any "attribute values" currently defined for the object.@since AT-SPI 1.7.0 + An AttributeSet encapsulating any "attribute values" currently defined for the object.
-

Get the containing Application for this object.

+

Get the containing Application for this object.

- the Application instance to which this object belongs.@since AT-SPI 1.7.0 + The Application instance to which this object belongs.
- - - /cond future expansion - -
diff --git a/xml/org.freedesktop.atspi.Action.xml b/xml/org.freedesktop.atspi.Action.xml index 3312682..94e1ea8 100644 --- a/xml/org.freedesktop.atspi.Action.xml +++ b/xml/org.freedesktop.atspi.Action.xml @@ -1,10 +1,6 @@ - - - -

An interface through which a user-actionable user interface @@ -18,31 +14,31 @@ - a \c string containing the description of the specified action. + A string containing the description of the specified action. - the description of the specified action. The description of an actionmay provide information about the result of action invocation, unlike the action name. + The description of the specified action. The description of an actionmay provide information about the result of action invocation, unlike the action name. - a \c string containing the key binding for the specified action,or an empty string ("") if none exists. + A string containing the key binding for the specified action,or an empty string ("") if none exists. - the number of actions this object supports + The number of actions this object supports -

Get the description for the specified action. The description of an action may provide information about the result of action invocation, unlike the action name.

+

Get the description for the specified action. The description of an action may provide information about the result of action invocation, unlike the action name.

- the index of the action + The index of the action A string containing the description of the specified action @@ -54,7 +50,7 @@

Get the name of the specified action. Action names generally describe the user action, i.e. "click" or "press", rather than the result of invoking the action.

- the index of the action + The index of the action A string containing the name of the specified action @@ -66,7 +62,7 @@

Get the key binding associated with a specific action.

- the index of the action + The index of the action A string containing the key binding for the specified action, or an empty string ("") if none exists. @@ -85,12 +81,12 @@ - the 0-based index of the action to perform. + The 0-based index of the action to perform. - a \c boolean indicating success or failure. + A boolean indicating success or failure. diff --git a/xml/org.freedesktop.atspi.Application.xml b/xml/org.freedesktop.atspi.Application.xml index 3195f3f..4f67ea8 100644 --- a/xml/org.freedesktop.atspi.Application.xml +++ b/xml/org.freedesktop.atspi.Application.xml @@ -1,17 +1,13 @@ - - - - -

An interface identifying an object which is the root of the user interface Accessible hierarchy associated with a running application. Children of Application are typically, but not exclusively, - top-level windows. - @note It is possible for an element deeper in an Accessibility stack to + top-level windows.

+ +

It is possible for an element deeper in an Accessibility stack to implement Application, for instance in the case of "embedded applications" which draw into toplevel windows associated with other applications from the user's point of view.

@@ -19,8 +15,8 @@

A string indicating the type of user interface toolkit - which is used by the application. - @note Ordinarily clients of ::Application should be + which is used by the application.

+

Ordinarily clients of the Application should be toolkit-agnostic, dependencies on this property should be avoided where possible.

@@ -39,48 +35,49 @@ - an ::EventListener object which will receive the requestedevents from the application's toolkits via toolit 'bridges' + An EventListener object which will receive the requestedevents from the application's toolkits via toolit 'bridges' - a UTF-8 string indicating the type of (toolkit-specific) eventbeing requested. Not all applications can generate toolkit events ofa given type.Register with this application's toolkit for "toolkit-specific" event notifications.@noteFor most event support, clients should use non-toolkit-specific eventswhenever possible, via ::Registry::registerGlobalEventListener - this method is provided as a 'back door' when generic names do not exist for the events in question. +

A UTF-8 string indicating the type of (toolkit-specific) eventbeing requested. Not all applications can generate toolkit events of a given type. Register with this application's toolkit for "toolkit-specific" event notifications.

+ +

For most event support, clients should use non-toolkit-specific events whenever possible, Registry.registerGlobalEventListener - this method is provided as a 'back door' when generic names do not exist for the events in question.

- - registerObjectEventListener: - - an ::EventListener object which will receive the requestedevents + An EventListener object which will receive the requested events - a UTF-8 string indicating the type of (toolkit-specific) eventbeing requested. Register with this application toolkit for "Accessibility::Accessible" event notifications. @note: SUBJECT TO DEPRECATION. + A UTF-8 string indicating the type of (toolkit-specific) event being requested. Register with this application toolkit for "Accessibility.Accessible" event notifications. DEPRECATED

Request that the application temporarily stop sending events. - In most cases this should pause the application's main event loop.

+ In most cases this should pause the application's main event loop.

- - \c true if the request succeeded, \c false otherwise.@note: This method is not implemented in most toolkits, and therefore should be treated with caution. - + +

True if the request succeeded, false otherwise.

+ +

This method is not implemented in most toolkits, and therefore should be treated with caution.

+
-

Request that the application resume sending events.

+

Request that the application resume sending events.

- \c True if the request succeeded, \c False otherwise. + True if the request succeeded, False otherwise.
@@ -89,23 +86,17 @@

Gets the locale in which the application is currently operating. For the current message locale, use \a lctype LOCALE_TYPE_MESSAGES.

-

@param lctype The LocaleType for which the locale is queried.

- - + - a string compliant with the POSIX standard for locale description. +

The LocaleType for which the locale is queried.

- - + - \cond (This comment tells doxygen not to document these) + A string compliant with the POSIX standard for locale description. - - - - +
diff --git a/xml/org.freedesktop.atspi.Collection.xml b/xml/org.freedesktop.atspi.Collection.xml index 006008f..2bfc851 100644 --- a/xml/org.freedesktop.atspi.Collection.xml +++ b/xml/org.freedesktop.atspi.Collection.xml @@ -1,10 +1,5 @@ - - - - - diff --git a/xml/org.freedesktop.atspi.Event.xml b/xml/org.freedesktop.atspi.Event.xml new file mode 100644 index 0000000..01d8416 --- /dev/null +++ b/xml/org.freedesktop.atspi.Event.xml @@ -0,0 +1,346 @@ + + + + +

A structure that encapsulates the characteristics of the event notifications + that should be sent to an EventListener in response to a call to + DeviceEventController::registerKeystrokeListener or + DeviceEventController::registerDeviceEventListener.

+
+ + +

< If \c True, specifies that + DeviceEventController should block while waiting + for client to process the requested event notifications; + ordinarily should be used only when client needs to perform + operations synchronously with event delivery. Note that because + of the architecture of device event systems in general, + use of this flag may not block delivery of the event to + the currently focussed application unless it is used in + conjunction with the preemptive flag.

+
+
+ + +

< If \c True, specifies that + Listener is allowed to pre-empt the delivery of the event, + effectively "consuming" it such that it is not delivered + to the currently focussed desktop application. + Key events consumed via this API will not be + available for use by other applications or services, so this + option should be used sparingly.

+
+
+ + +

< If \c True, specifies that + Event notifications should be sent regardless of whether the + currently focussed application participates in the AT-SPI + infrastructure. On systems with the XEvIE X extension, this flag + also allows access to events which are already subject to + interception via a "system keygrab" (as described in the X Window System + documentation for XGrabKey). The 'global' and 'preemptive' flags + should only be used together for the purposes of registering + "system global key shortcuts" i.e. command keys for use by the + assistive technology.

+
+
+
+ + + A structure which encapsulates information about a device event. + + + + < Identifies the type of the containing DeviceEvent. + + + + +

< an identifier which identifies this event in the event stream. + On X Window systems this corresponds to the XEvent serial number.

+
+
+ + +

< a numeric code which is hardware and system-dependent, identifying the + specific hardware button or key on the device for which the event has + occurred. On X Window systems, for global key notifications and for most + non-global key notifications as well, this code corresponds to the + XKeycode. For switch and button events it indicates the switch + or button number. + @note + For technical reasons, this code may differ from the XKeycode + when generated by Java applications for consumption by non-global + key listeners. This is subject to change in future versions of the + DeviceEventController implementation.

+
+
+ + +

< an unsigned short int consisting of zero or more of the following + values OR'ed together: + \li \c 1<<::MODIFIER_SHIFT (=1, corresponds to Xlib's ShiftMask) + \li \c 1<<::MODIFIER_SHIFTLOCK (=2, corresponds to Xlib's LockMask) + \li \c 1<<::MODIFIER_CONTROL (=4, corresponds to Xlib's ControlMask) + \li \c 1<<::MODIFIER_ALT (=8, corresponds to Xlib's Mod1Mask) + \li \c 1<<::MODIFIER_META (=16, corresponds to Xlib's Mod2Mask) + \li \c 1<<::MODIFIER_META2 (=32, corresponds to Xlib's Mod3Mask) + \li \c 1<<::MODIFIER_META3 (=64, corresponds to Xlib's Mod4Mask)

+
+
+ + +

< an unsigned integer representing the time that the + event occurred. On X Window systems this event is + a time in milliseconds from some arbitrary starting + point; it therefore has a cycle time of approximately + 50 days.

+
+
+ + +

< A string representation of the event. If is_text is + \c True, then this string represents the character or typographic + sequence that would be received by a focussed text input field. + event_string is in general suitable for exposure to the + end-user for purposes of keyboard echo.

+
+
+ + +

< \c True if the event results in the insertion of characters + into an input text buffer, or would do so if delivered to a focussed + text input field. ¨Typographical¨ key events have this field set to + \c True, whereas ¨control¨ key events generally do not.

+
+
+
+ + +

A structure which defines the identity of a key for which notifications + are to be requested. The data in the members of a ::KeyDefinition are used to + determine which keyboard events 'match' the notification request filed by a client.

+ +

@note Ordinarily a KeyDefinition specifies one and only one of the criteria below; + the result of using a KeyDefinition with multiple members defined as nonzero is + undefined.

+ +

@param keycode if nonzero, the numeric, system-dependent value corresponding to a + physical key on the keyboard. Keycode values have no semantic meaning to the end-user, + and may depend on the user's hardware and operating environment. They therefore are + rarely useful "as-is" to AT clients, unless the client has used operating system + services to identify the hardward keycode associated with a particular key symbol. + Notifications for key events requested by keycode are less dependent on modifier state + than \c keysym based notifications, but some hardware (notably many laptops) may generate + more than one keycode for the same physical key, depending on the state of physical + shift/modifier keys. + @param keysym if nonzero, the numeric value corresponding to the X Keysym of the key for which + notification is requested. Note that the presence of active modifiers will affect + whether notification for key events requested via "keysym" specification takes place, + since the keysym depends on the modifier state for most keys. + @param keystring if non-NULL, the string value of the inserted characters if the corresponding + key event has ::KeyEvent:is_text set to \c True, or the string representing the + 'name' of the key. On X11 systems, the string 'name' of non-printing keysyms corresponds + to the values in "keysymdef.h" as provided by Xlib, with the leading "XK_" stripped off.

+
+ + + + +
+ + +

This interface should be implemented by AT-SPI clients who wish to + make use of the DeviceEventController to receive device event notifications. + DeviceEvents include keyboard events and mouse button/motion events.

+
+ + + Notify an interested DeviceEventListener that a DeviceEvent has occurred. + + + + + \c True if the recipient/consumer wishes to consume the event, i.e.prevent it from being delivered to the desktop, \c False if the event should continue to be delivered as normal. + + + +
+ + +

The interface via which clients request notification of device events, and + through which device events may be simulated.

+
+ + +

Register to intercept keyboard events, and either pass them on or + consume them.

+
+ + + a DeviceEventListener which will intercept key events. + + + + + a KeySet indicating which keys to intercept, or KEYSET_ALL_KEYS. + + + + + a ControllerEventMask filtering the intercepted key events. + + + + + a KeyEventTypeSeq that may created by ORing event types together. + + + + + an EventListenerMode indicating whether the listener should receive the events synchronously, potentially consuming them,or just be notified asynchronously of those events that havebeen generated.@note Some platforms have limited support for global, preemptive EventListenerMode.Such a registration may fail if another client already has priority for preemptiveaccess to one or more of the members of the KeySet. AT consumers have the optionof re-trying the request without the global flag, or without the preemptive flag,or of re-trying with a different KeySet. The best support for pre-emptiveglobal keyboard listeners is provided on platforms whose Xserver implementationprovides the XEvIE extension. + + + + + \c True if the DeviceEventListener was successfully registeredfor the requested KeySet, ControllerEventMask, event types, and EventListenerMode; otherwise returns \c False. + + +
+ + + De-register a previously registered keyboard eventlistener. + + + + a DeviceEventListener which will intercept key events. + + + + + a KeySet indicating which keys to intercept, or KEYSET_ALL_KEYS. + + + + + a ControllerEventMask filtering the intercepted key events. + + + + + an EventType mask that may created by ORing event types together. + + + + + +

Register to intercept events, and either pass them on or + consume them. To listen to keyboard events use registerKeystrokeListener + instead.

+
+ + + a DeviceEventListener which will intercept events. + + + + + an EventTypeSeq indicating which event types to listen for. + + + + + \c True if successful, \c False if not + + +
+ + + De-register a previously registered keyboard eventlistener. + + + + a DeviceEventListener which will intercept events. + + + + + an EventTypeSeq indicating which event types to stoplistening for. + + + + + +

Notify the Registry instance that a device event has taken place, and + allow pre-emptive listeners the opportunity to 'consume' the event + and thus prevent its further issuance/forwarding. This is the + method used by accessibility bridges to forward "toolkit dependent" + device events to the Registry from the application's process space.

+ +

@note AT clients do not normally need to use this method, it is intended for use + by toolkit bridges and special-purpose applications.

+
+ + + + \c True if the event was consumed by a (pre-emptive) listener,\c False if not (in which case the device event will be forwardedas normal to any application which would normally receive it, e.g.the currently active application in the case of mouse or keyboard events). + + +
+ + +

Notify the Registry instance that a device event has taken place in + an asynchronous manner. This is the + method used by accessibility bridges to forward "toolkit dependent" + device events to the Registry from the application's process space. + If the event in question is potentially pre-emptible. + ::notifyListenersSync should be used instead.

+ +

@note AT clients do not normally need to use this method, it is intended for use + by toolkit bridges and special-purpose applications.

+
+ +
+ + + Synthesize a keyboard event. + + + + a long integer indicating the keycode ofthe keypress to be synthesized. + + + + + an optional UTF-8 string indicating a complexkeyboard input event. + + + + + a KeySynthType indicating the type of event(s) to be synthesized: a key press, release, press-release pair,or a complex input string (for instance from aninternationalized or complex text input method, ora composed character).@note keycode may be truncated before beingprocessed, as keycode length may be platform-dependentand keycode ranges are generally much smaller thanCORBA_long. One or the other of keycode or keystring are generally NULL, (but not both), depending on the value of \c type. + + + + + + Synthesize a mouse event. + + + + a long integer indicating the screen x coord for the mouse event. + + + + + a long integer indicating the screen y coord for the mouse event. + + + + + a string indicating the type of mouse event, e.g. "button1up" + + + +
+