+/*
+ * AT-SPI - Assistive Technology Service Provider Interface
+ * (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
+ *
+ * Copyright 2001 Sun Microsystems Inc.
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
#ifndef _SPI_H
#define _SPI_H
-/* Implementation private definitions */
-#include "spi-impl.h"
+#include <cspi/spi-impl.h>
+/*
+ * Definitions for AccessibleRole, AccessibleState,
+ * AccessibleEvent, and event listeners.
+ */
+#include <cspi/spi-roletypes.h>
+#include <cspi/spi-statetypes.h>
+#include <cspi/spi-listener.h>
/*
- * Definitions for SPI_ACCESSIBLE_STATE , SPI_ACCESSIBLE_ROLE, SpiAccessibleEvent,
- * and event listeners.
+ * Auxiliary typedefs and mask definitions
*/
+#include <libspi/keymasks.h>
-#include "spi-roletypes.h"
-#include "spi-statetypes.h"
-#include "spi-listener.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
/*
- *
* Enumerated type for text boundary types
- *
*/
-
typedef enum
{
SPI_TEXT_BOUNDARY_CHAR,
SPI_TEXT_BOUNDARY_LINE_START,
SPI_TEXT_BOUNDARY_LINE_END,
SPI_TEXT_BOUNDARY_ATTRIBUTE_RANGE
-} SPI_TEXT_BOUNDARY_TYPE;
-
-
+} AccessibleTextBoundaryType;
/*
*
typedef enum
{
- RELATION_LABEL_FOR,
- RELATION_LABELED_BY,
- RELATION_CONTROLLER_FOR,
- RELATION_CONTROLLED_BY,
- RELATION_MEMBER_OF
-} RELATION_TYPE;
+ SPI_RELATION_NULL,
+ SPI_RELATION_LABEL_FOR,
+ SPI_RELATION_LABELED_BY,
+ SPI_RELATION_CONTROLLER_FOR,
+ SPI_RELATION_CONTROLLED_BY,
+ SPI_RELATION_MEMBER_OF,
+ SPI_RELATION_NODE_CHILD_OF,
+ SPI_RELATION_EXTENDED,
+ SPI_RELATION_LAST_DEFINED
+} AccessibleRelationType;
/* don't change the order of these ! */
-typedef enum _AccessibleCoordType {
- COORD_TYPE_SCREEN,
- COORD_TYPE_WINDOW
-} SpiAccessibleCoordType;
-
-typedef enum _KeyEventType {
- KEY_PRESSED,
- KEY_RELEASED
-} KeyEventType;
-
-typedef enum _KeySynthType {
- KEY_PRESS,
- KEY_RELEASE,
- KEY_PRESSRELEASE,
- KEY_SYM
-} KeySynthType;
-
-typedef enum _KeyListenerSyncType {
- KEYSPI_LISTENER_SYNCHRONOUS = 1,
- KEYSPI_LISTENER_CANCONSUME = 2,
- KEYSPI_LISTENER_ALLWINDOWS = 4
-} KeyListenerSyncType;
-
-typedef unsigned long KeyEventMask;
-
-typedef struct _KeyStroke
+typedef enum {
+ SPI_COORD_TYPE_SCREEN,
+ SPI_COORD_TYPE_WINDOW
+} AccessibleCoordType;
+
+typedef enum {
+ SPI_KEY_PRESS,
+ SPI_KEY_RELEASE,
+ SPI_KEY_PRESSRELEASE,
+ SPI_KEY_SYM,
+ SPI_KEY_STRING
+} AccessibleKeySynthType;
+
+typedef enum {
+ SPI_KEYLISTENER_NOSYNC = 0,
+ SPI_KEYLISTENER_SYNCHRONOUS = 1,
+ SPI_KEYLISTENER_CANCONSUME = 2,
+ SPI_KEYLISTENER_ALL_WINDOWS = 4
+} AccessibleKeyListenerSyncType;
+
+typedef unsigned long AccessibleKeyEventMask;
+
+/**
+ * AccessibleComponentLayer:
+ * @SPI_LAYER_INVALID: The layer cannot be determined or is somehow undefined.
+ * @SPI_LAYER_BACKGROUND: Component belongs to the destop background.
+ * @SPI_LAYER_CANVAS: Component is a canvas backdrop or drawing area.
+ * @SPI_LAYER_WIDGET: Component is a 'normal' widget.
+ * @SPI_LAYER_MDI: Component is drawn in the MDI layer and may have valid
+ * Z-information relative to other MDI-layer components.
+ * @SPI_LAYER_POPUP: Component is in the popup layer, above other widgets and
+ * MDI components.
+ * @SPI_LAYER_OVERLAY: Component is in the overlay plane - this value is reserved
+ * for future use.
+ * @SPI_LAYER_LAST_DEFINED: Used to determine the last valid value in the enum,
+ * should not be encountered.
+ **/
+typedef enum {
+ SPI_LAYER_INVALID,
+ SPI_LAYER_BACKGROUND,
+ SPI_LAYER_CANVAS,
+ SPI_LAYER_WIDGET,
+ SPI_LAYER_MDI,
+ SPI_LAYER_POPUP,
+ SPI_LAYER_OVERLAY,
+ SPI_LAYER_LAST_DEFINED
+} AccessibleComponentLayer;
+
+
+/**
+ * AccessibleKeySet:
+ * @keysyms:
+ * @keycodes:
+ * @len:
+ *
+ * Structure containing identifying information about a set of keycode or
+ * keysyms.
+ **/
+typedef struct _AccessibleKeySet
{
- long keyID;
- short keycode;
- KeyEventType type;
- unsigned short modifiers;
-} KeyStroke;
+ unsigned long *keysyms;
+ unsigned short *keycodes;
+ char **keystrings;
+ short len;
+} AccessibleKeySet;
+
+/**
+ * SPI_KEYSET_ALL_KEYS:
+ * @SPI_KEYSET_ALL_KEYS: A special value for an AccessibleKeySet type, which tacitly
+ * includes all keycodes and keyvals for the specified modifier set.
+ **/
+#define SPI_KEYSET_ALL_KEYS NULL
+
+typedef unsigned long AccessibleKeyMaskType;
+
+
+/* Basic SPI initialization and event loop function prototypes */
+
+int SPI_init (void);
+void SPI_event_main (void);
+void SPI_event_quit (void);
+SPIBoolean SPI_eventIsReady (void);
+AccessibleEvent *SPI_nextEvent (SPIBoolean waitForEvent);
+int SPI_exit (void);
+
+/* Event Listener creation and support. */
+
+void SPI_freeAccessibleKeySet (
+ AccessibleKeySet *keyset);
+AccessibleKeySet * SPI_createAccessibleKeySet (
+ int len,
+ const char *keysyms,
+ short *keycodes,
+ const char **keystrings);
+AccessibleEventListener * SPI_createAccessibleEventListener (
+ AccessibleEventListenerCB callback,
+ void *user_data);
+SPIBoolean AccessibleEventListener_addCallback (
+ AccessibleEventListener *listener,
+ AccessibleEventListenerCB callback,
+ void *user_data);
+SPIBoolean AccessibleEventListener_removeCallback (
+ AccessibleEventListener *listener,
+ AccessibleEventListenerCB callback);
+void AccessibleEventListener_unref (
+ AccessibleEventListener *listener);
+
+/* Keystroke Listener creation and support. */
+
+AccessibleKeystrokeListener * SPI_createAccessibleKeystrokeListener (
+ AccessibleKeystrokeListenerCB callback,
+ void *user_data);
+SPIBoolean AccessibleKeystrokeListener_addCallback (
+ AccessibleKeystrokeListener *listener,
+ AccessibleKeystrokeListenerCB callback,
+ void *user_data);
+SPIBoolean AccessibleKeystrokeListener_removeCallback (
+ AccessibleKeystrokeListener *listener,
+ AccessibleKeystrokeListenerCB callback);
+void AccessibleKeystrokeListener_unref (
+ AccessibleKeystrokeListener *listener);
+
+/* Global functions serviced by the registry */
+
+SPIBoolean SPI_registerGlobalEventListener (
+ AccessibleEventListener *listener,
+ const char *eventType);
+SPIBoolean SPI_deregisterGlobalEventListener (
+ AccessibleEventListener *listener,
+ const char *eventType);
+SPIBoolean SPI_deregisterGlobalEventListenerAll (
+ AccessibleEventListener *listener);
+SPIBoolean SPI_registerAccessibleKeystrokeListener (
+ AccessibleKeystrokeListener *listener,
+ AccessibleKeySet *keys,
+ AccessibleKeyMaskType modmask,
+ AccessibleKeyEventMask eventmask,
+ AccessibleKeyListenerSyncType sync_type);
+SPIBoolean SPI_deregisterAccessibleKeystrokeListener (
+ AccessibleKeystrokeListener *listener,
+ AccessibleKeyMaskType modmask);
+
+int SPI_getDesktopCount (void);
+Accessible *SPI_getDesktop (int i);
+int SPI_getDesktopList (Accessible ***desktop_list);
+void SPI_freeDesktopList (Accessible **desktop_list);
+
+SPIBoolean SPI_generateKeyboardEvent (long int keyval,
+ char *keystring,
+ AccessibleKeySynthType synth_type);
+
+SPIBoolean SPI_generateMouseEvent (long int x, long int y, char *name);
+
+/* Accessible function prototypes */
+
+void Accessible_ref (Accessible *obj);
+void Accessible_unref (Accessible *obj);
+char * Accessible_getName (Accessible *obj);
+char * Accessible_getDescription (Accessible *obj);
+Accessible * Accessible_getParent (Accessible *obj);
+long Accessible_getChildCount (Accessible *obj);
+Accessible * Accessible_getChildAtIndex (Accessible *obj,
+ long int childIndex);
+long Accessible_getIndexInParent (Accessible *obj);
+AccessibleRelation **Accessible_getRelationSet (Accessible *obj);
+AccessibleRole Accessible_getRole (Accessible *obj);
+char * Accessible_getRoleName (Accessible *obj);
+AccessibleStateSet * Accessible_getStateSet (Accessible *obj);
-typedef struct _KeySet
-{
- unsigned long *keysyms;
- unsigned short *keycodes;
- short len;
-} KeySet;
-
-#define ALL_KEYS ((void *)NULL)
-
-/*
- *
- * Basic SPI initialization and event loop function prototypes
- *
- */
+/* Interface query methods */
-/**
- * SPI_init:
- *
- * Connects to the accessibility registry and initializes the SPI.
- *
- * Returns: 0 on success, otherwise an integer error code.
- **/
-int
-SPI_init (void);
+SPIBoolean Accessible_isAction (Accessible *obj);
+SPIBoolean Accessible_isApplication (Accessible *obj);
+SPIBoolean Accessible_isComponent (Accessible *obj);
+SPIBoolean Accessible_isEditableText (Accessible *obj);
+SPIBoolean Accessible_isHypertext (Accessible *obj);
+SPIBoolean Accessible_isImage (Accessible *obj);
+SPIBoolean Accessible_isSelection (Accessible *obj);
+SPIBoolean Accessible_isStreamableContent (Accessible *obj);
+SPIBoolean Accessible_isTable (Accessible *obj);
+SPIBoolean Accessible_isText (Accessible *obj);
+SPIBoolean Accessible_isValue (Accessible *obj);
+
+AccessibleAction * Accessible_getAction (Accessible *obj);
+AccessibleApplication * Accessible_getApplication (Accessible *obj);
+AccessibleComponent * Accessible_getComponent (Accessible *obj);
+AccessibleEditableText * Accessible_getEditableText (Accessible *obj);
+AccessibleHypertext * Accessible_getHypertext (Accessible *obj);
+AccessibleImage * Accessible_getImage (Accessible *obj);
+AccessibleSelection * Accessible_getSelection (Accessible *obj);
+AccessibleStreamableContent * Accessible_getStreamableContent (Accessible *obj);
+AccessibleTable * Accessible_getTable (Accessible *obj);
+AccessibleText * Accessible_getText (Accessible *obj);
+AccessibleValue * Accessible_getValue (Accessible *obj);
+AccessibleUnknown * Accessible_queryInterface (Accessible *obj,
+ const char *interface_name);
+
+/* AccessibleAction function prototypes */
+
+void AccessibleAction_ref (AccessibleAction *obj);
+void AccessibleAction_unref (AccessibleAction *obj);
+long AccessibleAction_getNActions (AccessibleAction *obj);
+char *AccessibleAction_getName (AccessibleAction *obj,
+ long int i);
+char *AccessibleAction_getDescription (AccessibleAction *obj,
+ long int i);
+SPIBoolean AccessibleAction_doAction (AccessibleAction *obj,
+ long int i);
+char *AccessibleAction_getKeyBinding (AccessibleAction *obj,
+ long int i);
+
+/* AccessibleApplication function prototypes */
+
+void AccessibleApplication_ref (AccessibleApplication *obj);
+void AccessibleApplication_unref (AccessibleApplication *obj);
+char *AccessibleApplication_getToolkitName (AccessibleApplication *obj);
+char *AccessibleApplication_getVersion (AccessibleApplication *obj);
+long AccessibleApplication_getID (AccessibleApplication *obj);
+SPIBoolean AccessibleApplication_pause (AccessibleApplication *obj);
+SPIBoolean AccessibleApplication_resume (AccessibleApplication *obj);
+
+/* AccessibleComponent function prototypes */
+
+void AccessibleComponent_ref (AccessibleComponent *obj);
+void AccessibleComponent_unref (AccessibleComponent *obj);
+SPIBoolean AccessibleComponent_contains (AccessibleComponent *obj,
+ long int x,
+ long int y,
+ AccessibleCoordType ctype);
+Accessible *AccessibleComponent_getAccessibleAtPoint (
+ AccessibleComponent *obj,
+ long int x,
+ long int y,
+ AccessibleCoordType ctype);
+void AccessibleComponent_getExtents (AccessibleComponent *obj,
+ long int *x,
+ long int *y,
+ long int *width,
+ long int *height,
+ AccessibleCoordType ctype);
+void AccessibleComponent_getPosition (AccessibleComponent *obj,
+ long int *x,
+ long int *y,
+ AccessibleCoordType ctype);
+void AccessibleComponent_getSize (AccessibleComponent *obj,
+ long int *width,
+ long int *height);
+AccessibleComponentLayer
+ AccessibleComponent_getLayer (AccessibleComponent *obj);
+SPIBoolean AccessibleComponent_grabFocus (AccessibleComponent *obj);
+short AccessibleComponent_getMDIZOrder(AccessibleComponent *obj);
+
+/* AccessibleEditableText function prototypes */
-/**
- * SPI_event_main:
- * @isGNOMEApp: a #boolean indicating whether the client of the SPI
- * will use the Gnome event loop or not.
- *
- * Starts/enters the main event loop for the SPI services.
- *
- * (NOTE: This method does not return control, it is exited via a call to exit()
- * from within an event handler).
- *
- **/
void
-SPI_event_main (boolean isGNOMEApp);
-
-/**
- * SPI_event_is_ready:
- *
- * Checks to see if an SPI event is waiting in the event queue.
- * Used by clients that don't wish to use SPI_event_main().
- * Not Yet Implemented.
- *
- * Returns: #TRUE if an event is waiting, otherwise #FALSE.
- *
- **/
-boolean
-SPI_eventIsReady ();
-
-/**
- * SPI_nextEvent:
- *
- * Gets the next event in the SPI event queue; blocks if no event
- * is pending.
- * Used by clients that don't wish to use SPI_event_main().
- * Not Yet Implemented.
- *
- * Returns: the next #AccessibleEvent in the SPI event queue.
- *
- **/
-SpiAccessibleEvent *
-SPI_nextEvent (boolean waitForEvent);
+AccessibleEditableText_ref (AccessibleEditableText *obj);
-/**
- * SPI_exit:
- *
- * Disconnects from the Accessibility SpiRegistry and releases resources.
- * Not Yet Implemented.
- *
- **/
void
-SPI_exit (void);
+AccessibleEditableText_unref (AccessibleEditableText *obj);
-/*
- * Event SpiListener creation and support.
- */
+SPIBoolean
+AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
+ const char *attributes,
+ long int startOffset,
+ long int endOffset);
-/**
- * createEventListener:
- * @callback : an #AccessibleEventListenerCB callback function, or NULL.
- *
- * Create a new #AccessibleEventListener with a specified callback function.
- *
- * Returns: a pointer to a newly-created #AccessibleEventListener.
- *
- **/
-SpiAccessibleEventListener *
-createEventListener (SpiAccessibleEventListenerCB callback);
+SPIBoolean
+AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
+ const char *newContents);
-/**
- * EventListener_addCallback:
- * @listener: the #AccessibleEventListener instance to modify.
- * @callback: an #AccessibleEventListenerCB function pointer.
- *
- * Add an in-process callback function to an existing SpiAccessibleEventListener.
- *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
- **/
-boolean
-EventListener_addCallback (SpiAccessibleEventListener *listener,
- SpiAccessibleEventListenerCB callback);
+SPIBoolean
+AccessibleEditableText_insertText (AccessibleEditableText *obj,
+ long int position,
+ const char *text,
+ long int length);
-/**
- * EventListener_removeCallback:
- * @listener: the #AccessibleEventListener instance to modify.
- * @callback: an #AccessibleEventListenerCB function pointer.
- *
- * Remove an in-process callback function from an existing SpiAccessibleEventListener.
- *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
- **/
-boolean
-EventListener_removeCallback (SpiAccessibleEventListener *listener,
- SpiAccessibleEventListenerCB callback);
+SPIBoolean
+AccessibleEditableText_copyText (AccessibleText *obj,
+ long int startPos,
+ long int endPos);
-/**
- * createKeyListener:
- * @callback : an #KeystrokeListenerCB callback function, or NULL.
- *
- * Create a new #KeystrokeListener with a specified callback function.
- *
- * Returns: a pointer to a newly-created #KeystrokeListener.
- *
- **/
-KeystrokeListener *
-createKeystrokeListener (KeystrokeListenerCB callback);
+SPIBoolean
+AccessibleEditableText_cutText (AccessibleEditableText *obj,
+ long int startPos,
+ long int endPos);
-/**
- * KeystrokeListener_addCallback:
- * @listener: the #KeystrokeListener instance to modify.
- * @callback: an #KeystrokeListenerCB function pointer.
- *
- * Add an in-process callback function to an existing #KeystrokeListener.
- *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
- **/
-boolean
-KeystrokeListener_addCallback (KeystrokeListener *listener,
- KeystrokeListenerCB callback);
+SPIBoolean
+AccessibleEditableText_deleteText (AccessibleEditableText *obj,
+ long int startPos,
+ long int endPos);
-/**
- * KeystrokeListener_removeCallback:
- * @listener: the #KeystrokeListener instance to modify.
- * @callback: an #KeystrokeListenerCB function pointer.
- *
- * Remove an in-process callback function from an existing #KeystrokeListener.
- *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
- **/
-boolean
-KeystrokeListener_removeCallback (KeystrokeListener *listener,
- KeystrokeListenerCB callback);
+SPIBoolean
+AccessibleEditableText_pasteText (AccessibleEditableText *obj,
+ long int position);
/*
*
- * Global functions serviced by the registry
+ * AccessibleHyperlink function prototypes
*
*/
-
-/**
- * registerGlobalEventListener:
- * @listener: the #AccessibleEventListener to be registered against an event type.
- * @callback: a character string indicating the type of events for which
- * notification is requested. Format is
- * EventClass:major_type:minor_type:detail
- * where all subfields other than EventClass are optional.
- * EventClasses include "Focus", "Window", "Mouse",
- * and toolkit events (e.g. "Gtk", "AWT").
- * Examples: "focus:", "Gtk:GtkWidget:button_press_event".
- *
- * NOTE: this string may be UTF-8, but should not contain byte value 56 (ascii ':'),
- * except as a delimiter, since non-UTF-8 string delimiting
- * functions are used internally. In general, listening to
- * toolkit-specific events is not recommended.
- *
- * Add an in-process callback function to an existing SpiAccessibleEventListener.
- *
- * Returns: #TRUE if successful, otherwise #FALSE.
- *
- **/
-boolean
-registerGlobalEventListener (SpiAccessibleEventListener *listener,
- char *eventType);
-
-/**
- * getDesktopCount:
- *
- * Get the number of virtual desktops.
- * NOTE: currently multiple virtual desktops are not implemented, this
- * function always returns '1'.
- *
- * Returns: an integer indicating the number of active virtual desktops.
- *
- **/
-int
-getDesktopCount ();
-
-/**
- * getDesktop:
- * @i: an integer indicating which of the accessible desktops is to be returned.
- *
- * Get the virtual desktop indicated by index @i.
- * NOTE: currently multiple virtual desktops are not implemented, this
- * function always returns '1'.
- *
- * Returns: a pointer to the 'i-th' virtual desktop's #Accessible representation.
- *
- **/
-SpiAccessible*
-getDesktop (int n);
-
-/**
- * getDesktopList:
- * @list: a pointer to an array of #Accessible objects.
- *
- * Get the list of virtual desktops. On return, @list will point
- * to a newly-created array of virtual desktop pointers.
- * It is the responsibility of the caller to free this array when
- * it is no longer needed.
- *
- * Not Yet Implemented.
- *
- * Returns: an integer indicating how many virtual desktops have been
- * placed in the list pointed to by parameter @list.
- **/
-int
-getDesktopList (SpiAccessible **list);
-
-/**
- * registerKeystrokeListener:
- * @listener: a pointer to the #KeystrokeListener for which
- * keystroke events are requested.
- *
- * Not Yet Implemented.
- *
- **/
void
-registerKeystrokeListener (KeystrokeListener *listener,
- KeySet *keys,
- KeyMaskType modmask,
- KeyEventMask eventmask,
- KeyListenerSyncType sync_type);
-
-/**
- * generateKeyEvent:
- * @keycode: a #long indicating the keycode of the key event
- * being synthesized.
- * @synth_type: a #KeySynthType indicating whether this should be a
- * KEY_PRESS, KEY_RELEASE, both (KEY_PRESSRELEASE), or
- * a press/release pair for a KEYSYM.
- *
- * Synthesize a keyboard event (as if a hardware keyboard event occurred in the
- * current UI context).
- *
- **/
+AccessibleHyperlink_ref (AccessibleHyperlink *obj);
void
-generateKeyEvent (long keyCode, KeySynthType synth_type);
-
-/**
- * generateMouseEvent:
- * @x: a #long indicating the screen x coordinate of the mouse event.
- * @y: a #long indicating the screen y coordinate of the mouse event.
- * @name: a string indicating which mouse event to be synthesized
- * (e.g. "button1", "button2", "mousemove").
- *
- * Synthesize a mouse event at a specific screen coordinate.
- * Not Yet Implemented.
- *
- **/
-void
-generateMouseEvent (long x, long y, char *name);
-
-/*
- *
- * SpiAccessible function prototypes
- *
- */
-
-/**
- * SpiAccessible_ref:
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Increment the reference count for an #Accessible object.
- *
- * Returns: (no return code implemented yet).
- *
- **/
-int
-SpiAccessible_ref (SpiAccessible *obj);
-
-/**
- * SpiAccessible_unref:
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Decrement the reference count for an #Accessible object.
- *
- * Returns: (no return code implemented yet).
- *
- **/
-int
-SpiAccessible_unref (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getName:
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Get the name of an #Accessible object.
- *
- * Returns: a UTF-8 string indicating the name of the #Accessible object.
- *
- **/
-char *
-SpiAccessible_getName (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getDescription:
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Get the description of an #Accessible object.
- *
- * Returns: a UTF-8 string describing the #Accessible object.
- *
- **/
-char *
-SpiAccessible_getDescription (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getParent:
- * @obj: a pointer to the #Accessible object to query.
- *
- * Get an #Accessible object's parent container.
- *
- * Returns: a pointer to the #Accessible object which contains the given
- * #Accessible instance, or NULL if the @obj has no parent container.
- *
- **/
-SpiAccessible *
-SpiAccessible_getParent (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getChildCount:
- *
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Get the number of children contained by an #Accessible object.
- *
- * Returns: a #long indicating the number of #Accessible children
- * contained by an #Accessible object.
- *
- **/
-long
-SpiAccessible_getChildCount (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getChildAtIndex:
- *
- * @obj: a pointer to the #Accessible object on which to operate.
- * @childIndex: a #long indicating which child is specified.
- *
- * Get the #Accessible child of an #Accessible object at a given index.
- *
- * Returns: a pointer to the #Accessible child object at index
- * @childIndex.
- *
- **/
-SpiAccessible *
-SpiAccessible_getChildAtIndex (SpiAccessible *obj,
- long childIndex);
+AccessibleHyperlink_unref (AccessibleHyperlink *obj);
-/**
- * SpiAccessible_getIndexInParent:
- *
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Get the index of an #Accessible object in its containing #Accessible.
- *
- * Returns: a #long indicating the index of the #Accessible object
- * in its parent (i.e. containing) #Accessible instance,
- * or -1 if @obj has no containing parent.
- *
- **/
long
-SpiAccessible_getIndexInParent (SpiAccessible *obj);
+AccessibleHyperlink_getNAnchors (AccessibleHyperlink *obj);
-/**
- * SpiAccessible_getRelationSet:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleRelation **
-SpiAccessible_getRelationSet (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getRole:
- * @obj: a pointer to the #Accessible object on which to operate.
- *
- * Get the UI role of an #Accessible object.
- *
- * Returns: a UTF-8 string indicating the UI role of the #Accessible object.
- *
- **/
char *
-SpiAccessible_getRole (SpiAccessible *obj);
+AccessibleHyperlink_getURI (AccessibleHyperlink *obj,
+ long int i);
-/**
- * SpiAccessible_getStateSet:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleStateSet *
-SpiAccessible_getStateSet (SpiAccessible *obj);
+Accessible *
+AccessibleHyperlink_getObject (AccessibleHyperlink *obj,
+ long int i);
-/* Interface query methods */
-
-/**
- * SpiAccessible_isAction:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleAction.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleAction interface,
- * #FALSE otherwise.
- **/
-boolean
-SpiAccessible_isAction (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isComponent:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleComponent.
- *
- * Returns: #TRUE if @obj implements the #AccessibleComponent interface,
- * #FALSE otherwise.
- **/
-boolean
-SpiAccessible_isComponent (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isEditableText:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleEditableText.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
- * #FALSE otherwise.
- **/
-boolean
-SpiAccessible_isEditableText (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isHypertext:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleHypertext.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
- * #FALSE otherwise.
- **/
-boolean
-SpiAccessible_isHypertext (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isImage:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleImage.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleImage interface,
- * #FALSE otherwise.
-**/
-boolean
-SpiAccessible_isImage (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isSelection:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleSelection.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleSelection interface,
- * #FALSE otherwise.
-**/
-boolean
-SpiAccessible_isSelection (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isTable:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleTable.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleTable interface,
- * #FALSE otherwise.
-**/
-boolean
-SpiAccessible_isTable (SpiAccessible *obj);
-
-/**
- * SpiAccessible_isText:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Query whether the specified #Accessible implements #AccessibleText.
- * Not Yet Implemented.
- *
- * Returns: #TRUE if @obj implements the #AccessibleText interface,
- * #FALSE otherwise.
-**/
-boolean
-SpiAccessible_isText (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getAction:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleAction *
-SpiAccessible_getAction (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getComponent:
- * @obj: a pointer to the #Accessible instance to query.
- *
- * Get the #AccessibleComponent interface for an #Accessible.
- *
- * Returns: a pointer to an #AccessibleComponent interface instance, or
- * NULL if @obj does not implement #AccessibleComponent.
- **/
-SpiAccessibleComponent *
-SpiAccessible_getComponent (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getEditableText:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleEditableText *
-SpiAccessible_getEditableText (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getHypertext:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleHypertext *
-SpiAccessible_getHypertext (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getImage:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleImage *
-SpiAccessible_getImage (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getSelection:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleSelection *
-SpiAccessible_getSelection (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getTable:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleTable *
-SpiAccessible_getTable (SpiAccessible *obj);
-
-/**
- * SpiAccessible_getText:
- *
- * Not Yet Implemented.
- *
- **/
-SpiAccessibleText *
-SpiAccessible_getText (SpiAccessible *obj);
+void
+AccessibleHyperlink_getIndexRange (AccessibleHyperlink *obj,
+ long int *startIndex,
+ long int *endIndex);
-/**
- * SpiAccessible_queryInterface:
- * @obj: a pointer to the #Accessible instance to query.
- * @interface_name: a UTF-8 character string specifiying the requested interface.
- *
- * Query an #Accessible object to for a named interface.
- *
- * Returns: an instance of the named interface object, if it is implemented
- * by @obj, or NULL otherwise.
- *
- **/
-GenericInterface *
-SpiAccessible_queryInterface (SpiAccessible *obj, char *interface_name);
+SPIBoolean
+AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
/*
*
- * SpiAccessibleAction function prototypes
+ * AccessibleHypertext function prototypes
*
*/
-int
-SpiAccessibleAction_ref (
- SpiAccessibleAction *obj);
+void
+AccessibleHypertext_ref (AccessibleHypertext *obj);
-int
-SpiAccessibleAction_unref (SpiAccessibleAction *obj);
+void
+AccessibleHypertext_unref (AccessibleHypertext *obj);
long
-SpiAccessibleAction_getNActions (SpiAccessibleAction *obj);
-
-/**
- * SpiAccessibleAction_getDescription:
- * @obj: a pointer to the #AccessibleAction to query.
- *
- * Get the description of 'i-th' action invokable on an
- * object implementing #AccessibleAction.
- *
- * Not Yet Implemented.
- *
- * Returns: a UTF-8 string describing the 'i-th' invokable action.
- *
- **/
-char *
-SpiAccessibleAction_getDescription (SpiAccessibleAction *obj,
- long index);
+AccessibleHypertext_getNLinks (AccessibleHypertext *obj);
-boolean
-SpiAccessibleAction_doAction (SpiAccessibleAction *obj,
- long index);
+AccessibleHyperlink *
+AccessibleHypertext_getLink (AccessibleHypertext *obj,
+ long int linkIndex);
-char *
-SpiAccessibleAction_getKeyBinding (SpiAccessibleAction *obj,
- long index);
-
-/*
- *
- * SpiAccessibleApplication function prototypes
- *
- */
-
-/**
- * SpiAccessibleApplication_unref:
- * @obj: a pointer to the #AccessibleApplication on which to operate.
- *
- * Decrement the reference count for an #AccessibleApplication.
- *
- * Returns: (no return code implemented yet).
- *
- **/
-int
-SpiAccessibleApplication_ref (SpiAccessibleApplication *obj);
-
-/**
- * SpiAccessibleApplication_unref:
- * @obj: a pointer to the #AccessibleApplication object on which to operate.
- *
- * Decrement the reference count for an #AccessibleApplication.
- *
- * Returns: (no return code implemented yet).
- *
- **/
-int
-SpiAccessibleApplication_unref (SpiAccessibleApplication *obj);
-
-/**
- * SpiAccessibleApplication_getToolkitName:
- * @obj: a pointer to the #AccessibleApplication to query.
- *
- * Get the name of the UI toolkit used by an #AccessibleApplication.
- *
- * Returns: a UTF-8 string indicating which UI toolkit is
- * used by an application.
- *
- **/
-char *
-SpiAccessibleApplication_getToolkitName (SpiAccessibleApplication *obj);
-
-/**
- * SpiAccessibleApplication_getVersion:
- * @obj: a pointer to the #AccessibleApplication being queried.
- *
- * Get the version of the at-spi bridge exported by an
- * #AccessibleApplication instance.
- *
- * Returns: a UTF-8 string indicating the application's
- * at-spi version.
- *
- **/
-char *
-SpiAccessibleApplication_getVersion (SpiAccessibleApplication *obj);
-
-/**
- * SpiAccessibleApplication_getID:
- * @obj: a pointer to the #AccessibleApplication being queried.
- *
- * Get the unique ID assigned by the SpiRegistry to an
- * #AccessibleApplication instance.
- * (Not Yet Implemented by the registry).
- *
- * Returns: a unique #long integer associated with the application
- * by the SpiRegistry, or 0 if the application is not registered.
- **/
long
-SpiAccessibleApplication_getID (SpiAccessibleApplication *obj);
-
-/**
- * SpiAccessibleApplication_pause:
- *
- * Attempt to pause the application (used when client event queue is
- * over-full).
- * Not Yet Implemented.
- *
- * Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
- *
- **/
-boolean
-SpiAccessibleApplication_pause (SpiAccessibleApplication *obj);
-
-/**
- * SpiAccessibleApplication_pause:
- *
- * Attempt to resume the application (used after #AccessibleApplication_pause).
- * Not Yet Implemented.
- *
- * Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
- *
- **/
-boolean
-SpiAccessibleApplication_resume (SpiAccessibleApplication *obj);
+AccessibleHypertext_getLinkIndex (AccessibleHypertext *obj,
+ long int characterOffset);
/*
*
- * SpiAccessibleComponent function prototypes
+ * AccessibleImage function prototypes
*
*/
-int
-SpiAccessibleComponent_ref (SpiAccessibleComponent *obj);
-
-int
-SpiAccessibleComponent_unref (SpiAccessibleComponent *obj);
-
-boolean
-SpiAccessibleComponent_contains (SpiAccessibleComponent *obj,
- long x,
- long y,
- SpiAccessibleCoordType ctype);
-
-SpiAccessible *
-SpiAccessibleComponent_getAccessibleAtPoint (SpiAccessibleComponent *obj,
- long x,
- long y,
- SpiAccessibleCoordType ctype);
-
-/**
- * SpiAccessibleComponent_getExtents:
- * @obj: a pointer to the #AccessibleComponent to query.
- * @x: a pointer to a #long into which the minimum x coordinate will be returned.
- * @y: a pointer to a #long into which the minimum y coordinate will be returned.
- * @width: a pointer to a #long into which the x extents (width) will be returned.
- * @height: a pointer to a #long into which the y extents (height) will be returned.
- * @ctype: the desired coordinate system into which to return the results,
- * (e.g. COORD_TYPE_WINDOW, COORD_TYPE_SCREEN).
- *
- * Get the bounding box of the specified #AccessibleComponent.
- *
- **/
-void
-SpiAccessibleComponent_getExtents (SpiAccessibleComponent *obj,
- long *x,
- long *y,
- long *width,
- long *height,
- SpiAccessibleCoordType ctype);
-
-void
-SpiAccessibleComponent_getPosition (SpiAccessibleComponent *obj,
- long *x,
- long *y,
- SpiAccessibleCoordType ctype);
-
void
-SpiAccessibleComponent_getSize (SpiAccessibleComponent *obj,
- long *width,
- long *height);
+AccessibleImage_ref (AccessibleImage *obj);
void
-SpiAccessibleComponent_grabFocus (SpiAccessibleComponent *obj);
+AccessibleImage_unref (AccessibleImage *obj);
-/*
- *
- * SpiAccessibleEditableText function prototypes
- *
- */
-
-int
-SpiAccessibleEditableText_ref (SpiAccessibleEditableText *obj);
-
-int
-SpiAccessibleEditableText_unref (SpiAccessibleEditableText *obj);
-
-boolean
-SpiAccessibleEditableText_setRunAttributes (SpiAccessibleEditableText *obj,
- const char *attributes,
- long startPos, long endPos);
-
-void
-SpiAccessibleEditableText_setTextContents (SpiAccessibleEditableText *obj,
- const char *newContents);
-
-void
-SpiAccessibleEditableText_insertText (SpiAccessibleEditableText *obj,
- long position,
- char *text,
- long length);
-
-void
-SpiAccessibleEditableText_copyText (SpiAccessibleText *obj,
- long startPos,
- long endPos);
+char *
+AccessibleImage_getImageDescription (AccessibleImage *obj);
void
-SpiAccessibleEditableText_cutText (SpiAccessibleEditableText *obj,
- long startPos,
- long endPos);
+AccessibleImage_getImageSize (AccessibleImage *obj,
+ long int *width,
+ long int *height);
void
-SpiAccessibleEditableText_deleteText (SpiAccessibleEditableText *obj,
- long startPos,
- long endPos);
+AccessibleImage_getImagePosition (AccessibleImage *obj,
+ long int *x,
+ long int *y,
+ AccessibleCoordType ctype);
void
-SpiAccessibleEditableText_pasteText (SpiAccessibleEditableText *obj,
- long position);
-
+AccessibleImage_getImageExtents (AccessibleImage *obj,
+ long int *x,
+ long int *y,
+ long int *width,
+ long int *height,
+ AccessibleCoordType ctype);
/*
*
- * SpiAccessibleHyperlink function prototypes
+ * AccessibleRelation function prototypes
*
*/
-int
-SpiAccessibleHyperlink_ref (SpiAccessibleHyperlink *obj);
-
-int
-SpiAccessibleHyperlink_unref (SpiAccessibleHyperlink *obj);
-
-long
-SpiAccessibleHyperlink_getNAnchors (SpiAccessibleHyperlink *obj);
-
-char *
-SpiAccessibleHyperlink_getURI (SpiAccessibleHyperlink *obj,
- long i);
-
-SpiAccessible
-SpiAccessibleHyperlink_getObject (SpiAccessibleHyperlink *obj,
- long i);
-
-void
-SpiAccessibleHyperlink_getIndexRange (SpiAccessibleHyperlink *obj,
- long *startIndex,
- long *endIndex);
-
-boolean
-SpiAccessibleHyperlink_isValid (SpiAccessibleHyperlink *obj);
+void AccessibleRelation_ref (AccessibleRelation *obj);
+void AccessibleRelation_unref (AccessibleRelation *obj);
-/*
- *
- * SpiAccessibleHypertext function prototypes
- *
- */
-
-int
-SpiAccessibleHypertext_ref (SpiAccessibleHypertext *obj);
+AccessibleRelationType
+AccessibleRelation_getRelationType (AccessibleRelation *obj);
int
-SpiAccessibleHypertext_unref (SpiAccessibleHypertext *obj);
+AccessibleRelation_getNTargets (AccessibleRelation *obj);
-long
-SpiAccessibleHypertext_getNLinks (SpiAccessibleHypertext *obj);
-
-SpiAccessibleHyperlink *
-SpiAccessibleHyperText_getLink (SpiAccessibleHypertext *obj,
- long linkIndex);
+Accessible *
+AccessibleRelation_getTarget (AccessibleRelation *obj, int i);
-long
-SpiAccessibleHypertext_getLinkIndex (SpiAccessibleHypertext *obj,
- long characterIndex);
/*
*
- * SpiAccessibleImage function prototypes
+ * AccessibleSelection function prototypes
*
*/
-int
-SpiAccessibleImage_ref (SpiAccessibleImage *obj);
-
-int
-SpiAccessibleImage_unref (SpiAccessibleImage *obj);
-
-char *
-SpiAccessibleImage_getImageDescription (SpiAccessibleImage *obj);
+void AccessibleSelection_ref (AccessibleSelection *obj);
+void AccessibleSelection_unref (AccessibleSelection *obj);
-void
-SpiAccessibleImage_getImageSize (SpiAccessibleImage *obj,
- long *width,
- long *height);
+long
+AccessibleSelection_getNSelectedChildren (AccessibleSelection *obj);
-void
-SpiAccessibleImage_getImagePosition (SpiAccessibleImage *obj,
- long *x,
- long *y,
- SpiAccessibleCoordType ctype);
+Accessible *
+AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
+ long int selectedChildIndex);
-/*
- *
- * SpiAccessibleRelation function prototypes
- *
- */
+SPIBoolean
+AccessibleSelection_selectChild (AccessibleSelection *obj,
+ long int childIndex);
-int
-SpiAccessibleRelation_ref (SpiAccessibleRelation *obj);
-
-int
-SpiAccessibleRelation_unref (SpiAccessibleRelation *obj);
+SPIBoolean
+AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
+ long int selectedChildIndex);
-RELATION_TYPE
-SpiAccessibleRelation_getRelationType (SpiAccessibleRelation *obj);
+SPIBoolean
+AccessibleSelection_isChildSelected (AccessibleSelection *obj,
+ long int childIndex);
-SpiAccessible *
-SpiAccessibleRelation_getTarget (SpiAccessibleRelation *obj);
+SPIBoolean
+AccessibleSelection_selectAll (AccessibleSelection *obj);
+SPIBoolean
+AccessibleSelection_clearSelection (AccessibleSelection *obj);
/*
*
- * SpiAccessibleSelection function prototypes
+ * AccessibleStateSet function prototypes
*
*/
-int
-SpiAccessibleSelection_ref (SpiAccessibleSelection *obj);
+void AccessibleStateSet_ref (AccessibleStateSet *obj);
+void AccessibleStateSet_unref (AccessibleStateSet *obj);
-int
-SpiAccessibleSelection_unref (SpiAccessibleSelection *obj);
-
-long
-SpiAccessibleSelection_getNSelectedChildren (SpiAccessibleSelection *obj);
-
-SpiAccessible *
-SpiAccessibleSelection_getSelectedChild (SpiAccessibleSelection *obj,
- long selectedChildIndex);
-
-boolean
-SpiAccessibleSelection_selectChild (SpiAccessibleSelection *obj,
- long childIndex);
-
-boolean
-SpiAccessibleSelection_deselectSelectedChild (SpiAccessibleSelection *obj,
- long selectedChildIndex);
-
-boolean
-SpiAccessibleSelection_isChildSelected (SpiAccessibleSelection *obj,
- long childIndex);
+SPIBoolean
+AccessibleStateSet_contains (AccessibleStateSet *obj,
+ AccessibleState state);
void
-SpiAccessibleSelection_selectAll (SpiAccessibleSelection *obj);
+AccessibleStateSet_add (AccessibleStateSet *obj,
+ AccessibleState state);
void
-SpiAccessibleSelection_clearSelection (SpiAccessibleSelection *obj);
-
-
-/*
- *
- * SpiAccessibleStateSet function prototypes
- *
- */
+AccessibleStateSet_remove (AccessibleStateSet *obj,
+ AccessibleState state);
-int
-SpiAccessibleStateSet_ref (SpiAccessibleStateSet *obj);
+SPIBoolean
+AccessibleStateSet_equals (AccessibleStateSet *obj,
+ AccessibleStateSet *obj2);
-int
-SpiAccessibleStateSet_unref (SpiAccessibleStateSet *obj);
+AccessibleStateSet *
+AccessibleStateSet_compare (AccessibleStateSet *obj,
+ AccessibleStateSet *obj2);
-boolean
-SpiAccessibleStateSet_contains (SpiAccessibleStateSet *obj,
- SPI_ACCESSIBLE_STATE state);
+SPIBoolean
+AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
void
-SpiAccessibleStateSet_add (SpiAccessibleStateSet *obj,
- SPI_ACCESSIBLE_STATE state);
-
+AccessibleStreamableContent_ref (AccessibleStreamableContent *obj);
void
-SpiAccessibleStateSet_remove (SpiAccessibleStateSet *obj,
- SPI_ACCESSIBLE_STATE state);
-
-boolean
-SpiAccessibleStateSet_equals (SpiAccessibleStateSet *obj,
- SpiAccessibleStateSet *obj2);
-
-void
-SpiAccessibleStateSet_compare (SpiAccessibleStateSet *obj,
- SpiAccessibleStateSet *obj2,
- SpiAccessibleStateSet **differenceSet);
-
-boolean
-SpiAccessibleStateSet_isEmpty (SpiAccessibleStateSet *obj);
-
-
+AccessibleStreamableContent_unref (AccessibleStreamableContent *obj);
+char **
+AccessibleStreamableContent_getContentTypes (AccessibleStreamableContent *obj);
+SPIBoolean
+AccessibleStreamableContent_open (AccessibleStreamableContent *obj,
+ const char *content_type);
+SPIBoolean
+AccessibleStreamableContent_seek (AccessibleStreamableContent *obj,
+ long int offset,
+ unsigned int seek_type);
+SPIBoolean
+AccessibleStreamableContent_read (AccessibleStreamableContent *obj,
+ void *buff,
+ long int nbytes,
+ unsigned int read_type);
/*
*
- * SpiAccessibleTable function prototypes
+ * AccessibleTable function prototypes
*
*/
-int
-SpiAccessibleTable_ref (SpiAccessibleTable *obj);
-
-int
-SpiAccessibleTable_unref (SpiAccessibleTable *obj);
+void AccessibleTable_ref (AccessibleTable *obj);
+void AccessibleTable_unref (AccessibleTable *obj);
-SpiAccessible *
-SpiAccessibleTable_getCaption (SpiAccessibleTable *obj);
+Accessible *
+AccessibleTable_getCaption (AccessibleTable *obj);
-SpiAccessible *
-SpiAccessibleTable_getSummary (SpiAccessibleTable *obj);
+Accessible *
+AccessibleTable_getSummary (AccessibleTable *obj);
long
-SpiAccessibleTable_getNRows (SpiAccessibleTable *obj);
+AccessibleTable_getNRows (AccessibleTable *obj);
long
-SpiAccessibleTable_getNColumns (SpiAccessibleTable *obj);
+AccessibleTable_getNColumns (AccessibleTable *obj);
-SpiAccessible *
-SpiAccessibleTable_refAt (SpiAccessibleTable *obj,
- long row,
- long column);
+Accessible *
+AccessibleTable_getAccessibleAt (AccessibleTable *obj,
+ long int row,
+ long int column);
long
-SpiAccessibleTable_getIndexAt (SpiAccessibleTable *obj,
- long row,
- long column);
+AccessibleTable_getIndexAt (AccessibleTable *obj,
+ long int row,
+ long int column);
long
-SpiAccessibleTable_getRowAtIndex (SpiAccessibleTable *obj,
- long index);
+AccessibleTable_getRowAtIndex (AccessibleTable *obj,
+ long int index);
long
-SpiAccessibleTable_getColumnAtIndex (SpiAccessibleTable *obj,
- long index);
+AccessibleTable_getColumnAtIndex (AccessibleTable *obj,
+ long int index);
char *
-SpiAccessibleTable_getRowDescription (SpiAccessibleTable *obj,
- long row);
+AccessibleTable_getRowDescription (AccessibleTable *obj,
+ long int row);
char *
-SpiAccessibleTable_getColumnDescription (SpiAccessibleTable *obj,
- long column);
+AccessibleTable_getColumnDescription (AccessibleTable *obj,
+ long int column);
long
-SpiAccessibleTable_getRowExtentAt (SpiAccessibleTable *obj,
- long row,
- long column);
+AccessibleTable_getRowExtentAt (AccessibleTable *obj,
+ long int row,
+ long int column);
long
-SpiAccessibleTable_getColumnExtentAt (SpiAccessibleTable *obj,
- long row,
- long column);
+AccessibleTable_getColumnExtentAt (AccessibleTable *obj,
+ long int row,
+ long int column);
-SpiAccessible *
-SpiAccessibleTable_getRowHeader (SpiAccessibleTable *obj,
- long row);
+Accessible *
+AccessibleTable_getRowHeader (AccessibleTable *obj,
+ long int row);
-SpiAccessible *
-SpiAccessibleTable_getColumnHeader (SpiAccessibleTable *obj,
- long column);
+Accessible *
+AccessibleTable_getColumnHeader (AccessibleTable *obj,
+ long int column);
long
-SpiAccessibleTable_getNSelectedRows (SpiAccessibleTable *obj);
+AccessibleTable_getNSelectedRows (AccessibleTable *obj);
long
-SpiAccessibleTable_getSelectedRows (SpiAccessibleTable *obj,
- long **selectedRows);
+AccessibleTable_getSelectedRows (AccessibleTable *obj,
+ long int **selectedRows);
long
-SpiAccessibleTable_getNSelectedColumns (SpiAccessibleTable *obj);
+AccessibleTable_getNSelectedColumns (AccessibleTable *obj);
long
-SpiAccessibleTable_getSelectedColumns (SpiAccessibleTable *obj,
- long **selectedColumns);
+AccessibleTable_getSelectedColumns (AccessibleTable *obj,
+ long int **selectedColumns);
-boolean
-SpiAccessibleTable_isRowSelected (SpiAccessibleTable *obj,
- long row);
+SPIBoolean
+AccessibleTable_isRowSelected (AccessibleTable *obj,
+ long int row);
-boolean
-SpiAccessibleTable_isColumnSelected (SpiAccessibleTable *obj,
- long column);
+SPIBoolean
+AccessibleTable_isColumnSelected (AccessibleTable *obj,
+ long int column);
-boolean
-SpiAccessibleTable_isSelected (SpiAccessibleTable *obj,
- long row,
- long column);
+SPIBoolean
+AccessibleTable_isSelected (AccessibleTable *obj,
+ long int row,
+ long int column);
/*
*
- * SpiAccessibleText function prototypes
+ * AccessibleText function prototypes
*
*/
-int
-SpiAccessibleText_ref (SpiAccessibleText *obj);
-
-int
-SpiAccessibleText_unref (SpiAccessibleText *obj);
+void AccessibleText_ref (AccessibleText *obj);
+void AccessibleText_unref (AccessibleText *obj);
long
-SpiAccessibleText_getCharacterCount (SpiAccessibleText *obj);
+AccessibleText_getCharacterCount (AccessibleText *obj);
char *
-SpiAccessibleText_getText (SpiAccessibleText *obj,
- long startOffset,
- long endOffset);
+AccessibleText_getText (AccessibleText *obj,
+ long int startOffset,
+ long int endOffset);
long
-SpiAccessibleText_getCaretOffset (SpiAccessibleText *obj);
+AccessibleText_getCaretOffset (AccessibleText *obj);
char *
-SpiAccessibleText_getAttributes (SpiAccessibleText *obj,
- long offset,
- long *startOffset,
- long *endOfset);
+AccessibleText_getAttributes (AccessibleText *obj,
+ long int offset,
+ long int *startOffset,
+ long int *endOffset);
-boolean
-SpiAccessibleText_setCaretOffset (SpiAccessibleText *obj,
- long newOffset);
+SPIBoolean
+AccessibleText_setCaretOffset (AccessibleText *obj,
+ long int newOffset);
char *
-SpiAccessibleText_getTextBeforeOffset (SpiAccessibleText *obj,
- long offset,
- SPI_TEXT_BOUNDARY_TYPE type,
- long *startOffset, long *endOffset);
+AccessibleText_getTextBeforeOffset (AccessibleText *obj,
+ long int offset,
+ AccessibleTextBoundaryType type,
+ long int *startOffset,
+ long int *endOffset);
char *
-SpiAccessibleText_getTextAtOffset (SpiAccessibleText *obj,
- long offset,
- SPI_TEXT_BOUNDARY_TYPE type,
- long *startOffset, long *endOffset);
+AccessibleText_getTextAtOffset (AccessibleText *obj,
+ long int offset,
+ AccessibleTextBoundaryType type,
+ long int *startOffset,
+ long int *endOffset);
char *
-SpiAccessibleText_getTextAfterOffset (SpiAccessibleText *obj,
- long offset,
- SPI_TEXT_BOUNDARY_TYPE type,
- long *startOffset, long *endOffset);
+AccessibleText_getTextAfterOffset (AccessibleText *obj,
+ long int offset,
+ AccessibleTextBoundaryType type,
+ long int *startOffset,
+ long int *endOffset);
+
unsigned long
-SpiAccessibleText_getCharacterAtOffset (SpiAccessibleText *obj,
- long offset);
+AccessibleText_getCharacterAtOffset (AccessibleText *obj,
+ long int offset);
void
-SpiAccessibleText_getCharacterExtents (SpiAccessibleText *obj,
- long offset,
- long *x,
- long *y,
- long *width,
- long *height, SpiAccessibleCoordType type);
+AccessibleText_getCharacterExtents (AccessibleText *obj,
+ long int offset,
+ long int *x,
+ long int *y,
+ long int *width,
+ long int *height,
+ AccessibleCoordType type);
long
-SpiAccessibleText_getOffsetAtPoint (SpiAccessibleText *obj,
- long x,
- long y, SpiAccessibleCoordType type);
+AccessibleText_getOffsetAtPoint (AccessibleText *obj,
+ long int x,
+ long int y,
+ AccessibleCoordType type);
long
-SpiAccessibleText_getNSelections (SpiAccessibleText *obj);
-
-void
-SpiAccessibleText_getSelection (SpiAccessibleText *obj,
- long selectionNum, long *startOffset,
- long *endOffset);
-
-
-boolean
-SpiAccessibleText_addSelection (SpiAccessibleText *obj,
- long startOffset, long endOffset);
-
-boolean
-SpiAccessibleText_removeSelection (SpiAccessibleText *obj,
- long selectionNum);
-
-boolean
-SpiAccessibleText_setSelection (SpiAccessibleText *obj,
- long selectionNum,
- long startOffset,
- long endOffset);
-
-/*
- *
- * SpiAccessibleValue Function Prototypes:
- *
- */
-
-float
-SpiAccessibleValue_getMinimumValue (SpiAccessibleValue *value);
-
-float
-SpiAccessibleValue_getCurrentValue (SpiAccessibleValue *value);
-
-float
-SpiAccessibleValue_getMaximumValue (SpiAccessibleValue *value);
-
-boolean
-SpiAccessibleValue_setCurrentValue (SpiAccessibleValue *value,
- float newValue);
+AccessibleText_getNSelections (AccessibleText *obj);
void
-spi_freeString (char *s);
+AccessibleText_getSelection (AccessibleText *obj,
+ long int selectionNum,
+ long int *startOffset,
+ long int *endOffset);
+
+
+SPIBoolean
+AccessibleText_addSelection (AccessibleText *obj,
+ long int startOffset,
+ long int endOffset);
+
+SPIBoolean
+AccessibleText_removeSelection (AccessibleText *obj,
+ long int selectionNum);
+
+SPIBoolean
+AccessibleText_setSelection (AccessibleText *obj,
+ long int selectionNum,
+ long int startOffset,
+ long int endOffset);
+
+/* AccessibleValue Function Prototypes: */
+
+void AccessibleValue_ref (AccessibleValue *obj);
+void AccessibleValue_unref (AccessibleValue *obj);
+double AccessibleValue_getMinimumValue (AccessibleValue *obj);
+double AccessibleValue_getCurrentValue (AccessibleValue *obj);
+double AccessibleValue_getMaximumValue (AccessibleValue *obj);
+SPIBoolean AccessibleValue_setCurrentValue (AccessibleValue *obj,
+ double newValue);
+
+/* Misc methods */
+void SPI_freeString (char *s);
+
+#ifdef __cplusplus
+}
+#endif
#endif