* AT-SPI - Assistive Technology Service Provider Interface
* (Gnome Accessibility Project; http://developer.gnome.org/projects/gap)
*
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002 Sun Microsystems Inc.,
+ * Copyright 2001, 2002 Ximian, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
g_return_val_if_fail (component != NULL, FALSE);
- retval = atk_component_contains (component, (gint) x, (gint) y,
+ retval = atk_component_contains (component, x, y,
(AtkCoordType) coord_type);
return retval;
}
AtkObject *child;
AtkComponent *component = get_component_from_servant (servant);
- g_return_val_if_fail (component != NULL, FALSE);
+ g_return_val_if_fail (component != NULL, NULL);
child = atk_component_ref_accessible_at_point (component,
- (gint) x, (gint) y,
+ x, y,
(AtkCoordType) coord_type);
return spi_accessible_new_return (child, TRUE, ev);
}
atk_component_get_position (component, &ix, &iy,
(AtkCoordType) coord_type);
- *x = (CORBA_long) ix;
- *y = (CORBA_long) iy;
+ *x = ix;
+ *y = iy;
}
/*
g_return_if_fail (component != NULL);
atk_component_get_size (component, &iw, &ih);
- *width = (CORBA_long) iw;
- *height = (CORBA_long) ih;
+ *width = iw;
+ *height = ih;
}
static Accessibility_ComponentLayer
return Accessibility_LAYER_POPUP;
case ATK_LAYER_OVERLAY:
return Accessibility_LAYER_OVERLAY;
+ case ATK_LAYER_WINDOW:
+ return Accessibility_LAYER_WINDOW;
default:
break;
}
g_return_val_if_fail (component != NULL, -1);
- return (CORBA_short) atk_component_get_mdi_zorder (component);
+ return atk_component_get_mdi_zorder (component);
+}
+
+static CORBA_boolean
+impl_accessibility_component_grab_focus (PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ AtkComponent *component = get_component_from_servant (servant);
+
+ g_return_val_if_fail (component != NULL, FALSE);
+
+ return atk_component_grab_focus (component);
+}
+
+static double
+impl_accessibility_component_get_alpha (PortableServer_Servant servant,
+ CORBA_Environment *ev)
+{
+ AtkComponent *component = get_component_from_servant (servant);
+
+ g_return_val_if_fail (component != NULL, FALSE);
+
+ return atk_component_get_alpha (component);
}
static void
epv->getSize = impl_accessibility_component_get_size;
epv->getLayer = impl_accessibility_component_get_layer;
epv->getMDIZOrder = impl_accessibility_component_get_mdi_z_order;
+ epv->grabFocus = impl_accessibility_component_grab_focus;
+ epv->getAlpha = impl_accessibility_component_get_alpha;
}
static void
BONOBO_TYPE_FUNC_FULL (SpiComponent,
Accessibility_Component,
PARENT_TYPE,
- spi_component);
+ spi_component)
SpiComponent *
spi_component_interface_new (AtkObject *o)