From bff1590617e5c12629c897e64bc339424748cfaa Mon Sep 17 00:00:00 2001 From: Yakov Goldberg Date: Tue, 7 Jul 2015 14:09:03 +0300 Subject: [PATCH] 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. --- src/lib/elm_colorselector.eo | 21 ++++++++++++++++++++- src/lib/elm_colorselector_common.h | 18 ------------------ 2 files changed, 20 insertions(+), 19 deletions(-) diff --git a/src/lib/elm_colorselector.eo b/src/lib/elm_colorselector.eo index 331d836..6641d50 100644 --- a/src/lib/elm_colorselector.eo +++ b/src/lib/elm_colorselector.eo @@ -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 { diff --git a/src/lib/elm_colorselector_common.h b/src/lib/elm_colorselector_common.h index 18515d2..ecce64d 100644 --- a/src/lib/elm_colorselector_common.h +++ b/src/lib/elm_colorselector_common.h @@ -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); -- 2.7.4