typedef struct _CSpiEventListener AccessibleEventListener;
typedef struct _CSpiKeystrokeListener AccessibleKeystrokeListener;
-typedef unsigned int boolean;
+typedef unsigned int SPIBoolean;
#endif
SPI_KEY_RELEASED = 1<<1
} AccessibleKeyEventType;
+
typedef struct {
long keyID;
short keycode;
* usage: signatures should be
* void (*AccessibleEventListenerCB) (AccessibleEvent *event);
*
- * boolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
+ * SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystrokeEvent *Event);
*/
typedef void (*AccessibleEventListenerCB) (AccessibleEvent *event);
-typedef boolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystroke *stroke);
+typedef SPIBoolean (*AccessibleKeystrokeListenerCB) (AccessibleKeystroke *stroke);
G_END_DECLS
#define CSPI_OBJREF(a) (((Accessible *)(a))->objref)
CORBA_Environment *cspi_ev (void);
-boolean cspi_exception (void);
+SPIBoolean cspi_exception (void);
Accessibility_Registry cspi_registry (void);
Accessible *cspi_object_add (CORBA_Object corba_object);
void cspi_object_ref (Accessible *accessible);
void cspi_object_unref (Accessible *accessible);
-boolean cspi_warn_ev (CORBA_Environment *ev,
+SPIBoolean cspi_warn_ev (CORBA_Environment *ev,
const char *error_string);
void cspi_check_ev (CORBA_Environment *ev,
const char *error_string);
CORBA_free (s);
}
-boolean
+SPIBoolean
cspi_warn_ev (CORBA_Environment *ev, const char *error_string)
{
if (ev->_major != CORBA_NO_EXCEPTION)
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:
/**
* SPI_event_main:
- * @isGNOMEApp: a #boolean indicating whether the client of the SPI
+ * @isGNOMEApp: a #SPIBoolean 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.
*
**/
void
-SPI_event_main (boolean isGNOMEApp);
+SPI_event_main (SPIBoolean isGNOMEApp);
/**
* SPI_event_is_ready:
* Returns: #TRUE if an event is waiting, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
SPI_eventIsReady ();
/**
*
**/
AccessibleEvent *
-SPI_nextEvent (boolean waitForEvent);
+SPI_nextEvent (SPIBoolean waitForEvent);
/**
* SPI_exit:
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEventListener_addCallback (AccessibleEventListener *listener,
AccessibleEventListenerCB callback);
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
AccessibleEventListenerCB callback);
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
AccessibleKeystrokeListenerCB callback);
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
AccessibleKeystrokeListenerCB callback);
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
registerGlobalEventListener (AccessibleEventListener *listener,
char *eventType);
-boolean
+SPIBoolean
deregisterGlobalEventListener (AccessibleEventListener *listener,
char *eventType);
-boolean
+SPIBoolean
deregisterGlobalEventListenerAll (AccessibleEventListener *listener);
* Returns: #TRUE if @obj implements the #AccessibleAction interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isAction (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleComponent interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isComponent (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isEditableText (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isHypertext (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleImage interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isImage (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleSelection interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isSelection (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleTable interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isTable (Accessible *obj);
/**
* Returns: #TRUE if @obj implements the #AccessibleText interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isText (Accessible *obj);
AccessibleAction *
AccessibleAction_getDescription (AccessibleAction *obj,
long int i);
-boolean
+SPIBoolean
AccessibleAction_doAction (AccessibleAction *obj,
long int i);
* Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleApplication_pause (AccessibleApplication *obj);
/**
* Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleApplication_resume (AccessibleApplication *obj);
/*
int
AccessibleComponent_unref (AccessibleComponent *obj);
-boolean
+SPIBoolean
AccessibleComponent_contains (AccessibleComponent *obj,
long int x,
long int y,
long int *width,
long int *height);
+/**
+ * AccessibleComponent_getLayer:
+ * @obj: a pointer to the #AccessibleComponent to query.
+ *
+ * Query which layer the component is painted into, to help determine its
+ * visibility in terms of stacking order.
+ *
+ * Returns: the #AccessibleComponentLayer into which this component is painted.
+ **/
+AccessibleComponentLayer
+AccessibleComponent_getLayer (AccessibleComponent *obj);
+
+/**
+ * AccessibleComponent_getMDIZOrder:
+ * @obj: a pointer to the #AccessibleComponent to query.
+ *
+ * Query the z stacking order of a component which is in the MDI layer.
+ *
+ * Returns: a short integer indicating the stacking order of the component
+ * in the MDI layer, or -1 if the component is not in the MDI layer.
+ **/
+short
+AccessibleComponent_getMDIZOrder (AccessibleComponent *obj);
+
void
AccessibleComponent_grabFocus (AccessibleComponent *obj);
int
AccessibleEditableText_unref (AccessibleEditableText *obj);
-boolean
+SPIBoolean
AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
const char *attributes,
long int startOffset,
long int endOffset);
-boolean
+SPIBoolean
AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
const char *newContents);
-boolean
+SPIBoolean
AccessibleEditableText_insertText (AccessibleEditableText *obj,
long int position,
char *text,
long int length);
-boolean
+SPIBoolean
AccessibleEditableText_copyText (AccessibleText *obj,
long int startPos,
long int endPos);
-boolean
+SPIBoolean
AccessibleEditableText_cutText (AccessibleEditableText *obj,
long int startPos,
long int endPos);
-boolean
+SPIBoolean
AccessibleEditableText_deleteText (AccessibleEditableText *obj,
long int startPos,
long int endPos);
-boolean
+SPIBoolean
AccessibleEditableText_pasteText (AccessibleEditableText *obj,
long int position);
long int *startIndex,
long int *endIndex);
-boolean
+SPIBoolean
AccessibleHyperlink_isValid (AccessibleHyperlink *obj);
/*
AccessibleSelection_getSelectedChild (AccessibleSelection *obj,
long int selectedChildIndex);
-boolean
+SPIBoolean
AccessibleSelection_selectChild (AccessibleSelection *obj,
long int childIndex);
-boolean
+SPIBoolean
AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
long int selectedChildIndex);
-boolean
+SPIBoolean
AccessibleSelection_isChildSelected (AccessibleSelection *obj,
long int childIndex);
-boolean
+SPIBoolean
AccessibleSelection_selectAll (AccessibleSelection *obj);
void
int
AccessibleStateSet_unref (AccessibleStateSet *obj);
-boolean
+SPIBoolean
AccessibleStateSet_contains (AccessibleStateSet *obj,
AccessibleState state);
AccessibleStateSet_remove (AccessibleStateSet *obj,
AccessibleState state);
-boolean
+SPIBoolean
AccessibleStateSet_equals (AccessibleStateSet *obj,
AccessibleStateSet *obj2);
AccessibleStateSet *obj2,
AccessibleStateSet **differenceSet);
-boolean
+SPIBoolean
AccessibleStateSet_isEmpty (AccessibleStateSet *obj);
AccessibleTable_getSelectedColumns (AccessibleTable *obj,
long int **selectedColumns);
-boolean
+SPIBoolean
AccessibleTable_isRowSelected (AccessibleTable *obj,
long int row);
-boolean
+SPIBoolean
AccessibleTable_isColumnSelected (AccessibleTable *obj,
long int column);
-boolean
+SPIBoolean
AccessibleTable_isSelected (AccessibleTable *obj,
long int row,
long int column);
long int *endOffset);
-boolean
+SPIBoolean
AccessibleText_setCaretOffset (AccessibleText *obj,
long int newOffset);
long int *endOffset);
-boolean
+SPIBoolean
AccessibleText_addSelection (AccessibleText *obj,
long int startOffset,
long int endOffset);
-boolean
+SPIBoolean
AccessibleText_removeSelection (AccessibleText *obj,
long int selectionNum);
-boolean
+SPIBoolean
AccessibleText_setSelection (AccessibleText *obj,
long int selectionNum,
long int startOffset,
float
AccessibleValue_getMaximumValue (AccessibleValue *obj);
-boolean
+SPIBoolean
AccessibleValue_setCurrentValue (AccessibleValue *obj,
float newValue);
char*
AccessibleRole_getName (AccessibleRole role)
{
+ /*
+ * TODO: replace with implementation linked to ATK, which
+ * now supports Role/Name mapping
+ */
+
if (role < MAX_ROLES) return role_names [(int) role];
else return "";
}
-
-
/**
* Accessible_ref:
* @obj: a pointer to the #Accessible object on which to operate.
return 0;
}
-
/**
* Accessible_unref:
* @obj: a pointer to the #Accessible object on which to operate.
/* Interface query methods */
-static boolean
+static SPIBoolean
cspi_accessible_is_a (Accessible *obj,
const char *interface_name)
{
- boolean retval;
+ SPIBoolean retval;
Bonobo_Unknown unknown;
unknown = Bonobo_Unknown_queryInterface (CSPI_OBJREF (obj),
* Returns: #TRUE if @obj implements the #AccessibleAction interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isAction (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleComponent interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isComponent (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleEditableText interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isEditableText (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleHypertext interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isHypertext (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleImage interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isImage (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleSelection interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isSelection (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleTable interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isTable (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleText interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isText (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* Returns: #TRUE if @obj implements the #AccessibleValue interface,
* #FALSE otherwise.
**/
-boolean
+SPIBoolean
Accessible_isValue (Accessible *obj)
{
return cspi_accessible_is_a (obj,
* otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleStateSet_contains (AccessibleStateSet *obj,
AccessibleState state)
{
CORBA_boolean retval = Accessibility_StateSet_contains (CSPI_OBJREF (obj), state, cspi_ev ());
cspi_check_ev (cspi_ev (), "contains");
- return (boolean) retval;
+ return (SPIBoolean) retval;
}
/**
* otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleStateSet_equals (AccessibleStateSet *obj,
AccessibleStateSet *obj2)
{
* otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleStateSet_isEmpty (AccessibleStateSet *obj)
{
return TRUE;
* Returns: #TRUE if the action is successfully invoked, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleAction_doAction (AccessibleAction *obj,
long int i)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Action_doAction (CSPI_OBJREF (obj),
(CORBA_long) i,
cspi_ev ());
* Returns: #TRUE if the application was paused successfully, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleApplication_pause (AccessibleApplication *obj)
{
return FALSE;
* Returns: #TRUE if application processing resumed successfully, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleApplication_resume (AccessibleApplication *obj)
{
return FALSE;
* Returns: a #TRUE if the specified component contains the point (@x, @y),
* otherwise #FALSE.
**/
-boolean
+SPIBoolean
AccessibleComponent_contains (AccessibleComponent *obj,
long int x,
long int y,
}
/**
+ * AccessibleComponent_getLayer:
+ * @obj: a pointer to the #AccessibleComponent to query.
+ *
+ * Query which layer the component is painted into, to help determine its
+ * visibility in terms of stacking order.
+ *
+ * Returns: the #AccessibleComponentLayer into which this component is painted.
+ **/
+AccessibleComponentLayer
+AccessibleComponent_getLayer (AccessibleComponent *obj)
+{
+ Accessibility_ComponentLayer zlayer;
+ AccessibleComponentLayer retval;
+
+ zlayer = Accessibility_Component_getLayer (CSPI_OBJREF (obj),
+ cspi_ev ());
+ switch (retval)
+ {
+ case Accessibility_LAYER_BACKGROUND:
+ retval = SPI_LAYER_BACKGROUND;
+ break;
+ case Accessibility_LAYER_CANVAS:
+ retval = SPI_LAYER_CANVAS;
+ break;
+ case Accessibility_LAYER_WIDGET:
+ retval = SPI_LAYER_WIDGET;
+ break;
+ case Accessibility_LAYER_MDI:
+ retval = SPI_LAYER_MDI;
+ break;
+ case Accessibility_LAYER_POPUP:
+ retval = SPI_LAYER_POPUP;
+ break;
+ case Accessibility_LAYER_OVERLAY:
+ retval = SPI_LAYER_OVERLAY;
+ break;
+ default:
+ retval = SPI_LAYER_INVALID;
+ }
+ return retval;
+}
+
+/**
+ * AccessibleComponent_getMDIZOrder:
+ * @obj: a pointer to the #AccessibleComponent to query.
+ *
+ * Query the z stacking order of a component which is in the MDI layer.
+ * (Bigger z-order numbers mean nearer the top)
+ *
+ * Returns: a short integer indicating the stacking order of the component
+ * in the MDI layer, or -1 if the component is not in the MDI layer.
+ **/
+short
+AccessibleComponent_getMDIZOrder (AccessibleComponent *obj)
+{
+ return (short) Accessibility_Component_getMDIZOrder (CSPI_OBJREF (obj),
+ cspi_ev ());
+}
+
+/**
* AccessibleComponent_grabFocus:
* @obj: a pointer to the #AccessibleComponent on which to operate.
*
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_setAttributes (AccessibleEditableText *obj,
const char *attributes,
long int startPos,
long int endPos)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_EditableText_setAttributes (CSPI_OBJREF (obj),
(CORBA_char *) attributes,
(CORBA_long) startPos,
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_setTextContents (AccessibleEditableText *obj,
const char *newContents)
{
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_insertText (AccessibleEditableText *obj,
long int position,
char *text,
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_copyText (AccessibleText *obj,
long int startPos,
long int endPos)
* Returns: #TRUE if operation was successful, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_cutText (AccessibleEditableText *obj,
long int startPos,
long int endPos)
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_deleteText (AccessibleEditableText *obj,
long startPos,
long endPos)
* Returns: #TRUE if the operation was successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEditableText_pasteText (AccessibleEditableText *obj,
long int position)
{
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEventListener_addCallback (AccessibleEventListener *listener,
AccessibleEventListenerCB callback)
{
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleEventListener_removeCallback (AccessibleEventListener *listener,
AccessibleEventListenerCB callback)
{
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleKeystrokeListener_addCallback (AccessibleKeystrokeListener *listener,
AccessibleKeystrokeListenerCB callback)
{
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
AccessibleKeystrokeListener_removeCallback (AccessibleKeystrokeListener *listener,
AccessibleKeystrokeListenerCB callback)
{
* to its originating #AccessibleHypertext object, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleHyperlink_isValid (AccessibleHyperlink *obj)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Hyperlink_isValid (CSPI_OBJREF (obj), cspi_ev ());
}
static CORBA_Environment ev = { 0 };
static Accessibility_Registry registry = CORBA_OBJECT_NIL;
-static boolean is_gnome_app = FALSE;
+static SPIBoolean is_gnome_app = FALSE;
static GSList *live_refs = NULL;
CORBA_Environment *
return registry;
}
-boolean
+SPIBoolean
cspi_is_gnome_app (void)
{
return is_gnome_app;
}
-boolean
+SPIBoolean
cspi_exception (void)
{
- boolean retval;
+ SPIBoolean retval;
if (BONOBO_EX (&ev))
{
/**
* SPI_event_main:
- * @isGNOMEApp: a #boolean indicating whether the client of the SPI
+ * @isGNOMEApp: a #SPIBoolean indicating whether the client of the SPI
* will use the Gnome event loop or not. Clients that have
* their own GUIS will usually specify #TRUE here, and must
* do so if they use Gnome GUI components.
*
**/
void
-SPI_event_main (boolean isGNOMEApp)
+SPI_event_main (SPIBoolean isGNOMEApp)
{
is_gnome_app = isGNOMEApp;
if (isGNOMEApp)
* Returns: #TRUE if an event is waiting, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
SPI_eventIsReady ()
{
return FALSE;
/**
* SPI_nextEvent:
- * @waitForEvent: a #boolean indicating whether to block or not.
+ * @waitForEvent: a #SPIBoolean indicating whether to block or not.
*
* Gets the next event in the SPI event queue; blocks if no event
* is pending and @waitForEvent is #TRUE.
* Returns: the next #AccessibleEvent in the SPI event queue.
**/
AccessibleEvent *
-SPI_nextEvent (boolean waitForEvent)
+SPI_nextEvent (SPIBoolean waitForEvent)
{
return NULL;
}
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
registerGlobalEventListener (AccessibleEventListener *listener,
char *eventType)
{
- boolean retval;
+ SPIBoolean retval;
Accessibility_Registry_registerGlobalEventListener (
cspi_registry (),
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
deregisterGlobalEventListenerAll (AccessibleEventListener *listener)
{
Accessibility_Registry_deregisterGlobalEventListenerAll (
* Returns: #TRUE if successful, otherwise #FALSE.
*
**/
-boolean
+SPIBoolean
deregisterGlobalEventListener (AccessibleEventListener *listener,
char *eventType)
{
* Returns: #TRUE if the child was successfully selected, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleSelection_selectChild (AccessibleSelection *obj,
long int childIndex)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Selection_selectChild (CSPI_OBJREF (obj),
(CORBA_long) childIndex, cspi_ev ());
}
* Returns: #TRUE if the child was successfully deselected, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleSelection_deselectSelectedChild (AccessibleSelection *obj,
long int selectedChildIndex)
{
* #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleSelection_isChildSelected (AccessibleSelection *obj,
long int childIndex)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Selection_isChildSelected (CSPI_OBJREF (obj),
(CORBA_long) childIndex, cspi_ev ());
}
* Returns: #TRUE if successful, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleSelection_selectAll (AccessibleSelection *obj)
{
Accessibility_Selection_selectAll (CSPI_OBJREF (obj), cspi_ev ());
* Returns: #TRUE if the specified row is currently selected, #FALSE if not.
*
**/
-boolean
+SPIBoolean
AccessibleTable_isRowSelected (AccessibleTable *obj,
long int row)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Table_isRowSelected (CSPI_OBJREF (obj),
(CORBA_long) row, cspi_ev ());
}
* Returns: #TRUE if the specified column is currently selected, #FALSE if not.
*
**/
-boolean
+SPIBoolean
AccessibleTable_isColumnSelected (AccessibleTable *obj,
long int column)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Table_isColumnSelected (CSPI_OBJREF (obj),
(CORBA_long) column, cspi_ev ());
}
* Returns: #TRUE if the specified cell is currently selected, #FALSE if not.
*
**/
-boolean
+SPIBoolean
AccessibleTable_isSelected (AccessibleTable *obj,
long int row,
long int column)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Table_isSelected (CSPI_OBJREF (obj),
(CORBA_long) row, (CORBA_long) column, cspi_ev ());
}
* Returns: #TRUE if successful, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleText_setCaretOffset (AccessibleText *obj,
long int newOffset)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Text_setCaretOffset (CSPI_OBJREF (obj),
(CORBA_long) newOffset, cspi_ev ());
}
* Returns: #TRUE if successful, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleText_addSelection (AccessibleText *obj,
long int startOffset, long int endOffset)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Text_addSelection (CSPI_OBJREF (obj),
(CORBA_long) startOffset, (CORBA_long) endOffset,
cspi_ev ());
* Returns: #TRUE if successful, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleText_removeSelection (AccessibleText *obj,
long int selectionNum)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Text_removeSelection (CSPI_OBJREF (obj),
(CORBA_long) selectionNum, cspi_ev ());
}
* Returns: #TRUE if successful, #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleText_setSelection (AccessibleText *obj,
long int selectionNum,
long int startOffset,
long int endOffset)
{
- return (boolean)
+ return (SPIBoolean)
Accessibility_Text_setSelection (CSPI_OBJREF (obj),
(CORBA_long) selectionNum,
(CORBA_long) startOffset,
* #FALSE otherwise.
*
**/
-boolean
+SPIBoolean
AccessibleValue_setCurrentValue (AccessibleValue *obj,
float newValue)
{
AccessibleComponent_getExtents
AccessibleComponent_getPosition
AccessibleComponent_getSize
+AccessibleComponent_getLayer
+AccessibleComponent_getMDIZOrder
AccessibleComponent_grabFocus
</SECTION>
@height:
+<!-- ##### FUNCTION AccessibleComponent_getLayer ##### -->
+<para>
+
+</para>
+
+@obj:
+@Returns:
+
+
+<!-- ##### FUNCTION AccessibleComponent_getMDIZOrder ##### -->
+<para>
+
+</para>
+
+@obj:
+@Returns:
+
+
<!-- ##### FUNCTION AccessibleComponent_grabFocus ##### -->
<para>
module Accessibility {
+ enum ComponentLayer {
+ LAYER_INVALID,
+ LAYER_BACKGROUND,
+ LAYER_CANVAS,
+ LAYER_WIDGET,
+ LAYER_MDI,
+ LAYER_POPUP,
+ LAYER_OVERLAY,
+ LAYER_LAST_DEFINED
+ };
+
interface Component : Bonobo::Unknown {
boolean contains (in long x, in long y, in short coord_type);
void getExtents (out long x, out long y, out long width, out long height, in short coord_type);
void getPosition (out long x, out long y, in short coord_type);
void getSize (out long width, out long height);
+ ComponentLayer getLayer ();
+ short getMDIZOrder ();
void grabFocus ();
void registerFocusHandler (in EventListener handler);
void deregisterFocusHandler (in EventListener handler);
module Accessibility {
+ enum ComponentLayer {
+ LAYER_INVALID,
+ LAYER_BACKGROUND,
+ LAYER_CANVAS,
+ LAYER_WIDGET,
+ LAYER_MDI,
+ LAYER_POPUP,
+ LAYER_OVERLAY,
+ LAYER_LAST_DEFINED
+ };
+
interface Component : Bonobo::Unknown {
boolean contains (in long x, in long y, in short coord_type);
void getExtents (out long x, out long y, out long width, out long height, in short coord_type);
void getPosition (out long x, out long y, in short coord_type);
void getSize (out long width, out long height);
+ ComponentLayer getLayer ();
+ short getMDIZOrder ();
void grabFocus ();
void registerFocusHandler (in EventListener handler);
void deregisterFocusHandler (in EventListener handler);
#endif
controller->key_listeners = g_list_remove_link (controller->key_listeners,
list_ptr);
- dec_key_listener_free (dec_listener, ev);
+ dec_key_listener_free ((DEControllerKeyListener *) dec_listener, ev);
}
break;
case SPI_DEVICE_TYPE_MOUSE:
#endif
controller->key_listeners = g_list_remove_link (controller->key_listeners,
list_ptr);
- dec_key_listener_free (dec_listener, ev);
+ dec_key_listener_free ((DEControllerKeyListener *) dec_listener, ev);
}
break;
case SPI_DEVICE_TYPE_MOUSE:
static AccessibleKeystrokeListener *key_listener;
static AccessibleKeystrokeListener *switch_listener;
-static boolean shift_latched = False;
-static boolean caps_lock = False;
+static gboolean shift_latched = False;
+static gboolean caps_lock = False;
static GtkButton **buttons[MAX_ROWS];
typedef enum {
}
static void
-label_buttons(boolean shifted)
+label_buttons(gboolean shifted)
{
int i, j;
KeySym keysym;
}
static void
-show_shift (GtkButton *button, boolean *is_shifted)
+show_shift (GtkButton *button, gboolean *is_shifted)
{
label_buttons (*is_shifted ^ caps_lock);
}
keysynth_exit();
}
-static boolean
+static SPIBoolean
is_command_key (AccessibleKeystroke *key)
{
switch (key->keyID)
return FALSE;
}
-static boolean
+static SPIBoolean
switch_callback (AccessibleKeystroke *key)
{
- static boolean is_down = FALSE;
+ static gboolean is_down = FALSE;
if (key->type == SPI_KEY_RELEASED)
{
g_print ("spacebar up\n");
GtkWidget *window, *container, *hbox;
int i, j;
KeyCode *keycodeptr, keycode = MIN_KEYCODE;
- static boolean true_val = True;
- static boolean false_val = False;
+ static gboolean true_val = True;
+ static gboolean false_val = False;
window = g_object_connect (gtk_widget_new (gtk_window_get_type (),
"user_data", NULL,
static void report_focus_event (AccessibleEvent *event);
static void report_button_press (AccessibleEvent *event);
static void check_property_change (AccessibleEvent *event);
-static boolean report_command_key_event (AccessibleKeystroke *stroke);
-static boolean report_ordinary_key_event (AccessibleKeystroke *stroke);
+static SPIBoolean report_command_key_event (AccessibleKeystroke *stroke);
+static SPIBoolean report_ordinary_key_event (AccessibleKeystroke *stroke);
static void get_environment_vars (void);
static int _festival_init ();
-static void _festival_say (const char *text, const char *voice, boolean shutup);
+static void _festival_say (const char *text, const char *voice, SPIBoolean shutup);
static void _festival_write (const char *buff, int fd);
-static boolean use_magnifier = FALSE;
-static boolean use_festival = FALSE;
-static boolean festival_chatty = FALSE;
+static SPIBoolean use_magnifier = FALSE;
+static SPIBoolean use_festival = FALSE;
+static SPIBoolean festival_chatty = FALSE;
static AccessibleEventListener *focus_listener;
static AccessibleEventListener *property_listener;
}
void
-report_focussed_accessible (Accessible *obj, boolean shutup_previous_speech)
+report_focussed_accessible (Accessible *obj, SPIBoolean shutup_previous_speech)
{
char *s;
int len;
SPI_exit ();
}
-static boolean
+static SPIBoolean
is_command_key (AccessibleKeystroke *key)
{
switch (key->keyID)
}
}
-static boolean
+static SPIBoolean
report_command_key_event (AccessibleKeystroke *key)
{
fprintf (stderr, "Command KeyEvent %s%c (keycode %d)\n",
}
-static boolean
+static SPIBoolean
report_ordinary_key_event (AccessibleKeystroke *key)
{
fprintf (stderr, "Received key event:\tsym %ld\n\tmods %x\n\tcode %d\n\ttime %ld\n",
return fd;
}
-static void _festival_say (const char *text, const char *voice, boolean shutup)
+static void _festival_say (const char *text, const char *voice, SPIBoolean shutup)
{
static int fd = 0;
gchar *quoted;