focus: Add elm_focus_item.h to make header include order correctly. 83/48383/1
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Tue, 15 Sep 2015 16:03:22 +0000 (01:03 +0900)
committerJaehwan Kim <jae.hwan.kim@samsung.com>
Sat, 19 Sep 2015 09:16:23 +0000 (18:16 +0900)
This fixes the cpp example compile error which was triggered by the commit 431492e.

Change-Id: I092088e59eea802370f4b2088b55ddaf903043c1
origin: upstream

src/lib/Makefile.am
src/lib/elm_focus.h
src/lib/elm_focus_item.h [new file with mode: 0644]
src/lib/elm_object_item.h

index 2581398..7a1b98a 100644 (file)
@@ -220,6 +220,7 @@ elm_flipselector_common.h \
 elm_flipselector_eo.h \
 elm_flipselector_legacy.h \
 elm_focus.h \
+elm_focus_item.h \
 elm_font.h \
 elm_frame.h \
 elm_frame_eo.h \
index 7997747..a4a5fc3 100644 (file)
@@ -38,7 +38,7 @@
  *
  * @ingroup Focus
  */
-typedef enum _Elm_Focus_Direction
+typedef enum
 {
    ELM_FOCUS_PREVIOUS, /**< previous direction */
    ELM_FOCUS_NEXT,     /**< next direction */
@@ -249,47 +249,6 @@ EAPI Evas_Object *        elm_object_focus_next_object_get(const Evas_Object *ob
 EAPI void                 elm_object_focus_next_object_set(Evas_Object *obj, Evas_Object *next, Elm_Focus_Direction dir);
 
 /**
- * Get next object item which was set with specific focus direction.
- *
- * Get next object item which was set by elm_object_focus_next_item_set
- * with specific focus direction.
- *
- * @param obj The Elementary object
- * @param dir Focus direction
- * @return Focus next object item or @c NULL, if there is no focus next
- * object item.
- *
- * @see elm_object_focus_next_item_set(), elm_object_focus_next()
- *
- * @since 1.16
- *
- * @ingroup Focus
- */
-EAPI Elm_Object_Item *    elm_object_focus_next_item_get(const Evas_Object *obj, Elm_Focus_Direction dir);
-
-/**
- * Set next object item with specific focus direction.
- *
- * When focus next object item is set with specific focus direction,
- * this object item will be the first candidate when finding
- * next focusable object or item.
- * If the focus next object item is set, it is preference to focus next object.
- * Focus next object item can be registered with six directions that are
- * previous, next, up, down, right, and left.
- *
- * @param obj The Elementary object
- * @param next_item Focus next object item
- * @param dir Focus direction
- *
- * @see elm_object_focus_next_item_get(), elm_object_focus_next()
- *
- * @since 1.16
- *
- * @ingroup Focus
- */
-EAPI void                 elm_object_focus_next_item_set(Evas_Object *obj, Elm_Object_Item *next_item, Elm_Focus_Direction dir);
-
-/**
  * Get focused object in object tree.
  *
  * This function returns current focused object in one object sub-tree.
@@ -372,25 +331,6 @@ EAPI Eina_Bool    elm_object_focus_highlight_style_set(Evas_Object *obj, const c
 EAPI const char  *elm_object_focus_highlight_style_get(const Evas_Object *obj);
 
 /**
- * Get the focused object item
- *
- * This returns the focused object item.
- *
- * @param obj The container object
- * @return The focused item, or @c NULL if none
- *
- * The focused item can be unfocused with function
- * elm_object_item_focus_set().
- *
- * see @elm_object_item_focus_set()
- * see @elm_object_item_focus_get()
- *
- * @ingroup Focus
- * @since 1.10
- */
-EAPI Elm_Object_Item             *elm_object_focused_item_get(const Evas_Object *obj);
-
-/**
  * Set the focus movement policy to a given Elementary object.
  *
  * @param obj The Elementary object to operate on
diff --git a/src/lib/elm_focus_item.h b/src/lib/elm_focus_item.h
new file mode 100644 (file)
index 0000000..b8ef680
--- /dev/null
@@ -0,0 +1,61 @@
+/**
+ * Get the focused object item
+ *
+ * This returns the focused object item.
+ *
+ * @param obj The container object
+ * @return The focused item, or @c NULL if none
+ *
+ * The focused item can be unfocused with function
+ * elm_object_item_focus_set().
+ *
+ * see @elm_object_item_focus_set()
+ * see @elm_object_item_focus_get()
+ *
+ * @ingroup Focus
+ * @since 1.10
+ */
+EAPI Elm_Object_Item             *elm_object_focused_item_get(const Evas_Object *obj);
+
+/**
+ * Get next object item which was set with specific focus direction.
+ *
+ * Get next object item which was set by elm_object_focus_next_item_set
+ * with specific focus direction.
+ *
+ * @param obj The Elementary object
+ * @param dir Focus direction
+ * @return Focus next object item or @c NULL, if there is no focus next
+ * object item.
+ *
+ * @see elm_object_focus_next_item_set(), elm_object_focus_next()
+ *
+ * @since 1.16
+ *
+ * @ingroup Focus
+ */
+EAPI Elm_Object_Item *    elm_object_focus_next_item_get(const Evas_Object *obj, Elm_Focus_Direction dir);
+
+/**
+ * Set next object item with specific focus direction.
+ *
+ * When focus next object item is set with specific focus direction,
+ * this object item will be the first candidate when finding
+ * next focusable object or item.
+ * If the focus next object item is set, it is preference to focus next object.
+ * Focus next object item can be registered with six directions that are
+ * previous, next, up, down, right, and left.
+ *
+ * @param obj The Elementary object
+ * @param next_item Focus next object item
+ * @param dir Focus direction
+ *
+ * @see elm_object_focus_next_item_get(), elm_object_focus_next()
+ *
+ * @since 1.16
+ *
+ * @ingroup Focus
+ */
+EAPI void                 elm_object_focus_next_item_set(Evas_Object *obj, Elm_Object_Item *next_item, Elm_Focus_Direction dir);
+
+
index db788f6..db19862 100644 (file)
@@ -5,8 +5,6 @@
  */
 typedef Eo Elm_Object_Item;
 
-typedef enum _Elm_Focus_Direction Elm_Focus_Direction;
-
 /**
  * @typedef Elm_Object_Item_Signal_Cb
  *