Input Events Feeding Functions

- Main Page
- Related Pages
- Modules
- Data Structures
- Files
- Examples

Functions
Input Events Feeding Functions
Evas » Canvas Functions » Canvas Events

Functions to tell Evas that input events happened and should be processed. More...

## Functions
EVAS_API Evas_Device * | evas_device_add (Evas *e)
| Add a new device type.
EVAS_API Evas_Device * | evas_device_add_full (Evas *e, const char *name, const char *desc, Evas_Device *parent_dev, Evas_Device *emulation_dev, Evas_Device_Class clas, Evas_Device_Subclass sub_class)
| Add a new device type.
EVAS_API void | evas_device_del (Evas_Device *dev)
| Delete a new device type.
EVAS_API void | evas_device_push (Evas *e, Evas_Device *dev)
| Push the current context device onto the device stack.
EVAS_API void | evas_device_pop (Evas *e)
| This pops the top of the device stack for the canvas.
EVAS_API const Eina_List * | evas_device_list (Evas *e, const Evas_Device *dev)
| List all current devices attached to the given canvas and/or device.
EVAS_API Evas_Device * | evas_device_get (Evas *e, const char *name)
| Get a device by its name.
EVAS_API Evas_Device * | evas_device_get_by_seat_id (Evas *eo_e, unsigned int id)
| Get a device by its seat id.
EVAS_API void | evas_device_name_set (Evas_Device *dev, const char *name)
| Set the name of a device as a string.
EVAS_API const char * | evas_device_name_get (const Evas_Device *dev)
| Get the name of a device.
EVAS_API void | evas_device_seat_id_set (Evas_Device *dev, unsigned int id)
| Set the seat id of a device.
EVAS_API unsigned int | evas_device_seat_id_get (const Evas_Device *dev)
| Get the seat id of a device.
EVAS_API void | evas_device_description_set (Evas_Device *dev, const char *desc)
| Set the description of a device as a string.
EVAS_API const char * | evas_device_description_get (const Evas_Device *dev)
| Get the description of a device.
EVAS_API void | evas_device_parent_set (Evas_Device *dev, Evas_Device *parent) EINA_DEPRECATED
| Set the parent of a device.
EVAS_API const Evas_Device * | evas_device_parent_get (const Evas_Device *dev)
| Get the parent of a device.
EVAS_API void | evas_device_class_set (Evas_Device *dev, Evas_Device_Class clas) EINA_DEPRECATED
| Set the major class of device.
EVAS_API Evas_Device_Class | evas_device_class_get (const Evas_Device *dev)
| Get the major class of a device.
EVAS_API void | evas_device_subclass_set (Evas_Device *dev, Evas_Device_Subclass clas)
| Set the sub-class of a device.
EVAS_API Evas_Device_Subclass | evas_device_subclass_get (const Evas_Device *dev)
| Get the device sub-class.
EVAS_API void | evas_device_emulation_source_set (Evas_Device *dev, Evas_Device *src)
| Set the emulation source device.
EVAS_API const Evas_Device * | evas_device_emulation_source_get (const Evas_Device *dev)
| Get the emulation source device.
EVAS_API void | evas_event_freeze (Evas *e)
| Freeze all input events processing.
EVAS_API void | evas_event_thaw (Evas *e)
| Thaw a canvas out after freezing (for input events).
EVAS_API int | evas_event_freeze_get (const Evas *e)
| Return the freeze count on input events of a given canvas.
EVAS_API void | evas_event_thaw_eval (Evas *e)
| After thaw of a canvas, re-evaluate the state of objects and call callbacks.
EVAS_API void | evas_event_feed_mouse_move (Evas *obj, int x, int y, unsigned int timestamp, const void *data)
| Mouse move event feed.
EVAS_API void | evas_event_input_mouse_move (Evas *obj, int x, int y, unsigned int timestamp, const void *data)
| Mouse move event feed from input.
EVAS_API void | evas_event_feed_mouse_up (Evas *obj, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data)
| Mouse up event feed.
EVAS_API void | evas_event_feed_mouse_down (Evas *obj, int b, Evas_Button_Flags flags, unsigned int timestamp, const void *data)
| Mouse down event feed.
EVAS_API void | evas_event_feed_mouse_wheel (Evas *obj, int direction, int z, unsigned int timestamp, const void *data)
| Mouse wheel event feed.
EVAS_API void | evas_event_feed_mouse_in (Evas *obj, unsigned int timestamp, const void *data)
| Mouse in event feed.
EVAS_API void | evas_event_feed_mouse_out (Evas *obj, unsigned int timestamp, const void *data)
| Mouse out event feed.
EVAS_API void | evas_event_feed_mouse_cancel (Evas *obj, unsigned int timestamp, const void *data)
| Mouse cancel event feed.
EVAS_API void | evas_event_input_multi_down (Evas *obj, 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)
EVAS_API void | evas_event_input_multi_move (Evas *obj, 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)
EVAS_API void | evas_event_input_multi_up (Evas *obj, 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)
EVAS_API void | evas_event_feed_multi_down (Evas *obj, 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)
EVAS_API void | evas_event_feed_multi_move (Evas *obj, 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)
EVAS_API void | evas_event_feed_multi_up (Evas *obj, 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)
EVAS_API void | evas_event_feed_key_down (Evas *obj, const char *keyname, const char *key, const char *string, const char *compose, unsigned int timestamp, const void *data)
| Key down event feed.
EVAS_API void | evas_event_feed_key_up (Evas *obj, const char *keyname, const char *key, const char *string, const char *compose, unsigned int timestamp, const void *data)
| Key up event feed.
EVAS_API void | evas_event_feed_key_down_with_keycode (Evas *obj, const char *keyname, const char *key, const char *string, const char *compose, unsigned int timestamp, const void *data, unsigned int keycode)
| Key down event feed with keycode.
EVAS_API void | evas_event_feed_key_up_with_keycode (Evas *obj, const char *keyname, const char *key, const char *string, const char *compose, unsigned int timestamp, const void *data, unsigned int keycode)
| Key up event feed with keycode.
EVAS_API void | evas_event_feed_axis_update (Evas *obj, unsigned int timestamp, int device, int toolid, int naxes, const Evas_Axis *axis, const void *data)
| Input device axis update event feed.
EVAS_API void | evas_event_feed_hold (Evas *obj, int hold, unsigned int timestamp, const void *data)
| Hold event feed.
EVAS_API void | evas_event_refeed_event (Evas *obj, void *event_copy, Evas_Callback_Type event_type)
| Re feed event.

