2 * @defgroup Access Access
9 #define ELM_ACCESS_TYPE 0 /* when reading out widget or item
10 * this is read first */
11 #define ELM_ACCESS_INFO 1 /* next read is info - this is
13 #define ELM_ACCESS_STATE 2 /* if there is a state (eg checkbox)
14 * then read state out */
15 #define ELM_ACCESS_CONTEXT_INFO 3 /* to give contextual information */
17 typedef char *(*Elm_Access_Content_Cb)(void *data, Evas_Object *obj);
18 typedef void (*Elm_Access_Activate_Cb)(void *data, Evas_Object *part_obj, Elm_Object_Item *item);
21 * @brief Register evas object as an accessible object.
24 * @param parent Accessibility parent object. this should be one of widget.
25 * @param target Evas object to register as an accessible object.
29 EAPI void elm_access_object_register(Evas_Object *parent, Evas_Object *target);
32 * @brief Unregister accessible object.
35 * @param obj Accessible object.
39 EAPI void elm_access_object_unregister(Evas_Object *target);
42 * @brief Set text to give information for specific type.
45 * @param obj Accessible object.
46 * @param type The type of content that will be read
47 * @param text The text information that will be read
49 * @see elm_access_content_cb_set
52 EAPI void elm_access_text_set(Evas_Object *obj, int type, const char *text);
55 * @brief Set text to give information for specific type.
58 * @param obj Accessible object.
59 * @param type The type of content that will be read
61 * @see elm_access_content_cb_set
64 EAPI char * elm_access_text_get(Evas_Object *obj, int type);
67 * @brief Set content callback to give information for specific type.
70 * @param obj Accessible object.
71 * @param type The type of content that will be read
72 * @param func The function to be called when the content is read
73 * @param data The data pointer to be passed to @p func
75 * The type would be one of ELM_ACCESS_TYPE, ELM_ACCESS_INFO,
76 * ELM_ACCESS_STATE, ELM_ACCESS_CONTEXT_INFO.
78 * In the case of button widget, the content of ELM_ACCESS_TYPE would be
79 * "button". The label of button such as "ok", "cancel" is for ELM_ACCESS_INFO.
80 * If the button is disabled, content of ELM_ACCESS_STATE would be "disabled".
81 * And if there is contextual information, ELM_ACCESS_CONTEXT_INFO is used.
85 EAPI void elm_access_content_cb_set(Evas_Object *obj, int type, Elm_Access_Content_Cb func, const void *data);
88 * @brief Set activate callback to activate highlight object.
91 * @param obj Accessible object.
92 * @param func The function to be called when the activate gesture is detected
93 * @param data The data pointer to be passed to @p func
97 EAPI void elm_access_activate_cb_set(Evas_Object *obj, Elm_Access_Activate_Cb func, void *data);
99 //TODO: remvoe below - use elm_access_text_set(); or elm_access_cb_set();
100 EINA_DEPRECATED EAPI void elm_access_external_info_set(Evas_Object *obj, const char *text);
101 EINA_DEPRECATED EAPI char * elm_access_external_info_get(const Evas_Object *obj);