}
EAPI char *
-_elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj)
+_elm_access_text_get(const Elm_Access_Info *ac, int type, const Evas_Object *obj)
{
Elm_Access_Item *ai;
Eina_List *l;
{
if (ai->type == type)
{
- if (ai->func) return ai->func((void *)(ai->data), obj);
+ if (ai->func) return ai->func((void *)(ai->data), (Evas_Object *)obj);
else if (ai->data) return strdup(ai->data);
return NULL;
}
}
EAPI void
-_elm_access_read(Elm_Access_Info *ac, int type, Evas_Object *obj)
+_elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj)
{
char *txt = _elm_access_text_get(ac, type, obj);
}
EAPI Evas_Object *
-elm_access_object_item_access_get(Elm_Object_Item *item)
+elm_access_object_item_access_get(const Elm_Object_Item *item)
{
if (!item) return NULL;
}
EAPI Evas_Object *
-elm_access_object_access_get(Evas_Object *obj)
+elm_access_object_access_get(const Evas_Object *obj)
{
return evas_object_data_get(obj, "_part_access_obj");
}
}
EAPI char *
-elm_access_text_get(Evas_Object *obj, int type)
+elm_access_text_get(const Evas_Object *obj, int type)
{
return _elm_access_text_get(_elm_access_object_get(obj), type, obj);
}
Elm_Access_Info *ac;
ac = _elm_access_object_get(obj);
- return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, (Evas_Object *)obj);
+ return _elm_access_text_get(ac, ELM_ACCESS_CONTEXT_INFO, obj);
}
static void
*
* @ingroup Access
*/
-EAPI Evas_Object *elm_access_object_item_access_get(Elm_Object_Item *item);
+EAPI Evas_Object *elm_access_object_item_access_get(const Elm_Object_Item *item);
/**
* @brief Register evas object as an accessible object.
*
* @ingroup Access
*/
-EAPI Evas_Object *elm_access_object_access_get(Evas_Object *obj);
+EAPI Evas_Object *elm_access_object_access_get(const Evas_Object *obj);
/**
* @brief Set text to give information for specific type.
* @see elm_access_content_cb_set
* @ingroup Access
*/
-EAPI char *elm_access_text_get(Evas_Object *obj, int type);
+EAPI char *elm_access_text_get(const Evas_Object *obj, int type);
/**
* @brief Set content callback to give information for specific type.
EAPI void _elm_access_clear(Elm_Access_Info *ac);
EAPI void _elm_access_text_set(Elm_Access_Info *ac, int type, const char *text);
EAPI void _elm_access_callback_set(Elm_Access_Info *ac, int type, Elm_Access_Content_Cb func, const void *data);
-EAPI char *_elm_access_text_get(const Elm_Access_Info *ac, int type, Evas_Object *obj); /* this is ok it actually returns a strduped string - it's meant to! */
-EAPI void _elm_access_read(Elm_Access_Info *ac, int type, Evas_Object *obj);
+EAPI char *_elm_access_text_get(const Elm_Access_Info *ac, int type, const Evas_Object *obj); /* this is ok it actually returns a strduped string - it's meant to! */
+EAPI void _elm_access_read(Elm_Access_Info *ac, int type, const Evas_Object *obj);
EAPI void _elm_access_say(const char *txt);
EAPI Elm_Access_Info *_elm_access_object_get(const Evas_Object *obj);
EAPI void _elm_access_object_hilight(Evas_Object *obj);