Preguntar a la interfaz de un AtkObject

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:

  1. 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.

  2. Test the role of the AtkObject by calling atk_object_get_role(). Any given role implements a specific number of ATK APIs.