elm_panel: Move enums to elm_panel.eo
authorYakov Goldberg <yakov.g@samsung.com>
Wed, 13 May 2015 14:27:04 +0000 (17:27 +0300)
committerYakov Goldberg <yakov.g@samsung.com>
Sun, 17 May 2015 13:03:45 +0000 (16:03 +0300)
Move enums from elm_panel_common.h to elm_panel.eo in order to make them
more accessible for bindings.

src/lib/elm_panel.eo
src/lib/elm_panel_common.h

index d236a10..9db484e 100644 (file)
@@ -1,3 +1,16 @@
+enum Elm.Panel.Orient
+{
+   /*@
+   Panel orientation mode
+
+   @ingroup Panel */
+
+   top, /*@< Panel (dis)appears from the top */
+   bottom, /*@< Panel (dis)appears from the bottom */
+   left, /*@< Panel (dis)appears from the left */
+   right /*@< Panel (dis)appears from the right */
+}
+
 class Elm.Panel (Elm.Layout, Elm_Interface_Scrollable,
                  Elm_Interface_Atspi_Widget_Action)
 {
@@ -21,7 +34,7 @@ class Elm.Panel (Elm.Layout, Elm_Interface_Scrollable,
             @ingroup Panel */
          }
          values {
-            Elm_Panel_Orient orient(2); /*@ The panel orientation. Can be one of the following:
+            Elm.Panel.Orient orient(Elm.Panel.Orient.left); /*@ The panel orientation. Can be one of the following:
             @li #ELM_PANEL_ORIENT_TOP
             @li #ELM_PANEL_ORIENT_LEFT
             @li #ELM_PANEL_ORIENT_RIGHT */
index 2bccf6b..53b77e4 100644 (file)
@@ -5,17 +5,6 @@
  */
 
 /**
- * Panel orientation mode
- */
-typedef enum
-{
-   ELM_PANEL_ORIENT_TOP, /**< Panel (dis)appears from the top */
-   ELM_PANEL_ORIENT_BOTTOM, /**< Panel (dis)appears from the bottom */
-   ELM_PANEL_ORIENT_LEFT, /**< Panel (dis)appears from the left */
-   ELM_PANEL_ORIENT_RIGHT, /**< Panel (dis)appears from the right */
-} Elm_Panel_Orient;
-
-/**
  * Panel scroll information
  *
  * @since 1.11