forked from enlightenment/efl
edje: Edje_Edit - add edje_edit_part_access functions.
Summary: Add two main functions - edje_edit_part_access_get - edje_edit_part_access_set Also support access into part's source code generation. @feature Reviewers: seoz, Hermet, raster, cedric CC: reutskiy.v.v, cedric Differential Revision: https://phab.enlightenment.org/D946 Signed-off-by: Cedric BAIL <c.bail@partner.samsung.com>
This commit is contained in:
parent
30885daafa
commit
5e7a9b1225
|
@ -1234,6 +1234,25 @@ EAPI Eina_Bool edje_edit_part_precise_is_inside_get(Evas_Object *obj, const char
|
|||
*/
|
||||
EAPI Eina_Bool edje_edit_part_precise_is_inside_set(Evas_Object *obj, const char *part, Eina_Bool precise_is_inside);
|
||||
|
||||
/** Get accessibility for part.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
* @param part Part to get if it uses accessibility feature.
|
||||
*
|
||||
* @return EINA_TRUE if part uses accessibility feature, EINA_FALSE otherwise
|
||||
*/
|
||||
EAPI Eina_Bool edje_edit_part_access_get(Evas_Object *obj, const char *part);
|
||||
|
||||
/** Set accessibility for part.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
* @param part Part to set if it uses accessibility feature.
|
||||
* @param access EINA_TRUE if part uses accessibility feature, EINA_FALSE otherwise
|
||||
*
|
||||
* @return EINA_TRUE if successful, EINA_FALSE otherwise.
|
||||
*/
|
||||
EAPI Eina_Bool edje_edit_part_access_set(Evas_Object *obj, const char *part, Eina_Bool access);
|
||||
|
||||
/** Get ignore_flags for part.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
|
|
|
@ -2895,7 +2895,6 @@ edje_edit_part_repeat_events_set(Evas_Object *obj, const char *part, Eina_Bool r
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_part_precise_is_inside_get(Evas_Object *obj, const char *part)
|
||||
{
|
||||
|
@ -2915,6 +2914,25 @@ edje_edit_part_precise_is_inside_set(Evas_Object *obj, const char *part, Eina_Bo
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_part_access_get(Evas_Object *obj, const char *part)
|
||||
{
|
||||
GET_RP_OR_RETURN(0);
|
||||
|
||||
return rp->part->access;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_part_access_set(Evas_Object *obj, const char *part, Eina_Bool access)
|
||||
{
|
||||
GET_RP_OR_RETURN(EINA_FALSE);
|
||||
|
||||
if (!rp->object) return EINA_FALSE;
|
||||
|
||||
rp->part->access = access;
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI Evas_Event_Flags
|
||||
edje_edit_part_ignore_flags_get(Evas_Object *obj, const char *part)
|
||||
{
|
||||
|
@ -8116,6 +8134,8 @@ _edje_generate_source_of_part(Evas_Object *obj, Edje_Part *ep, Eina_Strbuf *buf)
|
|||
BUF_APPEND(I4"pointer_mode: NOGRAB;\n");
|
||||
if (edje_edit_part_precise_is_inside_get(obj, part))
|
||||
BUF_APPEND(I4"precise_is_inside: 1;\n");
|
||||
if (edje_edit_part_access_get(obj, part))
|
||||
BUF_APPEND(I4"access: 1;\n");
|
||||
//TODO Support use_alternate_font_metrics
|
||||
if ((str = edje_edit_part_clip_to_get(obj, part)))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue