summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorVyacheslav Reutskiy <rimmed@yandex.ru>2014-12-24 11:17:03 +0000
committerVyacheslav Reutskiy <rimmed@yandex.ru>2014-12-24 11:17:03 +0000
commit2eebeb8b611d271efa6a860c0e91cf8701912623 (patch)
tree47353e64f4cb1ec9049beeae30c81e229fa2d59b /src/lib/edje
parent38cb8fcbe0f0a38db70cf133bb85890d52102c92 (diff)
edje: edje_edit - add getter/setter for anti_alias attribute
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/Edje_Edit.h20
-rw-r--r--src/lib/edje/edje_edit.c22
2 files changed, 42 insertions, 0 deletions
diff --git a/src/lib/edje/Edje_Edit.h b/src/lib/edje/Edje_Edit.h
index 544ea07e8f..aba67ee947 100644
--- a/src/lib/edje/Edje_Edit.h
+++ b/src/lib/edje/Edje_Edit.h
@@ -1454,6 +1454,26 @@ EAPI Eina_Bool edje_edit_part_mouse_events_get(Evas_Object *obj, const char *par
1454 */ 1454 */
1455EAPI Eina_Bool edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mouse_events); 1455EAPI Eina_Bool edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mouse_events);
1456 1456
1457/** Get anti-alising for part.
1458 *
1459 * @param obj Object being edited.
1460 * @param part Part to get if the anti-aliasing is accepted.
1461 *
1462 * @return @c EINA_TRUE if part will draw anti-alised, @c EINA_FALSE otherwise.
1463 */
1464EAPI Eina_Bool edje_edit_part_anti_alias_get(Evas_Object *obj, const char *part);
1465
1466/** Set anti-alising for part.
1467 *
1468 * @param obj Object being edited.
1469 * @param part The part to set if the anti-aliasing is accepted.
1470 * @param mouse_events EINA_TRUE if part should to draw anti-aliased, @c EINA_FALSE otherwise.
1471 *
1472 * @return @c EINA_TRUE in case of success, @c EINA_FALSE otherwise.
1473 */
1474EAPI Eina_Bool edje_edit_part_anti_alias_set(Evas_Object *obj, const char *part, Eina_Bool anti_alias);
1475
1476
1457/** Get repeat_events for part. 1477/** Get repeat_events for part.
1458 * 1478 *
1459 * @param obj Object being edited. 1479 * @param obj Object being edited.
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index c3f8405def..9a8632c152 100644
--- a/src/lib/edje/edje_edit.c
+++ b/src/lib/edje/edje_edit.c
@@ -3684,6 +3684,28 @@ edje_edit_part_mouse_events_set(Evas_Object *obj, const char *part, Eina_Bool mo
3684} 3684}
3685 3685
3686EAPI Eina_Bool 3686EAPI Eina_Bool
3687edje_edit_part_anti_alias_get(Evas_Object *obj, const char *part)
3688{
3689 GET_RP_OR_RETURN(EINA_FALSE);
3690 return rp->part->anti_alias;
3691}
3692
3693EAPI Eina_Bool
3694edje_edit_part_anti_alias_set(Evas_Object *obj, const char *part, Eina_Bool anti_alias)
3695{
3696 GET_RP_OR_RETURN(EINA_FALSE);
3697
3698 if (!rp->object) return EINA_FALSE;
3699
3700 rp->part->anti_alias = anti_alias ? 1 : 0;
3701 evas_object_anti_alias_set(obj, rp->part->anti_alias);
3702 evas_object_precise_is_inside_set(obj, rp->part->precise_is_inside);
3703
3704 return EINA_TRUE;
3705}
3706
3707
3708EAPI Eina_Bool
3687edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part) 3709edje_edit_part_repeat_events_get(Evas_Object *obj, const char *part)
3688{ 3710{
3689 GET_RP_OR_RETURN(EINA_FALSE); 3711 GET_RP_OR_RETURN(EINA_FALSE);