config: add API to configure Elm_Web backend.

This commit is contained in:
Cedric BAIL 2016-03-09 16:14:00 -08:00
parent d56e08d824
commit 1eae8bc373
2 changed files with 39 additions and 2 deletions

View File

@ -4111,13 +4111,25 @@ elm_config_transition_duration_factor_set(double factor)
edje_transition_duration_factor_set(_elm_config->transition_duration_factor);
}
EAPI double
elm_config_transition_duration_factor_get(void)
{
return _elm_config->transition_duration_factor;
}
EAPI void
elm_config_web_backend_set(const char *backend)
{
if (_elm_web_init(backend))
_elm_config->web_backend = backend;
}
EAPI const char *
elm_config_web_backend_get(void)
{
return _elm_config->web_backend;
}
void
_elm_config_profile_set(const char *profile)
{

View File

@ -2078,7 +2078,32 @@ EAPI void elm_config_transition_duration_factor_set(double factor);
*/
EAPI double elm_config_transition_duration_factor_get(void);
/**
* Set the backend engine used by Elm_Web widget
*
* This function set the name of the external module used by
* elm_web to render web page.
*
* @param backend The new backend to use.
*
* @since 1.18
* @see elm_config_web_backend_get()
*/
EAPI void elm_config_web_backend_set(const char *backend);
/**
* Get the currently set backend engine used by Elm_Web widget
*
* This function get the name of the external module used by
* elm_web to render web page.
*
* @return The new backend to use.
*
* @since 1.18
* @see elm_config_web_backend_set()
*/
EAPI const char *elm_config_web_backend_get(void);
/**
* @}
*/