Efl.Canvas (interface)

Description

Common interface for window and some internal classes in EFL.

Members

device (get)

An input device attached to this canvas, found by name.
Efl_Input_Device *efl_canvas_device_get(const Eo *obj, const char *name);


image_max_size (get)

Get the maximum image size evas can possibly handle.
Eina_Bool efl_canvas_image_max_size_get(const Eo *obj, Eina_Size2D *max);


object_top_at_xy_get

Retrieve the object stacked at the top of a given position in a canvas.
Efl_Gfx *efl_canvas_object_top_at_xy_get(const Eo *obj, Eina_Position2D pos, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects);


object_top_in_rectangle_get

Retrieve the Evas object stacked at the top of a given rectangular region in a canvas
Efl_Gfx *efl_canvas_object_top_in_rectangle_get(const Eo *obj, Eina_Rect rect, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects);


objects_at_xy_get

Retrieve a list of objects lying over a given position in a canvas.
Eina_Iterator *efl_canvas_objects_at_xy_get(const Eo *obj, Eina_Position2D pos, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects);


objects_in_rectangle_get

Retrieve a list of objects lying over a given rectangular region in a canvas.
Eina_Iterator *efl_canvas_objects_in_rectangle_get(const Eo *obj, Eina_Rect rect, Eina_Bool include_pass_events_objects, Eina_Bool include_hidden_objects);


pointer_iterate

Returns an iterator over the current known pointer positions.
Eina_Iterator *efl_canvas_pointer_iterate(const Eo *obj, Eina_Bool hover);


pointer_position (get)

This function returns the current known pointer coordinates
Eina_Position2D efl_canvas_pointer_position_get(const Eo *obj);


seat (get)

A seat attached to this canvas, found by id.
Efl_Input_Device *efl_canvas_seat_get(const Eo *obj, int id);


seats

Iterate over the input device seats.
Eina_Iterator *efl_canvas_seats(Eo *obj);


smart_objects_calculate

Call user-provided calculate smart functions and unset the flag signalling that the object needs to get recalculated to all smart objects in the canvas.
void efl_canvas_smart_objects_calculate(Eo *obj);


Events

device,added

Called when input device was added
EFL_CANVAS_EVENT_DEVICE_ADDED(Efl_Input_Device *)


device,changed

Called when input device changed
EFL_CANVAS_EVENT_DEVICE_CHANGED(Efl_Input_Device *)


device,removed

Called when input device was removed
EFL_CANVAS_EVENT_DEVICE_REMOVED(Efl_Input_Device *)


focus,in

Called when canvas got focus
EFL_CANVAS_EVENT_FOCUS_IN(Efl_Input_Focus *)


focus,out

Called when canvas lost focus
EFL_CANVAS_EVENT_FOCUS_OUT(Efl_Input_Focus *)


object,focus,in

Called when object got focus
EFL_CANVAS_EVENT_OBJECT_FOCUS_IN(Efl_Input_Focus *)


object,focus,out

Called when object lost focus
EFL_CANVAS_EVENT_OBJECT_FOCUS_OUT(Efl_Input_Focus *)


render,post

Called when post render happens
EFL_CANVAS_EVENT_RENDER_POST(void)


render,pre

Called when pre render happens
EFL_CANVAS_EVENT_RENDER_PRE(void)