edje: edje_edit - add getter/setter for anti_alias attribute
This commit is contained in:
parent
38cb8fcbe0
commit
2eebeb8b61
|
@ -1454,6 +1454,26 @@ 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);
|
||||
|
||||
/** Get anti-alising for part.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
* @param part Part to get if the anti-aliasing is accepted.
|
||||
*
|
||||
* @return @c EINA_TRUE if part will draw anti-alised, @c EINA_FALSE otherwise.
|
||||
*/
|
||||
EAPI Eina_Bool edje_edit_part_anti_alias_get(Evas_Object *obj, const char *part);
|
||||
|
||||
/** Set anti-alising for part.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
* @param part The part to set if the anti-aliasing is accepted.
|
||||
* @param mouse_events EINA_TRUE if part should to draw anti-aliased, @c EINA_FALSE otherwise.
|
||||
*
|
||||
* @return @c EINA_TRUE in case of success, @c EINA_FALSE otherwise.
|
||||
*/
|
||||
EAPI Eina_Bool edje_edit_part_anti_alias_set(Evas_Object *obj, const char *part, Eina_Bool anti_alias);
|
||||
|
||||
|
||||
/** Get repeat_events for part.
|
||||
*
|
||||
* @param obj Object being edited.
|
||||
|
|
|
@ -3683,6 +3683,28 @@ edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mo
|
|||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_part_anti_alias_get(Evas_Object *obj, const char *part)
|
||||
{
|
||||
GET_RP_OR_RETURN(EINA_FALSE);
|
||||
return rp->part->anti_alias;
|
||||
}
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_part_anti_alias_set(Evas_Object *obj, const char *part, Eina_Bool anti_alias)
|
||||
{
|
||||
GET_RP_OR_RETURN(EINA_FALSE);
|
||||
|
||||
if (!rp->object) return EINA_FALSE;
|
||||
|
||||
rp->part->anti_alias = anti_alias ? 1 : 0;
|
||||
evas_object_anti_alias_set(obj, rp->part->anti_alias);
|
||||
evas_object_precise_is_inside_set(obj, rp->part->precise_is_inside);
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
||||
EAPI Eina_Bool
|
||||
edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue