Etk
Main Page Object Hierarchy Data Structures Related Pages
Etk

Config system of Etk


Detailed Description

The config system saves and loads Etk's internal configuration (theme, font, styles, etc).


Functions

Etk_Bool etk_config_init (void)
 Initializes the config system.
void etk_config_shutdown (void)
 Shutdowns the config system.
Etk_Bool etk_config_load (void)
 Loads Etk's config from disk.
Etk_Bool etk_config_save (void)
 Saves Etk's config to disk.
const char * etk_config_wm_theme_get (void)
 Get Etk's current wm theme.
void etk_config_wm_theme_set (const char *wm_theme)
 Sets Etk's wm theme (will not be applied on the fly).
const char * etk_config_widget_theme_get (void)
 Get Etk's current widget theme.
void etk_config_widget_theme_set (const char *widget_theme)
 Sets Etk's widget theme (will not be applied on the fly).
const char * etk_config_font_get (void)
 Get Etk's current font.
void etk_config_font_set (const char *font)
 Sets Etk's font (will not be applied on the fly).
const char * etk_config_engine_get (void)
 Get Etk's current engine.
void etk_config_engine_set (const char *engine)
 Sets Etk's engine (will not be applied on the fly).


Function Documentation

Etk_Bool etk_config_init ( void   ) 

Initializes the config system.

Returns:
Returns true if initialization was successful, false otherwise

References ETK_WARNING.

Referenced by etk_init_full().

void etk_config_shutdown ( void   ) 

Shutdowns the config system.

Referenced by etk_shutdown().

Etk_Bool etk_config_load ( void   ) 

Loads Etk's config from disk.

Returns:
Returns ETK_TRUE on a successful load, ETK_FALSE otherwise.

References ETK_WARNING.

Referenced by etk_init_full().

Etk_Bool etk_config_save ( void   ) 

Saves Etk's config to disk.

Returns:
Returns ETK_TRUE on a successful save, ETK_FALSE otherwise.

References ETK_WARNING.

const char * etk_config_wm_theme_get ( void   ) 

Get Etk's current wm theme.

Returns:
Returns the current wm theme used by Etk

void etk_config_wm_theme_set ( const char *  wm_theme  ) 

Sets Etk's wm theme (will not be applied on the fly).

Parameters:
theme The wm theme file to use

const char * etk_config_widget_theme_get ( void   ) 

Get Etk's current widget theme.

Returns:
Returns the current widget theme used by Etk

void etk_config_widget_theme_set ( const char *  widget_theme  ) 

Sets Etk's widget theme (will not be applied on the fly).

Parameters:
theme The widget theme file to use

const char * etk_config_font_get ( void   ) 

Get Etk's current font.

Returns:
Returns the current font used by Etk

void etk_config_font_set ( const char *  font  ) 

Sets Etk's font (will not be applied on the fly).

Parameters:
font The font to use

const char * etk_config_engine_get ( void   ) 

Get Etk's current engine.

Returns:
Returns the current engine used by Etk

void etk_config_engine_set ( const char *  engine  ) 

Sets Etk's engine (will not be applied on the fly).

Parameters:
engine The engine to use