Tizen Native API
5.5
|
This provides APIs related to operations, used in View Event Data.
Supported Event types are following:
Note: the event of type MAPS_VIEW_EVENT_READY has no additional data besides the type.
Functions | |
int | maps_view_event_data_destroy (maps_view_event_data_h event) |
Destroys the event data handle. | |
int | maps_view_event_data_clone (const maps_view_event_data_h origin, maps_view_event_data_h *cloned) |
Clones the event handle. | |
int | maps_view_event_data_get_type (const maps_view_event_data_h event, maps_view_event_type_e *event_type) |
Gets the event type. | |
int | maps_view_event_data_get_gesture_type (const maps_view_event_data_h event, maps_view_gesture_e *gesture_type) |
Gets the event gesture type. | |
int | maps_view_event_data_get_action_type (const maps_view_event_data_h event, maps_view_action_e *action_type) |
Gets the event action type. | |
int | maps_view_event_data_get_center (const maps_view_event_data_h event, maps_coordinates_h *center) |
Gets the new map center coordinates. | |
int | maps_view_event_data_get_delta (const maps_view_event_data_h event, int *delta_x, int *delta_y) |
Gets the new map center movement coordinates delta. | |
int | maps_view_event_data_get_position (const maps_view_event_data_h event, int *x, int *y) |
Gets the event screen coordinates. | |
int | maps_view_event_data_get_coordinates (const maps_view_event_data_h event, maps_coordinates_h *coordinates) |
Gets the event geographic coordinates. | |
int | maps_view_event_data_get_fingers (const maps_view_event_data_h event, int *fingers) |
Gets the number of fingers, detected in the event. | |
int | maps_view_event_data_get_zoom_factor (const maps_view_event_data_h event, double *zoom_factor) |
Gets zoom factor of zoom gesture or action. | |
int | maps_view_event_data_get_rotation_angle (const maps_view_event_data_h event, double *rotation_angle) |
Gets rotation angle of rotation gesture or action. | |
int | maps_view_event_data_get_object (const maps_view_event_data_h event, maps_view_object_h *object) |
Gets object of event. | |
Typedefs | |
typedef void * | maps_view_event_data_h |
The View Event data handle. | |
typedef enum _maps_view_action_e | maps_view_action_e |
Enumeration for View actions. | |
typedef enum _maps_view_gesture_e | maps_view_gesture_e |
Enumeration for user gestures over View. | |
typedef enum _maps_view_event_type_e | maps_view_event_type_e |
Enumeration for map event types. |
typedef enum _maps_view_action_e maps_view_action_e |
Enumeration for View actions.
This is an enumeration of View actions capable to perform.
typedef void* maps_view_event_data_h |
The View Event data handle.
The handle of View Event Data instance.
typedef enum _maps_view_event_type_e maps_view_event_type_e |
Enumeration for map event types.
typedef enum _maps_view_gesture_e maps_view_gesture_e |
Enumeration for user gestures over View.
enum _maps_view_action_e |
Enumeration for View actions.
This is an enumeration of View actions capable to perform.
enum _maps_view_gesture_e |
Enumeration for user gestures over View.
int maps_view_event_data_clone | ( | const maps_view_event_data_h | origin, |
maps_view_event_data_h * | cloned | ||
) |
Clones the event handle.
This function clones the event handle origin and all its resources.
[in] | origin | The original event handle |
[out] | cloned | A cloned event handle |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_OUT_OF_MEMORY | Out of memory |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_destroy | ( | maps_view_event_data_h | event | ) |
Destroys the event data handle.
This function destroys the event data handle and releases all its resources.
[in] | event | The event data handle to destroy |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_action_type | ( | const maps_view_event_data_h | event, |
maps_view_action_e * | action_type | ||
) |
Gets the event action type.
This function gets the event action type if the event type is MAPS_VIEW_EVENT_ACTION. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | action_type | The pointer to the maps_view_action_e in which to store the action type |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_center | ( | const maps_view_event_data_h | event, |
maps_coordinates_h * | center | ||
) |
Gets the new map center coordinates.
This function gets the new map center coordinates if the event type is MAPS_VIEW_EVENT_ACTION. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | center | The pointer to the maps_coordinates_h in which to store the new center coordinates |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_coordinates | ( | const maps_view_event_data_h | event, |
maps_coordinates_h * | coordinates | ||
) |
Gets the event geographic coordinates.
This function gets the event geographic coordinates if the event type is MAPS_VIEW_EVENT_GESTURE. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | coordinates | The pointer to the maps_coordinates_h in which to store the coordinates |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_delta | ( | const maps_view_event_data_h | event, |
int * | delta_x, | ||
int * | delta_y | ||
) |
Gets the new map center movement coordinates delta.
This function gets the screen coordinates delta of map center movement if the event type is MAPS_VIEW_EVENT_ACTION. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | delta_x | The pointer to an integer in which to store the delta x |
[out] | delta_y | The pointer to an integer in which to store the delta y |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_fingers | ( | const maps_view_event_data_h | event, |
int * | fingers | ||
) |
Gets the number of fingers, detected in the event.
This function gets the number of user's fingers detected in the event if the event type is MAPS_VIEW_EVENT_GESTURE or MAPS_VIEW_EVENT_OBJECT. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | fingers | The pointer to an integer in which to store the number of fingers, detected in the gesture |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_gesture_type | ( | const maps_view_event_data_h | event, |
maps_view_gesture_e * | gesture_type | ||
) |
Gets the event gesture type.
This function gets the event gesture type if the event type is MAPS_VIEW_EVENT_GESTURE or MAPS_VIEW_EVENT_OBJECT. Otherwise it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | gesture_type | The pointer to the maps_view_gesture_e in which to store the gesture type |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_object | ( | const maps_view_event_data_h | event, |
maps_view_object_h * | object | ||
) |
Gets object of event.
When the event type is MAPS_VIEW_EVENT_OBJECT, this function gets the corresponding object handle. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | object | The pointer to maps_view_object_h in which to store the object handle |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_position | ( | const maps_view_event_data_h | event, |
int * | x, | ||
int * | y | ||
) |
Gets the event screen coordinates.
This function gets the event screen coordinates if the event type is MAPS_VIEW_EVENT_GESTURE or MAPS_VIEW_EVENT_OBJECT. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | x | The pointer to an integer in which to store the x position of the event |
[out] | y | The pointer to an integer in which to store the y position of the event |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_rotation_angle | ( | const maps_view_event_data_h | event, |
double * | rotation_angle | ||
) |
Gets rotation angle of rotation gesture or action.
This function gets the corresponding rotation angle if the event type is MAPS_VIEW_EVENT_GESTURE or MAPS_VIEW_EVENT_ACTION. Otherwise, it returns MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | rotation_angle | The pointer to a double in which to store the rotation angle |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_type | ( | const maps_view_event_data_h | event, |
maps_view_event_type_e * | event_type | ||
) |
Gets the event type.
This function gets the event type.
[in] | event | The event data handle |
[out] | event_type | The pointer to the maps_view_event_type_e in which to store the event type |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |
int maps_view_event_data_get_zoom_factor | ( | const maps_view_event_data_h | event, |
double * | zoom_factor | ||
) |
Gets zoom factor of zoom gesture or action.
This function gets the corresponding zoom factor if the event type is MAPS_VIEW_EVENT_GESTURE or MAPS_VIEW_EVENT_ACTION. Otherwise, it returns the MAPS_ERROR_INVALID_PARAMETER.
[in] | event | The event data handle |
[out] | zoom_factor | The pointer to a double in which to store the zoom factor |
0
on success, otherwise a negative error value MAPS_ERROR_NONE | Successful |
MAPS_ERROR_INVALID_PARAMETER | Invalid parameter |
MAPS_ERROR_NOT_SUPPORTED | Not supported |