edje/edit: add api for checking 'required' property of parts

Summary: this is useful for verifying api compliance

Reviewers: cedric

Reviewed By: cedric

Subscribers: segfaultxavi, cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10055
This commit is contained in:
Mike Blumenkrantz 2019-10-02 12:13:10 +02:00 committed by Xavi Artigas
parent fa90880055
commit 1d27c9d2e4
2 changed files with 18 additions and 0 deletions

View File

@ -1878,6 +1878,17 @@ EAPI Eina_Bool edje_edit_part_mouse_events_get(Evas_Object *obj, const char *par
*/
EAPI Eina_Bool edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mouse_events);
/**
* @brief Gets required value for part.
*
* @param obj Object being edited.
* @param part Part to get if the part is required by API.
*
* @return @c EINA_TRUE if part is required by the object's implementation, @c EINA_FALSE otherwise.
* @since 1.23
*/
EAPI Eina_Bool edje_edit_part_required_get(Evas_Object *obj, const char *part);
/**
* @brief Gets anti-aliasing for part.
*

View File

@ -3873,6 +3873,13 @@ edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mo
return EINA_TRUE;
}
EAPI Eina_Bool
edje_edit_part_required_get(Evas_Object *obj, const char *part)
{
GET_RP_OR_RETURN(EINA_FALSE);
return rp->part->required;
}
EAPI Eina_Bool
edje_edit_part_anti_alias_get(Evas_Object *obj, const char *part)
{