Low level Evas canvas functions. More...
Modules | |
Render Engine Functions | |
Functions that are used to set the render engine for a given function, and then get that engine working. | |
Coordinate Mapping Functions | |
Functions that are used to map coordinates from the canvas to the screen or the screen to the canvas. | |
Output and Viewport Resizing Functions | |
Functions that set and retrieve the output and viewport size of an evas. | |
Canvas Events | |
Functions relating to canvas events, which are mainly reports on its internal states changing (an object got focused, the rendering is updated, etc). | |
Image Functions | |
Functions that deals with images at canvas level. | |
Font Functions | |
Functions that deals with fonts. | |
Key Input Functions | |
Functions which feed key events to the canvas. | |
Touch Point List Functions | |
Functions to get information of touched points in the Evas. | |
Rendering GL on Evas | |
This group discusses the functions that are used to do OpenGL rendering on Evas. | |
Typedefs | |
typedef Eo | Evas |
An opaque handle to an Evas canvas. More... | |
typedef struct _Evas_Public_Data | Evas_Public_Data |
Public data for an Evas. | |
Functions | |
EOAPI void | evas_canvas_data_attach_set (void *data) |
Attaches a specific pointer to the evas for fetching later. More... | |
EOAPI void * | evas_canvas_data_attach_get (void) |
Returns the pointer attached by evas_data_attach_set() More... | |
EOAPI Eina_Bool | evas_canvas_focus_state_get (void) |
Get the focus state known by the given evas. More... | |
EOAPI Eina_Bool | evas_canvas_changed_get (void) |
Get the changed marker for the canvas. More... | |
EOAPI Eina_Bool | evas_canvas_render_async (void) |
Render the given Evas canvas asynchronously. More... | |
EOAPI Eina_Bool | evas_canvas_render2 (void) |
Render the given Evas canvas using the new rendering infra. More... | |
EOAPI Eina_List * | evas_canvas_render2_updates (void) |
Render the given Evas canvas using the new rendering infra. More... | |
EOAPI void | evas_canvas_focus_out (void) |
Inform to the evas that it lost the focus. | |
EOAPI void | evas_canvas_norender (void) |
Update the canvas internal objects but not triggering immediate renderization. More... | |
EOAPI void | evas_canvas_nochange_pop (void) |
Pop the nochange flag down 1. More... | |
EOAPI void | evas_canvas_nochange_push (void) |
Push the nochange flag up 1. More... | |
EOAPI void | evas_canvas_damage_rectangle_add (int x, int y, int w, int h) |
Add a damage rectangle. More... | |
EOAPI Eina_List * | evas_canvas_render_updates (void) |
Force immediate renderization of the given Evas canvas. More... | |
EOAPI void | evas_canvas_focus_in (void) |
Inform to the evas that it got the focus. | |
EOAPI void | evas_canvas_obscured_rectangle_add (int x, int y, int w, int h) |
Add an "obscured region" to an Evas canvas. More... | |
EOAPI void | evas_canvas_render_dump (void) |
Make the canvas discard as much data as possible used by the engine at runtime. More... | |
EOAPI void | evas_canvas_render (void) |
Force renderization of the given canvas. | |
EOAPI void | evas_canvas_obscured_clear (void) |
Remove all "obscured regions" from an Evas canvas. More... | |
EOAPI void | evas_canvas_render_idle_flush (void) |
Make the canvas discard internally cached data used for rendering. More... | |
bool | evas::canvas::render_async () const |
Render the given Evas canvas asynchronously. More... | |
bool | evas::canvas::render2 () const |
Render the given Evas canvas using the new rendering infra. More... | |
::efl::eina::list< Eina_Rectangle * > | evas::canvas::render2_updates () const |
Render the given Evas canvas using the new rendering infra. More... | |
void | evas::canvas::focus_out () const |
Inform to the evas that it lost the focus. | |
void | evas::canvas::norender () const |
Update the canvas internal objects but not triggering immediate renderization. More... | |
void | evas::canvas::nochange_pop () const |
Pop the nochange flag down 1. More... | |
void | evas::canvas::nochange_push () const |
Push the nochange flag up 1. More... | |
void | evas::canvas::damage_rectangle_add (int x_, int y_, int w_, int h_) const |
Add a damage rectangle. More... | |
::efl::eina::list< Eina_Rectangle * > | evas::canvas::render_updates () const |
Force immediate renderization of the given Evas canvas. More... | |
void | evas::canvas::focus_in () const |
Inform to the evas that it got the focus. | |
void | evas::canvas::obscured_rectangle_add (int x_, int y_, int w_, int h_) const |
Add an "obscured region" to an Evas canvas. More... | |
void | evas::canvas::render_dump () const |
Make the canvas discard as much data as possible used by the engine at runtime. More... | |
void | evas::canvas::render () const |
Force renderization of the given canvas. | |
void | evas::canvas::obscured_clear () const |
Remove all "obscured regions" from an Evas canvas. More... | |
void | evas::canvas::render_idle_flush () const |
Make the canvas discard internally cached data used for rendering. More... | |
void * | evas::canvas::data_attach_get () const |
Returns the pointer attached by evas_data_attach_set() More... | |
void | evas::canvas::data_attach_set (void *data_) const |
Attaches a specific pointer to the evas for fetching later. | |
bool | evas::canvas::focus_state_get () const |
Get the focus state known by the given evas. More... | |
bool | evas::canvas::changed_get () const |
Get the changed marker for the canvas. More... | |
void | evas_data_attach_set (Evas_Canvas *obj, void *data) |
Attaches a specific pointer to the evas for fetching later. More... | |
void * | evas_data_attach_get (const Evas_Canvas *obj) |
Returns the pointer attached by evas_data_attach_set() More... | |
Eina_Bool | evas_focus_state_get (const Evas_Canvas *obj) |
Get the focus state known by the given evas. More... | |
Eina_Bool | evas_changed_get (const Evas_Canvas *obj) |
Get the changed marker for the canvas. More... | |
Eina_Bool | evas_render_async (Evas_Canvas *obj) |
Render the given Evas canvas asynchronously. More... | |
Eina_Bool | evas_render2 (Evas_Canvas *obj) |
Render the given Evas canvas using the new rendering infra. More... | |
Eina_List * | evas_render2_updates (Evas_Canvas *obj) |
Render the given Evas canvas using the new rendering infra. More... | |
void | evas_focus_out (Evas_Canvas *obj) |
Inform to the evas that it lost the focus. | |
void | evas_norender (Evas_Canvas *obj) |
Update the canvas internal objects but not triggering immediate renderization. More... | |
void | evas_nochange_pop (Evas_Canvas *obj) |
Pop the nochange flag down 1. More... | |
void | evas_nochange_push (Evas_Canvas *obj) |
Push the nochange flag up 1. More... | |
void | evas_damage_rectangle_add (Evas_Canvas *obj, int x, int y, int w, int h) |
Add a damage rectangle. More... | |
Eina_List * | evas_render_updates (Evas_Canvas *obj) |
Force immediate renderization of the given Evas canvas. More... | |
void | evas_focus_in (Evas_Canvas *obj) |
Inform to the evas that it got the focus. | |
void | evas_obscured_rectangle_add (Evas_Canvas *obj, int x, int y, int w, int h) |
Add an "obscured region" to an Evas canvas. More... | |
void | evas_render_dump (Evas_Canvas *obj) |
Make the canvas discard as much data as possible used by the engine at runtime. More... | |
void | evas_render (Evas_Canvas *obj) |
Force renderization of the given canvas. | |
void | evas_obscured_clear (Evas_Canvas *obj) |
Remove all "obscured regions" from an Evas canvas. More... | |
void | evas_render_idle_flush (Evas_Canvas *obj) |
Make the canvas discard internally cached data used for rendering. More... | |
void | evas_render_updates_free (Eina_List *updates) |
Free the rectangles returned by evas_render_updates(). More... | |
Evas * | evas_new (void) |
Creates a new empty evas. More... | |
void | evas_free (Evas *e) |
Frees the given evas and any objects created on it. More... | |
Low level Evas canvas functions.
Sub groups will present more high level ones, though.
Most of these functions deal with low level Evas actions, like:
Most users will be using Evas by means of the Ecore_Evas
wrapper, which deals with all the above mentioned issues automatically for them. Thus, you'll be looking at this section only if you're building low level stuff.
The groups within present you functions that deal with the canvas directly, too, and not yet with its objects. They are the functions you need to use at a minimum to get a working canvas.
Some of the functions in this group are exemplified here.
An opaque handle to an Evas canvas.
EOAPI void evas_canvas_data_attach_set | ( | void * | data | ) |
Attaches a specific pointer to the evas for fetching later.
[in] | data | The pointer to attach |
Referenced by evas_data_attach_set().
EOAPI void* evas_canvas_data_attach_get | ( | void | ) |
Returns the pointer attached by evas_data_attach_set()
Referenced by evas_data_attach_get().
EOAPI Eina_Bool evas_canvas_focus_state_get | ( | void | ) |
Get the focus state known by the given evas.
EINA_TRUE
if it got the focus, EINA_FALSE
otherwise. Referenced by evas_focus_state_get().
EOAPI Eina_Bool evas_canvas_changed_get | ( | void | ) |
Get the changed marker for the canvas.
EINA_TRUE
if something has been marked as changed, EINA_FALSE
otherwise.Referenced by evas_changed_get().
EOAPI Eina_Bool evas_canvas_render_async | ( | void | ) |
Render the given Evas canvas asynchronously.
This function only returns EINA_TRUE when a frame will be rendered. If the previous frame is still rendering, EINA_FALSE will be returned so the users know not to wait for the updates callback and just return to their main loop.
If a func
callback is given, a list of updated areas will be generated and the function will be called from the main thread after the rendered frame is flushed to the screen. The resulting list should be freed with evas_render_updates_free(). The list is given in the event_info
parameter of the callback function.
Referenced by evas_render_async().
EOAPI Eina_Bool evas_canvas_render2 | ( | void | ) |
Render the given Evas canvas using the new rendering infra.
This is experimental and will change over time until noted here.
This function only returns EINA_TRUE when a frame will be rendered. If the previous frame is still rendering, EINA_FALSE will be returned so the users know not to wait for the updates callback and just return to their main loop.
Referenced by evas_render2().
EOAPI Eina_List* evas_canvas_render2_updates | ( | void | ) |
Render the given Evas canvas using the new rendering infra.
This is experimental and will change over time until noted here.
Eina.Rectangle
structs). Free this list with evas_render_updates_free().Referenced by evas_render2_updates().
EOAPI void evas_canvas_norender | ( | void | ) |
Update the canvas internal objects but not triggering immediate renderization.
This function updates the canvas internal objects not triggering renderization. To force renderization function evas_render() should be used.
Referenced by evas_norender().
EOAPI void evas_canvas_nochange_pop | ( | void | ) |
Pop the nochange flag down 1.
This tells evas, that while the nochange flag is greater than 0, do not mark objects as "changed" when making changes.
Referenced by evas_nochange_pop().
EOAPI void evas_canvas_nochange_push | ( | void | ) |
Push the nochange flag up 1.
This tells evas, that while the nochange flag is greater than 0, do not mark objects as "changed" when making changes.
Referenced by evas_nochange_push().
EOAPI void evas_canvas_damage_rectangle_add | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
Add a damage rectangle.
This is the function by which one tells evas that a part of the canvas has to be repainted.
[in] | x | The rectangle's left position. |
[in] | y | The rectangle's top position. |
[in] | w | The rectangle's width. |
[in] | h | The rectangle's height. |
Referenced by evas_damage_rectangle_add().
EOAPI Eina_List* evas_canvas_render_updates | ( | void | ) |
Force immediate renderization of the given Evas canvas.
Eina.Rectangle
structs). Free this list with evas_render_updates_free().This function forces an immediate renderization update of the given canvas e
.
Example code follows.
See the full example.
Referenced by evas_render_updates().
EOAPI void evas_canvas_obscured_rectangle_add | ( | int | x, |
int | y, | ||
int | w, | ||
int | h | ||
) |
Add an "obscured region" to an Evas canvas.
This is the function by which one tells an Evas canvas that a part of it must not be repainted. The region must be rectangular and its coordinates inside the canvas viewport are passed in the call. After this call, the region specified won't participate in any form in Evas' calculations and actions during its rendering updates, having its displaying content frozen as it was just after this function took place.
We call it "obscured region" because the most common use case for this rendering (partial) freeze is something else (most probably other canvas) being on top of the specified rectangular region, thus shading it completely from the user's final scene in a display. To avoid unnecessary processing, one should indicate to the obscured canvas not to bother about the non-important area.
The majority of users won't have to worry about this function, as they'll be using just one canvas in their applications, with nothing inset or on top of it in any form.
To make this region one that has to be repainted again, call the function evas_obscured_clear().
Example code follows.
In that example, pressing the "Ctrl" and "o" keys will impose or remove an obscured region in the middle of the canvas. You'll get the same contents at the time the key was pressed, if toggling it on, until you toggle it off again (make sure the animation is running on to get the idea better). See the full example.
[in] | x | The rectangle's top left corner's horizontal coordinate. |
[in] | y | The rectangle's top left corner's vertical coordinate |
[in] | w | The rectangle's width. |
[in] | h | The rectangle's height. |
Referenced by evas_obscured_rectangle_add().
EOAPI void evas_canvas_render_dump | ( | void | ) |
Make the canvas discard as much data as possible used by the engine at runtime.
This function will unload images, delete textures and much more, where possible. You may also want to call evas_render_idle_flush() immediately prior to this to perhaps discard a little more, though evas_render_dump() should implicitly delete most of what evas_render_idle_flush() might discard too.
Referenced by evas_render_dump().
EOAPI void evas_canvas_obscured_clear | ( | void | ) |
Remove all "obscured regions" from an Evas canvas.
This function removes all the rectangles from the obscured regions list of the canvas e
. It takes obscured areas added with evas_obscured_rectangle_add() and make them again a regions that have to be repainted on rendering updates.
Referenced by evas_obscured_clear().
EOAPI void evas_canvas_render_idle_flush | ( | void | ) |
Make the canvas discard internally cached data used for rendering.
This function flushes the arrays of delete, active and render objects. Other things it may also discard are: shared memory segments, temporary scratch buffers, cached data to avoid re-compute of that data etc.
Referenced by evas_render_idle_flush().
bool evas::canvas::render_async | ( | ) | const |
Render the given Evas canvas asynchronously.
This function only returns EINA_TRUE when a frame will be rendered. If the previous frame is still rendering, EINA_FALSE will be returned so the users know not to wait for the updates callback and just return to their main loop.
If a func
callback is given, a list of updated areas will be generated and the function will be called from the main thread after the rendered frame is flushed to the screen. The resulting list should be freed with evas_render_updates_free(). The list is given in the event_info
parameter of the callback function.
bool evas::canvas::render2 | ( | ) | const |
Render the given Evas canvas using the new rendering infra.
This is experimental and will change over time until noted here.
This function only returns EINA_TRUE when a frame will be rendered. If the previous frame is still rendering, EINA_FALSE will be returned so the users know not to wait for the updates callback and just return to their main loop.
::efl::eina::list< Eina_Rectangle * > evas::canvas::render2_updates | ( | ) | const |
Render the given Evas canvas using the new rendering infra.
This is experimental and will change over time until noted here.
Eina.Rectangle
structs). Free this list with evas_render_updates_free().void evas::canvas::norender | ( | ) | const |
Update the canvas internal objects but not triggering immediate renderization.
This function updates the canvas internal objects not triggering renderization. To force renderization function evas_render() should be used.
void evas::canvas::nochange_pop | ( | ) | const |
Pop the nochange flag down 1.
This tells evas, that while the nochange flag is greater than 0, do not mark objects as "changed" when making changes.
void evas::canvas::nochange_push | ( | ) | const |
Push the nochange flag up 1.
This tells evas, that while the nochange flag is greater than 0, do not mark objects as "changed" when making changes.
void evas::canvas::damage_rectangle_add | ( | int | x_, |
int | y_, | ||
int | w_, | ||
int | h_ | ||
) | const |
Add a damage rectangle.
This is the function by which one tells evas that a part of the canvas has to be repainted.
x | The rectangle's left position. |
y | The rectangle's top position. |
w | The rectangle's width. |
h | The rectangle's height. |
::efl::eina::list< Eina_Rectangle * > evas::canvas::render_updates | ( | ) | const |
Force immediate renderization of the given Evas canvas.
Eina.Rectangle
structs). Free this list with evas_render_updates_free().This function forces an immediate renderization update of the given canvas e
.
Example code follows.
See the full example.
void evas::canvas::obscured_rectangle_add | ( | int | x_, |
int | y_, | ||
int | w_, | ||
int | h_ | ||
) | const |
Add an "obscured region" to an Evas canvas.
This is the function by which one tells an Evas canvas that a part of it must not be repainted. The region must be rectangular and its coordinates inside the canvas viewport are passed in the call. After this call, the region specified won't participate in any form in Evas' calculations and actions during its rendering updates, having its displaying content frozen as it was just after this function took place.
We call it "obscured region" because the most common use case for this rendering (partial) freeze is something else (most probably other canvas) being on top of the specified rectangular region, thus shading it completely from the user's final scene in a display. To avoid unnecessary processing, one should indicate to the obscured canvas not to bother about the non-important area.
The majority of users won't have to worry about this function, as they'll be using just one canvas in their applications, with nothing inset or on top of it in any form.
To make this region one that has to be repainted again, call the function evas_obscured_clear().
Example code follows.
In that example, pressing the "Ctrl" and "o" keys will impose or remove an obscured region in the middle of the canvas. You'll get the same contents at the time the key was pressed, if toggling it on, until you toggle it off again (make sure the animation is running on to get the idea better). See the full example.
x | The rectangle's top left corner's horizontal coordinate. |
y | The rectangle's top left corner's vertical coordinate |
w | The rectangle's width. |
h | The rectangle's height. |
void evas::canvas::render_dump | ( | ) | const |
Make the canvas discard as much data as possible used by the engine at runtime.
This function will unload images, delete textures and much more, where possible. You may also want to call evas_render_idle_flush() immediately prior to this to perhaps discard a little more, though evas_render_dump() should implicitly delete most of what evas_render_idle_flush() might discard too.
void evas::canvas::obscured_clear | ( | ) | const |
Remove all "obscured regions" from an Evas canvas.
This function removes all the rectangles from the obscured regions list of the canvas e
. It takes obscured areas added with evas_obscured_rectangle_add() and make them again a regions that have to be repainted on rendering updates.
void evas::canvas::render_idle_flush | ( | ) | const |
Make the canvas discard internally cached data used for rendering.
This function flushes the arrays of delete, active and render objects. Other things it may also discard are: shared memory segments, temporary scratch buffers, cached data to avoid re-compute of that data etc.
void* evas::canvas::data_attach_get | ( | ) | const |
Returns the pointer attached by evas_data_attach_set()
bool evas::canvas::focus_state_get | ( | ) | const |
Get the focus state known by the given evas.
EINA_TRUE
if it got the focus, EINA_FALSE
otherwise. bool evas::canvas::changed_get | ( | ) | const |
Get the changed marker for the canvas.
EINA_TRUE
if something has been marked as changed, EINA_FALSE
otherwise.void evas_data_attach_set | ( | Evas_Canvas * | obj, |
void * | data | ||
) |
Attaches a specific pointer to the evas for fetching later.
[in] | data | The pointer to attach |
References evas_canvas_data_attach_set().
Referenced by ecore_evas_buffer_allocfunc_new(), ecore_evas_ews_new(), and ecore_evas_object_image_new().
void* evas_data_attach_get | ( | const Evas_Canvas * | obj | ) |
Returns the pointer attached by evas_data_attach_set()
References evas_canvas_data_attach_get().
Referenced by ecore_evas_ecore_evas_get().
Eina_Bool evas_focus_state_get | ( | const Evas_Canvas * | obj | ) |
Get the focus state known by the given evas.
EINA_TRUE
if it got the focus, EINA_FALSE
otherwise. References evas_canvas_focus_state_get().
Eina_Bool evas_changed_get | ( | const Evas_Canvas * | obj | ) |
Get the changed marker for the canvas.
EINA_TRUE
if something has been marked as changed, EINA_FALSE
otherwise.References evas_canvas_changed_get().
Eina_Bool evas_render_async | ( | Evas_Canvas * | obj | ) |
Render the given Evas canvas asynchronously.
This function only returns EINA_TRUE when a frame will be rendered. If the previous frame is still rendering, EINA_FALSE will be returned so the users know not to wait for the updates callback and just return to their main loop.
If a func
callback is given, a list of updated areas will be generated and the function will be called from the main thread after the rendered frame is flushed to the screen. The resulting list should be freed with evas_render_updates_free(). The list is given in the event_info
parameter of the callback function.
References evas_canvas_render_async().
Eina_Bool evas_render2 | ( | Evas_Canvas * | obj | ) |
Render the given Evas canvas using the new rendering infra.
This is experimental and will change over time until noted here.
This function only returns EINA_TRUE when a frame will be rendered. If the previous frame is still rendering, EINA_FALSE will be returned so the users know not to wait for the updates callback and just return to their main loop.
References evas_canvas_render2().
Eina_List* evas_render2_updates | ( | Evas_Canvas * | obj | ) |
Render the given Evas canvas using the new rendering infra.
This is experimental and will change over time until noted here.
Eina.Rectangle
structs). Free this list with evas_render_updates_free().References evas_canvas_render2_updates().
void evas_norender | ( | Evas_Canvas * | obj | ) |
Update the canvas internal objects but not triggering immediate renderization.
This function updates the canvas internal objects not triggering renderization. To force renderization function evas_render() should be used.
References evas_canvas_norender().
void evas_nochange_pop | ( | Evas_Canvas * | obj | ) |
Pop the nochange flag down 1.
This tells evas, that while the nochange flag is greater than 0, do not mark objects as "changed" when making changes.
References evas_canvas_nochange_pop().
void evas_nochange_push | ( | Evas_Canvas * | obj | ) |
Push the nochange flag up 1.
This tells evas, that while the nochange flag is greater than 0, do not mark objects as "changed" when making changes.
References evas_canvas_nochange_push().
void evas_damage_rectangle_add | ( | Evas_Canvas * | obj, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Add a damage rectangle.
This is the function by which one tells evas that a part of the canvas has to be repainted.
[in] | x | The rectangle's left position. |
[in] | y | The rectangle's top position. |
[in] | w | The rectangle's width. |
[in] | h | The rectangle's height. |
References evas_canvas_damage_rectangle_add().
Referenced by ecore_evas_rotation_set(), and ecore_evas_rotation_with_resize_set().
Eina_List* evas_render_updates | ( | Evas_Canvas * | obj | ) |
Force immediate renderization of the given Evas canvas.
Eina.Rectangle
structs). Free this list with evas_render_updates_free().This function forces an immediate renderization update of the given canvas e
.
Example code follows.
See the full example.
References evas_canvas_render_updates().
void evas_obscured_rectangle_add | ( | Evas_Canvas * | obj, |
int | x, | ||
int | y, | ||
int | w, | ||
int | h | ||
) |
Add an "obscured region" to an Evas canvas.
This is the function by which one tells an Evas canvas that a part of it must not be repainted. The region must be rectangular and its coordinates inside the canvas viewport are passed in the call. After this call, the region specified won't participate in any form in Evas' calculations and actions during its rendering updates, having its displaying content frozen as it was just after this function took place.
We call it "obscured region" because the most common use case for this rendering (partial) freeze is something else (most probably other canvas) being on top of the specified rectangular region, thus shading it completely from the user's final scene in a display. To avoid unnecessary processing, one should indicate to the obscured canvas not to bother about the non-important area.
The majority of users won't have to worry about this function, as they'll be using just one canvas in their applications, with nothing inset or on top of it in any form.
To make this region one that has to be repainted again, call the function evas_obscured_clear().
Example code follows.
In that example, pressing the "Ctrl" and "o" keys will impose or remove an obscured region in the middle of the canvas. You'll get the same contents at the time the key was pressed, if toggling it on, until you toggle it off again (make sure the animation is running on to get the idea better). See the full example.
[in] | x | The rectangle's top left corner's horizontal coordinate. |
[in] | y | The rectangle's top left corner's vertical coordinate |
[in] | w | The rectangle's width. |
[in] | h | The rectangle's height. |
References evas_canvas_obscured_rectangle_add().
void evas_render_dump | ( | Evas_Canvas * | obj | ) |
Make the canvas discard as much data as possible used by the engine at runtime.
This function will unload images, delete textures and much more, where possible. You may also want to call evas_render_idle_flush() immediately prior to this to perhaps discard a little more, though evas_render_dump() should implicitly delete most of what evas_render_idle_flush() might discard too.
References evas_canvas_render_dump().
void evas_obscured_clear | ( | Evas_Canvas * | obj | ) |
Remove all "obscured regions" from an Evas canvas.
This function removes all the rectangles from the obscured regions list of the canvas e
. It takes obscured areas added with evas_obscured_rectangle_add() and make them again a regions that have to be repainted on rendering updates.
References evas_canvas_obscured_clear().
void evas_render_idle_flush | ( | Evas_Canvas * | obj | ) |
Make the canvas discard internally cached data used for rendering.
This function flushes the arrays of delete, active and render objects. Other things it may also discard are: shared memory segments, temporary scratch buffers, cached data to avoid re-compute of that data etc.
References evas_canvas_render_idle_flush().
void evas_render_updates_free | ( | Eina_List * | updates | ) |
Free the rectangles returned by evas_render_updates().
updates | The list of updated rectangles of the canvas. |
This function removes the region from the render updates list. It makes the region doesn't be render updated anymore.
References EINA_LIST_FREE, and eina_rectangle_free().
Evas* evas_new | ( | void | ) |
Creates a new empty evas.
Note that before you can use the evas, you will to at a minimum:
This function should only fail if the memory allocation fails
ecore_evas_new()
. See Ecore.NULL
. References eo_add.
Referenced by ecore_evas_buffer_allocfunc_new(), ecore_evas_ews_new(), and ecore_evas_object_image_new().
void evas_free | ( | Evas * | e | ) |
Frees the given evas and any objects created on it.
Any objects with 'free' callbacks will have those callbacks called in this function.
e | The given evas. |
References eo_unref().