/*
*
- * AccessibleComponent function implementations
+ * SpiAccessibleComponent function implementations
*
*/
/**
- * AccessibleComponent_ref:
+ * SpiAccessibleComponent_ref:
* @obj: a pointer to an object implementing #AccessibleComponent on which to operate.
*
* Increment the reference count for an #AccessibleComponent.
*
**/
int
-AccessibleComponent_ref (AccessibleComponent *obj)
+SpiAccessibleComponent_ref (SpiAccessibleComponent *obj)
{
Accessibility_Component_ref (*obj, &ev);
return 0;
}
/**
- * AccessibleComponent_unref:
+ * SpiAccessibleComponent_unref:
* @obj: a pointer to the object implementing #AccessibleComponent on which to operate.
*
* Decrement the reference count for an #AccessibleComponent.
*
**/
int
-AccessibleComponent_unref (AccessibleComponent *obj)
+SpiAccessibleComponent_unref (SpiAccessibleComponent *obj)
{
Accessibility_Component_unref (*obj, &ev);
return 0;
}
/**
- * AccessibleComponent_contains:
+ * SpiAccessibleComponent_contains:
* @obj: a pointer to the #AccessibleComponent to query.
* @x: a #long specifying the x coordinate in question.
* @y: a #long specifying the y coordinate in question.
*
**/
boolean
-AccessibleComponent_contains (AccessibleComponent *obj,
+SpiAccessibleComponent_contains (SpiAccessibleComponent *obj,
long x,
long y,
- AccessibleCoordType ctype)
+ SpiAccessibleCoordType ctype)
{
return Accessibility_Component_contains (*obj,
(CORBA_long) x,
}
/**
- * AccessibleComponent_getAccessibleAtPoint:
+ * SpiAccessibleComponent_getAccessibleAtPoint:
* @obj: a pointer to the #AccessibleComponent to query.
* @x: a #long specifying the x coordinate of the point in question.
* @y: a #long specifying the y coordinate of the point in question.
* Returns: a pointer to an #Accessible child of the specified component which
* contains the point (@x, @y), or NULL of no child contains the point.
**/
-Accessible *
-AccessibleComponent_getAccessibleAtPoint (AccessibleComponent *obj,
+SpiAccessible *
+SpiAccessibleComponent_getAccessibleAtPoint (SpiAccessibleComponent *obj,
long x,
long y,
- AccessibleCoordType ctype)
+ SpiAccessibleCoordType ctype)
{
- Accessible child;
+ SpiAccessible child;
child = Accessibility_Component_getAccessibleAtPoint(*obj,
(CORBA_long) x,
(CORBA_long) y,
}
/**
- * AccessibleComponent_getExtents:
+ * 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.
*
**/
void
-AccessibleComponent_getExtents (AccessibleComponent *obj,
+SpiAccessibleComponent_getExtents (SpiAccessibleComponent *obj,
long *x,
long *y,
long *width,
long *height,
- AccessibleCoordType ctype)
+ SpiAccessibleCoordType ctype)
{
- /* TODO: remove assumption that CORBA_long == long in typecast */
+ CORBA_long cx, cy, cw, ch;
Accessibility_Component_getExtents (*obj,
- (CORBA_long *) x,
- (CORBA_long *) y,
- (CORBA_long *) width,
- (CORBA_long *) height,
- ctype,
- &ev);
+ &cx,
+ &cy,
+ &cw,
+ &ch,
+ ctype,
+ &ev);
+ spi_warn_ev (&ev, "SpiAccessibleComponent_getExtents");
+ *x = (long) cx;
+ *y = (long) cy;
+ *width = (long) cw;
+ *height = (long) ch;
}
/**
- * AccessibleComponent_getPosition:
+ * SpiAccessibleComponent_getPosition:
* @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.
*
**/
void
-AccessibleComponent_getPosition (AccessibleComponent *obj,
+SpiAccessibleComponent_getPosition (SpiAccessibleComponent *obj,
long *x,
long *y,
- AccessibleCoordType ctype)
+ SpiAccessibleCoordType ctype)
{
Accessibility_Component_getPosition (*obj,
(CORBA_long *) x,
}
/**
- * AccessibleComponent_getSize:
+ * SpiAccessibleComponent_getSize:
* @obj: a pointer to the #AccessibleComponent to query.
* @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.
*
**/
void
-AccessibleComponent_getSize (AccessibleComponent *obj,
+SpiAccessibleComponent_getSize (SpiAccessibleComponent *obj,
long *width,
long *height)
{
/* Not Yet Implemented */
void
-AccessibleComponent_grabFocus (AccessibleComponent *obj)
+SpiAccessibleComponent_grabFocus (SpiAccessibleComponent *obj)
{
;
}