## Detailed Description

Functions to tell Evas that input events happened and should be processed.

Warning
  Most of the time these functions are not what you're looking for. These functions should only be used if you're not working with ecore evas (or another input handling system). If you're not using ecore evas please consider using it, in most situation it will make life a lot easier.

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.

## Function Documentation

## ◆ evas_device_add()

EVAS_API Evas_Device * evas_device_add | ( | Evas * | e | ) |

Add a new device type.

Parameters

  e | The canvas to create the device node for.

Adds a new device node to the given canvas `e`. All devices created as part of the canvas `e` will automatically be deleted when the canvas is freed.

Returns
  the device node created or NULL if an error occurred.

See also
  evas_device_del
  evas_device_add_full

Since
  1.8

References evas_device_add_full(), EVAS_DEVICE_CLASS_NONE, and EVAS_DEVICE_SUBCLASS_NONE.

## ◆ evas_device_add_full()

EVAS_API Evas_Device * evas_device_add_full | ( | Evas * | e,
|  | const char * | name,
|  | const char * | desc,
|  | Evas_Device * | parent_dev,
|  | Evas_Device * | emulation_dev,
|  | Evas_Device_Class | clas,
|  | Evas_Device_Subclass | sub_class
| ) |  |

Add a new device type.

Parameters

  e | The canvas to create the device node for.
  name | The name of the device.
  desc | The description of the device.
  parent_dev | The parent device.
  emulation_dev | The source device.
  clas | The device class.
  sub_class | The device subclass.

