2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2016-03-16 14:52:23 -07:00
|
|
|
* @defgroup Elm_Config Elementary Config
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* Elementary configuration is formed by a set options bounded to a
|
|
|
|
* given @ref Profile profile, like @ref Theme theme, @ref Fingers
|
2012-02-14 00:50:29 -08:00
|
|
|
* "finger size", etc. These are functions with which one synchronizes
|
2011-12-29 23:20:48 -08:00
|
|
|
* changes made to those values to the configuration storing files, de
|
|
|
|
* facto. You most probably don't want to use the functions in this
|
2012-02-14 00:50:29 -08:00
|
|
|
* group unless you're writing an elementary configuration manager.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Save back Elementary's configuration, so that it will persist on
|
|
|
|
* future sessions.
|
|
|
|
*
|
2012-02-14 00:50:29 -08:00
|
|
|
* @return @c EINA_TRUE, when successful. @c EINA_FALSE, otherwise.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Config
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* This function will take effect -- thus, do I/O -- immediately. Use
|
2012-03-05 04:16:31 -08:00
|
|
|
* it when you want to save all configuration changes at once. The
|
2011-12-29 23:20:48 -08:00
|
|
|
* current configuration set will get saved onto the current profile
|
|
|
|
* configuration file.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_save(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Reload Elementary's configuration, bounded to current selected
|
|
|
|
* profile.
|
|
|
|
*
|
2012-02-14 00:50:29 -08:00
|
|
|
* @return @c EINA_TRUE, when successful. @c EINA_FALSE, otherwise.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Config
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* Useful when you want to force reloading of configuration values for
|
|
|
|
* a profile. If one removes user custom configuration directories,
|
|
|
|
* for example, it will force a reload with system values instead.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_reload(void);
|
|
|
|
|
2012-02-15 01:09:21 -08:00
|
|
|
/**
|
|
|
|
* Flush all config settings then apply those settings to all applications
|
|
|
|
* using elementary on the current display.
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Config
|
2012-02-15 01:09:21 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_all_flush(void);
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2016-03-16 14:52:23 -07:00
|
|
|
* @defgroup Elm_Profile Elementary Profile
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* Profiles are pre-set options that affect the whole look-and-feel of
|
|
|
|
* Elementary-based applications. There are, for example, profiles
|
|
|
|
* aimed at desktop computer applications and others aimed at mobile,
|
|
|
|
* touchscreen-based ones. You most probably don't want to use the
|
2012-02-14 00:50:29 -08:00
|
|
|
* functions in this group unless you're writing an elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
* configuration manager.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Elementary's profile in use.
|
|
|
|
*
|
|
|
|
* This gets the global profile that is applied to all Elementary
|
|
|
|
* applications.
|
|
|
|
*
|
|
|
|
* @return The profile's name
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI const char *elm_config_profile_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get an Elementary's profile directory path in the filesystem. One
|
2012-03-04 21:31:49 -08:00
|
|
|
* may want to fetch a system profile's dir or a user one (fetched
|
2011-12-29 23:20:48 -08:00
|
|
|
* inside $HOME).
|
|
|
|
*
|
|
|
|
* @param profile The profile's name
|
2012-03-04 21:31:49 -08:00
|
|
|
* @param is_user Whether to lookup for a user profile (@c EINA_TRUE)
|
2011-12-29 23:20:48 -08:00
|
|
|
* or a system one (@c EINA_FALSE)
|
|
|
|
* @return The profile's directory path.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @note You must free it with elm_config_profile_dir_free().
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI const char *elm_config_profile_dir_get(const char *profile, Eina_Bool is_user);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Free an Elementary's profile directory path, as returned by
|
2012-03-06 04:04:25 -08:00
|
|
|
* elm_config_profile_dir_get().
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @param p_dir The profile's path
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_profile_dir_free(const char *p_dir);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Elementary's list of available profiles.
|
|
|
|
*
|
|
|
|
* @return The profiles list. List node data are the profile name
|
|
|
|
* strings.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @note One must free this list, after usage, with the function
|
2012-03-06 04:04:25 -08:00
|
|
|
* elm_config_profile_list_free().
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_List *elm_config_profile_list_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2015-12-30 22:38:20 -08:00
|
|
|
/**
|
|
|
|
* Get Elementary's list of available profiles including hidden ones.
|
|
|
|
*
|
|
|
|
* This gets a full list of profiles even with hidden names that should not
|
|
|
|
* be user-visible.
|
|
|
|
*
|
|
|
|
* @return The profiles list. List node data are the profile name
|
|
|
|
* strings.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2015-12-30 22:38:20 -08:00
|
|
|
*
|
|
|
|
* @note One must free this list, after usage, with the function
|
|
|
|
* elm_config_profile_list_free().
|
|
|
|
* @since 1.17
|
|
|
|
*/
|
|
|
|
EAPI Eina_List *elm_config_profile_list_full_get(void);
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Free Elementary's list of available profiles.
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @param l The profiles list, as returned by elm_config_profile_list_get().
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_profile_list_free(Eina_List *l);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2015-12-30 23:37:25 -08:00
|
|
|
/**
|
|
|
|
* Return if a profile of the given name exists
|
|
|
|
*
|
|
|
|
* @return EINA_TRUE if the profile exists, or EINA_FALSE if not
|
|
|
|
* @param profile The profile's name
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2015-12-30 23:37:25 -08:00
|
|
|
*
|
|
|
|
* @since 1.17
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_profile_exists(const char *profile);
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Set Elementary's profile.
|
|
|
|
*
|
|
|
|
* This sets the global profile that is applied to Elementary
|
|
|
|
* applications. Just the process the call comes from will be
|
|
|
|
* affected.
|
|
|
|
*
|
|
|
|
* @param profile The profile's name
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_profile_set(const char *profile);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2015-12-30 22:38:20 -08:00
|
|
|
/**
|
|
|
|
* Take the current config and write it out to the named profile
|
|
|
|
*
|
|
|
|
* This will take the current in-memory config and write it out to the named
|
|
|
|
* profile specified by @p profile. This will not change profile for the
|
|
|
|
* application or make other processes switch profile.
|
|
|
|
*
|
|
|
|
* @param profile The profile's name
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2015-12-30 22:38:20 -08:00
|
|
|
*
|
|
|
|
* @since 1.17
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_profile_save(const char *profile);
|
|
|
|
|
2016-01-04 00:58:18 -08:00
|
|
|
/**
|
|
|
|
* Add a new profile of the given name to be derived from the current profile
|
|
|
|
*
|
|
|
|
* This creates a new profile of name @p profile that will be derived from
|
|
|
|
* the currently used profile using the modification commands encoded in the
|
|
|
|
* @p derive_options string.
|
|
|
|
*
|
|
|
|
* At this point it is not expected that anyone would generally use this API
|
2018-08-31 01:45:31 -07:00
|
|
|
* except if you are a desktop environment and so the user base of this API
|
2016-01-04 00:58:18 -08:00
|
|
|
* will be enlightenment itself.
|
|
|
|
*
|
|
|
|
* @param profile The new profile's name
|
|
|
|
* @param derive_options A string of derive options detailing how to modify
|
|
|
|
*
|
|
|
|
* @see elm_config_profile_derived_del
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2016-01-04 00:58:18 -08:00
|
|
|
*
|
|
|
|
* @since 1.17
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_profile_derived_add(const char *profile, const char *derive_options);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Deletes a profile that is derived from the current one
|
|
|
|
*
|
|
|
|
* This deletes a derived profile added by elm_config_profile_derived_add().
|
|
|
|
* This will delete the profile of the given name @p profile that is derived
|
|
|
|
* from the current profile.
|
|
|
|
*
|
|
|
|
* At this point it is not expected that anyone would generally use this API
|
2018-08-31 01:45:31 -07:00
|
|
|
* except if you are a desktop environment and so the user base of this API
|
2016-01-04 00:58:18 -08:00
|
|
|
* will be enlightenment itself.
|
|
|
|
*
|
|
|
|
* @param profile The profile's name that is to be deleted
|
|
|
|
*
|
|
|
|
* @see elm_config_profile_derived_add
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Profile
|
2016-01-04 00:58:18 -08:00
|
|
|
*
|
|
|
|
* @since 1.17
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_profile_derived_del(const char *profile);
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
2016-03-16 14:52:23 -07:00
|
|
|
* @defgroup Elm_Scrolling Elementary Scrolling
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* These are functions setting how scrollable views in Elementary
|
|
|
|
* widgets should behave on user interaction.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get whether scrollers should bounce when they reach their
|
|
|
|
* viewport's edge during a scroll.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll bouncing state
|
|
|
|
*
|
|
|
|
* This is the default behavior for touch screens, in general.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_scroll_bounce_enabled_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set whether scrollers should bounce when they reach their
|
|
|
|
* viewport's edge during a scroll.
|
|
|
|
*
|
|
|
|
* @param enabled the thumb scroll bouncing state
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_scroll_bounce_enabled_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_bounce_enabled_set(Eina_Bool enabled);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the amount of inertia a scroller will impose at bounce
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll bounce friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_bounce_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of inertia a scroller will impose at bounce
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @param friction the thumb scroll bounce friction
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_scroll_bounce_friction_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_bounce_friction_set(double friction);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the amount of inertia a <b>paged</b> scroller will impose at
|
|
|
|
* page fitting animations.
|
|
|
|
*
|
|
|
|
* @return the page scroll friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_page_scroll_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of inertia a <b>paged</b> scroller will impose at
|
|
|
|
* page fitting animations.
|
|
|
|
*
|
|
|
|
* @param friction the page scroll friction
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_scroll_page_scroll_friction_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_page_scroll_friction_set(double friction);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2015-12-10 22:49:27 -08:00
|
|
|
/**
|
|
|
|
* Get enable status of context menu disabled.
|
|
|
|
*
|
|
|
|
* @see elm_config_context_menu_disabled_set()
|
2017-10-23 23:13:07 -07:00
|
|
|
*
|
|
|
|
* @return @c EINA_TRUE if context menu is disabled, otherwise @c EINA_FALSE.
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
2015-12-10 22:49:27 -08:00
|
|
|
* @since 1.17
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_context_menu_disabled_get(void);
|
|
|
|
|
|
|
|
/**
|
2016-01-21 13:21:30 -08:00
|
|
|
* Enable or disable the context menu in entries.
|
2015-12-10 22:49:27 -08:00
|
|
|
*
|
2016-01-21 13:21:30 -08:00
|
|
|
* @param disabled disable context menu if @c EINA_TRUE, enable otherwise
|
2015-12-10 22:49:27 -08:00
|
|
|
*
|
2016-01-21 13:21:30 -08:00
|
|
|
* @see elm_config_context_menu_disabled_get()
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Entry
|
2015-12-10 22:49:27 -08:00
|
|
|
* @since 1.17
|
|
|
|
*/
|
2016-01-21 13:21:30 -08:00
|
|
|
EAPI void elm_config_context_menu_disabled_set(Eina_Bool disabled);
|
2015-12-10 22:49:27 -08:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get the amount of inertia a scroller will impose at region bring
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @return the bring in scroll friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_bring_in_scroll_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of inertia a scroller will impose at region bring
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @param friction the bring in scroll friction
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_scroll_bring_in_scroll_friction_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_bring_in_scroll_friction_set(double friction);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the amount of inertia scrollers will impose at animations
|
|
|
|
* triggered by Elementary widgets' zooming API.
|
|
|
|
*
|
|
|
|
* @return the zoom friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_zoom_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of inertia scrollers will impose at animations
|
|
|
|
* triggered by Elementary widgets' zooming API.
|
|
|
|
*
|
|
|
|
* @param friction the zoom friction
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_scroll_zoom_friction_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_zoom_friction_set(double friction);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get whether scrollers should be draggable from any point in their
|
|
|
|
* views.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll state
|
|
|
|
*
|
|
|
|
* @note This is the default behavior for touch screens, in general.
|
|
|
|
* @note All other functions namespaced with "thumbscroll" will only
|
|
|
|
* have effect if this mode is enabled.
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_scroll_thumbscroll_enabled_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set whether scrollers should be draggable from any point in their
|
|
|
|
* views.
|
|
|
|
*
|
|
|
|
* @param enabled the thumb scroll state
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_scroll_thumbscroll_enabled_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_enabled_set(Eina_Bool enabled);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the number of pixels one should travel while dragging a
|
|
|
|
* scroller's view to actually trigger scrolling.
|
|
|
|
*
|
2012-02-14 00:50:29 -08:00
|
|
|
* @return the thumb scroll threshold
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* One would use higher values for touch screens, in general, because
|
|
|
|
* of their inherent imprecision.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI unsigned int elm_config_scroll_thumbscroll_threshold_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the number of pixels one should travel while dragging a
|
|
|
|
* scroller's view to actually trigger scrolling.
|
|
|
|
*
|
2012-02-14 00:50:29 -08:00
|
|
|
* @param threshold the thumb scroll threshold
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_thumbscroll_threshold_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_threshold_set(unsigned int threshold);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2013-03-07 01:13:15 -08:00
|
|
|
/**
|
|
|
|
* Get the number of pixels the range which can be scrolled,
|
|
|
|
* while the scroller is holded.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll hold threshold
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-03-07 01:13:15 -08:00
|
|
|
*/
|
|
|
|
EAPI unsigned int elm_config_scroll_thumbscroll_hold_threshold_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the number of pixels the range which can be scrolled,
|
|
|
|
* while the scroller is holded.
|
|
|
|
*
|
|
|
|
* @param threshold the thumb scroll hold threshold
|
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_hold_threshold_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-03-07 01:13:15 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_hold_threshold_set(unsigned int threshold);
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get the minimum speed of mouse cursor movement which will trigger
|
|
|
|
* list self scrolling animation after a mouse up event
|
|
|
|
* (pixels/second).
|
|
|
|
*
|
2012-02-14 00:50:29 -08:00
|
|
|
* @return the thumb scroll momentum threshold
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_thumbscroll_momentum_threshold_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the minimum speed of mouse cursor movement which will trigger
|
|
|
|
* list self scrolling animation after a mouse up event
|
|
|
|
* (pixels/second).
|
|
|
|
*
|
2012-02-14 00:50:29 -08:00
|
|
|
* @param threshold the thumb scroll momentum threshold
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_thumbscroll_momentum_threshold_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_momentum_threshold_set(double threshold);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2013-07-03 02:43:19 -07:00
|
|
|
/**
|
|
|
|
* Get the number of pixels the maximum distance which can be flicked.
|
|
|
|
* If it is flicked more than this,
|
|
|
|
* the flick distance is same with maximum distance.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll maximum flick distance
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-07-03 02:43:19 -07:00
|
|
|
*/
|
2018-08-28 23:58:10 -07:00
|
|
|
EAPI unsigned int elm_config_scroll_thumbscroll_momentum_distance_max_get(void);
|
2013-07-03 02:43:19 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the number of pixels the maximum distance which can be flicked.
|
|
|
|
* If it is flicked more than this,
|
|
|
|
* the flick distance is same with maximum distance.
|
|
|
|
*
|
|
|
|
* @param distance the thumb scroll maximum flick distance
|
|
|
|
*
|
2018-08-28 23:58:10 -07:00
|
|
|
* @see elm_config_thumbscroll_momentum_distance_max_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-07-03 02:43:19 -07:00
|
|
|
*/
|
2018-08-28 23:58:10 -07:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_momentum_distance_max_set(unsigned int distance);
|
2013-07-03 02:43:19 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2018-08-28 23:58:10 -07:00
|
|
|
* Get the scale ratio of geometric sequence as a kind of inertia a scroller
|
|
|
|
* will impose at self scrolling animations.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @return the thumb scroll friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2018-08-28 23:58:10 -07:00
|
|
|
EAPI double elm_config_scroll_thumbscroll_momentum_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
2018-08-28 23:58:10 -07:00
|
|
|
* Set the scale ratio of geometric sequence as a kind of inertia a scroller
|
|
|
|
* will impose at self scrolling animations.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @param friction the thumb scroll friction
|
|
|
|
*
|
2018-08-28 23:58:10 -07:00
|
|
|
* @see elm_config_thumbscroll_momentum_friction_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-30 06:06:28 -07:00
|
|
|
*/
|
2018-08-28 23:58:10 -07:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_momentum_friction_set(double friction);
|
2013-04-30 06:06:28 -07:00
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* Get the amount of lag between your actual mouse cursor dragging
|
|
|
|
* movement and a scroller's view movement itself, while pushing it
|
|
|
|
* into bounce state manually.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll border friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_thumbscroll_border_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of lag between your actual mouse cursor dragging
|
|
|
|
* movement and a scroller's view movement itself, while pushing it
|
|
|
|
* into bounce state manually.
|
|
|
|
*
|
|
|
|
* @param friction the thumb scroll border friction. @c 0.0 for
|
|
|
|
* perfect synchrony between two movements, @c 1.0 for maximum
|
|
|
|
* lag.
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_thumbscroll_border_friction_get()
|
2011-12-29 23:20:48 -08:00
|
|
|
* @note parameter value will get bound to 0.0 - 1.0 interval, always
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_border_friction_set(double friction);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the sensitivity amount which is be multiplied by the length of
|
|
|
|
* mouse dragging.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll sensitivity friction
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scroll_thumbscroll_sensitivity_friction_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the sensitivity amount which is be multiplied by the length of
|
|
|
|
* mouse dragging.
|
|
|
|
*
|
|
|
|
* @param friction the thumb scroll sensitivity friction. @c 0.1 for
|
2012-02-14 00:50:29 -08:00
|
|
|
* minimum sensitivity, @c 1.0 for maximum sensitivity. 0.25
|
2011-12-29 23:20:48 -08:00
|
|
|
* is proper.
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_thumbscroll_sensitivity_friction_get()
|
2011-12-29 23:20:48 -08:00
|
|
|
* @note parameter value will get bound to 0.1 - 1.0 interval, always
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2011-12-29 23:20:48 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scroll_thumbscroll_sensitivity_friction_set(double friction);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
2015-09-11 07:24:51 -07:00
|
|
|
/**
|
|
|
|
* Get the smooth start mode for scrolling with your finger
|
|
|
|
*
|
|
|
|
* @return smooth scroll flag
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_smooth_start_set()
|
|
|
|
*
|
|
|
|
* @since 1.16
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2015-09-11 07:24:51 -07:00
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_scroll_thumbscroll_smooth_start_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the smooth start mode for scrolling with your finger
|
|
|
|
*
|
|
|
|
* This enabled finger scrolling to scroll from the currunt point rather than
|
|
|
|
* jumping and playing catch-up to make start of scrolling look smoother once
|
|
|
|
* the finger or mouse goes past the threshold.
|
|
|
|
*
|
|
|
|
* @param enable The enabled state of the smooth scroller
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_smooth_start_get()
|
|
|
|
*
|
|
|
|
* @since 1.16
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2015-09-11 07:24:51 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_smooth_start_set(Eina_Bool enable);
|
|
|
|
|
2016-02-18 09:22:00 -08:00
|
|
|
/**
|
|
|
|
* Get the value of this option
|
|
|
|
*
|
|
|
|
* @return State of this option
|
|
|
|
*
|
2016-08-09 07:17:14 -07:00
|
|
|
* @see elm_config_scroll_animation_disabled_set()
|
2016-02-18 09:22:00 -08:00
|
|
|
*
|
|
|
|
* @since 1.18
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2016-02-18 09:22:00 -08:00
|
|
|
*/
|
2016-08-09 07:17:14 -07:00
|
|
|
EAPI Eina_Bool elm_config_scroll_animation_disabled_get(void);
|
2016-02-18 09:22:00 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the value for this option
|
|
|
|
*
|
|
|
|
* This option disables timed animations during scrolling and forces scroll actions
|
|
|
|
* to be performed immediately.
|
|
|
|
*
|
|
|
|
* @param disable The state of this option
|
|
|
|
*
|
2016-08-09 07:17:14 -07:00
|
|
|
* @see elm_config_scroll_animation_disabled_get()
|
2016-02-18 09:22:00 -08:00
|
|
|
*
|
|
|
|
* @since 1.18
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2016-02-18 09:22:00 -08:00
|
|
|
*/
|
2016-08-09 07:17:14 -07:00
|
|
|
EAPI void elm_config_scroll_animation_disabled_set(Eina_Bool enable);
|
2016-02-18 09:22:00 -08:00
|
|
|
|
2016-02-18 09:44:43 -08:00
|
|
|
/**
|
|
|
|
* Get the value of this option
|
|
|
|
*
|
|
|
|
* @return State of this option
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_accel_factor_set()
|
|
|
|
*
|
|
|
|
* @since 1.18
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2016-02-18 09:44:43 -08:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_accel_factor_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the value for this option
|
|
|
|
*
|
|
|
|
* Using a mouse wheel or touchpad to scroll will result in events
|
|
|
|
* being processed. If events occur quickly, the scroll amount will
|
|
|
|
* be multiplied by this value to accelerate the scrolling.
|
|
|
|
*
|
|
|
|
* @param factor The value of this option from 0.0 to 10.0
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_accel_factor_get()
|
|
|
|
* @note Set 0.0 to disable acceleration
|
|
|
|
*
|
|
|
|
* @since 1.18
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2016-02-18 09:44:43 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_accel_factor_set(double factor);
|
|
|
|
|
2015-09-11 07:24:51 -07:00
|
|
|
/**
|
|
|
|
* Get the amount of smoothing to apply to scrolling
|
|
|
|
*
|
|
|
|
* @return the amount of smoothing to apply from 0.0 to 1.0
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_smooth_amount_set()
|
|
|
|
*
|
|
|
|
* @since 1.16
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2015-09-11 07:24:51 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_smooth_amount_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of smoothing to apply to scrolling
|
|
|
|
*
|
|
|
|
* Scrolling with your finger can be smoothed out and the amount to smooth
|
|
|
|
* is determined by this parameter. 0.0 means to not smooth at all and
|
2019-01-28 04:14:20 -08:00
|
|
|
* 1.0 is to smooth as much as possible.
|
2015-09-11 07:24:51 -07:00
|
|
|
*
|
2017-10-26 19:29:52 -07:00
|
|
|
* @param amount the amount to smooth from 0.0 to 1.0 with 0.0 being none
|
2015-09-11 07:24:51 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_acceleration_threshold_set()
|
|
|
|
*
|
|
|
|
* @since 1.16
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2015-09-11 07:24:51 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_smooth_amount_set(double amount);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the time window to look back at for events for smoothing
|
|
|
|
*
|
|
|
|
* @return the time window in seconds (between 0.0 and 1.0)
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_smooth_time_window_set()
|
|
|
|
*
|
|
|
|
* @since 1.16
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2015-09-11 07:24:51 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_smooth_time_window_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the time window to look back at for events for smoothing
|
|
|
|
*
|
|
|
|
* Scrolling with your finger can be smoothed out and the window of time
|
|
|
|
* to look at is determined by this config. The value is in seconds and
|
|
|
|
* is from 0.0 to 1.0
|
|
|
|
*
|
2017-10-26 19:29:52 -07:00
|
|
|
* @param amount the time window in seconds (between 0.0 and 1.0)
|
2015-09-11 07:24:51 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_smooth_time_window_get()
|
|
|
|
*
|
|
|
|
* @since 1.16
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2015-09-11 07:24:51 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_smooth_time_window_set(double amount);
|
|
|
|
|
2013-04-17 05:46:21 -07:00
|
|
|
/**
|
|
|
|
* Get the minimum speed of mouse cursor movement which will accelerate
|
|
|
|
* scrolling velocity after a mouse up event
|
|
|
|
* (pixels/second).
|
|
|
|
*
|
|
|
|
* @return the thumb scroll acceleration threshold
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-17 05:46:21 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_acceleration_threshold_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the minimum speed of mouse cursor movement which will accelerate
|
|
|
|
* scrolling velocity after a mouse up event
|
|
|
|
* (pixels/second).
|
|
|
|
*
|
|
|
|
* @param threshold the thumb scroll acceleration threshold
|
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_acceleration_threshold_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-17 05:46:21 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_acceleration_threshold_set(double threshold);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the time limit for accelerating velocity.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll acceleration time limit
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-17 05:46:21 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_acceleration_time_limit_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the time limit for accelerating velocity.
|
|
|
|
*
|
2014-10-13 05:50:22 -07:00
|
|
|
* @param time_limit the thumb scroll acceleration time limit
|
2013-04-17 05:46:21 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_acceleration_time_limit_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-17 05:46:21 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_acceleration_time_limit_set(double time_limit);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the weight for the acceleration.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll acceleration weight
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-17 05:46:21 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_acceleration_weight_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the weight for the acceleration.
|
|
|
|
*
|
2014-10-13 05:50:22 -07:00
|
|
|
* @param weight the thumb scroll acceleration weight
|
2013-04-17 05:46:21 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_acceleration_weight_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scrolling
|
2013-04-17 05:46:21 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_acceleration_weight_set(double weight);
|
|
|
|
|
2018-08-28 23:58:10 -07:00
|
|
|
/**
|
|
|
|
* Get the min limit for the momentum animation duration(unit:second)
|
|
|
|
*
|
|
|
|
* @return the thumb scroll momentum animation duration min limit
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_momentum_animation_duration_min_limit_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the min limit for the momentum animation duration(unit:second)
|
|
|
|
*
|
|
|
|
* @param the thumb scroll momentum animation duration min limit
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_acceleration_weight_set()
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_momentum_animation_duration_min_limit_set(double min);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the max limit for the momentum animation duration(unit:second)
|
|
|
|
*
|
|
|
|
* @return the thumb scroll momentum animation duration max limit
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_momentum_animation_duration_max_limit_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the max limit for the momentum animation duration(unit:second)
|
|
|
|
*
|
|
|
|
* @param the thumb scroll momentum animation duration max limit
|
|
|
|
*
|
|
|
|
* @see elm_config_scroll_thumbscroll_momentum_animation_duration_max_limit_get()
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_momentum_animation_duration_max_limit_set(double max);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the min amount of inertia a scroller will impose at self scrolling
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll min friction
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_min_friction_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the min amount of inertia a scroller will impose at self scrolling
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @param friction the thumb scroll min friction
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_min_friction_get()
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_min_friction_set(double friction);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the standard velocity of the scroller. The scroll animation time is
|
|
|
|
* same with thumbscroll friction, if the velocity is same with standard
|
|
|
|
* velocity.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll friction
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_friction_standard_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the standard velocity of the scroller. The scroll animation time is
|
|
|
|
* same with thumbscroll friction, if the velocity is same with standard
|
|
|
|
* velocity.
|
|
|
|
*
|
|
|
|
* @param standard the thumb scroll friction standard
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_friction_standard_get()
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_friction_standard_set(double standard);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the number of pixels the maximum distance which can be flicked.
|
|
|
|
* If it is flicked more than this,
|
|
|
|
* the flick distance is same with maximum distance.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll maximum flick distance
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI unsigned int elm_config_scroll_thumbscroll_flick_distance_tolerance_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the number of pixels the maximum distance which can be flicked.
|
|
|
|
* If it is flicked more than this,
|
|
|
|
* the flick distance is same with maximum distance.
|
|
|
|
*
|
|
|
|
* @param distance the thumb scroll maximum flick distance
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_flick_distance_tolerance_get()
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_flick_distance_tolerance_set(unsigned int distance);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the amount of inertia a scroller will impose at self scrolling
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @return the thumb scroll friction
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_scroll_thumbscroll_friction_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of inertia a scroller will impose at self scrolling
|
|
|
|
* animations.
|
|
|
|
*
|
|
|
|
* @param friction the thumb scroll friction
|
|
|
|
*
|
|
|
|
* @deprecated
|
|
|
|
*
|
|
|
|
* @see elm_config_thumbscroll_friction_get()
|
|
|
|
* @ingroup Elm_Scrolling
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_scroll_thumbscroll_friction_set(double friction);
|
|
|
|
|
2014-05-11 06:42:45 -07:00
|
|
|
/**
|
|
|
|
* Get focus auto scroll mode.
|
|
|
|
*
|
|
|
|
* When a region or an item is focused and it resides inside any scroller,
|
|
|
|
* elementary will automatically scroll the focused area to the visible
|
|
|
|
* viewport.
|
|
|
|
*
|
2017-10-18 01:38:16 -07:00
|
|
|
* @return ELM_FOCUS_AUTOSCROLL_MODE_SHOW if directly show the focused region or item automatically.
|
|
|
|
* ELM_FOCUS_AUTOSCROLL_MODE_NONE if do not show the focused region or item automatically.
|
|
|
|
* ELM_FOCUS_AUTOSCROLL_MODE_BRING_IN if bring_in the focused region or item automatically which might invole the scrolling.
|
|
|
|
*
|
2014-05-11 06:42:45 -07:00
|
|
|
* @see elm_config_focus_autoscroll_mode_set()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-04-26 12:15:26 -07:00
|
|
|
* @since 1.10
|
|
|
|
*/
|
2014-05-11 06:42:45 -07:00
|
|
|
EAPI Elm_Focus_Autoscroll_Mode elm_config_focus_autoscroll_mode_get(void);
|
2014-04-26 12:15:26 -07:00
|
|
|
|
|
|
|
/**
|
2014-05-11 06:42:45 -07:00
|
|
|
* Set focus auto scroll mode.
|
|
|
|
*
|
|
|
|
* @param mode focus auto scroll mode. This can be one of the
|
|
|
|
* Elm_Focus_Autoscroll_Mode enum values.
|
2014-04-26 12:15:26 -07:00
|
|
|
*
|
2014-05-11 06:42:45 -07:00
|
|
|
* When a region or an item is focused and it resides inside any scroller,
|
|
|
|
* elementary will automatically scroll the focused area to the visible
|
|
|
|
* viewport.
|
2014-08-31 08:13:13 -07:00
|
|
|
* Focus auto scroll mode is set to #ELM_FOCUS_AUTOSCROLL_MODE_SHOW by
|
2014-05-11 06:42:45 -07:00
|
|
|
* default historically.
|
2014-04-26 12:15:26 -07:00
|
|
|
*
|
2014-05-11 06:42:45 -07:00
|
|
|
* @see elm_config_focus_autoscroll_mode_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-04-26 12:15:26 -07:00
|
|
|
* @since 1.10
|
|
|
|
*/
|
2014-05-11 06:42:45 -07:00
|
|
|
EAPI void elm_config_focus_autoscroll_mode_set(Elm_Focus_Autoscroll_Mode mode);
|
2014-04-26 12:15:26 -07:00
|
|
|
|
2014-11-28 22:56:45 -08:00
|
|
|
/**
|
|
|
|
* Sets the slider's indicator visible mode.
|
|
|
|
*
|
|
|
|
* @param obj The slider object.
|
|
|
|
* @param mode Elm_Slider_Indicator_Visible_Mode.
|
|
|
|
* viewport.
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Slider
|
2014-11-29 06:28:14 -08:00
|
|
|
* @since 1.13
|
2014-11-28 22:56:45 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_slider_indicator_visible_mode_set(Elm_Slider_Indicator_Visible_Mode mode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the slider's indicator visible mode.
|
|
|
|
*
|
|
|
|
* @param obj The slider object.
|
|
|
|
* @return @c ELM_SLIDER_INDICATOR_VISIBLE_MODE_DEFAULT if not set anything by the user.
|
|
|
|
* @c ELM_SLIDER_INDICATOR_VISIBLE_MODE_ALWAYS, ELM_SLIDER_INDICATOR_VISIBLE_MODE_ON_FOCUS,
|
|
|
|
* ELM_SLIDER_INDICATOR_VISIBLE_MODE_NONE if any of the above is set by user.
|
|
|
|
*
|
2016-03-16 08:05:31 -07:00
|
|
|
* @ingroup Elm_Slider
|
2014-11-29 06:28:14 -08:00
|
|
|
* @since 1.13
|
2014-11-28 22:56:45 -08:00
|
|
|
*/
|
|
|
|
EAPI Elm_Slider_Indicator_Visible_Mode elm_config_slider_indicator_visible_mode_get(void);
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2018-09-21 04:02:33 -07:00
|
|
|
/**
|
|
|
|
* @defgroup longpress_group Longpress
|
|
|
|
* @ingroup Elementary
|
|
|
|
*
|
|
|
|
* @brief Configuration for longpress events.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2011-12-29 23:20:48 -08:00
|
|
|
/**
|
2012-02-14 00:50:29 -08:00
|
|
|
* Get the duration for occurring long press event.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
|
|
|
* @return Timeout for long press event
|
|
|
|
* @ingroup Longpress
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_longpress_timeout_get(void);
|
2011-12-29 23:20:48 -08:00
|
|
|
|
|
|
|
/**
|
2012-02-14 00:50:29 -08:00
|
|
|
* Set the duration for occurring long press event.
|
2011-12-29 23:20:48 -08:00
|
|
|
*
|
2018-08-31 01:45:31 -07:00
|
|
|
* @param longpress_timeout Timeout for long press event
|
2011-12-29 23:20:48 -08:00
|
|
|
* @ingroup Longpress
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_longpress_timeout_set(double longpress_timeout);
|
2012-02-27 00:33:48 -08:00
|
|
|
|
2018-09-21 04:02:33 -07:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @defgroup softcursor_group SotfCursor
|
|
|
|
* @ingroup Elementary
|
|
|
|
*
|
|
|
|
* @brief Configuration for softcursor.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2012-07-05 02:23:38 -07:00
|
|
|
/**
|
|
|
|
* Set the mode used for software provided mouse cursors inline in the window
|
|
|
|
* canvas.
|
2013-04-17 10:18:47 -07:00
|
|
|
*
|
2012-07-05 02:23:38 -07:00
|
|
|
* A software rendered cursor can be provided for rendering inline inside the
|
|
|
|
* canvas windows in the event the native display system does not provide one
|
2013-04-17 10:18:47 -07:00
|
|
|
* or the native one is not wanted.
|
2012-07-05 02:23:38 -07:00
|
|
|
*
|
2018-09-21 04:03:18 -07:00
|
|
|
* @param mode The mode for software cursors
|
2012-07-05 02:23:38 -07:00
|
|
|
* @ingroup Softcursor
|
2013-04-17 10:18:47 -07:00
|
|
|
*
|
2012-07-05 02:23:38 -07:00
|
|
|
* @see elm_config_softcursor_mode_get()
|
2012-07-09 03:20:21 -07:00
|
|
|
* @since 1.7
|
2012-07-05 02:23:38 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_softcursor_mode_set(Elm_Softcursor_Mode mode);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the software cursor mode
|
|
|
|
*
|
|
|
|
* @return The mode used for software cursors
|
|
|
|
* @ingroup Softcursor
|
2013-04-17 10:18:47 -07:00
|
|
|
*
|
2012-07-05 02:23:38 -07:00
|
|
|
* @see elm_config_softcursor_mode_set()
|
2012-07-09 03:20:21 -07:00
|
|
|
* @since 1.7
|
2012-07-05 02:23:38 -07:00
|
|
|
*/
|
|
|
|
EAPI Elm_Softcursor_Mode elm_config_softcursor_mode_get(void);
|
|
|
|
|
2018-09-21 04:02:33 -07:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @ingroup Elm_Tooltips
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
2012-02-27 00:33:48 -08:00
|
|
|
/**
|
|
|
|
* Get the duration after which tooltip will be shown.
|
|
|
|
*
|
|
|
|
* @return Duration after which tooltip will be shown.
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_tooltip_delay_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the duration after which tooltip will be shown.
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @return @c EINA_TRUE if value is set.
|
2012-02-27 00:33:48 -08:00
|
|
|
*/
|
2012-03-06 01:23:43 -08:00
|
|
|
EAPI void elm_config_tooltip_delay_set(double delay);
|
|
|
|
|
2018-09-21 04:02:33 -07:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2012-03-06 01:23:43 -08:00
|
|
|
/**
|
|
|
|
* Get the configured cursor engine only usage
|
|
|
|
*
|
|
|
|
* This gets the globally configured exclusive usage of engine cursors.
|
|
|
|
*
|
|
|
|
* @return 1 if only engine cursors should be used
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Cursors
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_cursor_engine_only_get(void);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured cursor engine only usage
|
|
|
|
*
|
|
|
|
* This sets the globally configured exclusive usage of engine cursors.
|
|
|
|
* It won't affect cursors set before changing this value.
|
|
|
|
*
|
|
|
|
* @param engine_only If 1 only engine cursors will be enabled, if 0 will
|
|
|
|
* look for them on theme before.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Cursors
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cursor_engine_only_set(Eina_Bool engine_only);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the global scaling factor
|
|
|
|
*
|
|
|
|
* This gets the globally configured scaling factor that is applied to all
|
|
|
|
* objects.
|
|
|
|
*
|
|
|
|
* @return The scaling factor
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scaling
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_scale_get(void);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the global scaling factor
|
|
|
|
*
|
|
|
|
* This sets the globally configured scaling factor that is applied to all
|
|
|
|
* objects.
|
|
|
|
*
|
|
|
|
* @param scale The scaling factor to set
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Scaling
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_scale_set(double scale);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
2016-04-25 06:56:55 -07:00
|
|
|
/**
|
|
|
|
* Get the icon theme the user has set.
|
|
|
|
*
|
|
|
|
* This gets the global icon theme currently set or the default value
|
|
|
|
* ELM_CONFIG_ICON_THEME_ELEMENTARY.
|
|
|
|
*
|
|
|
|
* @return the icon theme to use
|
|
|
|
* @ingroup Elm_Icon
|
2016-08-12 06:51:07 -07:00
|
|
|
* @since 1.18
|
2016-04-25 06:56:55 -07:00
|
|
|
*/
|
|
|
|
EAPI const char *elm_config_icon_theme_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the icon theme for all elementary apps.
|
|
|
|
*
|
|
|
|
* This method will set the icon theme for all elm_icon_standard_set calls.
|
|
|
|
* Valid parameters are the name of an installed freedesktop.org icon theme
|
|
|
|
* or ELM_CONFIG_ICON_THEME_ELEMENTARY for the built in theme.
|
|
|
|
*
|
|
|
|
* @param the name of a freedesktop.org icon theme or ELM_CONFIG_ICON_THEME_ELEMENTARY
|
|
|
|
* @ingroup Elm_Icon
|
2016-08-12 06:51:07 -07:00
|
|
|
* @since 1.18
|
2016-04-25 06:56:55 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_icon_theme_set(const char *theme);
|
|
|
|
|
2012-03-06 01:23:43 -08:00
|
|
|
/**
|
2016-03-16 14:52:23 -07:00
|
|
|
* @defgroup Elm_Password_last_show Password show last
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2012-03-06 01:23:43 -08:00
|
|
|
*
|
|
|
|
* Show last feature of password mode enables user to view
|
|
|
|
* the last input entered for few seconds before masking it.
|
|
|
|
* These functions allow to set this feature in password mode
|
|
|
|
* of entry widget and also allow to manipulate the duration
|
|
|
|
* for which the input has to be visible.
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the "show last" setting of password mode.
|
|
|
|
*
|
|
|
|
* This gets the "show last" setting of password mode which might be
|
|
|
|
* enabled or disabled.
|
|
|
|
*
|
2012-03-28 02:02:22 -07:00
|
|
|
* @return @c EINA_TRUE, if the "show last" setting is enabled,
|
2012-03-06 01:23:43 -08:00
|
|
|
* @c EINA_FALSE if it's disabled.
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Password_last_show
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_password_show_last_get(void);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set show last setting in password mode.
|
|
|
|
*
|
|
|
|
* This enables or disables show last setting of password mode.
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @param password_show_last If @c EINA_TRUE, enables "show last" in password mode.
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_password_show_last_timeout_set()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Password_last_show
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_password_show_last_set(Eina_Bool password_show_last);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
2013-08-21 13:23:44 -07:00
|
|
|
* Get the timeout value in "show last" password mode.
|
2012-03-06 01:23:43 -08:00
|
|
|
*
|
|
|
|
* This gets the time out value for which the last input entered in password
|
|
|
|
* mode will be visible.
|
|
|
|
*
|
|
|
|
* @return The timeout value of "show last" password mode.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Password_last_show
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI double elm_config_password_show_last_timeout_get(void);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set's the timeout value in "show last" password mode.
|
|
|
|
*
|
|
|
|
* This sets the time out value for which the last input entered in password
|
|
|
|
* mode will be visible.
|
|
|
|
*
|
|
|
|
* @param password_show_last_timeout The timeout value.
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_password_show_last_set()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Password_last_show
|
2012-03-06 01:23:43 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_password_show_last_timeout_set(double password_show_last_timeout);
|
2012-03-06 01:23:43 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2012-03-06 01:49:24 -08:00
|
|
|
/**
|
2016-03-16 14:52:23 -07:00
|
|
|
* @defgroup Elm_Engine Elementary Engine
|
2012-04-16 18:35:46 -07:00
|
|
|
* @ingroup Elementary
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* These are functions setting and querying which rendering engine
|
|
|
|
* Elementary will use for drawing its windows' pixels.
|
|
|
|
*
|
|
|
|
* The following are the available engines:
|
2014-12-09 22:05:55 -08:00
|
|
|
* @li "fb" (Framebuffer)
|
|
|
|
* @li "buffer" (Pixel Memory Buffer)
|
|
|
|
* @li "ews" (Ecore + Evas Single Process Windowing System)
|
2014-08-26 02:02:00 -07:00
|
|
|
* @li NULL - no engine config
|
2014-08-21 22:48:13 -07:00
|
|
|
*
|
|
|
|
* @deprecated Please use elm_config_accel_preference_override_set() instead
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Get Elementary's rendering engine in use.
|
|
|
|
*
|
|
|
|
* @return The rendering engine's name
|
|
|
|
* @note there's no need to free the returned string, here.
|
|
|
|
*
|
|
|
|
* This gets the global rendering engine that is applied to all Elementary
|
|
|
|
* applications.
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_engine_set()
|
2015-02-06 19:54:11 -08:00
|
|
|
* @deprecated use elm_config_accel_preference_get() + elm_config_accel_preference_set()
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2015-02-06 19:54:11 -08:00
|
|
|
EINA_DEPRECATED EAPI const char *elm_config_engine_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set Elementary's rendering engine for use.
|
|
|
|
*
|
|
|
|
* @param engine The rendering engine's name
|
|
|
|
*
|
|
|
|
* Note that it will take effect only to Elementary windows created after
|
|
|
|
* this is called.
|
|
|
|
*
|
|
|
|
* @see elm_win_add()
|
2015-02-06 19:54:11 -08:00
|
|
|
* @deprecated use elm_config_accel_preference_get() + elm_config_accel_preference_set()
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2015-02-06 19:54:11 -08:00
|
|
|
EINA_DEPRECATED EAPI void elm_config_engine_set(const char *engine);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Get Elementary's preferred engine to use.
|
|
|
|
*
|
|
|
|
* @return The rendering engine's name
|
|
|
|
* @note there's no need to free the returned string, here.
|
|
|
|
*
|
|
|
|
* This gets the global rendering engine that is applied to all Elementary
|
|
|
|
* applications and is PREFERRED by the application. This can (and will)
|
2015-04-09 17:27:17 -07:00
|
|
|
* override the engine configured for all applications which. It is rare to
|
|
|
|
* explicitly ask for an engine (likely need is the buffer engine and not
|
|
|
|
* much more), so use elm_config_accel_preference_get() and
|
|
|
|
* elm_config_accel_preference_set() normally.
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_preferred_engine_set()
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2015-04-09 17:27:17 -07:00
|
|
|
EAPI const char *elm_config_preferred_engine_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set Elementary's preferred rendering engine for use.
|
|
|
|
*
|
|
|
|
* @param engine The rendering engine's name
|
|
|
|
*
|
|
|
|
* Note that it will take effect only to Elementary windows created after
|
|
|
|
* this is called. This overrides the engine set by configuration at
|
|
|
|
* application startup. Note that it is a hint and may not be honored.
|
2015-04-09 17:27:17 -07:00
|
|
|
* It is rare to explicitly ask for an engine (likely need is the buffer
|
|
|
|
* engine and not much more), so use elm_config_accel_preference_get() and
|
|
|
|
* elm_config_accel_preference_set() normally.
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @see elm_win_add()
|
2014-12-09 22:05:55 -08:00
|
|
|
* @see elm_config_accel_preference_set()
|
|
|
|
* @see elm_config_engine_set()
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2015-04-09 17:27:17 -07:00
|
|
|
EAPI void elm_config_preferred_engine_set(const char *engine);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
2014-03-08 08:22:33 -08:00
|
|
|
/**
|
|
|
|
* @brief Get Elementary's preferred engine to use.
|
|
|
|
*
|
|
|
|
* @return The acceleration preference hint string
|
|
|
|
* @note there's no need to free the returned string, here.
|
|
|
|
*
|
|
|
|
* See elm_config_accel_preference_set() for more information, but this simply
|
|
|
|
* returns what was set by this call, nothing more.
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2014-03-08 08:22:33 -08:00
|
|
|
* @see elm_config_accel_preference_set()
|
2014-03-08 19:55:17 -08:00
|
|
|
* @since 1.10
|
2014-03-08 08:22:33 -08:00
|
|
|
*/
|
|
|
|
EAPI const char *elm_config_accel_preference_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Set Elementary's acceleration preferences for new windows.
|
|
|
|
*
|
|
|
|
* @param 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 @p pref string is a freeform C string that indicates
|
2014-12-09 22:39:12 -08:00
|
|
|
* what kind of acceleration is preferred. Here "acceleration" majorly
|
2015-03-15 23:06:55 -07:00
|
|
|
* means to rendering and which hardware unit application renders GUIs with.
|
2014-12-09 22:39:12 -08:00
|
|
|
* This may or may not be honored, but a best attempt will
|
|
|
|
* be made. Known strings are as follows:
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2015-03-15 23:06:55 -07:00
|
|
|
* "gl", "opengl" - try use OpenGL.
|
2014-03-08 08:22:33 -08:00
|
|
|
* "3d" - try and use a 3d acceleration unit.
|
|
|
|
* "hw", "hardware", "accel" - try any acceleration unit (best possible)
|
2015-08-06 23:11:59 -07:00
|
|
|
* "none" - use no acceleration. try use software (since 1.16)
|
2015-03-15 23:06:55 -07:00
|
|
|
*
|
|
|
|
* Since 1.14, it is also possible to specify some GL properties for the GL
|
|
|
|
* window surface. This allows applications to use GLView with depth, stencil
|
|
|
|
* and MSAA buffers with direct rendering. The new accel preference string
|
|
|
|
* format is thus "{HW Accel}[:depth{value}[:stencil{value}[:msaa{str}]]]".
|
|
|
|
*
|
|
|
|
* Accepted values for depth are for instance "depth", "depth16", "depth24".
|
|
|
|
* Accepted values for stencil are "stencil", "stencil1", "stencil8".
|
|
|
|
* For MSAA, only predefined strings are accepted: "msaa", "msaa_low",
|
2015-09-28 02:36:21 -07:00
|
|
|
* "msaa_mid" and "msaa_high". The selected configuration is not guaranteed
|
2015-03-15 23:06:55 -07:00
|
|
|
* and is only valid in case of GL acceleration. Only the base acceleration
|
|
|
|
* string will be saved (e.g. "gl" or "hw").
|
|
|
|
*
|
|
|
|
* Full examples include:
|
|
|
|
*
|
|
|
|
* "gl", - try to use OpenGL
|
|
|
|
* "hw:depth:stencil", - use HW acceleration with default depth and stencil buffers
|
|
|
|
* "opengl:depth24:stencil8:msaa_mid" - use OpenGL with 24-bit depth,
|
|
|
|
* 8-bit stencil and a medium number of MSAA samples in the backbuffer.
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2014-03-08 08:22:33 -08:00
|
|
|
* This takes precedence over engine preferences set with
|
|
|
|
* elm_config_preferred_engine_set().
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2014-03-08 08:22:33 -08:00
|
|
|
* @see elm_win_add()
|
2014-12-09 22:05:55 -08:00
|
|
|
* @see elm_config_accel_preference_override_set()
|
|
|
|
*
|
2014-03-08 19:55:17 -08:00
|
|
|
* @since 1.10
|
2014-03-08 08:22:33 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_accel_preference_set(const char *pref);
|
|
|
|
|
|
|
|
|
2012-03-06 01:49:24 -08:00
|
|
|
typedef struct _Elm_Text_Class
|
|
|
|
{
|
|
|
|
const char *name;
|
|
|
|
const char *desc;
|
|
|
|
} Elm_Text_Class;
|
|
|
|
|
|
|
|
typedef struct _Elm_Font_Overlay
|
|
|
|
{
|
|
|
|
const char *text_class;
|
|
|
|
const char *font;
|
|
|
|
Evas_Font_Size size;
|
|
|
|
} Elm_Font_Overlay;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Elementary's list of supported text classes.
|
|
|
|
*
|
|
|
|
* @return The text classes list, with @c Elm_Text_Class blobs as data.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* Release the list with elm_text_classes_list_free().
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_List *elm_config_text_classes_list_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Free Elementary's list of supported text classes.
|
|
|
|
*
|
2017-10-18 01:38:16 -07:00
|
|
|
* @param list The text classes list.
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_text_classes_list_get().
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_text_classes_list_free(Eina_List *list);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Elementary's list of font overlays, set with
|
2012-03-06 04:04:25 -08:00
|
|
|
* elm_config_font_overlay_set().
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @return The font overlays list, with @c Elm_Font_Overlay blobs as
|
|
|
|
* data.
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* For each text class, one can set a <b>font overlay</b> for it,
|
|
|
|
* overriding the default font properties for that class coming from
|
|
|
|
* the theme in use. There is no need to free this list.
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_font_overlay_set() and elm_config_font_overlay_unset().
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI const Eina_List *elm_config_font_overlay_list_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a font overlay for a given Elementary text class.
|
|
|
|
*
|
|
|
|
* @param text_class Text class name
|
|
|
|
* @param font Font name and style string
|
2012-10-31 05:09:33 -07:00
|
|
|
* @param size Font size.
|
|
|
|
*
|
|
|
|
* @note If the @p size is lower than zero, the value will be the amount of the size percentage. ex) -50: half of the current size, -100: current size, -10: 1/10 size.
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
2012-05-13 17:12:17 -07:00
|
|
|
* @p font has to be in the format returned by elm_font_fontconfig_name_get().
|
|
|
|
* @see elm_config_font_overlay_list_get()
|
|
|
|
* @see elm_config_font_overlay_unset()
|
|
|
|
* @see edje_object_text_class_set()
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_font_overlay_set(const char *text_class, const char *font, Evas_Font_Size size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
2012-06-29 23:01:25 -07:00
|
|
|
/**
|
|
|
|
* Get access mode
|
|
|
|
*
|
|
|
|
* @return the access mode bouncing state
|
|
|
|
*
|
2012-07-09 03:20:21 -07:00
|
|
|
* @since 1.7
|
2012-06-29 23:01:25 -07:00
|
|
|
*
|
2013-04-17 10:18:47 -07:00
|
|
|
* @ingroup Access
|
2012-06-29 23:01:25 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_access_set()
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_access_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set access mode
|
|
|
|
*
|
2014-10-13 05:50:22 -07:00
|
|
|
* @param is_access If @c EINA_TRUE, enables access mode
|
2012-06-29 23:01:25 -07:00
|
|
|
*
|
|
|
|
* @note Elementary objects may have information (e.g. label on the elm_button)
|
|
|
|
* to be read. This information is read by access module when an object
|
|
|
|
* receives EVAS_CALLBACK_MOUSE_IN event
|
|
|
|
*
|
2012-07-09 03:20:21 -07:00
|
|
|
* @since 1.7
|
2012-06-29 23:01:25 -07:00
|
|
|
*
|
2013-04-17 10:18:47 -07:00
|
|
|
* @ingroup Access
|
2012-06-29 23:01:25 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_access_get()
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_access_set(Eina_Bool is_access);
|
|
|
|
|
2012-11-29 00:58:49 -08:00
|
|
|
/**
|
|
|
|
* Get whether selection should be cleared when entry widget is unfocused.
|
|
|
|
*
|
|
|
|
* @return if the selection would be cleared on unfocus.
|
|
|
|
*
|
|
|
|
* @since 1.7
|
|
|
|
*
|
2013-04-17 10:18:47 -07:00
|
|
|
* @ingroup Selection
|
2012-11-29 00:58:49 -08:00
|
|
|
*
|
|
|
|
* @see elm_config_selection_unfocused_clear_set()
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_selection_unfocused_clear_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set whether selection should be cleared when entry widget is unfocused.
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @param enabled If @c EINA_TRUE, clear selection when unfocus,
|
2012-11-29 00:58:49 -08:00
|
|
|
* otherwise does not clear selection when unfocus.
|
|
|
|
*
|
|
|
|
* @since 1.7
|
|
|
|
*
|
2013-04-17 10:18:47 -07:00
|
|
|
* @ingroup Selection
|
2012-11-29 00:58:49 -08:00
|
|
|
*
|
|
|
|
* @see elm_config_selection_unfocused_clear_get()
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_selection_unfocused_clear_set(Eina_Bool enabled);
|
|
|
|
|
2012-03-06 01:49:24 -08:00
|
|
|
/**
|
|
|
|
* Unset a font overlay for a given Elementary text class.
|
|
|
|
*
|
|
|
|
* @param text_class Text class name
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* This will bring back text elements belonging to text class
|
|
|
|
* @p text_class back to their default font settings.
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_font_overlay_unset(const char *text_class);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
2012-03-06 04:04:25 -08:00
|
|
|
* Apply the changes made with elm_config_font_overlay_set() and
|
|
|
|
* elm_config_font_overlay_unset() on the current Elementary window.
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* This applies all font overlays set to all objects in the UI.
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_font_overlay_apply(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
2014-10-30 13:24:11 -07:00
|
|
|
/**
|
|
|
|
* Apply the specified font hinting type.
|
|
|
|
* EVAS_FONT_HINTING_NONE < No font hinting
|
|
|
|
* EVAS_FONT_HINTING_AUTO < Automatic font hinting
|
|
|
|
* EVAS_FONT_HINTING_BYTECODE < Bytecode font hinting
|
|
|
|
*
|
2017-10-18 01:38:16 -07:00
|
|
|
* @param type The font hinting type
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fonts
|
2014-10-30 13:24:11 -07:00
|
|
|
*
|
|
|
|
* This applies font hint changes to all windows of the current application.
|
|
|
|
*
|
|
|
|
* @since 1.13
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_font_hint_type_set(int type);
|
|
|
|
|
2012-03-06 01:49:24 -08:00
|
|
|
/**
|
|
|
|
* Get the configured "finger size"
|
|
|
|
*
|
|
|
|
* @return The finger size
|
|
|
|
*
|
|
|
|
* This gets the globally configured finger size, <b>in pixels</b>
|
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fingers
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Evas_Coord elm_config_finger_size_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured finger size
|
|
|
|
*
|
|
|
|
* This sets the globally configured finger size in pixels
|
|
|
|
*
|
|
|
|
* @param size The finger size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Fingers
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_finger_size_set(Evas_Coord size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured cache flush interval time
|
|
|
|
*
|
|
|
|
* This gets the globally configured cache flush interval time, in
|
|
|
|
* ticks
|
|
|
|
*
|
|
|
|
* @return The cache flush interval time
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @see elm_cache_all_flush()
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI int elm_config_cache_flush_interval_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured cache flush interval time
|
|
|
|
*
|
|
|
|
* This sets the globally configured cache flush interval time, in ticks
|
|
|
|
*
|
|
|
|
* @param size The cache flush interval time
|
2012-05-21 21:48:21 -07:00
|
|
|
*
|
2012-05-21 21:55:49 -07:00
|
|
|
* @note The @p size must be greater than 0. if not, the cache flush will be
|
2012-05-21 21:54:28 -07:00
|
|
|
* ignored.
|
2012-05-21 21:48:21 -07:00
|
|
|
*
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @see elm_cache_all_flush()
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cache_flush_interval_set(int size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured cache flush enabled state
|
|
|
|
*
|
|
|
|
* This gets the globally configured cache flush state - if it is enabled
|
|
|
|
* or not. When cache flushing is enabled, elementary will regularly
|
2012-03-06 04:04:25 -08:00
|
|
|
* (see elm_config_cache_flush_interval_get() ) flush caches and dump data out of
|
2012-03-06 01:49:24 -08:00
|
|
|
* memory and allow usage to re-seed caches and data in memory where it
|
|
|
|
* can do so. An idle application will thus minimize its memory usage as
|
|
|
|
* data will be freed from memory and not be re-loaded as it is idle and
|
|
|
|
* not rendering or doing anything graphically right now.
|
|
|
|
*
|
|
|
|
* @return The cache flush state
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @see elm_cache_all_flush()
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_cache_flush_enabled_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured cache flush enabled state
|
|
|
|
*
|
|
|
|
* This sets the globally configured cache flush enabled state.
|
|
|
|
*
|
|
|
|
* @param enabled The cache flush enabled state
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @see elm_cache_all_flush()
|
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cache_flush_enabled_set(Eina_Bool enabled);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured font cache size
|
|
|
|
*
|
2013-04-08 02:15:22 -07:00
|
|
|
* This gets the globally configured font cache size, in kilo bytes.
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @return The font cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI int elm_config_cache_font_cache_size_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured font cache size
|
|
|
|
*
|
2013-04-08 02:15:22 -07:00
|
|
|
* This sets the globally configured font cache size, in kilo bytes
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @param size The font cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cache_font_cache_size_set(int size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured image cache size
|
|
|
|
*
|
2013-04-08 02:15:22 -07:00
|
|
|
* This gets the globally configured image cache size, in kilo bytes
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @return The image cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI int elm_config_cache_image_cache_size_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured image cache size
|
|
|
|
*
|
2013-04-08 02:15:22 -07:00
|
|
|
* This sets the globally configured image cache size, in kilo bytes
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
|
|
|
* @param size The image cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cache_image_cache_size_set(int size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured edje file cache size.
|
|
|
|
*
|
|
|
|
* This gets the globally configured edje file cache size, in number
|
|
|
|
* of files.
|
|
|
|
*
|
|
|
|
* @return The edje file cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI int elm_config_cache_edje_file_cache_size_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured edje file cache size
|
|
|
|
*
|
|
|
|
* This sets the globally configured edje file cache size, in number
|
|
|
|
* of files.
|
|
|
|
*
|
|
|
|
* @param size The edje file cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cache_edje_file_cache_size_set(int size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the configured edje collections (groups) cache size.
|
|
|
|
*
|
|
|
|
* This gets the globally configured edje collections cache size, in
|
|
|
|
* number of collections.
|
|
|
|
*
|
|
|
|
* @return The edje collections cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI int elm_config_cache_edje_collection_cache_size_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured edje collections (groups) cache size
|
|
|
|
*
|
|
|
|
* This sets the globally configured edje collections cache size, in
|
|
|
|
* number of collections.
|
|
|
|
*
|
|
|
|
* @param size The edje collections cache size
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Caches
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_cache_edje_collection_cache_size_set(int size);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
2014-08-05 08:04:11 -07:00
|
|
|
/**
|
|
|
|
* Get the configured vsync flag
|
|
|
|
*
|
|
|
|
* This gets the globally configured vsync flag that asks some backend
|
|
|
|
* engines to use vsync display if possible.
|
|
|
|
*
|
|
|
|
* @return If vsync is enabled
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2014-08-05 08:04:11 -07:00
|
|
|
* @since 1.11
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_vsync_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the configured vsync flag
|
|
|
|
*
|
|
|
|
* This sets the globally configured vsync flag that asks some backend
|
|
|
|
* engines to use vsync display if possible.
|
|
|
|
*
|
2014-08-13 03:50:38 -07:00
|
|
|
* @param enabled This should be @c EINA_TRUE if enabled, or @c EINA_FALSE if
|
|
|
|
* not.
|
2014-08-05 08:04:11 -07:00
|
|
|
*
|
|
|
|
* @since 1.11
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_vsync_set(Eina_Bool enabled);
|
|
|
|
|
2017-11-15 15:08:32 -08:00
|
|
|
/**
|
2019-04-02 04:28:48 -07:00
|
|
|
* Get the configure flag that will define if a window aggressively drop its
|
|
|
|
* resources when minimized.
|
2017-11-15 15:08:32 -08:00
|
|
|
*
|
|
|
|
* @return if it does.
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_agressive_withdrawn_get(void);
|
|
|
|
|
|
|
|
/**
|
2019-04-02 04:28:48 -07:00
|
|
|
* Set the configure flag that will make a window aggressively drop its
|
|
|
|
* resources when minimized.
|
2017-11-15 15:08:32 -08:00
|
|
|
*
|
|
|
|
* @param enabled This should be @c EINA_TRUE if enabled, or @c EINA_FALSE if
|
|
|
|
* not.
|
|
|
|
* @since 1.21
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_agressive_withdrawn_set(Eina_Bool enabled);
|
|
|
|
|
2014-08-05 08:04:11 -07:00
|
|
|
/**
|
|
|
|
* Get the acceleration override preference flag
|
|
|
|
*
|
|
|
|
* This gets the acceleration override preference. This is a flag that
|
2014-08-22 08:31:12 -07:00
|
|
|
* has the global system acceleration preference configuration forcibly
|
2014-08-05 08:04:11 -07:00
|
|
|
* override whatever acceleration preference the application may want.
|
|
|
|
*
|
|
|
|
* @return If acceleration override is enabled
|
|
|
|
*
|
|
|
|
* @since 1.11
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_accel_preference_override_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the acceleration override preference flag
|
|
|
|
*
|
|
|
|
* This sets the acceleration override preference. This is a flag that
|
2014-08-22 08:31:12 -07:00
|
|
|
* has the global system acceleration preference configuration forcibly
|
2014-08-05 08:04:11 -07:00
|
|
|
* override whatever acceleration preference the application may want.
|
|
|
|
*
|
2014-08-13 03:50:38 -07:00
|
|
|
* @param enabled This should be @c EINA_TRUE if enabled, or @c EINA_FALSE if
|
|
|
|
* not.
|
2014-08-05 08:04:11 -07:00
|
|
|
*
|
2014-12-09 22:05:55 -08:00
|
|
|
* @see elm_config_accel_preference_set()
|
|
|
|
*
|
2014-08-05 08:04:11 -07:00
|
|
|
* @since 1.11
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_accel_preference_override_set(Eina_Bool enabled);
|
|
|
|
|
2012-03-06 01:49:24 -08:00
|
|
|
/**
|
|
|
|
* Get the enable status of the focus highlight
|
|
|
|
*
|
|
|
|
* This gets whether the highlight on focused objects is enabled or not
|
|
|
|
*
|
2014-03-08 10:51:41 -08:00
|
|
|
* @return enable @c EINA_TRUE if the focus highlight is enabled, @c EINA_FALSE
|
|
|
|
* otherwise.
|
|
|
|
*
|
2012-03-06 04:04:25 -08:00
|
|
|
* @see elm_config_focus_highlight_enabled_set()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_focus_highlight_enabled_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the enable status of the focus highlight
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @param enable Enable highlight if @c EINA_TRUE, disable otherwise
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2012-03-06 01:49:24 -08:00
|
|
|
* Set whether to show or not the highlight on focused objects
|
|
|
|
*
|
|
|
|
* Note that it will take effect only to Elementary windows created after
|
|
|
|
* this is called.
|
|
|
|
*
|
2014-03-08 10:51:41 -08:00
|
|
|
* @see elm_config_focus_highlight_enabled_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_focus_highlight_enabled_set(Eina_Bool enable);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
2014-03-08 10:51:41 -08:00
|
|
|
* Get the enable status of the focus highlight animation
|
2012-03-06 01:49:24 -08:00
|
|
|
*
|
2014-03-08 10:51:41 -08:00
|
|
|
* @return animate @c EINA_TRUE if the focus highlight animation is enabled, @c
|
|
|
|
* EINA_FALSE otherwise.
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2012-03-06 01:49:24 -08:00
|
|
|
* Get whether the focus highlight, if enabled, will animate its switch from
|
|
|
|
* one object to the next
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2014-03-08 10:51:41 -08:00
|
|
|
* @see elm_config_focus_highlight_animate_set()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI Eina_Bool elm_config_focus_highlight_animate_get(void);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the enable status of the highlight animation
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @param animate Enable animation if @c EINA_TRUE, disable otherwise
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2012-03-06 01:49:24 -08:00
|
|
|
* Set whether the focus highlight, if enabled, will animate its switch from
|
|
|
|
* one object to the next
|
2012-03-28 02:02:22 -07:00
|
|
|
*
|
2012-03-06 01:49:24 -08:00
|
|
|
* Note that it will take effect only to Elementary windows created after
|
|
|
|
* this is called.
|
|
|
|
*
|
2014-03-08 10:51:41 -08:00
|
|
|
* @see elm_config_focus_highlight_animate_get()
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2012-03-06 04:04:25 -08:00
|
|
|
EAPI void elm_config_focus_highlight_animate_set(Eina_Bool animate);
|
|
|
|
|
2014-03-08 10:39:23 -08:00
|
|
|
/**
|
|
|
|
* Get the disable status of the focus highlight clip feature.
|
|
|
|
*
|
|
|
|
* @return The focus highlight clip disable status
|
|
|
|
*
|
|
|
|
* Get whether the focus highlight clip feature is disabled. If disabled return
|
|
|
|
* @c EINA_TRUE, else return @c EINA_FALSE. If the return is @c EINA_TRUE, focus
|
|
|
|
* highlight clip feature is not disabled so the focus highlight can be clipped.
|
|
|
|
*
|
|
|
|
* @see elm_config_focus_highlight_clip_disabled_set()
|
|
|
|
* @since 1.10
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-03-08 10:39:23 -08:00
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_focus_highlight_clip_disabled_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the disable status of the focus highlight clip feature.
|
|
|
|
*
|
|
|
|
* @param disable Disable focus highlight clip feature if @c EINA_TRUE, enable
|
|
|
|
* it otherwise.
|
|
|
|
*
|
|
|
|
* @see elm_config_focus_highlight_clip_disabled_get()
|
|
|
|
* @since 1.10
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-03-08 10:39:23 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_focus_highlight_clip_disabled_set(Eina_Bool disable);
|
|
|
|
|
2014-03-20 07:50:46 -07:00
|
|
|
/**
|
|
|
|
* Get the focus movement policy
|
|
|
|
*
|
|
|
|
* @return The focus movement policy
|
|
|
|
*
|
2014-08-31 08:13:13 -07:00
|
|
|
* Get how the focus is moved to another object. It can be
|
|
|
|
* #ELM_FOCUS_MOVE_POLICY_CLICK or #ELM_FOCUS_MOVE_POLICY_IN. The first means
|
2014-03-20 07:50:46 -07:00
|
|
|
* elementary focus is moved on elementary object click. The second means
|
|
|
|
* elementary focus is moved on elementary object mouse in.
|
|
|
|
*
|
|
|
|
* @see elm_config_focus_move_policy_set()
|
|
|
|
* @since 1.10
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-03-20 07:50:46 -07:00
|
|
|
*/
|
|
|
|
EAPI Elm_Focus_Move_Policy elm_config_focus_move_policy_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set elementary focus movement policy
|
|
|
|
*
|
|
|
|
* @param policy A policy to apply for the focus movement
|
|
|
|
*
|
|
|
|
* @see elm_config_focus_move_policy_get()
|
|
|
|
* @since 1.10
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-03-20 07:50:46 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_focus_move_policy_set(Elm_Focus_Move_Policy policy);
|
|
|
|
|
2014-04-03 03:11:57 -07:00
|
|
|
/**
|
2014-04-05 08:10:55 -07:00
|
|
|
* Get disable status of item select on focus feature.
|
2014-04-03 03:11:57 -07:00
|
|
|
*
|
2014-04-05 08:10:55 -07:00
|
|
|
* @return The item select on focus disable status
|
|
|
|
*
|
|
|
|
* @see elm_config_item_select_on_focus_disabled_set
|
2014-04-03 03:11:57 -07:00
|
|
|
* @since 1.10
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-04-03 03:11:57 -07:00
|
|
|
*/
|
2014-04-05 08:10:55 -07:00
|
|
|
EAPI Eina_Bool elm_config_item_select_on_focus_disabled_get(void);
|
2014-04-03 03:11:57 -07:00
|
|
|
|
|
|
|
/**
|
2014-04-05 08:10:55 -07:00
|
|
|
* Set the disable status of the item select on focus feature.
|
2014-04-03 03:11:57 -07:00
|
|
|
*
|
2014-10-13 05:50:22 -07:00
|
|
|
* @param disabled Disable item select on focus if @c EINA_TRUE, enable otherwise
|
2014-04-03 03:11:57 -07:00
|
|
|
*
|
2014-04-05 08:10:55 -07:00
|
|
|
* @see elm_config_item_select_on_focus_disabled_get
|
2014-04-03 03:11:57 -07:00
|
|
|
* @since 1.10
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-04-03 03:11:57 -07:00
|
|
|
*/
|
2014-10-13 05:50:22 -07:00
|
|
|
EAPI void elm_config_item_select_on_focus_disabled_set(Eina_Bool disabled);
|
2014-04-03 03:11:57 -07:00
|
|
|
|
2014-07-21 02:55:55 -07:00
|
|
|
/**
|
|
|
|
* Get status of first item focus on first focusin feature.
|
|
|
|
*
|
|
|
|
* @return The first item focus on first focusin status
|
|
|
|
*
|
|
|
|
* @see elm_config_first_item_focus_on_first_focusin_set
|
|
|
|
* @since 1.11
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-07-21 02:55:55 -07:00
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_first_item_focus_on_first_focusin_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the first item focus on first focusin feature.
|
|
|
|
*
|
2014-10-13 05:50:22 -07:00
|
|
|
* @param enabled first_item_focus_on_first_focusin if @c EINA_TRUE, enable otherwise
|
2014-07-21 02:55:55 -07:00
|
|
|
*
|
|
|
|
* @see elm_config_first_item_focus_on_first_focusin_get
|
|
|
|
* @since 1.11
|
2016-03-16 14:52:23 -07:00
|
|
|
* @ingroup Elm_Focus
|
2014-07-21 02:55:55 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_first_item_focus_on_first_focusin_set(Eina_Bool enabled);
|
|
|
|
|
2012-03-06 04:04:25 -08:00
|
|
|
/**
|
|
|
|
* Get the system mirrored mode. This determines the default mirrored mode
|
|
|
|
* of widgets.
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @return @c EINA_TRUE if mirrored is set, @c EINA_FALSE otherwise
|
2012-03-06 04:04:25 -08:00
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_mirrored_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the system mirrored mode. This determines the default mirrored mode
|
|
|
|
* of widgets.
|
|
|
|
*
|
2014-02-06 09:49:43 -08:00
|
|
|
* @param mirrored @c EINA_TRUE to set mirrored mode, @c EINA_FALSE to unset it.
|
2012-03-06 04:04:25 -08:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_mirrored_set(Eina_Bool mirrored);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
2013-05-20 05:03:43 -07:00
|
|
|
/**
|
2014-02-06 09:49:43 -08:00
|
|
|
* Get the clouseau state. @c EINA_TRUE if clouseau was tried to be run.
|
2013-05-20 05:03:43 -07:00
|
|
|
*
|
|
|
|
* @since 1.8
|
2014-02-06 09:49:43 -08:00
|
|
|
* @return @c EINA_TRUE if clouseau was tried to run, @c EINA_FALSE otherwise
|
2013-05-20 05:03:43 -07:00
|
|
|
*/
|
2013-05-20 09:36:34 -07:00
|
|
|
EAPI Eina_Bool elm_config_clouseau_enabled_get(void);
|
2013-05-20 05:03:43 -07:00
|
|
|
|
|
|
|
/**
|
2014-02-06 09:49:43 -08:00
|
|
|
* Get the clouseau state. @c EINA_TRUE if clouseau should be attempted to be run.
|
2013-05-20 05:03:43 -07:00
|
|
|
*
|
|
|
|
* @since 1.8
|
2014-02-06 09:49:43 -08:00
|
|
|
* @param enabled @c EINA_TRUE to try and run clouseau, @c EINA_FALSE otherwise.
|
2013-05-20 05:03:43 -07:00
|
|
|
*/
|
2013-05-20 09:36:34 -07:00
|
|
|
EAPI void elm_config_clouseau_enabled_set(Eina_Bool enabled);
|
2013-05-20 05:03:43 -07:00
|
|
|
|
2012-11-15 02:43:26 -08:00
|
|
|
/**
|
|
|
|
* Get the indicator service name according to the rotation degree.
|
|
|
|
*
|
2014-01-21 19:07:55 -08:00
|
|
|
* @param rotation The rotation which related with the indicator service name,
|
|
|
|
* in degrees (0-360),
|
2012-11-15 02:43:26 -08:00
|
|
|
*
|
2014-01-21 19:07:55 -08:00
|
|
|
* @return The indicator service name according to the rotation degree. The
|
|
|
|
* indicator service name can be either @c "elm_indicator_portrait" or
|
|
|
|
* @c "elm_indicator_landscape".
|
|
|
|
*
|
|
|
|
* @note Do not free the return string.
|
2012-11-15 02:43:26 -08:00
|
|
|
*/
|
|
|
|
EAPI const char *elm_config_indicator_service_get(int rotation);
|
|
|
|
|
2013-05-28 03:05:52 -07:00
|
|
|
/**
|
|
|
|
* Get the duration for occurring long tap event of gesture layer.
|
|
|
|
*
|
|
|
|
* @return Timeout for long tap event of gesture layer.
|
2013-11-04 04:18:15 -08:00
|
|
|
* @ingroup Elm_Gesture_Layer
|
|
|
|
* @since 1.8
|
2013-05-28 03:05:52 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_glayer_long_tap_start_timeout_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the duration for occurring long tap event of gesture layer.
|
|
|
|
*
|
|
|
|
* @param long_tap_timeout Timeout for long tap event of gesture layer.
|
2013-11-04 04:18:15 -08:00
|
|
|
* @ingroup Elm_Gesture_Layer
|
|
|
|
* @since 1.8
|
2013-05-28 03:05:52 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_glayer_long_tap_start_timeout_set(double long_tap_timeout);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the duration for occurring double tap event of gesture layer.
|
|
|
|
*
|
|
|
|
* @return Timeout for double tap event of gesture layer.
|
2013-11-04 04:18:15 -08:00
|
|
|
* @ingroup Elm_Gesture_Layer
|
|
|
|
* @since 1.8
|
2013-05-28 03:05:52 -07:00
|
|
|
*/
|
|
|
|
EAPI double elm_config_glayer_double_tap_timeout_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the duration for occurring double tap event of gesture layer.
|
|
|
|
*
|
2014-10-13 05:50:22 -07:00
|
|
|
* @param double_tap_timeout Timeout for double tap event of gesture layer.
|
2013-11-04 04:18:15 -08:00
|
|
|
* @ingroup Elm_Gesture_Layer
|
|
|
|
* @since 1.8
|
2013-05-28 03:05:52 -07:00
|
|
|
*/
|
|
|
|
EAPI void elm_config_glayer_double_tap_timeout_set(double double_tap_timeout);
|
|
|
|
|
2014-02-27 14:16:45 -08:00
|
|
|
typedef struct _Elm_Color_Class
|
|
|
|
{
|
|
|
|
const char *name;
|
|
|
|
const char *desc;
|
|
|
|
} Elm_Color_Class;
|
|
|
|
|
|
|
|
typedef struct _Elm_Color_Overlay
|
|
|
|
{
|
|
|
|
const char *color_class;
|
|
|
|
struct {
|
|
|
|
unsigned char r, g, b, a;
|
|
|
|
} color, outline, shadow;
|
|
|
|
} Elm_Color_Overlay;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Elementary's list of supported color classes.
|
|
|
|
*
|
|
|
|
* @return The color classes list, with @c Elm_Color_Class blobs as data.
|
|
|
|
* @ingroup Colors
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* Release the list with elm_color_classes_list_free().
|
|
|
|
*/
|
|
|
|
EAPI Eina_List *elm_config_color_classes_list_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Free Elementary's list of supported color classes.
|
|
|
|
*
|
2017-10-26 19:29:52 -07:00
|
|
|
* @param list The list of color classes to freed
|
2014-02-27 14:16:45 -08:00
|
|
|
* @ingroup Colors
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* @see elm_config_color_classes_list_get().
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_color_classes_list_free(Eina_List *list);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get Elementary's list of color overlays, set with
|
|
|
|
* elm_config_color_overlay_set().
|
|
|
|
*
|
|
|
|
* @return The color overlays list, with @c Elm_Color_Overlay blobs as
|
|
|
|
* data.
|
|
|
|
*
|
|
|
|
* @ingroup Colors
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* For each color class, one can set a <b>color overlay</b> for it,
|
|
|
|
* overriding the default color properties for that class coming from
|
|
|
|
* the theme in use. There is no need to free this list.
|
|
|
|
*
|
|
|
|
* @see elm_config_color_overlay_set()
|
|
|
|
* @see elm_config_color_overlay_unset().
|
|
|
|
*/
|
|
|
|
EAPI const Eina_List *elm_config_color_overlay_list_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set a color overlay for a given Elementary color class.
|
|
|
|
*
|
|
|
|
* @param color_class Color class name
|
|
|
|
* @param r Object Red value
|
|
|
|
* @param g Object Green value
|
|
|
|
* @param b Object Blue value
|
|
|
|
* @param a Object Alpha value
|
2014-07-14 08:27:28 -07:00
|
|
|
* @param r2 Text outline Red value
|
|
|
|
* @param g2 Text outline Green value
|
|
|
|
* @param b2 Text outline Blue value
|
|
|
|
* @param a2 Text outline Alpha value
|
|
|
|
* @param r3 Text shadow Red value
|
|
|
|
* @param g3 Text shadow Green value
|
|
|
|
* @param b3 Text shadow Blue value
|
|
|
|
* @param a3 Text shadow Alpha value
|
2014-02-27 14:16:45 -08:00
|
|
|
*
|
|
|
|
* @ingroup Colors
|
|
|
|
* @since 1.10
|
|
|
|
|
2014-07-14 08:27:28 -07:00
|
|
|
* The first color is for the object itself, the second color is for the text
|
|
|
|
* outline, and the third color is for the text shadow.
|
|
|
|
*
|
|
|
|
* @note The second two color are only for texts.
|
2014-02-27 14:16:45 -08:00
|
|
|
|
|
|
|
* Setting color emits a signal "color_class,set" with source being
|
|
|
|
* the given color class in all edje objects.
|
|
|
|
*
|
|
|
|
* @see elm_config_color_overlay_list_get()
|
|
|
|
* @see elm_config_color_overlay_unset()
|
|
|
|
* @see edje_color_class_set()
|
|
|
|
|
|
|
|
* @note unlike Evas, Edje colors are @b not pre-multiplied. That is,
|
|
|
|
* half-transparent white is 255 255 255 128.
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_color_overlay_set(const char *color_class,
|
|
|
|
int r, int g, int b, int a,
|
|
|
|
int r2, int g2, int b2, int a2,
|
|
|
|
int r3, int g3, int b3, int a3);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Unset a color overlay for a given Elementary color class.
|
|
|
|
*
|
|
|
|
* @param color_class Color class name
|
|
|
|
*
|
|
|
|
* @ingroup Colors
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* This will bring back color elements belonging to color class
|
|
|
|
* @p color_class back to their default color settings.
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_color_overlay_unset(const char *color_class);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Apply the changes made with elm_config_color_overlay_set() and
|
|
|
|
* elm_config_color_overlay_unset() on the current Elementary window.
|
|
|
|
*
|
|
|
|
* @ingroup Colors
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* This applies all color overlays set to all objects in the UI.
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_color_overlay_apply(void);
|
|
|
|
|
2019-08-29 09:15:32 -07:00
|
|
|
/**
|
|
|
|
* Get the desktop style entry enabled state
|
|
|
|
*
|
|
|
|
* @return The desktop style enabled state for entries
|
|
|
|
* @since 1.23
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_desktop_entry_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the desktop style entry enabled state
|
|
|
|
*
|
|
|
|
* @param enable The desktop style enabled state for entries
|
|
|
|
* @since 1.23
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_desktop_entry_set(Eina_Bool enable);
|
|
|
|
|
2014-02-09 02:12:12 -08:00
|
|
|
/**
|
|
|
|
* Get the magnifier enabled state for entries
|
2014-03-01 07:51:59 -08:00
|
|
|
*
|
2014-02-09 02:12:12 -08:00
|
|
|
* @return The enabled state for magnifier
|
|
|
|
* @since 1.9
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_magnifier_enable_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the magnifier enabled state for entires
|
2014-03-01 07:51:59 -08:00
|
|
|
*
|
2014-02-09 02:12:12 -08:00
|
|
|
* @param enable The magnifier config state
|
|
|
|
* @since 1.9
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_magnifier_enable_set(Eina_Bool enable);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the amount of scaling the magnifer does
|
2014-03-01 07:51:59 -08:00
|
|
|
*
|
2014-02-09 02:12:12 -08:00
|
|
|
* @return The scaling amount (1.0 is none, 2.0 is twice as big etc.)
|
|
|
|
* @since 1.9
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_magnifier_scale_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the amount of scaling the magnifier does
|
2014-03-01 07:51:59 -08:00
|
|
|
*
|
2014-02-09 02:12:12 -08:00
|
|
|
* @param scale The scaling amount for magnifiers
|
|
|
|
* @since 1.9
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_magnifier_scale_set(double scale);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the mute state of an audio channel for effects
|
2014-03-01 07:51:59 -08:00
|
|
|
*
|
2014-02-09 02:12:12 -08:00
|
|
|
* @param channel The channel to get the mute state of
|
|
|
|
* @return The mute state
|
|
|
|
* @since 1.9
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_audio_mute_get(Edje_Channel channel);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the mute state of the specified channel
|
2014-03-01 07:51:59 -08:00
|
|
|
*
|
2014-02-09 02:12:12 -08:00
|
|
|
* @param channel The channel to set the mute state of
|
|
|
|
* @param mute The mute state to set
|
|
|
|
* @since 1.9
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_audio_mute_set(Edje_Channel channel, Eina_Bool mute);
|
|
|
|
|
2015-03-04 00:47:54 -08:00
|
|
|
/**
|
|
|
|
* Get the auto focus enable flag
|
|
|
|
*
|
|
|
|
* This determines if elementary will show a focus box indicating the focused
|
|
|
|
* widget automatically if keyboard controls like "Tab" are used to switch
|
|
|
|
* focus between widgets. Mouse or touch control will hide this auto shown
|
2019-01-28 04:14:20 -08:00
|
|
|
* focus, unless focus display has been explicitly forced on for the window.
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2015-03-04 00:47:54 -08:00
|
|
|
* @return The enabled state for auto focus display
|
|
|
|
* @since 1.14
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_window_auto_focus_enable_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the auto focus enabled state
|
|
|
|
*
|
|
|
|
* This determines if elementary will show a focus box indicating the focused
|
|
|
|
* widget automatically if keyboard controls like "Tab" are used to switch
|
|
|
|
* focus between widgets. Mouse or touch control will hide this auto shown
|
2019-01-28 04:14:20 -08:00
|
|
|
* focus, unless focus display has been explicitly forced on for the window.
|
2015-04-05 18:41:24 -07:00
|
|
|
*
|
2015-03-04 00:47:54 -08:00
|
|
|
* @param enable the auto focus display enabled state
|
|
|
|
* @since 1.14
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_window_auto_focus_enable_set(Eina_Bool enable);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the auto focus animate flag
|
|
|
|
*
|
|
|
|
* If auto focus - see elm_config_window_auto_focus_enable_set() , is enabled
|
|
|
|
* then this will determine if the focus display will be animated or not.
|
|
|
|
*
|
|
|
|
* @return The enabled state for auto focus animation
|
|
|
|
* @since 1.14
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_window_auto_focus_animate_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the auto focus animation flag
|
|
|
|
*
|
|
|
|
* If auto focus - see elm_config_window_auto_focus_enable_set() , is enabled
|
|
|
|
* then this will determine if the focus display will be animated or not.
|
|
|
|
*
|
|
|
|
* @param enable the auto focus animation state
|
|
|
|
* @since 1.14
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_window_auto_focus_animate_set(Eina_Bool enable);
|
popup: add popup default scrollable flag config for other profiles.
Summary:
The default scrollable flag of popup can be different in each profiles.
So I added the scrollable configuration of popup.
@feature
Test Plan:
1. Before
1) elementary_test -to popup
2) resize window to smaller
3) Click 15th item, "popup-center-title + genlist content + 1 button"
4) Then popup will show, but its list is very long, only small part of popup could be shown.
2. After Patch
1) change "popup_scroller" value to 1 in base.src, then run elementary_test -to popup or ELM_POPUP_SCROLLABLE=1 elemantary_test -to popup
2) resize window to smaller
3) Click 15th item, "popup-center-title + genlist content + 1 button"
4) Then popup will show, popup's genlist will be in scroller, so entire popup can be shown.
Reviewers: jaehwan, id213sin, cedric, raster, singh.amitesh, SanghyeonLee, Hermet
Subscribers: Hermet, minkyu, herb, jpeg
Differential Revision: https://phab.enlightenment.org/D3856
2016-05-16 18:22:07 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the popup scrollable flag
|
|
|
|
*
|
|
|
|
* If scrollable is true, popup's contents is wrapped in a scroller container
|
|
|
|
* in order to popup shouldn't be larger than its parent.
|
|
|
|
*
|
|
|
|
* @return The enabled state for popup scroll
|
|
|
|
* @since 1.18
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_popup_scrollable_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the popup scrollable flag
|
|
|
|
*
|
|
|
|
* If scrollable is true, popup's contents is wrapped in a scroller container
|
|
|
|
* in order to popup shouldn't be larger than its parent.
|
|
|
|
*
|
2017-10-26 19:29:52 -07:00
|
|
|
* @param scrollable enable the popup scroll
|
popup: add popup default scrollable flag config for other profiles.
Summary:
The default scrollable flag of popup can be different in each profiles.
So I added the scrollable configuration of popup.
@feature
Test Plan:
1. Before
1) elementary_test -to popup
2) resize window to smaller
3) Click 15th item, "popup-center-title + genlist content + 1 button"
4) Then popup will show, but its list is very long, only small part of popup could be shown.
2. After Patch
1) change "popup_scroller" value to 1 in base.src, then run elementary_test -to popup or ELM_POPUP_SCROLLABLE=1 elemantary_test -to popup
2) resize window to smaller
3) Click 15th item, "popup-center-title + genlist content + 1 button"
4) Then popup will show, popup's genlist will be in scroller, so entire popup can be shown.
Reviewers: jaehwan, id213sin, cedric, raster, singh.amitesh, SanghyeonLee, Hermet
Subscribers: Hermet, minkyu, herb, jpeg
Differential Revision: https://phab.enlightenment.org/D3856
2016-05-16 18:22:07 -07:00
|
|
|
* @since 1.18
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_popup_scrollable_set(Eina_Bool scrollable);
|
2015-03-04 00:47:54 -08:00
|
|
|
|
2014-04-20 22:58:18 -07:00
|
|
|
/**
|
|
|
|
* @defgroup ATSPI AT-SPI2 Accessibility
|
|
|
|
* @ingroup Elementary
|
|
|
|
*
|
|
|
|
* Elementary widgets support Linux Accessibility standard. For more
|
|
|
|
* information please visit:
|
|
|
|
* http://www.linuxfoundation.org/collaborate/workgroups/accessibility/atk/at-spi/at-spi_on_d-bus
|
|
|
|
*
|
|
|
|
* @{
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Gets ATSPI mode
|
|
|
|
*
|
|
|
|
* @return the ATSPI mode
|
|
|
|
*
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* @ingroup ATSPI
|
|
|
|
*
|
|
|
|
* @see elm_config_atspi_mode_set()
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_atspi_mode_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets ATSPI mode
|
|
|
|
*
|
|
|
|
* @param is_atspi If @c EINA_TRUE, enables ATSPI2 mode
|
|
|
|
*
|
|
|
|
* @note Enables Linux Accessibility support for Elementary widgets.
|
|
|
|
*
|
|
|
|
* @since 1.10
|
|
|
|
*
|
|
|
|
* @ingroup ATSPI
|
|
|
|
*
|
|
|
|
* @see elm_config_atspi_mode_get()
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_atspi_mode_set(Eina_Bool is_atspi);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|
|
|
|
|
2015-06-25 21:54:47 -07:00
|
|
|
/**
|
|
|
|
* Set the transition duration factor
|
|
|
|
*
|
|
|
|
* This function sets the edje transition duration factor
|
|
|
|
* It will affect the duration of edje transitions
|
|
|
|
*
|
|
|
|
* @param factor The duration factor for transition in edje
|
|
|
|
*
|
|
|
|
* @note This value affect duration of transitions in edje
|
|
|
|
*
|
|
|
|
* @since 1.15
|
|
|
|
*
|
|
|
|
* @see edje_transition_duration_set() for more details
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_transition_duration_factor_set(double factor);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the duration factor of transitions
|
|
|
|
*
|
|
|
|
* @return The duration factor of transition in edje
|
|
|
|
*
|
|
|
|
* @since 1.15
|
|
|
|
*/
|
|
|
|
EAPI double elm_config_transition_duration_factor_get(void);
|
|
|
|
|
2012-03-06 01:49:24 -08:00
|
|
|
/**
|
2016-03-09 16:14:00 -08:00
|
|
|
* 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()
|
2012-03-06 01:49:24 -08:00
|
|
|
*/
|
2016-03-09 16:14:00 -08:00
|
|
|
EAPI void elm_config_web_backend_set(const char *backend);
|
2012-03-06 01:49:24 -08:00
|
|
|
|
2016-03-09 16:14:00 -08:00
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2017-10-16 12:41:26 -07:00
|
|
|
/**
|
|
|
|
* Get whether the system is offline
|
|
|
|
*
|
|
|
|
* @return True only if the system config is set as offline
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
* @see elm_config_offline_set()
|
|
|
|
*/
|
|
|
|
EAPI Eina_Bool elm_config_offline_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set whether the system is offline
|
|
|
|
*
|
|
|
|
* @param set True only if the system is offline
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
* @see elm_config_offline_get()
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_offline_set(Eina_Bool set);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get whether the system should be conserving power
|
|
|
|
*
|
|
|
|
* @return Values greater than 0 if power is being conserved; higher numbers indicate greater conservation
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
* @see elm_config_powersave_set()
|
|
|
|
*/
|
|
|
|
EAPI int elm_config_powersave_get(void);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set whether the system should be conserving power
|
|
|
|
*
|
|
|
|
* @param set Values greater than 0 if power is being conserved; higher numbers indicate greater conservation
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
* @see elm_config_powersave_set()
|
|
|
|
*/
|
|
|
|
EAPI void elm_config_powersave_set(int set);
|
|
|
|
|
2018-01-08 23:37:27 -08:00
|
|
|
/**
|
|
|
|
* Get the animation duration for container objects
|
|
|
|
*
|
|
|
|
* @return Animation duration
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
* @see elm_config_drag_anim_duration_set()
|
|
|
|
*/
|
2018-02-10 21:53:28 -08:00
|
|
|
EAPI double elm_config_drag_anim_duration_get(void);
|
2018-01-08 23:37:27 -08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the animation duration for container objects
|
|
|
|
*
|
|
|
|
* @param set Animation duration
|
|
|
|
*
|
|
|
|
* @since 1.21
|
|
|
|
* @see elm_config_drag_anim_duration_get()
|
|
|
|
*/
|
2018-02-10 21:53:28 -08:00
|
|
|
EAPI void elm_config_drag_anim_duration_set(double set);
|
2016-06-23 03:33:34 -07:00
|
|
|
|
|
|
|
/* new efl.config interface helpers in C */
|
|
|
|
|
efl: remove EFL_EO_API_SUPPORT macro
Summary:
Since we're now going to be shipping some eo classes as stable,
there is no point in keeping the eo api behind a macro, and it
should be enabled by default. Another case is beta classes, but
those are behind the EFL_BETA_API_SUPPORT guard.
This also changes includes around the place where things are
clearly broken (such as an included header needing something
from another header but that other header being guarded, notably
efl_ui_widget.h needing focus manager but focus manager being
behind beta in Elementary.h)
Reviewers: zmike, cedric, bu5hm4n, stefan_schmidt, segfaultxavi
Reviewed By: cedric, segfaultxavi
Subscribers: segfaultxavi, #reviewers, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D8322
2019-03-18 04:13:41 -07:00
|
|
|
/* FIXME these depend on stuff from Efl.h but this is included before that */
|
|
|
|
#ifdef EFL_BETA_API_SUPPORT
|
2016-06-23 03:33:34 -07:00
|
|
|
|
|
|
|
static inline Eina_Bool
|
|
|
|
efl_config_bool_set(Efl_Config *obj, const char * name, Eina_Bool val)
|
|
|
|
{
|
|
|
|
Eina_Value *v = eina_value_new(EINA_VALUE_TYPE_UCHAR);
|
|
|
|
Eina_Bool b;
|
|
|
|
eina_value_set(v, val);
|
|
|
|
b = efl_config_set(obj, name, v);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Eina_Bool
|
|
|
|
efl_config_bool_get(const Efl_Config *obj, const char * name)
|
|
|
|
{
|
|
|
|
Eina_Value *v = efl_config_get(obj, name);
|
|
|
|
Eina_Bool b = 0;
|
|
|
|
if (eina_value_type_get(v) == EINA_VALUE_TYPE_UCHAR)
|
|
|
|
eina_value_get(v, &b);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Eina_Bool
|
|
|
|
efl_config_int_set(Efl_Config *obj, const char * name, int val)
|
|
|
|
{
|
|
|
|
Eina_Value *v = eina_value_new(EINA_VALUE_TYPE_INT);
|
|
|
|
Eina_Bool b;
|
|
|
|
eina_value_set(v, val);
|
|
|
|
b = efl_config_set(obj, name, v);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline int
|
|
|
|
efl_config_int_get(const Efl_Config *obj, const char * name)
|
|
|
|
{
|
|
|
|
Eina_Value *v = efl_config_get(obj, name);
|
|
|
|
int b = 0;
|
|
|
|
if (eina_value_type_get(v) == EINA_VALUE_TYPE_INT)
|
|
|
|
eina_value_get(v, &b);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Eina_Bool
|
|
|
|
efl_config_double_set(Efl_Config *obj, const char * name, double val)
|
|
|
|
{
|
|
|
|
Eina_Value *v = eina_value_new(EINA_VALUE_TYPE_DOUBLE);
|
|
|
|
Eina_Bool b;
|
|
|
|
eina_value_set(v, val);
|
|
|
|
b = efl_config_set(obj, name, v);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline double
|
|
|
|
efl_config_double_get(const Efl_Config *obj, const char * name)
|
|
|
|
{
|
|
|
|
Eina_Value *v = efl_config_get(obj, name);
|
|
|
|
double b = 0;
|
|
|
|
if (eina_value_type_get(v) == EINA_VALUE_TYPE_DOUBLE)
|
|
|
|
eina_value_get(v, &b);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Eina_Bool
|
|
|
|
efl_config_string_set(Efl_Config *obj, const char *name, const char *val)
|
|
|
|
{
|
|
|
|
Eina_Value *v = eina_value_new(EINA_VALUE_TYPE_STRING);
|
|
|
|
Eina_Bool b;
|
|
|
|
eina_value_set(v, val);
|
|
|
|
b = efl_config_set(obj, name, v);
|
|
|
|
eina_value_free(v);
|
|
|
|
return b;
|
|
|
|
}
|
|
|
|
|
|
|
|
static inline Eina_Stringshare *
|
|
|
|
efl_config_string_get(const Efl_Config *obj, const char *name)
|
|
|
|
{
|
|
|
|
Eina_Value *v = efl_config_get(obj, name);
|
|
|
|
Eina_Stringshare *s = 0;
|
|
|
|
if (eina_value_type_get(v) == EINA_VALUE_TYPE_STRING)
|
|
|
|
{
|
|
|
|
const char *b = 0;
|
|
|
|
eina_value_get(v, &b);
|
|
|
|
s = eina_stringshare_add(b);
|
|
|
|
}
|
|
|
|
eina_value_free(v);
|
|
|
|
return s;
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
2016-03-09 16:14:00 -08:00
|
|
|
/**
|
|
|
|
* @}
|
|
|
|
*/
|