Preguntar a la interfaz de un AtkObject
- Guía de accesibilidad para los desarrolladores de GNOME
- ¿Qué es la accesibilidad?
- Ejemplos que usan la API de accesibilidad
Having located the AtkObject associated with an object in the application (e.g. by using gtk_widget_get_accessible()), you can find out what interfaces it implements in various ways:
-
Use las macros proporcionadas ATK_IS_..., por ejemplo:
- ATK_IS_ACTION(atkobj)
- ATK_IS_COMPONENT(atkobj)
- etc. (existe uno para cada interfaz)
Si la macro devuelve TRUE, las llamadas a la interfaz se pueden hacer de forma segura sobre ese objeto ATK.
-
Test the role of the AtkObject by calling atk_object_get_role(). Any given role implements a specific number of ATK APIs.