e_comp_object: add e_comp_object_color_get 36/292536/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Tue, 9 May 2023 08:28:03 +0000 (17:28 +0900)
committerchangyeon lee <cyeon.lee@samsung.com>
Tue, 9 May 2023 10:51:09 +0000 (10:51 +0000)
Change-Id: Iaac99b24ff8b8d13e72bd12d9af7b9ff72af9bdc

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

index 488423463e41ffa0d4323cbc625244301d8ac9b6..9723f6098a5881ffd3b9abbc3861c996d849567d 100644 (file)
@@ -6531,7 +6531,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;
 
@@ -6651,3 +6651,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 6c21a84040ddc1b8310101a980f93d2d5b55c6db..3b06b598a4916318ef92123916521d25f2b96664 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