Tizen Native API
4.0
|
Functions to deals with EDJ files.
Layouts in Edje are usually called themes and they are created using the EDC language. The EDC language is declarative and must be compiled before being used. The output of this compilation is an EDJ file, this file can be loaded by Edje, and the result is a edje object.
This groups of functions interact with these EDJ files, either by loading them or retrieving information of the EDC file about objects.
Functions | |
Eina_List * | edje_mmap_collection_list (Eina_File *f) |
Gets a list of groups in an edje mapped file. | |
void | edje_mmap_collection_list_free (Eina_List *lst) |
Frees file collection list. | |
Eina_Bool | edje_mmap_group_exists (Eina_File *f, const char *glob) |
Determines whether a group matching glob exists in an edje mapped file. | |
Eina_Iterator * | edje_file_iterator_new (void) |
Iterates over all the opened Edje file. | |
Eina_List * | edje_file_collection_list (const char *file) |
Gets a list of groups in an edje file. | |
void | edje_file_collection_list_free (Eina_List *lst) |
Frees file collection list. | |
Eina_Bool | edje_file_group_exists (const char *file, const char *glob) |
Determines whether a group matching glob exists in an edje file. | |
const char * | edje_load_error_str (Edje_Load_Error error) |
Converts the given Edje file load error code into a string describing it in English. |
Function Documentation
Eina_List* edje_file_collection_list | ( | const char * | file | ) |
Gets a list of groups in an edje file.
- Parameters:
-
file The path to the edje file
- Returns:
- The Eina_List of group names (char *)
- See also:
- edje_mmap_collection_list()
Note: the list must be freed using edje_file_collection_list_free() when you are done with it.
- See also:
- edje_mmap_group_exists()
- Since :
- 2.3.1
void edje_file_collection_list_free | ( | Eina_List * | lst | ) |
Frees file collection list.
- Parameters:
-
lst The Eina_List of groups
Frees the list returned by edje_file_collection_list().
- Since :
- 2.3.1
Eina_Bool edje_file_group_exists | ( | const char * | file, |
const char * | glob | ||
) |
Determines whether a group matching glob exists in an edje file.
- Parameters:
-
file The file path glob A glob to match on
- Returns:
1
if a match is found,0
otherwise
- Since :
- 2.3.1
Eina_Iterator* edje_file_iterator_new | ( | void | ) |
Iterates over all the opened Edje file.
- Returns:
- an iterator of Eina_File currently opened Edje file.
- Since (EFL) :
- 1.14
- Since :
- 3.0
const char* edje_load_error_str | ( | Edje_Load_Error | error | ) |
Converts the given Edje file load error code into a string describing it in English.
- Parameters:
-
error the error code, a value in ::Edje_Load_Error.
- Returns:
- Always returns a valid string. If the given
error
is not supported,"Unknown error"
is returned.
edje_object_file_set() is a function which sets an error value, afterwards, which can be fetched with edje_object_load_error_get(). The function in question is meant to be used in conjunction with the latter, for pretty-printing any possible error cause.
- Since :
- 2.3.1
- Examples:
- edje-basic.c, edje-signals-messages.c, and evas-aspect-hints.c.
Gets a list of groups in an edje mapped file.
- Parameters:
-
f The mapped file
- Returns:
- The Eina_List of group names (char *)
Note: the list must be freed using edje_mmap_collection_list_free() when you are done with it.
- Since :
- 3.0
void edje_mmap_collection_list_free | ( | Eina_List * | lst | ) |
Frees file collection list.
- Parameters:
-
lst The Eina_List of groups
Frees the list returned by edje_mmap_collection_list().
- Since :
- 3.0
Eina_Bool edje_mmap_group_exists | ( | Eina_File * | f, |
const char * | glob | ||
) |
Determines whether a group matching glob exists in an edje mapped file.
- Parameters:
-
f The mapped file glob A glob to match on
- Returns:
1
if a match is found,0
otherwise
- Since :
- 3.0