|
Tizen Native API
5.0
|
Minicontrol Viewer APIs.
#include <minicontrol-viewer.h>
It provides functions for displaying EFL socket window.
Functions | |
| Evas_Object * | minicontrol_viewer_add (Evas_Object *parent, const char *minicontrol_name) |
| Adds minicontrol named as "minicontrol_name" to a given parent evas object and returns it. | |
| int | minicontrol_viewer_send_event (const char *minicontrol_name, minicontrol_viewer_event_e event, bundle *event_arg) |
| Sends a event to the provider. | |
| int | minicontrol_viewer_set_event_cb (minicontrol_viewer_event_cb callback, void *user_data) |
| Sets a callback for events originated by minicontrol provider. | |
| int | minicontrol_viewer_unset_event_cb (void) |
| Unsets a callback for events originated by minicontrol provider. | |
Typedefs | |
| typedef void(* | minicontrol_viewer_event_cb )(minicontrol_event_e event, const char *minicontrol_name, bundle *event_arg, void *user_data) |
| Called when a event comes from the provider. | |
| typedef void(* minicontrol_viewer_event_cb)(minicontrol_event_e event, const char *minicontrol_name, bundle *event_arg, void *user_data) |
Called when a event comes from the provider.
| [in] | event | The type of fired event |
| [in] | minicontrol_name | The name of the minicontrol window The minicontrol_name can be used only in the callback. To use outside, make a copy. |
| [in] | event_arg | A bundle of arguments The event_arg can be used only in the callback. To use outside, make a copy. |
| [in] | user_data | User data |
| Evas_Object* minicontrol_viewer_add | ( | Evas_Object * | parent, |
| const char * | minicontrol_name | ||
| ) |
Adds minicontrol named as "minicontrol_name" to a given parent evas object and returns it.
| [in] | parent | Minicontrol object will be added to this parent evas object |
| [in] | minicontrol_name | Name of minicontrol |
| MINICONTROL_ERROR_NONE | Success |
| MINICONTROL_ERROR_INVALID_PARAMETER | Invalid argument |
| MINICONTROL_ERROR_ELM_FAILURE | Some error occurred when creating a minicontrol window |
| MINICONTROL_ERROR_NOT_SUPPORTED | Not supported |
| int minicontrol_viewer_send_event | ( | const char * | minicontrol_name, |
| minicontrol_viewer_event_e | event, | ||
| bundle * | event_arg | ||
| ) |
Sends a event to the provider.
| [in] | minicontrol_name | The name of the minicontrol window |
| [in] | event | Type of the event |
| [in] | event_arg | A bundle of arguments |
| MINICONTROL_ERROR_NONE | Success |
| MINICONTROL_ERROR_INVALID_PARAMETER | Invalid argument |
| MINICONTROL_ERROR_NOT_SUPPORTED | Not supported |
| int minicontrol_viewer_set_event_cb | ( | minicontrol_viewer_event_cb | callback, |
| void * | user_data | ||
| ) |
Sets a callback for events originated by minicontrol provider.
| [in] | callback | Callback function |
| [in] | user_data | User data |
| MINICONTROL_ERROR_NONE | Success |
| MINICONTROL_ERROR_INVALID_PARAMETER | Invalid argument |
| MINICONTROL_ERROR_IPC_FAILURE | IPC failure |
| MINICONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
| MINICONTROL_ERROR_NOT_SUPPORTED | Not supported |
| int minicontrol_viewer_unset_event_cb | ( | void | ) |
Unsets a callback for events originated by minicontrol provider.
| MINICONTROL_ERROR_NOT_SUPPORTED | Not supported |