summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_util.c
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-05-06 13:06:23 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2021-05-07 00:02:05 +0100
commit2b91c4d9b8c1990d434541a6a5717891f3e3d9c9 (patch)
tree0feefa85d2e147ba1200904440e5e5f8f15683ea /src/lib/edje/edje_util.c
parent694136e4c8651f37ea33983eac1d0e8f3b49c6f0 (diff)
edje - add new color class apply func to force cc to apply now
Diffstat (limited to '')
-rw-r--r--src/lib/edje/edje_util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/lib/edje/edje_util.c b/src/lib/edje/edje_util.c
index 16171b6c41..625898947d 100644
--- a/src/lib/edje/edje_util.c
+++ b/src/lib/edje/edje_util.c
@@ -712,6 +712,22 @@ edje_color_class_set(const char *color_class, int r, int g, int b, int a, int r2
712 return result; 712 return result;
713} 713}
714 714
715EAPI void
716edje_color_class_apply(void)
717{
718 Edje *ed;
719
720 EINA_INLIST_FOREACH(_edje_edjes, ed)
721 {
722 ed->dirty = EINA_TRUE;
723 ed->recalc_call = EINA_TRUE;
724#ifdef EDJE_CALC_CACHE
725 ed->all_part_change = EINA_TRUE;
726#endif
727 _edje_recalc(ed);
728 }
729}
730
715EOLIAN Eina_Bool 731EOLIAN Eina_Bool
716_edje_global_efl_gfx_color_class_color_class_set(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED, 732_edje_global_efl_gfx_color_class_color_class_set(Eo *obj EINA_UNUSED, void *pd EINA_UNUSED,
717 const char *color_class, Efl_Gfx_Color_Class_Layer layer, int r, int g, int b, int a) 733 const char *color_class, Efl_Gfx_Color_Class_Layer layer, int r, int g, int b, int a)