Merge "gengrid TC modified"
[framework/uifw/elementary.git] / tests / src / lib / elm_colorpalette.h
1    /**
2     * @defgroup Colorpalette Colorpalette
3     * @ingroup Elementary
4     * @addtogroup Colorpalette
5     * @{
6     *
7     * Using colorpalette, you can select a color by clicking
8     * a color rectangle on the colorpalette.
9     *
10     * Smart callbacks that you can add are:
11     *
12     * clicked - This signal is sent when a color rectangle is clicked.
13     */
14    typedef struct _Colorpalette_Color Elm_Colorpalette_Color;
15    struct _Colorpalette_Color
16      {
17         unsigned int r, g, b;
18      };
19
20    /**
21     * Add a new colorpalette to the parent.
22     *
23     * @param parent The parent object
24     * @return The new object or NULL if it cannot be created
25     *
26     * @ingroup Colorpalette
27     */
28    EAPI Evas_Object *elm_colorpalette_add(Evas_Object *parent);
29    /**
30     * Set colors to the colorpalette.
31     *
32     * @param obj   Colorpalette object
33     * @param color_num     number of the colors on the colorpalette
34     * @param color     Color lists
35     */
36    EAPI void         elm_colorpalette_color_set(Evas_Object *obj, int color_num, Elm_Colorpalette_Color *color);
37    /**
38     * Set row/column value for the colorpalette.
39     *
40     * @param obj   Colorpalette object
41     * @param row   row value for the colorpalette
42     * @param col   column value for the colorpalette
43     */
44    EAPI void         elm_colorpalette_row_column_set(Evas_Object *obj, int row, int col);
45
46    /**
47     * @}
48     */
49