diff options
author | Amitesh Singh <amitesh.sh@samsung.com> | 2016-11-30 16:18:46 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2016-11-30 17:59:56 +0900 |
commit | a58e2e1a790732428fa09d479fec63d433931f06 (patch) | |
tree | 81d1d75af4995c0d00f18c2d9d7e59c22d742a8e /src/lib/elementary/elm_menu_legacy.h | |
parent | 496f2ed4277dbc03740494a7185a67060f7b2198 (diff) | |
download | efl-a58e2e1a790732428fa09d479fec63d433931f06.tar.gz |
Menu,Item Interface: Common interface for menu, toolbar and ctxpopup
Summary:
efl_ui_menu interface provides common functions of menu, toolbar and ctxpopup.
efl_ui_item interface provides common functions of menu_item, toolbar_item and ctxpopup_item.
Also implemented some missing functions like selected_item set/get in ctxpopup.
efl_ui_item interface should be used for other widget items as well.
Test Plan: elementary_test
Reviewers: jpeg, felipealmeida, raster, SanghyeonLee, cedric, yashu21985
Subscribers: bu5hm4n
Differential Revision: https://phab.enlightenment.org/D3897
Diffstat (limited to 'src/lib/elementary/elm_menu_legacy.h')
-rw-r--r-- | src/lib/elementary/elm_menu_legacy.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/lib/elementary/elm_menu_legacy.h b/src/lib/elementary/elm_menu_legacy.h index 9c86efc722..8903190ce9 100644 --- a/src/lib/elementary/elm_menu_legacy.h +++ b/src/lib/elementary/elm_menu_legacy.h @@ -30,5 +30,62 @@ EAPI void elm_menu_parent_set(Evas_Object *obj, Evas_Obj */ EAPI Evas_Object *elm_menu_parent_get(const Evas_Object *obj); +/** + * @brief Get the selected item in the menu. + * + * @return The selected item or @c null. + * + * @ingroup Elm_Menu + */ +EAPI Elm_Widget_Item *elm_menu_selected_item_get(const Evas_Object *obj); + +/** Returns a list of the item's items. + * + * @ingroup Elm_Menu + */ +EAPI const Eina_List *elm_menu_items_get(const Evas_Object *obj); + +/** Get the first item in the menu. + * + * @ingroup Elm_Menu + */ +EAPI Elm_Widget_Item *elm_menu_first_item_get(const Evas_Object *obj); + +/** Get the last item in the menu. + * + * @ingroup Elm_Menu + */ +EAPI Elm_Widget_Item *elm_menu_last_item_get(const Evas_Object *obj); + +/** + * @brief Set the selected state of @c item. + * + * @param[in] selected The selection state. + * + * @ingroup Elm_Menu_Item + */ +EAPI void elm_menu_item_selected_set(Evas_Object *obj, Eina_Bool selected); + +/** + * @brief Get the selected state of @c item. + * + * @return The selection state. + * + * @ingroup Elm_Menu_Item + */ +EAPI Eina_Bool elm_menu_item_selected_get(const Evas_Object *obj); + +/** Get the previous item in the menu. + * + * @ingroup Elm_Menu_Item + */ +EAPI Elm_Widget_Item *elm_menu_item_prev_get(const Evas_Object *obj); + +/** Get the next item in the menu. + * + * @ingroup Elm_Menu_Item + */ +EAPI Elm_Widget_Item *elm_menu_item_next_get(const Evas_Object *obj); + #include "elm_menu_item.eo.legacy.h" #include "elm_menu.eo.legacy.h" |