[colorselector] colorpicker is modified to colorselector
[framework/uifw/elementary.git] / src / lib / elm_colorpicker.c
1 #include <Elementary.h>
2 #include "elm_priv.h"
3 #include <Ecore.h>
4
5 /**
6  * @defgroup Colorpicker Colorpicker
7  * @ingroup Elementary
8  *
9  * By using colorpicker, you can select a color.
10  * Colorpicker made a color using HSV/HSB mode.
11  */
12
13 /**
14  * Add a new colorpicker to the parent
15  *
16  * @param parent The parent object
17  * @return The new object or NULL if it cannot be created
18  *
19  * @ingroup Colorpicker
20  */
21 EAPI Evas_Object *
22 elm_colorpicker_add(Evas_Object *parent)
23 {
24    return elm_colorselector_add(parent);
25 }
26
27 /**
28  * Set a color for the colorpicker
29  *
30  * @param obj   Colorpicker object
31  * @param r     r-value of color
32  * @param g     g-value of color
33  * @param b     b-value of color
34  *
35  * @ingroup Colorpicker
36  */
37 EAPI void
38 elm_colorpicker_color_set(Evas_Object *obj, int r, int g, int b)
39 {
40    elm_colorselector_color_set(obj, r, g, b, 255);
41 }
42
43 /**
44  * Get a color from the colorpicker
45  *
46  * @param obj   Colorpicker object
47  * @param r     integer pointer for r-value of color
48  * @param g     integer pointer for g-value of color
49  * @param b     integer pointer for b-value of color
50  *
51  * @ingroup Colorpicker
52  */
53 EAPI void
54 elm_colorpicker_color_get(Evas_Object *obj, int *r, int *g, int *b)
55 {
56    elm_colorselector_color_get(obj, r, g, b, NULL);
57 }
58
59 /* vim:set ts=8 sw=3 sts=3 expandtab cino=>5n-2f0^-2{2(0W1st0 :*/