elm_colorselector: Move enums to elm_colorselector.eo

Move enums from elm_colorselector_common.h to elm_colorselector.eo in order to make them
more accessible for bindings.
This commit is contained in:
Yakov Goldberg 2015-07-07 14:09:03 +03:00
parent aea563f44a
commit ad51d699a3
2 changed files with 20 additions and 19 deletions

View File

@ -1,3 +1,22 @@
enum Elm.Colorselector.Mode
{
[[
@addtogroup Datetime
@enum Elm_Colorselector_Mode
Different modes supported by Colorselector
@see elm_colorselector_mode_set()
@see elm_colorselector_mode_get()
]]
legacy: elm_colorselector;
palette = 0, [[Only color palette is displayed.]]
components, [[Only color selector is displayed.]]
both, [[Both Palette and selector is displayed, default.]]
picker, [[Only color picker is displayed.]]
all [[All possible color selector is displayed.]]
}
class Elm.Colorselector (Elm.Layout, Elm_Interface_Atspi_Widget_Action,
Evas.Clickable_Interface)
{
@ -67,7 +86,7 @@ class Elm.Colorselector (Elm.Layout, Elm_Interface_Atspi_Widget_Action,
@ingroup Colorselector */
}
values {
mode: Elm_Colorselector_Mode; /*@ Elm_Colorselector_Mode */
mode: Elm.Colorselector.Mode; /*@ Elm_Colorselector_Mode */
}
}
@property palette_items {

View File

@ -13,7 +13,6 @@ struct _Elm_Color_RGBA
unsigned int a;
};
typedef struct _Elm_Custom_Palette Elm_Custom_Palette;
struct _Elm_Custom_Palette
{
@ -21,23 +20,6 @@ struct _Elm_Custom_Palette
Eina_List *color_list;
};
/**
* @enum Elm_Colorselector_Mode
*
* Different modes supported by Colorselector
*
* @see elm_colorselector_mode_set()
* @see elm_colorselector_mode_get()
*/
typedef enum
{
ELM_COLORSELECTOR_PALETTE = 0, /**< only color palette is displayed */
ELM_COLORSELECTOR_COMPONENTS, /**< only color selector is displayed */
ELM_COLORSELECTOR_BOTH, /**< Both Palette and selector is displayed, default */
ELM_COLORSELECTOR_PICKER, /**< only color picker is displayed */
ELM_COLORSELECTOR_ALL /**< all possible color selector is displayed */
} Elm_Colorselector_Mode;
EAPI void elm_colorselector_palette_item_color_get(const Elm_Object_Item *it, int *r, int *g, int *b, int *a);
EAPI void elm_colorselector_palette_item_color_set(Elm_Object_Item *it, int r, int g, int b, int a);