Ecore Config Defaults

Functions that are used to set the default values of properties. More...

Functions

EAPI int ecore_config_default (const char *key, const char *val, float lo, float hi, float step)
 Sets the indicated property if it has not already been set or loaded.
EAPI int ecore_config_boolean_default (const char *key, int val)
 Sets the indicated property to the given boolean if the property has not yet been set.
EAPI int ecore_config_int_default (const char *key, int val)
 Sets the indicated property to the given integer if the property has not yet been set.
EAPI int ecore_config_int_default_bound (const char *key, int val, int low, int high, int step)
 Sets the indicated property to the given integer if the property has not yet been set.
EAPI int ecore_config_string_default (const char *key, const char *val)
 Sets the indicated property to the given string if the property has not yet been set.
EAPI int ecore_config_float_default (const char *key, float val)
 Sets the indicated property to the given float if the property has not yet been set.
EAPI int ecore_config_float_default_bound (const char *key, float val, float low, float high, float step)
 Sets the indicated property to the given float if the property has not yet been set.
EAPI int ecore_config_argb_default (const char *key, int a, int r, int g, int b)
 Sets the indicated property to a color value if the property has not yet been set.
EAPI int ecore_config_argbint_default (const char *key, long argb)
 Sets the indicated property to a color value if the property has not yet been set.
EAPI int ecore_config_argbstr_default (const char *key, const char *val)
 Sets the indicated property to a color value if the property has not yet been set.
EAPI int ecore_config_theme_default (const char *key, const char *val)
 Sets the indicated property to a theme name if the property has not yet been set.

Detailed Description

Functions that are used to set the default values of properties.


Function Documentation

EAPI int ecore_config_argb_default ( const char *  key,
int  a,
int  r,
int  g,
int  b 
)

Sets the indicated property to a color value if the property has not yet been set.

Parameters:
keyThe property key.
ainteger 0..255
rinteger 0..255
ginteger 0..255
binteger 0..255
Returns:
ECORE_CONFIG_ERR_SUCC if there are no problems.

References ECORE_CONFIG_RGB.

EAPI int ecore_config_argbint_default ( const char *  key,
long  argb 
)

Sets the indicated property to a color value if the property has not yet been set.

Parameters:
keyThe property key.
argbARGB data as long
Returns:
ECORE_CONFIG_ERR_SUCC if there are no problems.

References ECORE_CONFIG_RGB.

EAPI int ecore_config_argbstr_default ( const char *  key,
const char *  val 
)

Sets the indicated property to a color value if the property has not yet been set.

Parameters:
keyThe property key.
valColor value in ARGB format.
Returns:
ECORE_CONFIG_ERR_SUCC if there are no problems.

References ECORE_CONFIG_RGB.

EAPI int ecore_config_boolean_default ( const char *  key,
int  val 
)

Sets the indicated property to the given boolean if the property has not yet been set.

Parameters:
keyThe property key.
valBoolean Integer to set the value to.
Returns:
ECORE_CONFIG_ERR_SUCC if there are no problems.

References ECORE_CONFIG_BLN.

EAPI int ecore_config_default ( const char *  key,
const char *  val,
float  lo,
float  hi,
float  step 
)

Sets the indicated property if it has not already been set or loaded.

Parameters:
keyThe property key.
valDefault value of the key.
loLowest valid value for the key.
hiHighest valid value for the key.
stepUsed by integer and float values.
Returns:
ECORE_CONFIG_ERR_SUCC if there are no errors.
Note:
The lo, hi and step parameters are only used when storing integer and float properties.

References ECORE_CONFIG_FLT, ecore_config_get(), and ECORE_CONFIG_INT.

EAPI int ecore_config_float_default ( const char *  key,
float  val 
)

Sets the indicated property to the given float if the property has not yet been set.

Parameters:
keyThe property key.
valFloat to set the property to.
Returns:
ECORE_CONFIG_ERR_SUCC if there were no problems.

References ECORE_CONFIG_FLT.

EAPI int ecore_config_float_default_bound ( const char *  key,
float  val,
float  low,
float  high,
float  step 
)

Sets the indicated property to the given float if the property has not yet been set.

The bounds and step values are set regardless.

Parameters:
keyThe property key.
valFloat to set the property to.
lowLowest valid integer value for the property.
highHighest valid float value for the property.
stepIncrement value for the property.
Returns:
ECORE_CONFIG_ERR_SUCC if there were no problems.

References ECORE_CONFIG_FLT, and ecore_config_get().

EAPI int ecore_config_int_default ( const char *  key,
int  val 
)

Sets the indicated property to the given integer if the property has not yet been set.

Parameters:
keyThe property key.
valInteger to set the value to.
Returns:
ECORE_CONFIG_ERR_SUCC if there are no problems.

References ECORE_CONFIG_INT.

EAPI int ecore_config_int_default_bound ( const char *  key,
int  val,
int  low,
int  high,
int  step 
)

Sets the indicated property to the given integer if the property has not yet been set.

The bounds and step values are set regardless.

Parameters:
keyThe property key.
valInteger to set the property to.
lowLowest valid integer value for the property.
highHighest valid integer value for the property.
stepIncrement value for the property.
Returns:
ECORE_CONFIG_ERR_SUCC if there were no problems.

References ecore_config_get(), and ECORE_CONFIG_INT.

EAPI int ecore_config_string_default ( const char *  key,
const char *  val 
)

Sets the indicated property to the given string if the property has not yet been set.

Parameters:
keyThe property key.
valString to set the property to.
Returns:
ECORE_CONFIG_ERR_SUCC if there were no problems.

References ECORE_CONFIG_STR.

Referenced by ecore_config_init(), and ecore_config_theme_search_path_get().

EAPI int ecore_config_theme_default ( const char *  key,
const char *  val 
)

Sets the indicated property to a theme name if the property has not yet been set.

Parameters:
keyThe property key.
valString giving the name of the theme.
Returns:
ECORE_CONFIG_ERR_SUCC if the property is set successfully.

References ECORE_CONFIG_THM.