Tizen Native API
|
Functions | |
int | efl_util_set_notification_window_level (Evas_Object *window, efl_util_notification_level_e level) |
Sets the priority level for the specified notification window, asynchronously. | |
int | efl_util_get_notification_window_level (Evas_Object *window, efl_util_notification_level_e *level) |
Gets the priority level for the specified notification window, asynchronously. | |
int | efl_util_set_notification_window_level_error_cb (Evas_Object *window, efl_util_notification_window_level_error_cb callback, void *user_data) |
Registers a callback function to be invoked when an error which set the notification level occurs. | |
int | efl_util_unset_notification_window_level_error_cb (Evas_Object *window) |
Unregisters the callback function. | |
Typedefs | |
typedef void(* | efl_util_notification_window_level_error_cb )(Evas_Object *window, int error_code, void *user_data) |
Called when an error occurs for setting notification window level. |
#include <efl_util.h>
The EFL UTIL API provides functions to get the level of given notification windows and to change the notification window levels with the given values.
The notification window level is used in ordering the notification windows. The notification window which is set to EFL_UTIL_NOTIFICATION_LEVEL_2 will be placed above the window which is set to EFL_UTIL_NOTIFICATION_LEVEL_1. If there are notification windows that have the same levels, the latest created notification window is placed on top of the other window.
typedef void(* efl_util_notification_window_level_error_cb)(Evas_Object *window, int error_code, void *user_data) |
Called when an error occurs for setting notification window level.
[in] | window | The EFL window |
[in] | error_code | The error code (EFL_UTIL_ERROR_PERMISSION_DENIED) |
[in] | user_data | The user data passed from the callback registration function |
enum efl_util_error_e |
int efl_util_get_notification_window_level | ( | Evas_Object * | window, |
efl_util_notification_level_e * | level | ||
) |
Gets the priority level for the specified notification window, asynchronously.
[in] | window | The EFL window |
[out] | level | The notification window level |
0
on success, otherwise a negative error value EFL_UTIL_ERROR_NONE | Successful |
EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
EFL_UTIL_ERROR_NOT_SUPPORTED_WINDOW_TYPE | Window type not supported |
int efl_util_set_notification_window_level | ( | Evas_Object * | window, |
efl_util_notification_level_e | level | ||
) |
Sets the priority level for the specified notification window, asynchronously.
[in] | window | The EFL window |
[in] | level | The notification window level |
0
on success, otherwise a negative error value EFL_UTIL_ERROR_NONE | Successful |
EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
EFL_UTIL_ERROR_NOT_SUPPORTED_WINDOW_TYPE | Window type not supported |
int efl_util_set_notification_window_level_error_cb | ( | Evas_Object * | window, |
efl_util_notification_window_level_error_cb | callback, | ||
void * | user_data | ||
) |
Registers a callback function to be invoked when an error which set the notification level occurs.
[in] | window | The EFL window |
[in] | callback | The callback function to register |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value EFL_UTIL_ERROR_NONE | Successful |
EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |
EFL_UTIL_ERROR_OUT_OF_MEMORY | Out of memory |
int efl_util_unset_notification_window_level_error_cb | ( | Evas_Object * | window | ) |
Unregisters the callback function.
[in] | window | The EFL window |
0
on success, otherwise a negative error value EFL_UTIL_ERROR_NONE | Successful |
EFL_UTIL_ERROR_INVALID_PARAMETER | Invalid parameter |