Data Structures | |
struct | _Elm_Gesture_Taps_Info |
Struct holds taps info for user. More... | |
struct | _Elm_Gesture_Momentum_Info |
Struct holds momentum info for user x1 and y1 are not necessarily in sync x1 holds x value of x direction starting point and same holds for y1. More... | |
struct | _Elm_Gesture_Line_Info |
Struct holds line info for user. More... | |
struct | _Elm_Gesture_Zoom_Info |
Struct holds zoom info for user. More... | |
struct | _Elm_Gesture_Rotate_Info |
Struct holds rotation info for user. More... | |
Typedefs | |
typedef struct _Elm_Gesture_Taps_Info | Elm_Gesture_Taps_Info |
Holds taps info for user. | |
typedef struct _Elm_Gesture_Momentum_Info | Elm_Gesture_Momentum_Info |
holds momentum info for user | |
typedef struct _Elm_Gesture_Line_Info | Elm_Gesture_Line_Info |
Holds line info for user. | |
typedef struct _Elm_Gesture_Zoom_Info | Elm_Gesture_Zoom_Info |
Holds zoom info for user. | |
typedef struct _Elm_Gesture_Rotate_Info | Elm_Gesture_Rotate_Info |
Holds rotation info for user. | |
typedef Evas_Event_Flags(* | Elm_Gesture_Event_Cb) (void *data, void *event_info) |
User callback used to stream gesture info from gesture layer. More... | |
Enumerations | |
enum | Elm_Gesture_Type { , ELM_GESTURE_N_TAPS, ELM_GESTURE_N_LONG_TAPS, ELM_GESTURE_N_DOUBLE_TAPS, ELM_GESTURE_N_TRIPLE_TAPS, ELM_GESTURE_MOMENTUM, ELM_GESTURE_N_LINES, ELM_GESTURE_N_FLICKS, ELM_GESTURE_ZOOM, ELM_GESTURE_ROTATE } |
Enum of supported gesture types. More... | |
enum | Elm_Gesture_State { ELM_GESTURE_STATE_UNDEFINED = -1, ELM_GESTURE_STATE_START, ELM_GESTURE_STATE_MOVE, ELM_GESTURE_STATE_END, ELM_GESTURE_STATE_ABORT } |
Enum of gesture states. More... | |
Functions | |
double | elm_config_glayer_long_tap_start_timeout_get (void) |
Get the duration for occurring long tap event of gesture layer. More... | |
void | elm_config_glayer_long_tap_start_timeout_set (double long_tap_timeout) |
Set the duration for occurring long tap event of gesture layer. More... | |
double | elm_config_glayer_double_tap_timeout_get (void) |
Get the duration for occurring double tap event of gesture layer. More... | |
void | elm_config_glayer_double_tap_timeout_set (double double_tap_timeout) |
Set the duration for occurring double tap event of gesture layer. More... | |
EOAPI void | elm_obj_gesture_layer_zoom_step_set (double step) |
This function sets step-value for zoom action. More... | |
EOAPI double | elm_obj_gesture_layer_zoom_step_get (void) |
This function returns step-value for zoom action. More... | |
EOAPI void | elm_obj_gesture_layer_tap_finger_size_set (Evas_Coord sz) |
This function sets the gesture layer finger-size for taps If not set, this size taken from elm_config. More... | |
EOAPI Evas_Coord | elm_obj_gesture_layer_tap_finger_size_get (void) |
This function returns the gesture layer finger-size for taps. More... | |
EOAPI void | elm_obj_gesture_layer_hold_events_set (Eina_Bool hold_events) |
This function is to make gesture-layer repeat events. More... | |
EOAPI Eina_Bool | elm_obj_gesture_layer_hold_events_get (void) |
Call this function to get repeat-events settings. More... | |
EOAPI void | elm_obj_gesture_layer_rotate_step_set (double step) |
This function sets step-value for rotate action. More... | |
EOAPI double | elm_obj_gesture_layer_rotate_step_get (void) |
This function returns step-value for rotate action. More... | |
EOAPI void | elm_obj_gesture_layer_cb_set (Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) |
Use function to set callbacks to be notified about change of state of gesture. More... | |
EOAPI Eina_Bool | elm_obj_gesture_layer_attach (Evas_Object *target) |
Attach a given gesture layer widget to an Evas object, thus setting the widget's target. More... | |
EOAPI void | elm_obj_gesture_layer_cb_del (Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) |
Use this function to remove a callback that has been added to be notified about change of state of gesture. More... | |
EOAPI void | elm_obj_gesture_layer_cb_add (Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) |
Use function to add callbacks to be notified about change of state of gesture. More... | |
void | elm_gesture_layer_zoom_step_set (Elm_Gesture_Layer *obj, double step) |
This function sets step-value for zoom action. More... | |
double | elm_gesture_layer_zoom_step_get (const Elm_Gesture_Layer *obj) |
This function returns step-value for zoom action. More... | |
void | elm_gesture_layer_tap_finger_size_set (Elm_Gesture_Layer *obj, Evas_Coord sz) |
This function sets the gesture layer finger-size for taps If not set, this size taken from elm_config. More... | |
Evas_Coord | elm_gesture_layer_tap_finger_size_get (const Elm_Gesture_Layer *obj) |
This function returns the gesture layer finger-size for taps. More... | |
void | elm_gesture_layer_hold_events_set (Elm_Gesture_Layer *obj, Eina_Bool hold_events) |
This function is to make gesture-layer repeat events. More... | |
Eina_Bool | elm_gesture_layer_hold_events_get (const Elm_Gesture_Layer *obj) |
Call this function to get repeat-events settings. More... | |
void | elm_gesture_layer_rotate_step_set (Elm_Gesture_Layer *obj, double step) |
This function sets step-value for rotate action. More... | |
double | elm_gesture_layer_rotate_step_get (const Elm_Gesture_Layer *obj) |
This function returns step-value for rotate action. More... | |
void | elm_gesture_layer_cb_set (Elm_Gesture_Layer *obj, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) |
Use function to set callbacks to be notified about change of state of gesture. More... | |
Eina_Bool | elm_gesture_layer_attach (Elm_Gesture_Layer *obj, Evas_Object *target) |
Attach a given gesture layer widget to an Evas object, thus setting the widget's target. More... | |
void | elm_gesture_layer_cb_del (Elm_Gesture_Layer *obj, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) |
Use this function to remove a callback that has been added to be notified about change of state of gesture. More... | |
void | elm_gesture_layer_cb_add (Elm_Gesture_Layer *obj, Elm_Gesture_Type idx, Elm_Gesture_State cb_type, Elm_Gesture_Event_Cb cb, void *data) |
Use function to add callbacks to be notified about change of state of gesture. More... | |
void | elm_gesture_layer_line_min_length_set (Evas_Object *obj, int line_min_length) |
This function sets the gesture layer line min length of an object. More... | |
int | elm_gesture_layer_line_min_length_get (const Evas_Object *obj) |
This function returns the gesture layer line min length of an object. More... | |
void | elm_gesture_layer_zoom_distance_tolerance_set (Evas_Object *obj, Evas_Coord zoom_distance_tolerance) |
This function sets the gesture layer zoom distance tolerance of an object. More... | |
Evas_Coord | elm_gesture_layer_zoom_distance_tolerance_get (const Evas_Object *obj) |
This function returns the gesture layer zoom distance tolerance of an object. More... | |
void | elm_gesture_layer_line_distance_tolerance_set (Evas_Object *obj, Evas_Coord line_distance_tolerance) |
This function sets the gesture layer line distance tolerance of an object. More... | |
Evas_Coord | elm_gesture_layer_line_distance_tolerance_get (const Evas_Object *obj) |
This function returns the gesture layer line distance tolerance of an object. More... | |
void | elm_gesture_layer_line_angular_tolerance_set (Evas_Object *obj, double line_angular_tolerance) |
This function sets the gesture layer line angular tolerance of an object. More... | |
double | elm_gesture_layer_line_angular_tolerance_get (const Evas_Object *obj) |
This function returns the gesture layer line angular tolerance of an object. More... | |
void | elm_gesture_layer_zoom_wheel_factor_set (Evas_Object *obj, double zoom_wheel_factor) |
This function sets the gesture layer zoom wheel factor of an object. More... | |
double | elm_gesture_layer_zoom_wheel_factor_get (const Evas_Object *obj) |
This function returns the gesture layer zoom wheel factor of an object. More... | |
void | elm_gesture_layer_zoom_finger_factor_set (Evas_Object *obj, double zoom_finger_factor) |
This function sets the gesture layer zoom finger factor of an object. More... | |
double | elm_gesture_layer_zoom_finger_factor_get (const Evas_Object *obj) |
This function returns the gesture layer zoom finger factor of an object. More... | |
void | elm_gesture_layer_rotate_angular_tolerance_set (Evas_Object *obj, double rotate_angular_tolerance) |
This function sets the gesture layer rotate angular tolerance of an object. More... | |
double | elm_gesture_layer_rotate_angular_tolerance_get (const Evas_Object *obj) |
This function returns the gesture layer rotate angular tolerance of an object. More... | |
void | elm_gesture_layer_flick_time_limit_ms_set (Evas_Object *obj, unsigned int flick_time_limit_ms) |
This function sets the gesture layer flick time limit (in ms) of an object. More... | |
unsigned int | elm_gesture_layer_flick_time_limit_ms_get (const Evas_Object *obj) |
This function returns the gesture layer flick time limit (in ms) of an object. More... | |
void | elm_gesture_layer_long_tap_start_timeout_set (Evas_Object *obj, double long_tap_start_timeout) |
This function sets the gesture layer long tap start timeout of an object. More... | |
double | elm_gesture_layer_long_tap_start_timeout_get (const Evas_Object *obj) |
this function returns the gesture layer long tap start timeout of an object More... | |
void | elm_gesture_layer_continues_enable_set (Evas_Object *obj, Eina_Bool continues_enable) |
This function sets the gesture layer continues enable of an object. More... | |
Eina_Bool | elm_gesture_layer_continues_enable_get (const Evas_Object *obj) |
This function returns the gesture layer continues enable of an object. More... | |
void | elm_gesture_layer_double_tap_timeout_set (Evas_Object *obj, double double_tap_timeout) |
This function sets the gesture layer double tap timeout of an object. More... | |
double | elm_gesture_layer_double_tap_timeout_get (const Evas_Object *obj) |
this function returns the gesture layer double tap timeout of an object More... | |
void | elm_gesture_layer_tap_finger_size_set (Evas_Object *obj, Evas_Coord sz) |
This function sets the gesture layer finger-size for taps If not set, this size taken from elm_config. More... | |
Evas_Coord | elm_gesture_layer_tap_finger_size_get (const Evas_Object *obj) |
This function returns the gesture layer finger-size for taps. More... | |
Evas_Object * | elm_gesture_layer_add (Evas_Object *parent) |
Call this function to construct a new gesture-layer object. More... | |
void | elm_gesture_layer_tap_longpress_cb_add (Evas_Object *obj, Elm_Gesture_State state, Elm_Gesture_Event_Cb cb, void *data) |
This function adds a callback called during Tap + Long Tap sequence. More... | |
void | elm_gesture_layer_tap_longpress_cb_del (Evas_Object *obj, Elm_Gesture_State state, Elm_Gesture_Event_Cb cb, void *data) |
This function removes a callback called during Tap + Long Tap sequence. More... | |
Gesture Layer Usage:
Use Gesture Layer to detect gestures. The advantage is that you don't have to implement gesture detection, just set callbacks of gesture state. By using gesture layer we make standard interface.
In order to use Gesture Layer you start with elm_gesture_layer_add with a parent object parameter. Next 'activate' gesture layer with a elm_gesture_layer_attach call. Usually with same object as target (2nd parameter).
Now you need to tell gesture layer what gestures you follow. This is done with elm_gesture_layer_cb_set call. By setting the callback you actually saying to gesture layer: I would like to know when the gesture Elm_Gesture_Type switches to state Elm_Gesture_State.
Next, you need to implement the actual action that follows the input in your callback.
Note that if you like to stop being reported about a gesture, just set all callbacks referring this gesture to NULL. (again with elm_gesture_layer_cb_set)
The information reported by gesture layer to your callback is depending on Elm_Gesture_Type : Elm_Gesture_Taps_Info is the info reported for tap gestures: ELM_GESTURE_N_TAPS, ELM_GESTURE_N_LONG_TAPS, ELM_GESTURE_N_DOUBLE_TAPS, ELM_GESTURE_N_TRIPLE_TAPS.
Elm_Gesture_Momentum_Info is info reported for momentum gestures: ELM_GESTURE_MOMENTUM.
Elm_Gesture_Line_Info is the info reported for line gestures: (this also contains Elm_Gesture_Momentum_Info internal structure) ELM_GESTURE_N_LINES, ELM_GESTURE_N_FLICKS. Note that we consider a flick as a line-gesture that should be completed in flick-time-limit as defined in Elementary Config.
Elm_Gesture_Zoom_Info is the info reported for ELM_GESTURE_ZOOM gesture.
Elm_Gesture_Rotate_Info is the info reported for ELM_GESTURE_ROTATE gesture.
Gesture Layer Tweaks:
Note that line, flick, gestures can start without the need to remove fingers from surface. When user fingers rests on same-spot gesture is ended and starts again when fingers moved.
Setting glayer_continues_enable to false in Elementary Config will change this behavior so gesture starts when user touches (a *DOWN event) touch-surface and ends when no fingers touches surface (a *UP event).
Supported elm_object common APIs.
typedef Evas_Event_Flags(* Elm_Gesture_Event_Cb) (void *data, void *event_info) |
User callback used to stream gesture info from gesture layer.
data | user data |
event_info | gesture report info Returns a flag field to be applied on the causing event. You should probably return EVAS_EVENT_FLAG_ON_HOLD if your widget acted upon the event, in an irreversible way. |
enum Elm_Gesture_State |
enum Elm_Gesture_Type |
Enum of supported gesture types.
double elm_config_glayer_double_tap_timeout_get | ( | void | ) |
Get the duration for occurring double tap event of gesture layer.
void elm_config_glayer_double_tap_timeout_set | ( | double | double_tap_timeout | ) |
Set the duration for occurring double tap event of gesture layer.
double_tap_timeout | Timeout for double tap event of gesture layer. |
double elm_config_glayer_long_tap_start_timeout_get | ( | void | ) |
Get the duration for occurring long tap event of gesture layer.
void elm_config_glayer_long_tap_start_timeout_set | ( | double | long_tap_timeout | ) |
Set the duration for occurring long tap event of gesture layer.
long_tap_timeout | Timeout for long tap event of gesture layer. |
Evas_Object* elm_gesture_layer_add | ( | Evas_Object * | parent | ) |
Call this function to construct a new gesture-layer object.
parent | The gesture layer's parent widget. |
This does not activate the gesture layer. You have to call elm_gesture_layer_attach() in order to 'activate' gesture-layer.
Eina_Bool elm_gesture_layer_attach | ( | Elm_Gesture_Layer * | obj, |
Evas_Object * | target | ||
) |
Attach a given gesture layer widget to an Evas object, thus setting the widget's target.
A gesture layer target may be whichever Evas object one chooses. This will be object obj will listen all mouse and key events from, to report the gestures made upon it back.
EINA_TRUE
, on success, EINA_FALSE
otherwise.[in] | target | Object to attach to obj (target) |
References elm_obj_gesture_layer_attach().
void elm_gesture_layer_cb_add | ( | Elm_Gesture_Layer * | obj, |
Elm_Gesture_Type | idx, | ||
Elm_Gesture_State | cb_type, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
Use function to add callbacks to be notified about change of state of gesture.
When a user registers a callback with this function this means this gesture has to be tested.
When ALL callbacks for a gesture are set to NULL it means user isn't interested in gesture-state and it will not be tested.
If a function was already set for this gesture/type/state, it will be replaced by the new one. For ABI compat, callbacks added by elm_gesture_layer_cb_add will be removed. It is recommended to use only one of these functions for a gesture object.
[in] | idx | The gesture you would like to track its state. |
[in] | cb_type | what event this callback tracks: START, MOVE, END, ABORT. |
[in] | cb | callback function pointer. |
[in] | data | user info to be sent to callback (usually, Smart Data) |
References elm_obj_gesture_layer_cb_add().
Referenced by elm_gesture_layer_tap_longpress_cb_add().
void elm_gesture_layer_cb_del | ( | Elm_Gesture_Layer * | obj, |
Elm_Gesture_Type | idx, | ||
Elm_Gesture_State | cb_type, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
Use this function to remove a callback that has been added to be notified about change of state of gesture.
[in] | idx | The gesture you would like to track its state. |
[in] | cb_type | what event this callback tracks: START, MOVE, END, ABORT. |
[in] | cb | callback function pointer. |
[in] | data | user info for the callback (usually, Smart Data) |
References elm_obj_gesture_layer_cb_del().
void elm_gesture_layer_cb_set | ( | Elm_Gesture_Layer * | obj, |
Elm_Gesture_Type | idx, | ||
Elm_Gesture_State | cb_type, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
Use function to set callbacks to be notified about change of state of gesture.
When a user registers a callback with this function this means this gesture has to be tested.
When ALL callbacks for a gesture are set to NULL it means user isn't interested in gesture-state and it will not be tested.
[in] | idx | The gesture you would like to track its state. |
[in] | cb_type | what event this callback tracks: START, MOVE, END, ABORT. |
[in] | cb | callback function pointer. |
[in] | data | user info to be sent to callback (usually, Smart Data) |
References elm_obj_gesture_layer_cb_set().
Eina_Bool elm_gesture_layer_continues_enable_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer continues enable of an object.
obj | gesture-layer. |
void elm_gesture_layer_continues_enable_set | ( | Evas_Object * | obj, |
Eina_Bool | continues_enable | ||
) |
This function sets the gesture layer continues enable of an object.
obj | gesture-layer. |
continues_enable | continues enable |
double elm_gesture_layer_double_tap_timeout_get | ( | const Evas_Object * | obj | ) |
this function returns the gesture layer double tap timeout of an object
obj | gesture-layer. |
void elm_gesture_layer_double_tap_timeout_set | ( | Evas_Object * | obj, |
double | double_tap_timeout | ||
) |
This function sets the gesture layer double tap timeout of an object.
obj | gesture-layer. |
double_tap_timeout | double tap timeout |
unsigned int elm_gesture_layer_flick_time_limit_ms_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer flick time limit (in ms) of an object.
obj | gesture-layer. |
void elm_gesture_layer_flick_time_limit_ms_set | ( | Evas_Object * | obj, |
unsigned int | flick_time_limit_ms | ||
) |
This function sets the gesture layer flick time limit (in ms) of an object.
obj | gesture-layer. |
flick_time_limit_ms | flick time limit (in ms) |
Eina_Bool elm_gesture_layer_hold_events_get | ( | const Elm_Gesture_Layer * | obj | ) |
Call this function to get repeat-events settings.
References elm_obj_gesture_layer_hold_events_get().
void elm_gesture_layer_hold_events_set | ( | Elm_Gesture_Layer * | obj, |
Eina_Bool | hold_events | ||
) |
This function is to make gesture-layer repeat events.
Set this if you like to get the raw events only if gestures were not detected. Clear this if you like gesture layer to forward events as testing gestures.
[in] | hold_events | hold events or not. |
References elm_obj_gesture_layer_hold_events_set().
double elm_gesture_layer_line_angular_tolerance_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer line angular tolerance of an object.
obj | gesture-layer. |
void elm_gesture_layer_line_angular_tolerance_set | ( | Evas_Object * | obj, |
double | line_angular_tolerance | ||
) |
This function sets the gesture layer line angular tolerance of an object.
obj | gesture-layer. |
line_angular_tolerance | line angular tolerance |
Evas_Coord elm_gesture_layer_line_distance_tolerance_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer line distance tolerance of an object.
obj | gesture-layer. |
void elm_gesture_layer_line_distance_tolerance_set | ( | Evas_Object * | obj, |
Evas_Coord | line_distance_tolerance | ||
) |
This function sets the gesture layer line distance tolerance of an object.
obj | gesture-layer. |
line_distance_tolerance | line distance tolerance |
int elm_gesture_layer_line_min_length_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer line min length of an object.
obj | gesture-layer. |
void elm_gesture_layer_line_min_length_set | ( | Evas_Object * | obj, |
int | line_min_length | ||
) |
This function sets the gesture layer line min length of an object.
obj | gesture-layer. |
line_min_length | the length. |
double elm_gesture_layer_long_tap_start_timeout_get | ( | const Evas_Object * | obj | ) |
this function returns the gesture layer long tap start timeout of an object
obj | gesture-layer. |
void elm_gesture_layer_long_tap_start_timeout_set | ( | Evas_Object * | obj, |
double | long_tap_start_timeout | ||
) |
This function sets the gesture layer long tap start timeout of an object.
obj | gesture-layer. |
long_tap_start_timeout | long tap start timeout |
double elm_gesture_layer_rotate_angular_tolerance_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer rotate angular tolerance of an object.
obj | gesture-layer. |
void elm_gesture_layer_rotate_angular_tolerance_set | ( | Evas_Object * | obj, |
double | rotate_angular_tolerance | ||
) |
This function sets the gesture layer rotate angular tolerance of an object.
obj | gesture-layer. |
rotate_angular_tolerance | rotate angular tolerance |
double elm_gesture_layer_rotate_step_get | ( | const Elm_Gesture_Layer * | obj | ) |
This function returns step-value for rotate action.
References elm_obj_gesture_layer_rotate_step_get().
void elm_gesture_layer_rotate_step_set | ( | Elm_Gesture_Layer * | obj, |
double | step | ||
) |
This function sets step-value for rotate action.
Set step to any positive value. Cancel step setting by setting to 0
[in] | step | new rotate step value. |
References elm_obj_gesture_layer_rotate_step_set().
Evas_Coord elm_gesture_layer_tap_finger_size_get | ( | const Elm_Gesture_Layer * | obj | ) |
This function returns the gesture layer finger-size for taps.
References elm_obj_gesture_layer_tap_finger_size_get().
Evas_Coord elm_gesture_layer_tap_finger_size_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer finger-size for taps.
obj | gesture-layer. |
void elm_gesture_layer_tap_finger_size_set | ( | Elm_Gesture_Layer * | obj, |
Evas_Coord | sz | ||
) |
This function sets the gesture layer finger-size for taps If not set, this size taken from elm_config.
Set to ZERO if you want GLayer to use system finger size value (default)
[in] | sz | Finger size |
References elm_obj_gesture_layer_tap_finger_size_set().
void elm_gesture_layer_tap_finger_size_set | ( | Evas_Object * | obj, |
Evas_Coord | sz | ||
) |
This function sets the gesture layer finger-size for taps If not set, this size taken from elm_config.
Set to ZERO if you want GLayer to use system finger size value (default)
obj | gesture-layer. |
sz | Finger size |
void elm_gesture_layer_tap_longpress_cb_add | ( | Evas_Object * | obj, |
Elm_Gesture_State | state, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
This function adds a callback called during Tap + Long Tap sequence.
state | state for the callback to add. |
cb | callback pointer |
data | user data for the callback. |
The callbacks will be called as followed:
You can remove the callbacks by using elm_gesture_layer_tap_longpress_cb_del.
References elm_gesture_layer_cb_add(), ELM_GESTURE_N_LONG_TAPS, ELM_GESTURE_N_TAPS, ELM_GESTURE_STATE_ABORT, ELM_GESTURE_STATE_END, ELM_GESTURE_STATE_MOVE, and ELM_GESTURE_STATE_START.
void elm_gesture_layer_tap_longpress_cb_del | ( | Evas_Object * | obj, |
Elm_Gesture_State | state, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
This function removes a callback called during Tap + Long Tap sequence.
state | state for the callback to add. |
cb | callback pointer |
data | user data for the callback. |
The internal data used for the sequence will be freed ONLY when all the callbacks added via elm_gesture_layer_tap_longpress_cb_add are removed by this function.
References ELM_GESTURE_STATE_ABORT, ELM_GESTURE_STATE_END, ELM_GESTURE_STATE_MOVE, and ELM_GESTURE_STATE_START.
Evas_Coord elm_gesture_layer_zoom_distance_tolerance_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer zoom distance tolerance of an object.
obj | gesture-layer. |
void elm_gesture_layer_zoom_distance_tolerance_set | ( | Evas_Object * | obj, |
Evas_Coord | zoom_distance_tolerance | ||
) |
This function sets the gesture layer zoom distance tolerance of an object.
obj | gesture-layer. |
zoom_distance_tolerance | zoom distance tolerance |
double elm_gesture_layer_zoom_finger_factor_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer zoom finger factor of an object.
obj | gesture-layer. |
void elm_gesture_layer_zoom_finger_factor_set | ( | Evas_Object * | obj, |
double | zoom_finger_factor | ||
) |
This function sets the gesture layer zoom finger factor of an object.
obj | gesture-layer. |
zoom_finger_factor | zoom finger factor |
double elm_gesture_layer_zoom_step_get | ( | const Elm_Gesture_Layer * | obj | ) |
This function returns step-value for zoom action.
References elm_obj_gesture_layer_zoom_step_get().
void elm_gesture_layer_zoom_step_set | ( | Elm_Gesture_Layer * | obj, |
double | step | ||
) |
This function sets step-value for zoom action.
Set step to any positive value. Cancel step setting by setting to 0
[in] | step | new zoom step value. |
References elm_obj_gesture_layer_zoom_step_set().
double elm_gesture_layer_zoom_wheel_factor_get | ( | const Evas_Object * | obj | ) |
This function returns the gesture layer zoom wheel factor of an object.
obj | gesture-layer. |
void elm_gesture_layer_zoom_wheel_factor_set | ( | Evas_Object * | obj, |
double | zoom_wheel_factor | ||
) |
This function sets the gesture layer zoom wheel factor of an object.
obj | gesture-layer. |
zoom_wheel_factor | zoom wheel factor |
EOAPI Eina_Bool elm_obj_gesture_layer_attach | ( | Evas_Object * | target | ) |
Attach a given gesture layer widget to an Evas object, thus setting the widget's target.
A gesture layer target may be whichever Evas object one chooses. This will be object obj will listen all mouse and key events from, to report the gestures made upon it back.
EINA_TRUE
, on success, EINA_FALSE
otherwise.[in] | target | Object to attach to obj (target) |
Referenced by elm_gesture_layer_attach().
EOAPI void elm_obj_gesture_layer_cb_add | ( | Elm_Gesture_Type | idx, |
Elm_Gesture_State | cb_type, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
Use function to add callbacks to be notified about change of state of gesture.
When a user registers a callback with this function this means this gesture has to be tested.
When ALL callbacks for a gesture are set to NULL it means user isn't interested in gesture-state and it will not be tested.
If a function was already set for this gesture/type/state, it will be replaced by the new one. For ABI compat, callbacks added by elm_gesture_layer_cb_add will be removed. It is recommended to use only one of these functions for a gesture object.
[in] | idx | The gesture you would like to track its state. |
[in] | cb_type | what event this callback tracks: START, MOVE, END, ABORT. |
[in] | cb | callback function pointer. |
[in] | data | user info to be sent to callback (usually, Smart Data) |
Referenced by elm_gesture_layer_cb_add().
EOAPI void elm_obj_gesture_layer_cb_del | ( | Elm_Gesture_Type | idx, |
Elm_Gesture_State | cb_type, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
Use this function to remove a callback that has been added to be notified about change of state of gesture.
[in] | idx | The gesture you would like to track its state. |
[in] | cb_type | what event this callback tracks: START, MOVE, END, ABORT. |
[in] | cb | callback function pointer. |
[in] | data | user info for the callback (usually, Smart Data) |
Referenced by elm_gesture_layer_cb_del().
EOAPI void elm_obj_gesture_layer_cb_set | ( | Elm_Gesture_Type | idx, |
Elm_Gesture_State | cb_type, | ||
Elm_Gesture_Event_Cb | cb, | ||
void * | data | ||
) |
Use function to set callbacks to be notified about change of state of gesture.
When a user registers a callback with this function this means this gesture has to be tested.
When ALL callbacks for a gesture are set to NULL it means user isn't interested in gesture-state and it will not be tested.
[in] | idx | The gesture you would like to track its state. |
[in] | cb_type | what event this callback tracks: START, MOVE, END, ABORT. |
[in] | cb | callback function pointer. |
[in] | data | user info to be sent to callback (usually, Smart Data) |
Referenced by elm_gesture_layer_cb_set().
EOAPI Eina_Bool elm_obj_gesture_layer_hold_events_get | ( | void | ) |
Call this function to get repeat-events settings.
Referenced by elm_gesture_layer_hold_events_get().
EOAPI void elm_obj_gesture_layer_hold_events_set | ( | Eina_Bool | hold_events | ) |
This function is to make gesture-layer repeat events.
Set this if you like to get the raw events only if gestures were not detected. Clear this if you like gesture layer to forward events as testing gestures.
[in] | hold_events | hold events or not. |
Referenced by elm_gesture_layer_hold_events_set().
EOAPI double elm_obj_gesture_layer_rotate_step_get | ( | void | ) |
This function returns step-value for rotate action.
Referenced by elm_gesture_layer_rotate_step_get().
EOAPI void elm_obj_gesture_layer_rotate_step_set | ( | double | step | ) |
This function sets step-value for rotate action.
Set step to any positive value. Cancel step setting by setting to 0
[in] | step | new rotate step value. |
Referenced by elm_gesture_layer_rotate_step_set().
EOAPI Evas_Coord elm_obj_gesture_layer_tap_finger_size_get | ( | void | ) |
This function returns the gesture layer finger-size for taps.
Referenced by elm_gesture_layer_tap_finger_size_get().
EOAPI void elm_obj_gesture_layer_tap_finger_size_set | ( | Evas_Coord | sz | ) |
This function sets the gesture layer finger-size for taps If not set, this size taken from elm_config.
Set to ZERO if you want GLayer to use system finger size value (default)
[in] | sz | Finger size |
Referenced by elm_gesture_layer_tap_finger_size_set().
EOAPI double elm_obj_gesture_layer_zoom_step_get | ( | void | ) |
This function returns step-value for zoom action.
Referenced by elm_gesture_layer_zoom_step_get().
EOAPI void elm_obj_gesture_layer_zoom_step_set | ( | double | step | ) |
This function sets step-value for zoom action.
Set step to any positive value. Cancel step setting by setting to 0
[in] | step | new zoom step value. |
Referenced by elm_gesture_layer_zoom_step_set().