forked from enlightenment/efl
+edje_object_part_object_name_get()
This commit is contained in:
parent
e5d207fc25
commit
3c20b89765
|
@ -2095,6 +2095,15 @@ EAPI void edje_audio_channel_mute_set(Edje_Channel channel, Eina_Bool mute);
|
|||
*/
|
||||
EAPI Eina_Bool edje_audio_channel_mute_get(Edje_Channel channel);
|
||||
|
||||
/**
|
||||
* Get the part name of an edje part object
|
||||
* @param obj An edje part object
|
||||
* @return The name of the part, if the object is an edje part, or @c NULL
|
||||
* @note If this function returns @c NULL, @p obj was not an Edje part object
|
||||
* @see edje_object_part_object_get()
|
||||
* @since 1.10
|
||||
*/
|
||||
EAPI const char *edje_object_part_object_name_get(const Evas_Object *obj);
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
|
|
@ -5285,4 +5285,13 @@ _edje_subobj_unregister(Edje *ed, Evas_Object *obj)
|
|||
_cb_subobj_del, ed);
|
||||
}
|
||||
|
||||
EAPI const char *
|
||||
edje_object_part_object_name_get(const Evas_Object *obj)
|
||||
{
|
||||
Edje_Real_Part *rp;
|
||||
|
||||
rp = evas_object_data_get(obj, "real_part");
|
||||
return rp ? rp->part->name : NULL;
|
||||
}
|
||||
|
||||
/* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/
|
||||
|
|
Loading…
Reference in New Issue