Tizen Native API
5.5
|
This module provides functionalities about ui_menu.
Functions | |
int | ui_menu_set_content (ui_menu *menu, Elm_Ctxpopup *content) |
Replaces or sets a content of an ui_menu. | |
Elm_Ctxpopup * | ui_menu_get_content (const ui_menu *menu) |
Returns an ui_menu content. | |
Elm_Ctxpopup * | ui_menu_unset_content (ui_menu *menu) |
Unsets an ui_menu content. | |
int | ui_menu_activate (ui_menu *menu) |
Activates an ui_menu. | |
int | ui_menu_deactivate (ui_menu *menu) |
Deactivates an ui_menu. | |
bool | ui_menu_get_activated (const ui_menu *menu) |
Returns the active status of ui_menu. | |
Eo * | ui_menu_get_base (const ui_menu *menu) |
Gets a base object of an ui_menu. | |
int | ui_menu_get_degree (const ui_menu *menu) |
Gets a current ui_menu's degree. | |
ui_view * | ui_menu_get_view (const ui_menu *menu) |
Returns a view which is matched with this ui_menu. |
int ui_menu_activate | ( | ui_menu * | menu | ) |
Activates an ui_menu.
It makes ui_menu state as show.
[in] | menu | An ui_menu instance |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_NOT_PERMITTED | menu instance is not set up yet |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
int ui_menu_deactivate | ( | ui_menu * | menu | ) |
Deactivates an ui_menu.
It makes ui_menu state as hide.
[in] | menu | An ui_menu instance |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_NOT_PERMITTED | menu instance is not set up yet |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
bool ui_menu_get_activated | ( | const ui_menu * | menu | ) |
Returns the active status of ui_menu.
[in] | menu | An ui_menu instance |
true
if menu is activated, false
otherwise UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
Eo* ui_menu_get_base | ( | const ui_menu * | menu | ) |
Gets a base object of an ui_menu.
Normally, A base object can be used for a parent of ui_menu content.
[in] | menu | An ui_menu instance |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
Elm_Ctxpopup* ui_menu_get_content | ( | const ui_menu * | menu | ) |
Returns an ui_menu content.
[in] | menu | An ui_menu instance |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
int ui_menu_get_degree | ( | const ui_menu * | menu | ) |
Gets a current ui_menu's degree.
[in] | menu | An ui_menu instance |
-1
if it fails to get degree information UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
ui_view* ui_menu_get_view | ( | const ui_menu * | menu | ) |
Returns a view which is matched with this ui_menu.
[in] | menu | An ui_menu instance |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |
int ui_menu_set_content | ( | ui_menu * | menu, |
Elm_Ctxpopup * | content | ||
) |
Replaces or sets a content of an ui_menu.
[in] | menu | An ui_menu object |
[in] | content | ctxpopup object. It allows NULL for cancelling the previous content |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid or content is not a type of Elm_Ctxpopup |
Elm_Ctxpopup* ui_menu_unset_content | ( | ui_menu * | menu | ) |
Unsets an ui_menu content.
[in] | menu | An ui_menu instance |
NULL
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | menu is invalid |