Functions to tell Evas that input events happened and should be processed. More...
Functions | |
Evas_Device * | evas_device_add (Evas *e) |
Add a new device type. More... | |
void | evas_device_del (Evas_Device *dev) |
Delete a new device type. More... | |
void | evas_device_push (Evas *e, Evas_Device *dev) |
Push the current context device onto the device stack. More... | |
void | evas_device_pop (Evas *e) |
This pops the top of the device stack for the canvas. More... | |
const Eina_List * | evas_device_list (Evas *e, const Evas_Device *dev) |
List all current devices attached to the given canvas and/or device. More... | |
void | evas_device_name_set (Evas_Device *dev, const char *name) |
Set the name of a device as a string. More... | |
const char * | evas_device_name_get (const Evas_Device *dev) |
Get the name of a device. More... | |
void | evas_device_description_set (Evas_Device *dev, const char *desc) |
Set the description of a device as a string. More... | |
const char * | evas_device_description_get (const Evas_Device *dev) |
Get the description of a device. More... | |
void | evas_device_parent_set (Evas_Device *dev, Evas_Device *parent) |
Set the parent of a device. More... | |
const Evas_Device * | evas_device_parent_get (const Evas_Device *dev) |
Get the parent of a device. More... | |
void | evas_device_class_set (Evas_Device *dev, Evas_Device_Class clas) |
Set the major class of device. More... | |
Evas_Device_Class | evas_device_class_get (const Evas_Device *dev) |
Get the major class of a device. More... | |
void | evas_device_subclass_set (Evas_Device *dev, Evas_Device_Subclass clas) |
Set the sub-class of a device. More... | |
Evas_Device_Subclass | evas_device_subclass_get (const Evas_Device *dev) |
Get the device sub-class. More... | |
void | evas_device_emulation_source_set (Evas_Device *dev, Evas_Device *src) |
Set the emulation source device. More... | |
const Evas_Device * | evas_device_emulation_source_get (const Evas_Device *dev) |
Get the emulation source device. More... | |
#define | evas_canvas_event_default_flags_set(flags) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_DEFAULT_FLAGS_SET), EO_TYPECHECK(Evas_Event_Flags, flags) |
#define | evas_canvas_event_default_flags_get(ret) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_DEFAULT_FLAGS_GET), EO_TYPECHECK(Evas_Event_Flags *, ret) |
#define | evas_canvas_event_freeze() EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FREEZE) |
#define | evas_canvas_event_thaw() EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_THAW) |
#define | evas_canvas_event_freeze_get(ret) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FREEZE_GET), EO_TYPECHECK(int *, ret) |
#define | evas_canvas_event_thaw_eval() EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_THAW_EVAL) |
#define | evas_canvas_event_down_count_get(ret) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_DOWN_COUNT_GET), EO_TYPECHECK(int *, ret) |
#define | evas_canvas_event_feed_mouse_down(b, flags, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_DOWN), EO_TYPECHECK(int, b), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_mouse_up(b, flags, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_UP), EO_TYPECHECK(int, b), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_mouse_cancel(timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_CANCEL), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_mouse_wheel(direction, z, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_WHEEL), EO_TYPECHECK(int, direction), EO_TYPECHECK(int, z), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_input_mouse_move(x, y, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MOUSE_MOVE), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_mouse_move(x, y, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_MOVE), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_mouse_in(timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_IN), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_mouse_out(timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_OUT), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_input_multi_down(d, x, y, rad, radx, rady, pres, ang, fx, fy, flags, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MULTI_DOWN), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_multi_down(d, x, y, rad, radx, rady, pres, ang, fx, fy, flags, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MULTI_DOWN), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_input_multi_up(d, x, y, rad, radx, rady, pres, ang, fx, fy, flags, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MULTI_UP), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_multi_up(d, x, y, rad, radx, rady, pres, ang, fx, fy, flags, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MULTI_UP), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_input_multi_move(d, x, y, rad, radx, rady, pres, ang, fx, fy, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MULTI_MOVE), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_multi_move(d, x, y, rad, radx, rady, pres, ang, fx, fy, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MULTI_MOVE), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_key_down(keyname, key, string, compose, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_KEY_DOWN), EO_TYPECHECK(const char *, keyname), EO_TYPECHECK(const char *, key), EO_TYPECHECK(const char *, string), EO_TYPECHECK(const char *, compose), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_key_up(keyname, key, string, compose, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_KEY_UP), EO_TYPECHECK(const char *, keyname), EO_TYPECHECK(const char *, key), EO_TYPECHECK(const char *, string), EO_TYPECHECK(const char *, compose), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_feed_hold(hold, timestamp, data) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_HOLD), EO_TYPECHECK(int, hold), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
#define | evas_canvas_event_refeed_event(event_copy, event_type) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_REFEED_EVENT), EO_TYPECHECK(void *, event_copy), EO_TYPECHECK(Evas_Callback_Type, event_type) |
#define | evas_canvas_tree_objects_at_xy_get(stop, x, y, ret) EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_TREE_OBJECTS_AT_XY_GET), EO_TYPECHECK(Evas_Object *, stop), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(Eina_List **, ret) |
void | evas_event_default_flags_set (Evas *e, Evas_Event_Flags flags) |
Set the default set of flags an event begins with. More... | |
Evas_Event_Flags | evas_event_default_flags_get (const Evas *e) |
Get the default set of flags an event begins with. More... | |
void | evas_event_freeze (Evas *e) |
Freeze all input events processing. More... | |
void | evas_event_thaw (Evas *e) |
Thaw a canvas out after freezing (for input events). More... | |
int | evas_event_freeze_get (const Evas *e) |
Return the freeze count on input events of a given canvas. More... | |
void | evas_event_thaw_eval (Evas *e) |
After thaw of a canvas, re-evaluate the state of objects and call callbacks. More... | |
int | evas_event_down_count_get (const Evas *e) |
Get the number of mouse or multi presses currently active. More... | |
void | evas_event_feed_mouse_down (Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data) |
Mouse down event feed. More... | |
void | evas_event_feed_mouse_up (Evas *e, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data) |
Mouse up event feed. More... | |
void | evas_event_input_mouse_move (Evas *e, int x, int y, unsigned int timestamp, const void *data) |
Mouse move event feed from input. More... | |
void | evas_event_feed_mouse_move (Evas *e, int x, int y, unsigned int timestamp, const void *data) |
Mouse move event feed. More... | |
void | evas_event_feed_mouse_in (Evas *e, unsigned int timestamp, const void *data) |
Mouse in event feed. More... | |
void | evas_event_feed_mouse_out (Evas *e, unsigned int timestamp, const void *data) |
Mouse out event feed. More... | |
void | evas_event_feed_multi_down (Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, Evas_Button_Flags flags, unsigned int timestamp, const void *data) |
void | evas_event_feed_multi_up (Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, Evas_Button_Flags flags, unsigned int timestamp, const void *data) |
void | evas_event_feed_multi_move (Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, unsigned int timestamp, const void *data) |
void | evas_event_input_multi_down (Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, Evas_Button_Flags flags, unsigned int timestamp, const void *data) |
void | evas_event_input_multi_up (Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, Evas_Button_Flags flags, unsigned int timestamp, const void *data) |
void | evas_event_input_multi_move (Evas *e, int d, int x, int y, double rad, double radx, double rady, double pres, double ang, double fx, double fy, unsigned int timestamp, const void *data) |
void | evas_event_feed_mouse_cancel (Evas *e, unsigned int timestamp, const void *data) |
Mouse cancel event feed. More... | |
void | evas_event_feed_mouse_wheel (Evas *e, int direction, int z, unsigned int timestamp, const void *data) |
Mouse wheel event feed. More... | |
void | evas_event_feed_key_down (Evas *e, const char *keyname, const char *key, const char *string, const char *compose, unsigned int timestamp, const void *data) |
Key down event feed. More... | |
void | evas_event_feed_key_up (Evas *e, const char *keyname, const char *key, const char *string, const char *compose, unsigned int timestamp, const void *data) |
Key up event feed. More... | |
void | evas_event_feed_hold (Evas *e, int hold, unsigned int timestamp, const void *data) |
Hold event feed. More... | |
void | evas_event_refeed_event (Evas *e, void *event_copy, Evas_Callback_Type event_type) |
Re feed event. More... | |
Eina_List * | evas_tree_objects_at_xy_get (Evas *e, Evas_Object *stop, int x, int y) |
Retrieve a list of Evas objects lying over a given position in a canvas. More... | |
Functions to tell Evas that input events happened and should be processed.
As explained in intro_not_evas, Evas does not know how to poll for input events, so the developer should do it and then feed such events to the canvas to be processed. This is only required if operating Evas directly. Modules such as Ecore_Evas do that for you.
Some of the functions in this group are exemplified here.
#define evas_canvas_event_default_flags_set | ( | flags | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_DEFAULT_FLAGS_SET), EO_TYPECHECK(Evas_Event_Flags, flags) |
Set the default set of flags an event begins with
[in] | flags |
Referenced by evas_event_default_flags_set().
#define evas_canvas_event_down_count_get | ( | ret | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_DOWN_COUNT_GET), EO_TYPECHECK(int *, ret) |
Get the number of mouse or multi presses currently active
[out] | ret |
Referenced by evas_event_down_count_get().
#define evas_canvas_event_default_flags_get | ( | ret | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_DEFAULT_FLAGS_GET), EO_TYPECHECK(Evas_Event_Flags *, ret) |
Get the defaulty set of flags an event begins with
[out] | ret |
Referenced by evas_event_default_flags_get().
#define evas_canvas_event_freeze | ( | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FREEZE) |
#define evas_canvas_event_thaw | ( | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_THAW) |
#define evas_canvas_event_freeze_get | ( | ret | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FREEZE_GET), EO_TYPECHECK(int *, ret) |
Return the freeze count on input events of a given canvas.
[out] | ret |
#define evas_canvas_event_thaw_eval | ( | ) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_THAW_EVAL) |
After thaw of a canvas, re-evaluate the state of objects and call callbacks
#define evas_canvas_event_feed_mouse_down | ( | b, | |
flags, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_DOWN), EO_TYPECHECK(int, b), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse down event feed.
[in] | b | |
[in] | flags | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_down().
#define evas_canvas_event_feed_mouse_up | ( | b, | |
flags, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_UP), EO_TYPECHECK(int, b), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse up event feed.
[in] | b | |
[in] | flags | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_up().
#define evas_canvas_event_feed_mouse_cancel | ( | timestamp, | |
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_CANCEL), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse cancel event feed.
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_cancel().
#define evas_canvas_event_feed_mouse_wheel | ( | direction, | |
z, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_WHEEL), EO_TYPECHECK(int, direction), EO_TYPECHECK(int, z), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse wheel event feed.
[in] | direction | |
[in] | z | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_wheel().
#define evas_canvas_event_input_mouse_move | ( | x, | |
y, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MOUSE_MOVE), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse move event feed from input.
[in] | x | |
[in] | y | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_input_mouse_move().
#define evas_canvas_event_feed_mouse_move | ( | x, | |
y, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_MOVE), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse move event feed.
[in] | x | |
[in] | y | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_move().
#define evas_canvas_event_feed_mouse_in | ( | timestamp, | |
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_IN), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse in event feed.
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_in().
#define evas_canvas_event_feed_mouse_out | ( | timestamp, | |
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MOUSE_OUT), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Mouse out event feed.
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_input_multi_down | ( | d, | |
x, | |||
y, | |||
rad, | |||
radx, | |||
rady, | |||
pres, | |||
ang, | |||
fx, | |||
fy, | |||
flags, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MULTI_DOWN), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
No description supplied by the EAPI.
[in] | d | |
[in] | x | |
[in] | y | |
[in] | rad | |
[in] | radx | |
[in] | rady | |
[in] | pres | |
[in] | ang | |
[in] | fx | |
[in] | fy | |
[in] | flags | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_feed_multi_down | ( | d, | |
x, | |||
y, | |||
rad, | |||
radx, | |||
rady, | |||
pres, | |||
ang, | |||
fx, | |||
fy, | |||
flags, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MULTI_DOWN), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
No description supplied by the EAPI.
[in] | d | |
[in] | x | |
[in] | y | |
[in] | rad | |
[in] | radx | |
[in] | rady | |
[in] | pres | |
[in] | ang | |
[in] | fx | |
[in] | fy | |
[in] | flags | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_input_multi_up | ( | d, | |
x, | |||
y, | |||
rad, | |||
radx, | |||
rady, | |||
pres, | |||
ang, | |||
fx, | |||
fy, | |||
flags, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MULTI_UP), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
No description supplied by the EAPI.
[in] | d | |
[in] | x | |
[in] | y | |
[in] | rad | |
[in] | radx | |
[in] | rady | |
[in] | pres | |
[in] | ang | |
[in] | fx | |
[in] | fy | |
[in] | flags | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_feed_multi_up | ( | d, | |
x, | |||
y, | |||
rad, | |||
radx, | |||
rady, | |||
pres, | |||
ang, | |||
fx, | |||
fy, | |||
flags, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MULTI_UP), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(Evas_Button_Flags, flags), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
No description supplied by the EAPI.
[in] | d | |
[in] | x | |
[in] | y | |
[in] | rad | |
[in] | radx | |
[in] | rady | |
[in] | pres | |
[in] | ang | |
[in] | fx | |
[in] | fy | |
[in] | flags | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_input_multi_move | ( | d, | |
x, | |||
y, | |||
rad, | |||
radx, | |||
rady, | |||
pres, | |||
ang, | |||
fx, | |||
fy, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_INPUT_MULTI_MOVE), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
No description supplied by the EAPI.
[in] | d | |
[in] | x | |
[in] | y | |
[in] | rad | |
[in] | radx | |
[in] | rady | |
[in] | pres | |
[in] | ang | |
[in] | fx | |
[in] | fy | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_feed_multi_move | ( | d, | |
x, | |||
y, | |||
rad, | |||
radx, | |||
rady, | |||
pres, | |||
ang, | |||
fx, | |||
fy, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_MULTI_MOVE), EO_TYPECHECK(int, d), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(double, rad), EO_TYPECHECK(double, radx), EO_TYPECHECK(double, rady), EO_TYPECHECK(double, pres), EO_TYPECHECK(double, ang), EO_TYPECHECK(double, fx), EO_TYPECHECK(double, fy), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
No description supplied by the EAPI.
[in] | d | |
[in] | x | |
[in] | y | |
[in] | rad | |
[in] | radx | |
[in] | rady | |
[in] | pres | |
[in] | ang | |
[in] | fx | |
[in] | fy | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_mouse_out().
#define evas_canvas_event_feed_key_down | ( | keyname, | |
key, | |||
string, | |||
compose, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_KEY_DOWN), EO_TYPECHECK(const char *, keyname), EO_TYPECHECK(const char *, key), EO_TYPECHECK(const char *, string), EO_TYPECHECK(const char *, compose), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Key down event feed
[in] | keyname | |
[in] | key | |
[in] | string | |
[in] | compose | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_key_down().
#define evas_canvas_event_feed_key_up | ( | keyname, | |
key, | |||
string, | |||
compose, | |||
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_KEY_UP), EO_TYPECHECK(const char *, keyname), EO_TYPECHECK(const char *, key), EO_TYPECHECK(const char *, string), EO_TYPECHECK(const char *, compose), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Key up event feed
[in] | keyname | |
[in] | key | |
[in] | string | |
[in] | compose | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_key_up().
#define evas_canvas_event_feed_hold | ( | hold, | |
timestamp, | |||
data | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_FEED_HOLD), EO_TYPECHECK(int, hold), EO_TYPECHECK(unsigned int, timestamp), EO_TYPECHECK(const void *, data) |
Hold event feed
[in] | hold | |
[in] | timestamp | |
[in] | data |
Referenced by evas_event_feed_hold().
#define evas_canvas_event_refeed_event | ( | event_copy, | |
event_type | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_EVENT_REFEED_EVENT), EO_TYPECHECK(void *, event_copy), EO_TYPECHECK(Evas_Callback_Type, event_type) |
Re feed event.
[in] | event_copy | |
[in] | event_type |
Referenced by evas_event_refeed_event().
#define evas_canvas_tree_objects_at_xy_get | ( | stop, | |
x, | |||
y, | |||
ret | |||
) | EVAS_CANVAS_ID(EVAS_CANVAS_SUB_ID_TREE_OBJECTS_AT_XY_GET), EO_TYPECHECK(Evas_Object *, stop), EO_TYPECHECK(int, x), EO_TYPECHECK(int, y), EO_TYPECHECK(Eina_List **, ret) |
Retrieve a list of Evas objects lying over a given position in a canvas.
[in] | stop | An Evas Object where to stop searching. |
[in] | x | The horizontal coordinate of the position. |
[in] | y | The vertical coordinate of the position. |
[out] | list | of Evas Objects. |
Referenced by evas_tree_objects_at_xy_get().
Evas_Device* evas_device_add | ( | Evas * | e | ) |
Add a new device type.
e | The canvas to create the device node for. |
Adds a new device nod to the given canvas e
. All devices created as part of the canvas e
will automatically be deleted when the canvas is freed.
References EAPI, eina_list_append(), and EVAS_CALLBACK_DEVICE_CHANGED.
void evas_device_del | ( | Evas_Device * | dev | ) |
Delete a new device type.
References EAPI, EINA_LIST_FREE, and evas_device_del().
Referenced by evas_device_del(), and evas_device_emulation_source_get().
void evas_device_push | ( | Evas * | e, |
Evas_Device * | dev | ||
) |
Push the current context device onto the device stack.
e | The canvas to push the device on to |
dev | The device to push. |
This pushes the given device dev
onto the stack for the canvas e
resulting in the dev pointer in all events that get fed to the canvas being the device at the top of the device stack for that canvas.
If a device is pushed onto the device stack, it will not be deleted until a canvas free OR until it has been popped from the stack even if evas_device_del() is called.
The device dev
must have been created as a device for the canvas it is pushed onto (and not another canvas).
Example:
References EAPI, and eina_array_new().
void evas_device_pop | ( | Evas * | e | ) |
This pops the top of the device stack for the canvas.
e | The canvas to pop the device stack from |
This pops the top of the device stack making the current device context used for device events being what is now at the top of the stack after popping.
References EAPI.
const Eina_List* evas_device_list | ( | Evas * | e, |
const Evas_Device * | dev | ||
) |
List all current devices attached to the given canvas and/or device.
e | The canvas to query for a device list |
dev | A specific device inside the canvas to query for child devices or NULL if just querying the base canvas devices |
This will list all devices belonging to a specific evas canvas e
, at the top-level in the device tree if dev
passed in is NULL. If dev
is a valid device for the given canvas e
, then a list of child devices of dev
will be returned, allowing you to walk the device tree.
The list returned is only valid so long as no changes are made to the device tree in the given canvas e
. If there are no devices or children then NULL is returned.
References EAPI.
void evas_device_name_set | ( | Evas_Device * | dev, |
const char * | name | ||
) |
Set the name of a device as a string.
dev
The device to set the name of name
The name string as a readable C UTF8 string
References EAPI, and EVAS_CALLBACK_DEVICE_CHANGED.
const char* evas_device_name_get | ( | const Evas_Device * | dev | ) |
Get the name of a device.
dev
The device to query
This gets the name set by evas_device_name_set(). This is a readable UTF8 C string, or NULL if no name is set.
The name should be a short name like "Wireless Mouse", "Joystick", "Finger", "Keyboard" or "Numberpad" etc.
References EAPI.
void evas_device_description_set | ( | Evas_Device * | dev, |
const char * | desc | ||
) |
Set the description of a device as a string.
dev
The device to set the description of name
The description string as a readable C UTF8 string
References EAPI, and EVAS_CALLBACK_DEVICE_CHANGED.
const char* evas_device_description_get | ( | const Evas_Device * | dev | ) |
Get the description of a device.
dev
The device to query
This gets the description set by evas_device_description_set(). This is a readable UTF8 C string, or NULL if no description is set.
A description is meant to be a longer string describing the device so a human may make sense of it. For example "Wireless 6 button mouse in Black with red buttons" would be a good description, so a user may identify precisely which device is being talked about.
References EAPI.
void evas_device_parent_set | ( | Evas_Device * | dev, |
Evas_Device * | parent | ||
) |
Set the parent of a device.
dev
The device to set the parent of parent
The new parent device
This sets the parent of a device dev
to the parent given by parent
. If the device already has a parent, it is removed from that parent's list. If parent
is NULL then the device is unparented and placed back as a root device in the canvas.
When a device is deleted with evas_device_del(), all children are also deleted along with it.
References EAPI, eina_list_append(), eina_list_remove(), and EVAS_CALLBACK_DEVICE_CHANGED.
const Evas_Device* evas_device_parent_get | ( | const Evas_Device * | dev | ) |
Get the parent of a device.
dev | The device to query |
This returns the parent device of any given device entry, or NULL if no parent device exists (is a toplevel device).
References EAPI.
void evas_device_class_set | ( | Evas_Device * | dev, |
Evas_Device_Class | clas | ||
) |
Set the major class of device.
dev | The device whose class to set |
clas | The class to set it to |
This sets the "primary" class of device (a broad thing like mouse, keyboard, touch, pen etc.).
References EAPI, and EVAS_CALLBACK_DEVICE_CHANGED.
Evas_Device_Class evas_device_class_get | ( | const Evas_Device * | dev | ) |
Get the major class of a device.
dev | The devise to query |
This sets the device class set by evas_device_class_set().
References EAPI, and EVAS_DEVICE_CLASS_NONE.
void evas_device_subclass_set | ( | Evas_Device * | dev, |
Evas_Device_Subclass | clas | ||
) |
Set the sub-class of a device.
dev | The device to modify |
clas | The sub-class to set |
This sets the sub-class of a device whihc gives much more detailed usage within a broader category.
References EAPI, and EVAS_CALLBACK_DEVICE_CHANGED.
Evas_Device_Subclass evas_device_subclass_get | ( | const Evas_Device * | dev | ) |
Get the device sub-class.
dev | The device to query |
References EAPI, and EVAS_DEVICE_SUBCLASS_NONE.
void evas_device_emulation_source_set | ( | Evas_Device * | dev, |
Evas_Device * | src | ||
) |
Set the emulation source device.
dev | The device being emulated |
src | The primary source device producing events in the emulated device |
Devices may not be real, but may be emulated by listening to input on other devices and modifying or interpeting it to generate output on an emulated device (example a fingeron a touchscreen will often emulate a mouse when it presses). This allows you to set which device primarily emulates dev
so the user can choose to ignore events from emulated devices if they also pay attention to source device events for example.
References EAPI, and EVAS_CALLBACK_DEVICE_CHANGED.
const Evas_Device* evas_device_emulation_source_get | ( | const Evas_Device * | dev | ) |
Get the emulation source device.
dev | The device to query |
References eina_array_free(), EINA_LIST_FREE, eina_stringshare_del(), and evas_device_del().
void evas_event_default_flags_set | ( | Evas * | e, |
Evas_Event_Flags | flags | ||
) |
Set the default set of flags an event begins with.
e | The canvas to set the default event flags of |
flags | The default flags to use |
Events in evas can have an event_flags member. This starts out with and initial value (no flags). This lets you set the default flags that an event begins with to be flags
References EAPI, and evas_canvas_event_default_flags_set.
int evas_event_down_count_get | ( | const Evas * | e | ) |
Get the number of mouse or multi presses currently active.
e
The given canvas pointer.
References evas_canvas_event_down_count_get.
Evas_Event_Flags evas_event_default_flags_get | ( | const Evas * | e | ) |
Get the default set of flags an event begins with.
e | The canvas to get the default event flags from |
This gets the default event flags events are produced with when fed in.
References EAPI, evas_canvas_event_default_flags_get, evas_event_feed_mouse_move(), and EVAS_EVENT_FLAG_ON_HOLD.
void evas_event_freeze | ( | Evas * | e | ) |
Freeze all input events processing.
e | The canvas to freeze input events processing on. |
This function will indicate to Evas that the canvas e
is to have all input event processing frozen until a matching evas_event_thaw() function is called on the same canvas. All events of this kind during the freeze will get discarded. Every freeze call must be matched by a thaw call in order to completely thaw out a canvas (i.e. these calls may be nested). The most common use is when you don't want the user to interact with your user interface when you're populating a view or changing the layout.
Example:
See the full example.
If you run that example, you'll see the canvas ignoring all input events for 3 seconds, when the "f" key is pressed. In a more realistic code we would be freezing while a toolkit or Edje was doing some UI changes, thawing it back afterwards.
References EAPI.
Referenced by edje_file_data_get(), edje_object_add(), evas_obscured_clear(), and evas_smart_objects_calculate_count_get().
void evas_event_thaw | ( | Evas * | e | ) |
Thaw a canvas out after freezing (for input events).
e | The canvas to thaw out. |
This will thaw out a canvas after a matching evas_event_freeze() call. If this call completely thaws out a canvas, i.e., there's no other unbalanced call to evas_event_freeze(), events will start to be processed again, but any "missed" events will not be evaluated.
See evas_event_freeze() for an example.
References EAPI, EINA_FALSE, EINA_INLIST_FOREACH, EINA_INLIST_GET, and EINA_TRUE.
Referenced by edje_file_data_get(), edje_object_add(), evas_obscured_clear(), and evas_smart_objects_calculate_count_get().
int evas_event_freeze_get | ( | const Evas * | e | ) |
Return the freeze count on input events of a given canvas.
e | The canvas to fetch the freeze count from. |
This returns the number of times the canvas has been told to freeze input events. It is possible to call evas_event_freeze() multiple times, and these must be matched by evas_event_thaw() calls. This call allows the program to discover just how many times things have been frozen in case it may want to break out of a deep freeze state where the count is high.
Example:
References EAPI.
Referenced by evas_event_thaw_eval().
void evas_event_thaw_eval | ( | Evas * | e | ) |
After thaw of a canvas, re-evaluate the state of objects and call callbacks.
e | The canvas to evaluate after a thaw |
This is normally called after evas_event_thaw() to re-evaluate mouse containment and other states and thus also call callbacks for mouse in and out on new objects if the state change demands it.
References EAPI, and evas_event_freeze_get().
Referenced by edje_file_data_get(), edje_object_add(), and evas_smart_objects_calculate_count_get().
void evas_event_feed_mouse_down | ( | Evas * | e, |
int | b, | ||
Evas_Button_Flags | flags, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse down event feed.
e | The given canvas pointer. |
b | The button number. |
flags | The evas button flags. |
timestamp | The timestamp of the mouse down event. |
data | The data for canvas. |
This function will set some evas properties that is necessary when the mouse button is pressed. It prepares information to be treated by the callback function.
References _Evas_Event_Mouse_Down::button, _Evas_Event_Mouse_In::buttons, _Evas_Event_Mouse_Out::buttons, _Evas_Event_Mouse_Down::canvas, _Evas_Event_Mouse_In::canvas, _Evas_Event_Mouse_Out::canvas, EAPI, eina_list_data_find(), EINA_LIST_FOREACH, eina_list_free(), EVAS_CALLBACK_MOUSE_DOWN, EVAS_CALLBACK_MOUSE_IN, evas_canvas_event_feed_mouse_down, evas_event_feed_mouse_move(), EVAS_OBJECT_POINTER_MODE_AUTOGRAB, EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN, EVAS_TOUCH_POINT_STILL, _Evas_Event_Mouse_Down::flags, _Evas_Event_Mouse_Down::modifiers, _Evas_Event_Mouse_In::modifiers, _Evas_Event_Mouse_Out::modifiers, _Evas_Event_Mouse_Down::output, _Evas_Event_Mouse_In::output, _Evas_Event_Mouse_Out::output, _Evas_Coord_Point::x, and _Evas_Coord_Point::y.
Referenced by evas_event_refeed_event().
void evas_event_feed_mouse_up | ( | Evas * | e, |
int | b, | ||
Evas_Button_Flags | flags, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse up event feed.
e | The given canvas pointer. |
b | The button number. |
flags | evas button flags. |
timestamp | The timestamp of the mouse up event. |
data | The data for canvas. |
This function will set some evas properties that is necessary when the mouse button is released. It prepares information to be treated by the callback function.
References _Evas_Event_Mouse_Up::button, _Evas_Event_Mouse_Up::canvas, EAPI, EINA_LIST_FOREACH, eina_list_free(), EVAS_CALLBACK_MOUSE_UP, evas_canvas_event_feed_mouse_up, EVAS_OBJECT_POINTER_MODE_AUTOGRAB, EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN, EVAS_TOUCH_POINT_UP, _Evas_Event_Mouse_Up::flags, _Evas_Event_Mouse_Up::modifiers, _Evas_Event_Mouse_Up::output, _Evas_Coord_Point::x, and _Evas_Coord_Point::y.
Referenced by evas_event_feed_mouse_cancel(), and evas_event_refeed_event().
void evas_event_input_mouse_move | ( | Evas * | e, |
int | x, | ||
int | y, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse move event feed from input.
e | The given canvas pointer. |
x | The horizontal position of the mouse pointer relative to the 0,0 of the window/surface. |
y | The vertical position of the mouse pointer relative to the 0,0 of the window/surface. |
timestamp | The timestamp of the mouse move event. |
data | The data for canvas. |
Similar to the evas_event_feed_mouse_move(), this function will inform Evas about mouse move events which were received by the input system, relative to the 0,0 of the window, not to the canvas 0,0. It will take care of doing any special transformation like adding the framespace offset to the mouse event.
References EAPI, and evas_canvas_event_input_mouse_move.
Referenced by ecore_evas_pixmap_depth_get().
void evas_event_feed_mouse_move | ( | Evas * | e, |
int | x, | ||
int | y, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse move event feed.
e | The given canvas pointer. |
x | The horizontal position of the mouse pointer. |
y | The vertical position of the mouse pointer. |
timestamp | The timestamp of the mouse up event. |
data | The data for canvas. |
This function will set some evas properties that is necessary when the mouse is moved from its last position. It prepares information to be treated by the callback function.
References EAPI, and evas_canvas_event_feed_mouse_move.
Referenced by evas_event_default_flags_get(), evas_event_feed_mouse_down(), evas_event_feed_mouse_in(), evas_event_refeed_event(), evas_object_clip_set(), evas_object_clip_unset(), evas_object_freeze_events_set(), evas_object_hide(), evas_object_layer_set(), evas_object_lower(), evas_object_move(), evas_object_polygon_point_add(), evas_object_polygon_points_clear(), evas_object_raise(), evas_object_resize(), evas_object_stack_above(), evas_object_stack_below(), evas_object_text_font_set(), evas_object_text_text_set(), evas_object_textgrid_font_set(), and evas_string_char_len_get().
void evas_event_feed_mouse_in | ( | Evas * | e, |
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse in event feed.
e | The given canvas pointer. |
timestamp | The timestamp of the mouse up event. |
data | The data for canvas. |
This function will set some evas properties that is necessary when the mouse in event happens. It prepares information to be treated by the callback function.
References _Evas_Event_Mouse_In::buttons, _Evas_Event_Mouse_In::canvas, EAPI, eina_list_data_find(), EINA_LIST_FOREACH, eina_list_free(), EVAS_CALLBACK_MOUSE_IN, evas_canvas_event_feed_mouse_in, evas_event_feed_mouse_move(), _Evas_Event_Mouse_In::modifiers, _Evas_Event_Mouse_In::output, _Evas_Coord_Point::x, and _Evas_Coord_Point::y.
Referenced by ecore_evas_buffer_allocfunc_new(), and evas_event_refeed_event().
void evas_event_feed_mouse_out | ( | Evas * | e, |
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse out event feed.
e | The given canvas pointer. |
timestamp | Timestamp of the mouse up event. |
data | The data for canvas. |
This function will set some evas properties that is necessary when the mouse out event happens. It prepares information to be treated by the callback function.
References _Evas_Event_Mouse_Out::buttons, _Evas_Event_Mouse_Out::canvas, _Evas_Event_Multi_Down::device, _Evas_Event_Multi_Up::device, _Evas_Event_Multi_Move::device, EAPI, eina_list_data_find(), EINA_LIST_FOREACH, eina_list_free(), EVAS_CALLBACK_MULTI_DOWN, EVAS_CALLBACK_MULTI_MOVE, EVAS_CALLBACK_MULTI_UP, evas_canvas_event_feed_mouse_out, evas_canvas_event_feed_multi_down, evas_canvas_event_feed_multi_move, evas_canvas_event_feed_multi_up, evas_canvas_event_input_multi_down, evas_canvas_event_input_multi_move, evas_canvas_event_input_multi_up, EVAS_OBJECT_POINTER_MODE_NOGRAB, EVAS_TOUCH_POINT_MOVE, EVAS_TOUCH_POINT_STILL, EVAS_TOUCH_POINT_UP, _Evas_Event_Multi_Down::flags, _Evas_Event_Multi_Up::flags, _Evas_Event_Mouse_Out::modifiers, _Evas_Event_Multi_Down::modifiers, _Evas_Event_Multi_Up::modifiers, _Evas_Event_Multi_Move::modifiers, _Evas_Event_Mouse_Out::output, _Evas_Coord_Point::x, and _Evas_Coord_Point::y.
Referenced by evas_event_refeed_event().
void evas_event_feed_mouse_cancel | ( | Evas * | e, |
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse cancel event feed.
e | The given canvas pointer. |
timestamp | The timestamp of the mouse up event. |
data | The data for canvas. |
This function will call evas_event_feed_mouse_up() when a mouse cancel event happens.
References EAPI, EINA_LIST_FOREACH_SAFE, evas_canvas_event_feed_mouse_cancel, evas_event_feed_mouse_up(), EVAS_TOUCH_POINT_DOWN, and EVAS_TOUCH_POINT_MOVE.
void evas_event_feed_mouse_wheel | ( | Evas * | e, |
int | direction, | ||
int | z, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Mouse wheel event feed.
e | The given canvas pointer. |
direction | The wheel mouse direction. |
z | How much mouse wheel was scrolled up or down. |
timestamp | The timestamp of the mouse up event. |
data | The data for canvas. |
This function will set some evas properties that is necessary when the mouse wheel is scrolled up or down. It prepares information to be treated by the callback function.
References _Evas_Event_Mouse_In::buttons, _Evas_Event_Mouse_Out::buttons, _Evas_Event_Mouse_Move::buttons, _Evas_Position::canvas, _Evas_Event_Mouse_In::canvas, _Evas_Event_Mouse_Out::canvas, _Evas_Event_Mouse_Wheel::canvas, _Evas_Event_Mouse_Move::cur, _Eina_List::data, EAPI, EINA_FALSE, EINA_INLIST_GET, eina_list_append(), eina_list_data_find(), EINA_LIST_FOREACH, eina_list_free(), eina_list_remove(), EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_MOVE, EVAS_CALLBACK_MOUSE_WHEEL, evas_canvas_event_feed_mouse_wheel, evas_object_below_get(), EVAS_OBJECT_POINTER_MODE_NOGRAB_NO_REPEAT_UPDOWN, EVAS_TOUCH_POINT_MOVE, _Evas_Event_Mouse_In::modifiers, _Evas_Event_Mouse_Out::modifiers, _Evas_Event_Mouse_Move::modifiers, _Evas_Event_Mouse_Wheel::modifiers, _Evas_Event_Mouse_In::output, _Evas_Event_Mouse_Out::output, _Evas_Event_Mouse_Wheel::output, _Evas_Event_Mouse_Move::prev, _Evas_Coord_Point::x, and _Evas_Coord_Point::y.
Referenced by evas_event_refeed_event().
void evas_event_feed_key_down | ( | Evas * | e, |
const char * | keyname, | ||
const char * | key, | ||
const char * | string, | ||
const char * | compose, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Key down event feed.
e | The canvas to thaw out |
keyname | Name of the key |
key | The key pressed. |
string | A String |
compose | The compose string |
timestamp | Timestamp of the mouse up event |
data | Data for canvas. |
This function will set some evas properties that is necessary when a key is pressed. It prepares information to be treated by the callback function.
References _Evas_Event_Key_Down::compose, EAPI, EINA_FALSE, eina_list_data_get(), EINA_LIST_FOREACH, eina_list_next(), EINA_TRUE, EVAS_CALLBACK_KEY_DOWN, evas_canvas_event_feed_key_down, _Evas_Event_Key_Down::key, _Evas_Event_Key_Down::keyname, _Evas_Event_Key_Down::modifiers, and _Evas_Event_Key_Down::string.
Referenced by evas_event_refeed_event().
void evas_event_feed_key_up | ( | Evas * | e, |
const char * | keyname, | ||
const char * | key, | ||
const char * | string, | ||
const char * | compose, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Key up event feed.
e | The canvas to thaw out |
keyname | Name of the key |
key | The key released. |
string | string |
compose | compose |
timestamp | Timestamp of the mouse up event |
data | Data for canvas. |
This function will set some evas properties that is necessary when a key is released. It prepares information to be treated by the callback function.
References _Evas_Event_Key_Up::compose, EAPI, EINA_FALSE, EINA_LIST_FOREACH, EINA_LIST_FOREACH_SAFE, EINA_TRUE, EVAS_CALLBACK_KEY_UP, evas_canvas_event_feed_key_up, _Evas_Event_Key_Up::key, _Evas_Event_Key_Up::keyname, _Evas_Event_Key_Up::modifiers, and _Evas_Event_Key_Up::string.
Referenced by evas_event_refeed_event().
void evas_event_feed_hold | ( | Evas * | e, |
int | hold, | ||
unsigned int | timestamp, | ||
const void * | data | ||
) |
Hold event feed.
e | The given canvas pointer. |
hold | The hold. |
timestamp | The timestamp of the mouse up event. |
data | The data for canvas. |
This function makes the object to stop sending events.
References EAPI, EINA_LIST_FOREACH, eina_list_free(), EVAS_CALLBACK_HOLD, evas_canvas_event_feed_hold, and _Evas_Event_Hold::hold.
void evas_event_refeed_event | ( | Evas * | e, |
void * | event_copy, | ||
Evas_Callback_Type | event_type | ||
) |
Re feed event.
e | The given canvas pointer. |
event_copy | the event to refeed |
event_type | Event type |
This function re-feeds the event pointed by event_copy
This function call evas_event_feed_* functions, so it can cause havoc if not used wisely. Please use it responsibly.
References _Evas_Event_Mouse_Down::button, _Evas_Event_Mouse_Up::button, _Evas_Position::canvas, _Evas_Event_Key_Down::compose, _Evas_Event_Key_Up::compose, _Evas_Event_Mouse_Move::cur, _Evas_Event_Multi_Down::device, _Evas_Event_Multi_Up::device, _Evas_Event_Multi_Move::device, EAPI, EVAS_CALLBACK_KEY_DOWN, EVAS_CALLBACK_KEY_UP, EVAS_CALLBACK_MOUSE_DOWN, EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_MOVE, EVAS_CALLBACK_MOUSE_UP, EVAS_CALLBACK_MOUSE_WHEEL, EVAS_CALLBACK_MULTI_DOWN, EVAS_CALLBACK_MULTI_MOVE, EVAS_CALLBACK_MULTI_UP, evas_canvas_event_refeed_event, evas_event_feed_key_down(), evas_event_feed_key_up(), evas_event_feed_mouse_down(), evas_event_feed_mouse_in(), evas_event_feed_mouse_move(), evas_event_feed_mouse_out(), evas_event_feed_mouse_up(), evas_event_feed_mouse_wheel(), _Evas_Event_Mouse_Down::flags, _Evas_Event_Mouse_Up::flags, _Evas_Event_Multi_Down::flags, _Evas_Event_Multi_Up::flags, _Evas_Event_Key_Down::key, _Evas_Event_Key_Up::key, _Evas_Event_Key_Down::keyname, _Evas_Event_Key_Up::keyname, _Evas_Event_Key_Down::string, _Evas_Event_Key_Up::string, _Evas_Coord_Point::x, and _Evas_Coord_Point::y.
Eina_List* evas_tree_objects_at_xy_get | ( | Evas * | e, |
Evas_Object * | stop, | ||
int | x, | ||
int | y | ||
) |
Retrieve a list of Evas objects lying over a given position in a canvas.
e | A handle to the canvas. |
stop | An Evas Object where to stop searching. |
x | The horizontal coordinate of the position. |
y | The vertical coordinate of the position. |
This function will traverse all the layers of the given canvas, from top to bottom, querying for objects with areas covering the given position. It will enter the smart objects. It will not append to the list pass events as hidden objects. Call eina_list_free on the returned list after usage.
References EAPI, eina_list_append(), EINA_LIST_FOREACH, and evas_canvas_tree_objects_at_xy_get.