Adds a new device node to the given canvas `e`. All devices created as part of the canvas `e` will automatically be deleted when the canvas is freed.

Returns
  the device node created or NULL if an error occurred.

See also
  evas_device_del

Since
  1.19

References EINA_INLIST_FOREACH, eina_list_append(), EVAS_CALLBACK_DEVICE_CHANGED, EVAS_CANVAS_CLASS, evas_device_class_get(), EVAS_DEVICE_CLASS_KEYBOARD, EVAS_DEVICE_CLASS_MOUSE, EVAS_DEVICE_CLASS_SEAT, and evas_object_focus_set().

Referenced by evas_device_add(), and evas_output_method_set().

## ◆ evas_device_del()

EVAS_API void evas_device_del | ( | Evas_Device * | dev | ) |

Delete a new device type.

Parameters

  dev | The device node you want to delete.

See also
  evas_device_add
  evas_device_push
  evas_device_pop

Since
  1.8

## ◆ evas_device_push()

EVAS_API void evas_device_push | ( | Evas * | e,
|  | Evas_Device * | dev
| ) |  |

Push the current context device onto the device stack.

Parameters

  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:

evas_device_push(canvas, dev);
evas_event_feed_mouse_move(canvas, 20, 30, 0, NULL);
evas_device_pop(canvas);
evas_device_pop
EVAS_API void evas_device_pop(Evas *eo_e)
This pops the top of the device stack for the canvas.
Definition: evas_device.c:289
evas_device_push
EVAS_API void evas_device_push(Evas *eo_e, Evas_Device *dev)
Push the current context device onto the device stack.
Definition: evas_device.c:275

See also
  evas_device_pop

Since
  1.8

References eina_array_new(), eina_array_push(), and EVAS_CANVAS_CLASS.

## ◆ evas_device_pop()

EVAS_API void evas_device_pop | ( | Evas * | e | ) |

This pops the top of the device stack for the canvas.

Parameters

  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.

See also
  evas_device_push

Since
  1.8

References eina_array_pop(), and EVAS_CANVAS_CLASS.

## ◆ evas_device_list()

EVAS_API const Eina_List * evas_device_list | ( | Evas * | e,
|  | const Evas_Device * | dev
| ) |  |

List all current devices attached to the given canvas and/or device.

Parameters

  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

Returns
  An internal list of Evas_Device pointers, or NULL if no devices are found

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.

See also
  evas_device_parent_get
  evas_device_name_get
  evas_device_description_get
  evas_device_class_get
  evas_device_subclass_get
  evas_device_emulation_source_get

Since
  1.8

References EVAS_CANVAS_CLASS.

## ◆ evas_device_get()

EVAS_API Evas_Device * evas_device_get | ( | Evas * | e,
|  | const char * | name
| ) |  |

Get a device by its name.

Parameters

  e | The canvas to find the device on
  name | The name of the device.

Gets the first occurrence of a device named as `name` on Evas `e` list of devices.

Returns
  the device or NULL if an error occurred, no name was provided, or no device with a matching name was found.

Since
  1.19

## ◆ evas_device_get_by_seat_id()

EVAS_API Evas_Device * evas_device_get_by_seat_id | ( | Evas * | eo_e,
|  | unsigned int | id
| ) |  |

Get a device by its seat id.

Parameters

  eo_e | The canvas to find the device on
  id | The seat id of the device.

Gets the device with id `id` on Evas `e` list of devices.

Returns
  the device or NULL if no device with a matching id was found.

Since
  1.20

## ◆ evas_device_name_set()

EVAS_API 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

Since
  1.8

References EVAS_CALLBACK_DEVICE_CHANGED.

## ◆ evas_device_name_get()

EVAS_API const char * evas_device_name_get | ( | const Evas_Device * | dev | ) |

Get the name of a device.

`dev` The device to query

Returns
  The device name string or NULL if none is set

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.

