e_comp_object: add e_comp_object_color_get 33/292533/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 9 May 2023 08:28:03 +0000 (17:28 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Tue, 9 May 2023 10:37:03 +0000 (19:37 +0900)
Change-Id: Iaac99b24ff8b8d13e72bd12d9af7b9ff72af9bdc

src/bin/e_comp_object.c
src/bin/e_comp_object.h

index d3828e2..4925533 100644 (file)
@@ -6525,7 +6525,7 @@ e_comp_object_color_visible_get(Evas_Object *obj)
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(cw->ec, EINA_FALSE);
 
-   evas_object_color_get(obj, &r, &g, &b, &a);
+   e_comp_object_color_get(obj, &r, &g, &b, &a);
    if ((a == 0) || ((r == 0) && (g == 0) && (b == 0)))
      return EINA_FALSE;
 
@@ -6645,3 +6645,11 @@ e_comp_object_render_update_lock_get(Evas_Object *obj)
 
    return EINA_FALSE;
 }
+
+E_API void
+e_comp_object_color_get(Evas_Object *obj, int *r, int *g, int *b, int *a)
+{
+   API_ENTRY;
+
+   evas_object_color_get(obj, r, g, b, a);
+}
index 6c21a84..3b06b59 100644 (file)
@@ -214,6 +214,8 @@ E_API Eina_Bool        e_comp_object_map_enable_set(Evas_Object *obj, Eina_Bool
 E_API Eina_Bool e_comp_object_render_update_lock(Evas_Object *obj);
 E_API void      e_comp_object_render_update_unlock(Evas_Object *obj);
 E_API Eina_Bool e_comp_object_render_update_lock_get(Evas_Object *obj);
+
+E_API void e_comp_object_color_get(Evas_Object *obj, int *r, int *g, int *b, int *a);
 #endif
 #endif