Obtener la información de accesibilidad de una aplicación
- Guía de accesibilidad para los desarrolladores de GNOME
- ¿Qué es la accesibilidad?
- Ejemplos que usan la API de accesibilidad
Un programa que quiera hacer llamadas ATK debería hacer una, o más, de las siguientes:
-
Create an event watcher, for example with the atk_add_focus_tracker() function:
atk_add_focus_tracker (_my_focus_tracker);
donde _my_focus_tracker() es una función con este prototipo:
void _my_focus_tracker (AtkObject *aobject);
-
Set up a global event listener, with atk_add_global_event_listener():
mouse_watcher_focus_id = atk_add_global_event_listener(_my_global_listener,"Gtk:GtkWidget:enter_notify_event");
where _my_global_listener has the prototype of a Glib GSignalEmissionHook. This example would cause the _my_global_listener() to be called whenever an enter_notify_even signal occurs on a GtkWidget object.
-
Acceder al objeto ATK de nivel superior con la siguiente llamada de función.
AtkObject *root_obj = atk_get_root();
This returns an AtkObject which contains all toplevel windows in the currently running program. The user could then navigate through the object heirarchy by accessing the root object's children, which corresponds to the toplevel windows.