rimmed pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=2eebeb8b611d271efa6a860c0e91cf8701912623

commit 2eebeb8b611d271efa6a860c0e91cf8701912623
Author: Vyacheslav Reutskiy <[email protected]>
Date:   Wed Dec 24 11:17:03 2014 +0000

    edje: edje_edit - add getter/setter for anti_alias attribute
---
 src/lib/edje/Edje_Edit.h | 20 ++++++++++++++++++++
 src/lib/edje/edje_edit.c | 22 ++++++++++++++++++++++
 2 files changed, 42 insertions(+)

diff --git a/src/lib/edje/Edje_Edit.h b/src/lib/edje/Edje_Edit.h
index 544ea07..aba67ee 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
  */
 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.
diff --git a/src/lib/edje/edje_edit.c b/src/lib/edje/edje_edit.c
index c3f8405..9a8632c 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
 }
 
 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)
 {
    GET_RP_OR_RETURN(EINA_FALSE);

-- 


Reply via email to