|
Tizen Native API
5.0
|
This module provides functionalities about ui_view.
Functions | |
| ui_view * | ui_view_create (const char *name) |
| Creates an ui_view. | |
| int | ui_view_set_content (ui_view *view, Eo *content) |
| Replaces or sets a content of ui_view. | |
| Eo * | ui_view_get_content (const ui_view *view) |
| Returns a content of this view. | |
| Eo * | ui_view_unset_content (ui_view *view) |
| Unsets a ui_view content. | |
| int | ui_view_set_event_cb (ui_view *view, ui_view_event_type_e event_type, ui_view_event_cb event_cb, void *user_data) |
| Sets callback functions for handling view events. | |
| Eo * | ui_view_get_base (const ui_view *view) |
| Gets a base object of ui_view. | |
| int | ui_view_set_indicator (ui_view *view, ui_view_indicator indicator) |
| Sets the indicator mode of a ui_view. | |
| ui_view_indicator | ui_view_get_indicator (const ui_view *view) |
| Returns the indicator mode of this view. | |
| int | ui_view_set_available_rotations (ui_view *view, const int *rotations, unsigned int count) |
| Sets the array of view's available rotations. | |
| const int * | ui_view_get_available_rotations (const ui_view *view, unsigned int *count) |
| Gets the array of view's available rotations. | |
| int | ui_view_set_removable_content (ui_view *view, bool removable) |
| Sets content removable. | |
| bool | ui_view_get_removable_content (const ui_view *view) |
| Returns a state of removable content. | |
| int | ui_view_get_degree (const ui_view *view) |
| Gets the current view's degree. | |
| ui_view_orientation_mode | ui_view_get_orientation_mode (const ui_view *view) |
| Gets current view's orientation mode. | |
| int | ui_view_set_transition_style (ui_view *view, const char *style) |
| Sets transition style of a view. | |
| const char * | ui_view_get_transition_style (const ui_view *view) |
| Returns a style name of this view. | |
| ui_menu * | ui_view_get_menu (const ui_view *view) |
| Gets a ui_menu instance. | |
| const char * | ui_view_get_name (const ui_view *view) |
| Returns a name of this view. | |
| ui_view_state | ui_view_get_state (const ui_view *view) |
| Returns a state of this view. | |
| int | ui_view_destroy (ui_view *view) |
| Destroys an ui_view. | |
Typedefs | |
| typedef bool(* | ui_view_event_cb )(ui_view *view, void *user_data) |
| The ui_view event callback function signature. | |
| typedef bool(* ui_view_event_cb)(ui_view *view, void *user_data) |
The ui_view event callback function signature.
| [in] | view | An ui_view instance |
| [in] | degree | Current view's degree |
| [in] | data | The user data to be passed to the given event_callback functions |
| enum ui_view_event_type_e |
Enumeration for ui_view event type.
| ui_view* ui_view_create | ( | const char * | name | ) |
Creates an ui_view.
| [in] | name | View name |
NULL if failed | UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_OUT_OF_MEMORY | Fail to create new instance |
| int ui_view_destroy | ( | ui_view * | view | ) |
Destroys an ui_view.
| [in] | view | An ui_view instance |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| const int* ui_view_get_available_rotations | ( | const ui_view * | view, |
| unsigned int * | count | ||
| ) |
Gets the array of view's available rotations.
NULL will be returned if view or count is invalid. The specific error code can be obtained using the get_last_result() method. Error codes are described in Exception section.| [in] | view | An ui_view instance |
| [out] | count | The number of arrays of rotations |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| Eo* ui_view_get_base | ( | const ui_view * | view | ) |
Gets a base object of ui_view.
| [in] | view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| Eo* ui_view_get_content | ( | const ui_view * | view | ) |
Returns a content of this view.
| [in] | view | An ui_view instance |
NULL | UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| int ui_view_get_degree | ( | const ui_view * | view | ) |
Gets the current view's degree.
| [in] | view | An ui_view instance |
-1 if it fails to get degree information | UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| ui_view_indicator ui_view_get_indicator | ( | const ui_view * | view | ) |
Returns the indicator mode of this view.
| view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| ui_menu* ui_view_get_menu | ( | const ui_view * | view | ) |
Gets a ui_menu instance.
| [in] | view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| const char* ui_view_get_name | ( | const ui_view * | view | ) |
Returns a name of this view.
| [in] | view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| ui_view_orientation_mode ui_view_get_orientation_mode | ( | const ui_view * | view | ) |
Gets current view's orientation mode.
| [in] | view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| bool ui_view_get_removable_content | ( | const ui_view * | view | ) |
Returns a state of removable content.
| [in] | view | An ui_view instance |
true if the view's content is removable, otherwise false | UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| ui_view_state ui_view_get_state | ( | const ui_view * | view | ) |
Returns a state of this view.
| [in] | view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| const char* ui_view_get_transition_style | ( | const ui_view * | view | ) |
Returns a style name of this view.
| [in] | view | An ui_view instance |
| UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |
| int ui_view_set_available_rotations | ( | ui_view * | view, |
| const int * | rotations, | ||
| unsigned int | count | ||
| ) |
Sets the array of view's available rotations.
| [in] | view | An ui_view instance |
| [in] | rotations | The array of rotation values |
| [in] | count | The number of arrays of rotations |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | If view is invalid or count is less than 1 or rotations is invalid pointer |
| UI_VIEWMGR_ERROR_OUT_OF_MEMORY | Out of Memory |
| UI_VIEWMGR_ERROR_NOT_PERMITTED | Current view manager system is not set up |
| int ui_view_set_content | ( | ui_view * | view, |
| Eo * | content | ||
| ) |
Replaces or sets a content of ui_view.
| [in] | view | An ui_view instance |
| [in] | content | A new content. It allows NULL for canceling the previous content |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
| int ui_view_set_event_cb | ( | ui_view * | view, |
| ui_view_event_type_e | event_type, | ||
| ui_view_event_cb | event_cb, | ||
| void * | user_data | ||
| ) |
Sets callback functions for handling view events.
NULL to event_cb.| [in] | view | An ui_view instance |
| [in] | event_type | ui_view event type |
| [in] | event_cb | The set of callback functions to handle view events |
| [in] | user_data | The user data to be passed to the given event_callback functions |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | if view is invalid |
| int ui_view_set_indicator | ( | ui_view * | view, |
| ui_view_indicator | indicator | ||
| ) |
Sets the indicator mode of a ui_view.
| [in] | view | An ui_view instance |
| [in] | indicator | The mode to set, one of ui_view_indicator |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | Invalid Parameters |
| UI_VIEWMGR_ERROR_NOT_PERMITTED | Current view manager system is not set up |
| int ui_view_set_removable_content | ( | ui_view * | view, |
| bool | removable | ||
| ) |
Sets content removable.
| [in] | view | An ui_view instance |
| [in] | removable | If removable is true, content of this view will be removed on unload state. false otherwise |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | If view is invalid or count is less than 1 or rotations is invalid pointer |
| int ui_view_set_transition_style | ( | ui_view * | view, |
| const char * | style | ||
| ) |
Sets transition style of a view.
| [in] | view | An ui_view instance |
| [in] | style | A transition style name |
0 on success, otherwise a negative error value | UI_VIEWMGR_ERROR_NONE | Successful |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid or style is not supported |
| Eo* ui_view_unset_content | ( | ui_view * | view | ) |
Unsets a ui_view content.
| [in] | view | An ui_view instance |
NULL | UI_VIEWMGR_ERROR_NONE | Successfully added |
| UI_VIEWMGR_ERROR_INVALID_PARAMETER | view is invalid |