Since
  1.8

Referenced by ecore_imf_evas_event_key_down_wrap(), and ecore_imf_evas_event_key_up_wrap().

## ◆ evas_device_seat_id_set()

EVAS_API void evas_device_seat_id_set | ( | Evas_Device * | dev,
|  | unsigned int | id
| ) |  |

Set the seat id of a device.

`dev` The device to set the seat id of `name` The seat id

Since
  1.20

Referenced by evas_output_method_set().

## ◆ evas_device_seat_id_get()

EVAS_API unsigned int evas_device_seat_id_get | ( | const Evas_Device * | dev | ) |

Get the seat id of a device.

`dev` The device to query

Returns
  The device seat id or 0 if none is set

This gets the seat id set by evas_device_seat id_set().

A seat id is the hardware id of the seat.

Since
  1.20

## ◆ evas_device_description_set()

EVAS_API 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

Since
  1.8

References EVAS_CALLBACK_DEVICE_CHANGED.

## ◆ evas_device_description_get()

EVAS_API const char * evas_device_description_get | ( | const Evas_Device * | dev | ) |

Get the description of a device.

`dev` The device to query

Returns
  The device description string or NULL if none is set

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.

Since
  1.8

## ◆ evas_device_parent_set()

EVAS_API 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.

See also
  evas_device_del
  evas_device_parent_get
  evas_device_list

Since
  1.8

## ◆ evas_device_parent_get()

EVAS_API const Evas_Device * evas_device_parent_get | ( | const Evas_Device * | dev | ) |

Get the parent of a device.

Parameters

  dev | The device to query

Returns
  The parent device or NULL if it is a toplevel

This returns the parent device of any given device entry, or NULL if no parent device exists (is a toplevel device).

Since
  1.8

## ◆ evas_device_class_set()

EVAS_API void evas_device_class_set | ( | Evas_Device * | dev,
|  | Evas_Device_Class | clas
| ) |  |

Set the major class of device.

Parameters

  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.).

Deprecated:
  The class of a device can not be changed after creation.

Since
  1.8

References EINA_FALSE, EINA_SAFETY_ON_TRUE_RETURN, EVAS_CALLBACK_DEVICE_CHANGED, and EVAS_CANVAS_CLASS.

## ◆ evas_device_class_get()

EVAS_API Evas_Device_Class evas_device_class_get | ( | const Evas_Device * | dev | ) |

Get the major class of a device.

Parameters

  dev | The devise to query

Returns
  The device class to set

This gets the device class set by evas_device_class_set().

Since
  1.8

Referenced by ecore_imf_evas_event_key_down_wrap(), ecore_imf_evas_event_key_up_wrap(), and evas_device_add_full().

## ◆ evas_device_subclass_set()

EVAS_API void evas_device_subclass_set | ( | Evas_Device * | dev,
|  | Evas_Device_Subclass | clas
| ) |  |

Set the sub-class of a device.

Parameters

  dev | The device to modify
  clas | The sub-class to set

This sets the sub-class of a device, giving much more detailed usage within a broader category.

Since
  1.8

References EVAS_CALLBACK_DEVICE_CHANGED.

## ◆ evas_device_subclass_get()

EVAS_API Evas_Device_Subclass evas_device_subclass_get | ( | const Evas_Device * | dev | ) |

Get the device sub-class.

Parameters

  dev | The device to query

Returns
  The device sub-class set by evas_device_subclass_set().

Since
  1.8

Referenced by ecore_imf_evas_event_key_down_wrap(), and ecore_imf_evas_event_key_up_wrap().

## ◆ evas_device_emulation_source_set()

EVAS_API void evas_device_emulation_source_set | ( | Evas_Device * | dev,
|  | Evas_Device * | src
| ) |  |

Set the emulation source device.

Parameters

  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 finger on 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.

Since
  1.8

References EVAS_CALLBACK_DEVICE_CHANGED.

## ◆ evas_device_emulation_source_get()

