La API de accesibilidad
Here are a few of the basic API calls you may need to use in your application to ensure it works well with assistive technologies. The full accessibility API is extensive, to allow you to write your own accessible custom widgets, for example.
Tabla 1-1 Llamadas a la API de ATK comúnmente usadas
API | Descripción |
---|---|
AtkObject* gtk_widget_get_accessible (GtkWidget*) | Devuelve a una tecnología accesible el objeto accesible que describe el widget GTK especificado. |
void atk_object_set_name (AtkObject*, const gchar*) | Establece el nombre del objeto accesible. Por ejemplo, si el objeto es un botón gráfico que sale de la aplicación al pulsarlo, el nombre puede ser «Salir». |
void atk_object_set_description (AtkObject*, const gchar*) | Establece la descripción textual del objeto accesible. Por ejemplo, si el objeto es un botón gráfico «Cerrar», la descripción puede ser «Cierra la ventana». |
AtkRelation* atk_relation_new (AtkObject**, gint, AtkRelationType) | Creates a new relation between the specified key and the specified list of target objects. A relationship normally indicates to the assistive technology that one widget is somehow related to another. For example, that a particular GtkLabel widget is the caption for a GtkTreeView in the same window. |
void atk_image_set_description (AtkImage*, const gchar*) | Sets the textual description of the accessible image object. For example, if the object is a thumbnail of a virtual desktop in a panel applet, the description might be "Image showing window arrangement on desktop 1". |