Tizen Native API
5.0
|
This module provides functionalities about ui_standard_view.
Functions | |
ui_standard_view * | ui_standard_view_create (const char *name) |
Creates an ui_standard_view. | |
int | ui_standard_view_set_title (ui_standard_view *view, const char *text) |
Sets a title text. | |
int | ui_standard_view_set_sub_title (ui_standard_view *view, const char *text) |
Sets a subtitle text. | |
int | ui_standard_view_set_title_badge (ui_standard_view *view, const char *badge_text) |
Sets a title badge text. | |
int | ui_standard_view_set_title_right_btn (ui_standard_view *view, Elm_Button *title_right_btn) |
Sets a title_right_btn. | |
Elm_Button * | ui_standard_view_get_title_right_btn (const ui_standard_view *view) |
Returns a title right button of the view. | |
Elm_Button * | ui_standard_view_unset_title_right_btn (ui_standard_view *view) |
Unsets a title right button of title area. | |
int | ui_standard_view_set_title_left_btn (ui_standard_view *view, Elm_Button *title_left_btn) |
Sets a title_left_btn. | |
Elm_Button * | ui_standard_view_get_title_left_btn (const ui_standard_view *view) |
Returns a title left button of the view. | |
Elm_Button * | ui_standard_view_unset_title_left_btn (ui_standard_view *view) |
Unsets a title left button of title area. | |
int | ui_standard_view_set_toolbar (ui_standard_view *view, Elm_Toolbar *toolbar) |
Sets a toolbar below title. | |
Elm_Toolbar * | ui_standard_view_get_toolbar (const ui_standard_view *view) |
Returns a toolbar of the view. | |
Elm_Toolbar * | ui_standard_view_unset_toolbar (ui_standard_view *view) |
Unsets a toolbar. | |
int | ui_standard_view_set_title_visible (ui_standard_view *view, bool visible, bool anim) |
Controls the title visible state. |
ui_standard_view* ui_standard_view_create | ( | const char * | name | ) |
Creates an ui_standard_view.
[in] | name | View name |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_OUT_OF_MEMORY | Fail to create new instance |
Elm_Button* ui_standard_view_get_title_left_btn | ( | const ui_standard_view * | view | ) |
Returns a title left button of the view.
[in] | view | An ui_standard_view instance |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
Elm_Button* ui_standard_view_get_title_right_btn | ( | const ui_standard_view * | view | ) |
Returns a title right button of the view.
[in] | view | An ui_standard_view instance |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
Elm_Toolbar* ui_standard_view_get_toolbar | ( | const ui_standard_view * | view | ) |
Returns a toolbar of the view.
[in] | view | An ui_standard_view instance |
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
int ui_standard_view_set_sub_title | ( | ui_standard_view * | view, |
const char * | text | ||
) |
Sets a subtitle text.
[in] | view | An ui_standard_view instance |
[in] | text | The label in the subtitle area |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
int ui_standard_view_set_title | ( | ui_standard_view * | view, |
const char * | text | ||
) |
Sets a title text.
[in] | view | An ui_standard_view instance |
[in] | text | The label in the title area |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
int ui_standard_view_set_title_badge | ( | ui_standard_view * | view, |
const char * | badge_text | ||
) |
Sets a title badge text.
[in] | view | An ui_standard_view instance |
[in] | badge_text | The label in the title badge area |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
int ui_standard_view_set_title_left_btn | ( | ui_standard_view * | view, |
Elm_Button * | title_left_btn | ||
) |
Sets a title_left_btn.
[in] | view | An ui_standard_view instance |
[in] | title_left_btn | The button in the left part of title area |
0
on success, otherwise a negative error value. UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS | if title_left_btn is same with the existing one |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
int ui_standard_view_set_title_right_btn | ( | ui_standard_view * | view, |
Elm_Button * | title_right_btn | ||
) |
Sets a title_right_btn.
[in] | view | An ui_standard_view instance |
[in] | title_right_btn | The button in the right part of title area |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS | if title_right_btn is same with the existing one |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
int ui_standard_view_set_title_visible | ( | ui_standard_view * | view, |
bool | visible, | ||
bool | anim | ||
) |
Controls the title visible state.
[in] | view | An ui_standard_view instance |
[in] | visible | Title state set as visible if the given param is true , otherwise title area set as invisible |
[in] | anim | Title area will be shown with animation if the given param is true , otherwise title area will be shown without animation |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
int ui_standard_view_set_toolbar | ( | ui_standard_view * | view, |
Elm_Toolbar * | toolbar | ||
) |
Sets a toolbar below title.
[in] | view | An ui_standard_view instance |
[in] | toolbar | Toolbar object |
0
on success, otherwise a negative error value UI_VIEWMGR_ERROR_NONE | Successful |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
UI_VIEWMGR_ERROR_ALREADY_IN_PROGRESS | if toolbar is already existing |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
Elm_Button* ui_standard_view_unset_title_left_btn | ( | ui_standard_view * | view | ) |
Unsets a title left button of title area.
[in] | view | An ui_standard_view instance |
NULL
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
Elm_Button* ui_standard_view_unset_title_right_btn | ( | ui_standard_view * | view | ) |
Unsets a title right button of title area.
[in] | view | An ui_standard_view instance |
NULL
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
UI_VIEWMGR_ERROR_RESULT_OUT_OF_RANGE | Instance is corrupted. Maybe base object is broken |
Elm_Toolbar* ui_standard_view_unset_toolbar | ( | ui_standard_view * | view | ) |
Unsets a toolbar.
[in] | view | An ui_standard_view instance |
NULL
UI_VIEWMGR_ERROR_NONE | Successfully added |
UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |