Tizen Native API
5.0
|
This module provides functionalities about ui_viewmgr.
Functions | |
int | ui_viewmgr_push_view (ui_view *view) |
Pushes a new view into ui_viewmgr. This function is used for when application switches a current view to a new one. | |
int | ui_viewmgr_insert_view_before (ui_view *view, ui_view *before) |
Inserts a view in the ui_viewmgr view list. Specifically, insert a given view right before of the given view, before. | |
int | ui_viewmgr_insert_view_after (ui_view *view, ui_view *after) |
Inserts a view in the ui_viewmgr view list. Specifically, insert a given view right after of the given view, after. | |
int | ui_viewmgr_pop_view (void) |
Pops the top(last) view from the ui_viewmgr view list. This function is used when application switches the current view back to the previous view. The top view will be removed from the view stack and then it will be deleted by ui_viewmgr. | |
int | ui_viewmgr_activate (void) |
Activates this view manager. | |
int | ui_viewmgr_deactivate (void) |
Deactivates this view manager. | |
Elm_Win * | ui_viewmgr_get_window (void) |
Gets a window object of ui_viewmgr. | |
ui_view * | ui_viewmgr_get_last_view (void) |
Returns a last(top) view. | |
ui_view * | ui_viewmgr_get_view_by_idx (int idx) |
Returns a view which is matched with the index idx. | |
ui_view * | ui_viewmgr_get_view_by_name (const char *name) |
Returns a view which is matched with the name. | |
Eo * | ui_viewmgr_get_base (void) |
Gets a base object of a ui_viewmgr. | |
int | ui_viewmgr_get_view_index (const ui_view *view) |
Returns a view index(page) number of the given view. You could use this function to query the given view list order. | |
int | ui_viewmgr_get_view_count (void) |
Returns the number of views which of ui_viewmgr. |
int ui_viewmgr_activate | ( | void | ) |
Activates this view manager.
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS | Already activated |
UI_VIEWMGR_ERROR_NOT_PERMITTED | Can't be activated. (ie, view manager has zero views.) |
int ui_viewmgr_deactivate | ( | void | ) |
Deactivates this view manager.
0
on success, otherwise a negative error value. UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS | Already deactivated |
Eo* ui_viewmgr_get_base | ( | void | ) |
Gets a base object of a ui_viewmgr.
ui_view* ui_viewmgr_get_last_view | ( | void | ) |
Returns a last(top) view.
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_NOT_PERMITTED | viewmgr has no view |
ui_view* ui_viewmgr_get_view_by_idx | ( | int | idx | ) |
Returns a view which is matched with the index idx.
[in] | idx | A index of the view which you are looking for |
NULL
will be returned UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | Wrong index |
ui_view* ui_viewmgr_get_view_by_name | ( | const char * | name | ) |
Returns a view which is matched with the name.
[in] | name | The name of the view which you are looking for |
NULL
will be returned UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | name is NULL, otherwise there is no matched name |
int ui_viewmgr_get_view_count | ( | void | ) |
Returns the number of views which of ui_viewmgr.
int ui_viewmgr_get_view_index | ( | const ui_view * | view | ) |
Returns a view index(page) number of the given view. You could use this function to query the given view list order.
[in] | view | An ui_view to query the index. |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is not valid |
Elm_Win* ui_viewmgr_get_window | ( | void | ) |
Gets a window object of ui_viewmgr.
int ui_viewmgr_insert_view_after | ( | ui_view * | view, |
ui_view * | after | ||
) |
Inserts a view in the ui_viewmgr view list. Specifically, insert a given view right after of the given view, after.
[in] | view | An ui_view to insert in the ui_viewmgr view list |
[in] | after | An ui_view that will be just inserted before the view. If you pass NULL , view will be inserted at the end of the view list |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_NOT_PERMITTED | view was already inserted |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is not valid |
int ui_viewmgr_insert_view_before | ( | ui_view * | view, |
ui_view * | before | ||
) |
Inserts a view in the ui_viewmgr view list. Specifically, insert a given view right before of the given view, before.
[in] | view | An ui_view to insert in the ui_viewmgr view list |
[in] | before | An ui_view that will be just inserted after view. If you pass NULL , view will be inserted at the front of the view list |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_NOT_PERMITTED | view was already inserted |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is not valid |
int ui_viewmgr_pop_view | ( | void | ) |
Pops the top(last) view from the ui_viewmgr view list. This function is used when application switches the current view back to the previous view. The top view will be removed from the view stack and then it will be deleted by ui_viewmgr.
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_NOT_PERMITTED | No more views to pop |
UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS | On a certain profile, it may not allow to pop multiple views at the same time |
int ui_viewmgr_push_view | ( | ui_view * | view | ) |
Pushes a new view into ui_viewmgr. This function is used for when application switches a current view to a new one.
Normally, the current view will be hidden by a new view. In default, when user calls this API, view will be switched to view instantly, only when ui_viewmgr state is activated. Otherwise, the view will be shown later when ui_viewmgr is activated. ui_viewmgr_view_push() is designed for providing view transition effect. If you want push view instantly without any transition, you could use ui_viewmgr_view_push_insert_before() or ui_viewmgr_view_push_insert_after(). If you want to pop the current view, the please use ui_viewmgr_view_pop().
[in] | view | An ui_view to insert in the ui_viewmgr view list |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is not valid |
UI_VIEWMGR_ERROR_NOT_PERMITTED | view was already inserted |