Tizen Native API
5.0
|
This module provides functionalities to handle back/send key events.
Functions | |
static void | eext_popup_back_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that sends back key events to the popup to be removed. | |
static void | eext_ctxpopup_back_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that sends back key events to the ctxpopup to be dismissed. | |
static void | eext_naviframe_more_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that sends more key events to the naviframe top item. | |
static void | eext_naviframe_back_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that pop the naviframe item. | |
void * | eext_object_event_callback_del (Evas_Object *obj, Eext_Callback_Type type, Eext_Event_Cb func) |
Delete a callback function from an object. | |
void | eext_object_event_callback_add (Evas_Object *obj, Eext_Callback_Type type, Eext_Event_Cb func, void *data) |
Add (register) a callback function to a given evas object. | |
static void | eext_entry_back_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that cancels the selection of the entry. | |
static void | eext_entry_selection_start_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that registers back key callback for entry. | |
static void | eext_entry_selection_cleared_cb (void *data, Evas_Object *obj, void *event_info) |
Convenient macro function that clears back key callback for entry. | |
static void | eext_entry_selection_back_event_allow_set (Evas_Object *obj, Eina_Bool allow) |
Convenient macro function that handle the back event to cancel the selection handler of the entry. | |
void | eext_gesture_event_dispatch (Eext_Gesture_Event_Type type, int x, int y) |
Dispatch gesture event given type and x, y position. | |
Typedefs | |
typedef enum _Eext_Callback_Type | Eext_Callback_Type |
typedef void(* | Eext_Event_Cb )(void *data, Evas_Object *obj, void *event_info) |
Ea event callback function signature. | |
typedef enum _Eext_Gesture_Event_Type | Eext_Gesture_Event_Type |
typedef enum _Eext_Callback_Type Eext_Callback_Type |
Identifier of callbacks to be set for Ea events.
typedef void(* Eext_Event_Cb)(void *data, Evas_Object *obj, void *event_info) |
Ea event callback function signature.
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information (if the event passes an additional in formation.) |
typedef enum _Eext_Gesture_Event_Type Eext_Gesture_Event_Type |
An enum of gesture type
enum _Eext_Callback_Type |
Identifier of callbacks to be set for Ea events.
An enum of gesture type
static void eext_ctxpopup_back_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that sends back key events to the ctxpopup to be dismissed.
Ctxpopup will be dismissed when it has the back key event with eext_object_event_callback_add()
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |
static void eext_entry_back_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that cancels the selection of the entry.
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |
static void eext_entry_selection_back_event_allow_set | ( | Evas_Object * | obj, |
Eina_Bool | allow | ||
) | [static] |
Convenient macro function that handle the back event to cancel the selection handler of the entry.
If the selection handler should be canceled (or not) when back key event is triggered, then use this API.
[in] | obj | Entry object. |
[in] | allow | EINA_TRUE allows the back event handling, EINA_FALSE otherwise. |
static void eext_entry_selection_cleared_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that clears back key callback for entry.
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |
static void eext_entry_selection_start_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that registers back key callback for entry.
If the selection handler should be canceled when back key event is triggered, then use this API.
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |
void eext_gesture_event_dispatch | ( | Eext_Gesture_Event_Type | type, |
int | x, | ||
int | y | ||
) |
Dispatch gesture event given type and x, y position.
[in] | type | Gesture type |
[in] | x | The x coordinate gesture event starts at |
[in] | y | The y coordinate gesture event starts at |
static void eext_naviframe_back_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that pop the naviframe item.
Naviframe will be popped when naviframe has the back key event with eext_object_event_callback_add()
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |
static void eext_naviframe_more_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that sends more key events to the naviframe top item.
More key action of naviframe will be executed when naviframe has the more key event with eext_object_event_callback_add()
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |
void eext_object_event_callback_add | ( | Evas_Object * | obj, |
Eext_Callback_Type | type, | ||
Eext_Event_Cb | func, | ||
void * | data | ||
) |
Add (register) a callback function to a given evas object.
This function adds a function callback to an object when the key event occurs on object obj
. The key event on the object is only triggered when the object is the most top in objects stack and visible. This means, like the naviframe widget, if your application needs to have the events based on the view but not focus, you can use this callback. A callback function must have the Eext_Event_Cb prototype definition. The first parameter (data
) in this definition will have the same value passed to eext_object_event_callback_add() as the data
parameter, at runtime. The second parameter obj
is the evas object on which event occurred. Finally, the third parameter event_info
is a pointer to a data structure that may or may not be passed to the callback, depending on the event type that triggered the callback. This is so because some events don't carry extra context with them, but others do.
[in] | obj | evas object. |
[in] | type | The type of event that will trigger the callback. |
[in] | func | The function to be called when the key event is triggered. |
[in] | data | The data pointer to be passed to func . |
void* eext_object_event_callback_del | ( | Evas_Object * | obj, |
Eext_Callback_Type | type, | ||
Eext_Event_Cb | func | ||
) |
Delete a callback function from an object.
This function removes the most recently added callback from the object obj
which was triggered by the type type
and was calling the function func
when triggered. If the removal is successful it will also return the data pointer that was passed to eext_object_event_callback_add() when the callback was added to the object. If not successful NULl
will be returned.
[in] | obj | Object to remove a callback from. |
[in] | type | The type of event that was triggering the callback. |
[in] | func | The function that was to be called when the event was triggered |
static void eext_popup_back_cb | ( | void * | data, |
Evas_Object * | obj, | ||
void * | event_info | ||
) | [static] |
Convenient macro function that sends back key events to the popup to be removed.
Popup will be removed when it has the back key event with eext_object_event_callback_add()
[in] | data | user data |
[in] | obj | target object |
[in] | event_info | event information |