[E_BORDER] Add missing code to delete timer when the window gets DEICONIFY_APPROVE...
[platform/core/uifw/e17.git] / src / bin / e_color.c
1 #include "e.h"
2
3 void
4 e_color_update_rgb(E_Color *ec)
5 {
6   if (!ec) return;
7   evas_color_rgb_to_hsv(ec->r, ec->g, ec->b, &(ec->h), &(ec->s), &(ec->v));
8 }
9
10 void
11 e_color_update_hsv(E_Color *ec)
12 {
13
14   if (!ec) return;
15   if (ec->v == 0)
16     ec->r = ec->g = ec->b = 0;
17   else
18     evas_color_hsv_to_rgb(ec->h, ec->s, ec->v, &(ec->r), &(ec->g), &(ec->b));
19 }
20
21 void
22 e_color_copy(const E_Color *from, E_Color *to)
23 {
24   if (!from || !to) return;
25   to->r = from->r;
26   to->g = from->g;
27   to->b = from->b;
28   to->h = from->h;
29   to->s = from->s;
30   to->v = from->v;
31   to->a = from->a;
32 }