Tizen Native API
|
Functions | |
Evas_Object * | minicontrol_create_window (const char *name, minicontrol_target_viewer_e target_viewer, minicontrol_event_cb callback) |
Creates a window for minicontrol. | |
int | minicontrol_send_event (Evas_Object *mincontrol, minicontrol_provider_event_e event, bundle *event_arg) |
Sends a event to the viewer. | |
Typedefs | |
typedef void(* | minicontrol_event_cb )(minicontrol_viewer_event_e event_type, bundle *event_arg) |
Called when a event comes from viewer. |
Minicontrol Provider APIs.
Required Header
#include <minicontrol-provider.h>
Overview
It provides functions for creating EFL socket window.
Typedef Documentation
typedef void(* minicontrol_event_cb)(minicontrol_viewer_event_e event_type, bundle *event_arg) |
Called when a event comes from viewer.
- Since :
- 2.4
- Parameters:
-
[in] event_type The type of fired event [in] event_arg argument of the event
- Precondition:
- minicontrol_viewer_register_event_callback() used to register this callback.
Function Documentation
Evas_Object* minicontrol_create_window | ( | const char * | name, |
minicontrol_target_viewer_e | target_viewer, | ||
minicontrol_event_cb | callback | ||
) |
Creates a window for minicontrol.
- Since :
- 2.4
- Parameters:
-
[in] name Name of minicontrol socket window [in] target_viewer Target viewer for minicontrol. You can select multiple viewers by using bitwise OR operator. [in] callback a callback function for events originated by minicontrol viewer.
- Returns:
- Evas object of socket window.
NULL
failed to create, get_last_result() will returns reason of failure.
int minicontrol_send_event | ( | Evas_Object * | mincontrol, |
minicontrol_provider_event_e | event, | ||
bundle * | event_arg | ||
) |
Sends a event to the viewer.
- Remarks:
- When a viewer doesn't handle some events, it can be ignored.
- Since :
- 2.4
- Parameters:
-
[in] minicontrol minicontrol window [in] event Type of the event [in] event_arg Bundle argument of the event
- Returns:
- MINICONTROL_ERROR_NONE on success, otherwise an error code (see #MINICONTROL_ERROR_XXX) on failure
- Return values:
-
MINICONTROL_ERROR_INVALID_PARAMETER Invalid argument
- See also:
- minicontrol_provider_event_e
- minicontrol_create_window
- #minicontrol_request_to_viewer_e