Tizen Native API
5.0
|
This group discusses functions that have general purposes or affect Edje as a whole.
Besides containing the initialize and shutdown functions of the library, which should always be called when we are using Edje, this module contains some other utilities that could be used in many contexts or should do their jobs independent of the context inside Edje.
Functions | |
int | edje_init (void) |
Initializes the Edje library. | |
int | edje_shutdown (void) |
Shuts down the Edje library. | |
void | edje_fontset_append_set (const char *fonts) |
Sets the edje append fontset. | |
char * | edje_mmap_data_get (const Eina_File *f, const char *key) |
Gets data from the file level data block of an edje mapped file. | |
char * | edje_file_data_get (const char *file, const char *key) |
Gets data from the file level data block of an edje file. | |
Eina_Bool | edje_module_load (const char *module) |
Loads a new module in Edje. | |
const Eina_List * | edje_available_modules_get (void) |
Retrieves all modules that can be loaded. | |
const char * | edje_fontset_append_get (void) |
Gets the edje append fontset. | |
void | edje_file_cache_set (int count) |
Sets the file cache size. | |
int | edje_file_cache_get (void) |
Returns the file cache size. | |
void | edje_file_cache_flush (void) |
Cleans the file cache. | |
void | edje_collection_cache_set (int count) |
Sets the collection cache size. | |
int | edje_collection_cache_get (void) |
Returns the collection cache size. | |
void | edje_collection_cache_flush (void) |
Cleans the collection cache. |
const Eina_List* edje_available_modules_get | ( | void | ) |
Retrieves all modules that can be loaded.
This function retrieves all modules that can be loaded by edje_module_load().
void edje_collection_cache_flush | ( | void | ) |
Cleans the collection cache.
This function cleans the collection cache, but keeps this cache's size to the last value set.
int edje_collection_cache_get | ( | void | ) |
Returns the collection cache size.
This function returns the collection cache size set by edje_collection_cache_set().
void edje_collection_cache_set | ( | int | count | ) |
Sets the collection cache size.
count | The collection cache size, in edje object units. Default is 16. |
This function sets the collection cache size. Edje keeps this cache in order to prevent duplicates of edje {collection,group,part} entries in memory. The collection cache size can be retrieved with edje_collection_cache_get().
void edje_file_cache_flush | ( | void | ) |
Cleans the file cache.
This function cleans the file cache entries, but keeps this cache's size to the last value set.
int edje_file_cache_get | ( | void | ) |
Returns the file cache size.
This function returns the file cache size set by edje_file_cache_set().
void edje_file_cache_set | ( | int | count | ) |
Sets the file cache size.
count | The file cache size in edje file units. Default is 16. |
This function sets the file cache size. Edje keeps this cache in order to prevent duplicates of edje file entries in memory. The file cache size can be retrieved with edje_file_cache_get().
char* edje_file_data_get | ( | const char * | file, |
const char * | key | ||
) |
Gets data from the file level data block of an edje file.
file | The path to the .edj file |
key | The data key |
NULL
if no key is found. Must be freed by the user when no longer needed.If an edje file test.edj is built from the following edc:
data { item: "key1" "value1"; item: "key2" "value2"; } collections { ... }
Then, edje_file_data_get("test.edj", "key1") will return "value1"
const char* edje_fontset_append_get | ( | void | ) |
Gets the edje append fontset.
This function returns the edje append fontset set by edje_fontset_append_set() function.
void edje_fontset_append_set | ( | const char * | fonts | ) |
Sets the edje append fontset.
fonts | The fontset to append. |
This function sets the edje append fontset.
int edje_init | ( | void | ) |
Initializes the Edje library.
This function initializes the Edje library, making the proper calls to internal initialization functions. It will also initialize its dependencies, making calls to eina_init()
, ecore_init()
, embryo_init()
and eet_init()
. So, there is no need to call those functions again, in your code. To shutdown Edje there is the function edje_shutdown().
char* edje_mmap_data_get | ( | const Eina_File * | f, |
const char * | key | ||
) |
Gets data from the file level data block of an edje mapped file.
f | The mapped edje file |
key | The data key |
NULL
if no key is found. Must be freed by the user when no longer needed.If an edje file test.edj is built from the following edc:
data { item: "key1" "value1"; item: "key2" "value2"; } collections { ... }
Then, edje_file_data_get("test.edj", "key1") will return "value1"
Eina_Bool edje_module_load | ( | const char * | module | ) |
Loads a new module in Edje.
module | The name of the module that will be added to Edje. |
EINA_TRUE
if the module was successfully loaded. Otherwise, EINA_FALSE
.Modules are used to add functionality to Edje. So, when a module is loaded, its functionality should be available for use.
int edje_shutdown | ( | void | ) |
Shuts down the Edje library.
This function shuts down the Edje library. It will also call the shutdown functions of its dependencies, which are eina_shutdown()
, ecore_shutdown()
, embryo_shutdown()
and eet_shutdown()
, so there is no need to call these functions again, in your code.