Functions that are used to set the render engine for a given function, and then get that engine working. More...
Functions | |
EVAS_API int | evas_render_method_lookup (const char *name) |
Look up a numeric ID from a string name of a rendering engine. More... | |
EVAS_API Eina_List * | evas_render_method_list (void) |
List all the rendering engines compiled into the copy of the Evas library. More... | |
EVAS_API void | evas_render_method_list_free (Eina_List *list) |
This function should be called to free a list of engine names. More... | |
Functions that are used to set the render engine for a given function, and then get that engine working.
The following code snippet shows how they can be used to initialise an evas that uses the X11 software engine:
EVAS_API int evas_render_method_lookup | ( | const char * | name | ) |
Look up a numeric ID from a string name of a rendering engine.
name | the name string of an engine |
This function looks up a numeric return value for the named engine in the string name
. This is a normal C string, NUL byte terminated. The name is case sensitive. If the rendering engine is available, a numeric ID for that engine is returned that is not 0. If the engine is not available, 0 is returned, indicating an invalid engine.
The programmer should NEVER rely on the numeric ID of an engine unless it is returned by this function. Programs should NOT be written accessing render method ID's directly, without first obtaining it from this function.
Example:
Referenced by ecore_evas_buffer_allocfunc_new(), and ecore_evas_object_image_new().
EVAS_API Eina_List * evas_render_method_list | ( | void | ) |
List all the rendering engines compiled into the copy of the Evas library.
Calling this will return a handle (pointer) to an Evas linked list. Each node in the linked list will have the data pointer be a (char *) pointer to the name string of the rendering engine available. The strings should never be modified, neither should the list be modified. This list should be cleaned up as soon as the program no longer needs it using evas_render_method_list_free(). If no engines are available from Evas, NULL
will be returned.
Example:
EVAS_API void evas_render_method_list_free | ( | Eina_List * | list | ) |
This function should be called to free a list of engine names.
list | The Eina_List base pointer for the engine list to be freed |
When this function is called it will free the engine list passed in as list
. The list should only be a list of engines generated by calling evas_render_method_list(). If list
is NULL, nothing will happen.
Example:
References EINA_LIST_FREE, and eina_stringshare_del().