elm_colorselector: Move enums to elm_colorselector.eo
authorYakov Goldberg <yakov.g@samsung.com>
Tue, 7 Jul 2015 11:09:03 +0000 (14:09 +0300)
committerYakov Goldberg <yakov.g@samsung.com>
Wed, 8 Jul 2015 07:23:38 +0000 (10:23 +0300)
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
src/lib/elm_colorselector_common.h

index 331d836..6641d50 100644 (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 {
index 18515d2..ecce64d 100644 (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);