Tizen Native API
|
Functions | |
const char * | elm_config_engine_get (void) |
Gets Elementary's rendering engine in use. | |
void | elm_config_engine_set (const char *engine) |
Sets Elementary's rendering engine for use. | |
const char * | elm_config_preferred_engine_get (void) |
Gets Elementary's preferred engine to use. | |
void | elm_config_preferred_engine_set (const char *engine) |
Sets Elementary's preferred rendering engine for use. | |
const char * | elm_config_accel_preference_get (void) |
Get Elementary's preferred engine to use. | |
void | elm_config_accel_preference_set (const char *pref) |
Set Elementary's acceleration preferences for new windows. | |
Eina_Bool | elm_config_accel_preference_override_get (void) |
Get the acceleration override preference flag. | |
void | elm_config_accel_preference_override_set (Eina_Bool enabled) |
Set the acceleration override preference flag. |
These are functions setting and querying which rendering engine Elementary will use for drawing its windows' pixels.
The following are the available engines:
const char* elm_config_accel_preference_get | ( | void | ) |
Get Elementary's preferred engine to use.
See elm_config_accel_preference_set() for more information, but this simply returns what was set by this call, nothing more.
Get the acceleration override preference flag.
This gets the acceleration override preference. This is a flag that has the global system acceleration preference configuration forcibly override whatever acceleration preference the application may want.
void elm_config_accel_preference_override_set | ( | Eina_Bool | enabled | ) |
Set the acceleration override preference flag.
This sets the acceleration override preference. This is a flag that has the global system acceleration preference configuration forcibly override whatever acceleration preference the application may want.
[in] | enabled | This should be EINA_TRUE if enabled, or EINA_FALSE if not. |
void elm_config_accel_preference_set | ( | const char * | pref | ) |
Set Elementary's acceleration preferences for new windows.
[in] | pref | The preference desired as a normal C string |
Note that it will take effect only to Elementary windows created after this is called. The pref
string is a freeform C string that indicates what kind of acceleration is preferred. Here "acceleration" majorly means to rendering and which hardware unit application renders guis with. This may or may not be honored, but a best attempt will be made. Known strings are as follows:
Accel preference's string has the egl surface configuration as a hw accel, depth, stencil and msaa. The string format is "{HW Accel}:depth{value}:stencil{value}:msaa{msaa string}". Especially, msaa string is related Evas GL MSAA enum value(low, mid, high). so msaa string has four types as msaa, msaa_low, msaa_mid, msaa_high. For instance, "opengl:depth24:stencil8:msaa_high". It means that using hw accelation, window surface depth buffer's size is 24, stencil buffer's size 8 and msaa bits is the highest. The other use-case is "opengl:depth24". It measn that using hw accelation, depth buffer size is 24. stencil and msaa are not used. Default case is "opengl:depth:stencil:msaa". It means that depth, stencil and msaa are setted by default value(depth:24, stencil:8, msaa:low).
const char* elm_config_engine_get | ( | void | ) |
Gets Elementary's rendering engine in use.
This gets the global rendering engine that is applied to all Elementary applications.
void elm_config_engine_set | ( | const char * | engine | ) |
Sets Elementary's rendering engine for use.
[in] | engine | The rendering engine name |
const char* elm_config_preferred_engine_get | ( | void | ) |
Gets Elementary's preferred engine to use.
This gets the global rendering engine that is applied to all Elementary applications and is PREFERRED by the application. This can (and will) override the engine that is configured for all applications.
void elm_config_preferred_engine_set | ( | const char * | engine | ) |
Sets Elementary's preferred rendering engine for use.
[in] | engine | The rendering engine name |