EVAS_API const Evas_Device * evas_device_emulation_source_get | ( | const Evas_Device * | dev | ) |

Get the emulation source device.

Parameters

  dev | The device to query

Returns
  The source emulation device set by evas_device_emulation_source_set().

Since
  1.8

## ◆ evas_event_freeze()

EVAS_API void evas_event_freeze | ( | Evas * | e | ) |

Freeze all input events processing.

Parameters

  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:

"\tf - freeze input for 3 seconds\n"
"\tp - toggle precise point collision detection on image\n"
"\tControl + o - add an obscured rectangle\n"
"\th - print help\n";
struct test_data
{
Ecore_Evas *ee;
Evas *canvas;
Evas_Object *img, *bg;
Ecore_Timer *resize_timer, *freeze_timer;
Eina_Bool obscured, focus;
};
Ecore_Timer
Eo Ecore_Timer
A handle for timers.
Definition: Ecore_Common.h:3079
Eina_Bool
unsigned char Eina_Bool
Type to mimic a boolean.
Definition: eina_types.h:527
Evas
Eo Evas
An opaque handle to an Evas canvas.
Definition: Evas_Common.h:163
Evas_Object
Efl_Canvas_Object Evas_Object
An Evas Object handle.
Definition: Evas_Common.h:185
/* let's have our events back */
static Eina_Bool
_thaw_cb(void *data EINA_UNUSED)
{
printf("Canvas was frozen %d times, now thawing.\n",
evas_event_freeze_get(d.canvas));
evas_event_thaw(d.canvas);
return EINA_FALSE; /* do not re-issue the timer */
}
EINA_FALSE
#define EINA_FALSE
boolean value FALSE (numerical value 0)
Definition: eina_types.h:533
EINA_UNUSED
#define EINA_UNUSED
Used to indicate that a function parameter is purposely unused.
Definition: eina_types.h:339

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.

## ◆ evas_event_thaw()

EVAS_API void evas_event_thaw | ( | Evas * | e | ) |

Thaw a canvas out after freezing (for input events).

Parameters

  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.

## ◆ evas_event_freeze_get()

EVAS_API int evas_event_freeze_get | ( | const Evas * | e | ) |

Return the freeze count on input events of a given canvas.

Parameters

  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:

extern Evas *evas;
while (evas_event_freeze_get(evas) > 0) evas_event_thaw(evas);

## ◆ evas_event_thaw_eval()

EVAS_API void evas_event_thaw_eval | ( | Evas * | e | ) |

After thaw of a canvas, re-evaluate the state of objects and call callbacks.

Parameters

  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 EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_move()

EVAS_API void evas_event_feed_mouse_move | ( | Evas * | obj,
|  | int | x,
|  | int | y,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse move event feed.

This function will set some evas properties that are necessary when the mouse is moved from its last position. It prepares information to be treated by the callback function.

Parameters

  [in] | y | The vertical position of the mouse pointer.
  [in] | timestamp | The timestamp of the mouse up event.
  [in] | data | The data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_input_mouse_move()

EVAS_API void evas_event_input_mouse_move | ( | Evas * | obj,
|  | int | x,
|  | int | y,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse move event feed from input.

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.

Parameters

  [in] | y | The vertical position of the mouse pointer relative to the 0,0 of the window/surface.
  [in] | timestamp | The timestamp of the mouse move event.
  [in] | data | The data for canvas.

Since
  1.8

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_up()

EVAS_API void evas_event_feed_mouse_up | ( | Evas * | obj,
|  | int | b,
|  | Evas_Button_Flags | flags,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse up event feed.

This function will set some evas properties that are necessary when the mouse button is released. It prepares information to be treated by the callback function.

Parameters

  [in] | flags | Evas button flags.
  [in] | timestamp | The timestamp of the mouse up event.
  [in] | data | The data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_down()

EVAS_API void evas_event_feed_mouse_down | ( | Evas * | obj,
|  | int | b,
|  | Evas_Button_Flags | flags,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse down event feed.

This function will set some evas properties that are necessary when the mouse button is pressed. It prepares information to be treated by the callback function.

Parameters

  [in] | flags | Evas button flags.
  [in] | timestamp | The timestamp of the mouse up event.
  [in] | data | The data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_wheel()

EVAS_API void evas_event_feed_mouse_wheel | ( | Evas * | obj,
|  | int | direction,
|  | int | z,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse wheel event feed.

This function will set some evas properties that are necessary when the mouse wheel is scrolled up or down. It prepares information to be treated by the callback function.

Parameters

  [in] | z | How much mouse wheel was scrolled up or down.
  [in] | timestamp | The timestamp of the mouse up event.
  [in] | data | The data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, EINA_TRUE, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_in()

EVAS_API void evas_event_feed_mouse_in | ( | Evas * | obj,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse in event feed.

This function will set some evas properties that are necessary when the mouse in event happens. It prepares information to be treated by the callback function.

Parameters

  [in] | data | The data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, EINA_TRUE, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_out()

EVAS_API void evas_event_feed_mouse_out | ( | Evas * | obj,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse out event feed.

This function will set some evas properties that are necessary when the mouse out event happens. It prepares information to be treated by the callback function.

Parameters

  [in] | data | The data for canvas.

References EINA_FALSE, EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_mouse_cancel()

EVAS_API void evas_event_feed_mouse_cancel | ( | Evas * | obj,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Mouse cancel event feed.

This function will call generate a mouse up event.

Parameters

  [in] | data | The data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, EINA_TRUE, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_key_down()

EVAS_API void evas_event_feed_key_down | ( | Evas * | obj,
|  | const char * | keyname,
|  | const char * | key,
|  | const char * | string,
|  | const char * | compose,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Key down event feed.

This function will set some evas properties that are necessary when a key is pressed. It prepares information to be treated by the callback function.

Parameters

  [in] | key | The key pressed.
  [in] | string | A string.
  [in] | compose | The compose string.
  [in] | timestamp | Timestamp of the mouse up event.
  [in] | data | Data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_key_up()

EVAS_API void evas_event_feed_key_up | ( | Evas * | obj,
|  | const char * | keyname,
|  | const char * | key,
|  | const char * | string,
|  | const char * | compose,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Key up event feed.

This function will set some evas properties that are necessary when a key is released. It prepares information to be treated by the callback function.

Parameters

  [in] | key | The key released.
  [in] | string | A string.
  [in] | compose | Compose.
  [in] | timestamp | Timestamp of the mouse up event.
  [in] | data | Data for canvas.

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_key_down_with_keycode()

EVAS_API void evas_event_feed_key_down_with_keycode | ( | Evas * | obj,
|  | const char * | keyname,
|  | const char * | key,
|  | const char * | string,
|  | const char * | compose,
|  | unsigned int | timestamp,
|  | const void * | data,
|  | unsigned int | keycode
| ) |  |

Key down event feed with keycode.

This function will set some evas properties that are necessary when a key is pressed. It prepares information to be treated by the callback function.

Parameters

  [in] | key | The key released.
  [in] | string | A string.
  [in] | compose | Compose.
  [in] | timestamp | Timestamp of the mouse up event.
  [in] | data | Data for canvas.
  [in] | keycode | Key scan code numeric value for canvas.

Since
  1.10

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_key_up_with_keycode()

EVAS_API void evas_event_feed_key_up_with_keycode | ( | Evas * | obj,
|  | const char * | keyname,
|  | const char * | key,
|  | const char * | string,
|  | const char * | compose,
|  | unsigned int | timestamp,
|  | const void * | data,
|  | unsigned int | keycode
| ) |  |

Key up event feed with keycode.

This function will set some evas properties that are necessary when a key is released. It prepares information to be treated by the callback function.

Parameters

  [in] | key | The key released.
  [in] | string | A string.
  [in] | compose | Compose.
  [in] | timestamp | Timestamp of the mouse up event.
  [in] | data | Data for canvas.
  [in] | keycode | Key scan code numeric value for canvas.

Since
  1.10

References EINA_SAFETY_ON_FALSE_RETURN, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_axis_update()

EVAS_API void evas_event_feed_axis_update | ( | Evas * | obj,
|  | unsigned int | timestamp,
|  | int | device,
|  | int | toolid,
|  | int | naxes,
|  | const Evas_Axis * | axis,
|  | const void * | data
| ) |  |

Input device axis update event feed.

This function will set some evas properties that are necessary when an e.g. stylus axis is updated. It prepares information to be treated by the callback function.

Parameters

  [in] | device | System-provided device identifier.
  [in] | toolid | Type of tool currently being used.
  [in] | naxes | Number of elements in the `axis` array.
  [in] | axis | Array containing the current value of all updated axes.
  [in] | data | Data for canvas.

Since
  1.13

References EINA_SAFETY_ON_FALSE_RETURN, EINA_TRUE, EVAS_AXIS_LABEL_AZIMUTH, EVAS_AXIS_LABEL_DISTANCE, EVAS_AXIS_LABEL_NORMAL_X, EVAS_AXIS_LABEL_NORMAL_Y, EVAS_AXIS_LABEL_PRESSURE, EVAS_AXIS_LABEL_TILT, EVAS_AXIS_LABEL_TOOL_WIDTH_MAJOR, EVAS_AXIS_LABEL_TOOL_WIDTH_MINOR, EVAS_AXIS_LABEL_TOUCH_WIDTH_MAJOR, EVAS_AXIS_LABEL_TOUCH_WIDTH_MINOR, EVAS_AXIS_LABEL_TWIST, EVAS_AXIS_LABEL_UNKNOWN, EVAS_AXIS_LABEL_WINDOW_X, EVAS_AXIS_LABEL_WINDOW_Y, EVAS_AXIS_LABEL_X, EVAS_AXIS_LABEL_Y, and EVAS_CANVAS_CLASS.

## ◆ evas_event_feed_hold()

EVAS_API void evas_event_feed_hold | ( | Evas * | obj,
|  | int | hold,
|  | unsigned int | timestamp,
|  | const void * | data
| ) |  |

Hold event feed.

This function makes the object to stop sending events.

Parameters

  [in] | timestamp | The timestamp of the mouse up event.
  [in] | data | The data for canvas.

References EINA_LIST_FOREACH, eina_list_free(), EINA_TRUE, EVAS_CALLBACK_HOLD, and EVAS_CANVAS_CLASS.

## ◆ evas_event_refeed_event()

EVAS_API void evas_event_refeed_event | ( | Evas * | obj,
|  | void * | event_copy,
|  | Evas_Callback_Type | event_type
| ) |  |

Re feed event.

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.

Parameters

  [in] | event_type | Event type.

References _Evas_Event_Mouse_Down::button, _Evas_Event_Mouse_Up::button, _Evas_Position::canvas, _Evas_Precision_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, _Evas_Event_Mouse_Wheel::direction, EINA_SAFETY_ON_FALSE_RETURN, EVAS_CALLBACK_AXIS_UPDATE, EVAS_CALLBACK_KEY_DOWN, EVAS_CALLBACK_KEY_UP, EVAS_CALLBACK_MOUSE_DOWN, EVAS_CALLBACK_MOUSE_IN, EVAS_CALLBACK_MOUSE_MOVE, EVAS_CALLBACK_MOUSE_OUT, EVAS_CALLBACK_MOUSE_UP, EVAS_CALLBACK_MOUSE_WHEEL, EVAS_CALLBACK_MULTI_DOWN, EVAS_CALLBACK_MULTI_MOVE, EVAS_CALLBACK_MULTI_UP, EVAS_CANVAS_CLASS, _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, _Evas_Coord_Precision_Point::x, _Evas_Coord_Precision_Point::xsub, _Evas_Coord_Point::y, _Evas_Coord_Precision_Point::y, and _Evas_Coord_Precision_Point::ysub.