Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Related Pages

Theme: Methods for Accessing and Modifying Theme Data

Provides methods for accessing theme data, global theme data or per-widget theme data. More...

Functions

int ewl_theme_init (void)
 Initialize the themeing system.

int ewl_theme_widget_init (Ewl_Widget *w)
 Initialize a widgets theme information to the default.

void ewl_theme_widget_shutdown (Ewl_Widget *w)
 remove the theme information from a widget

void ewl_theme_name_set (char *name)
 Set the name of the theme to use.

char * ewl_theme_name_get (void)
 Return the name of the current theme.

char * ewl_theme_path_get (void)
 Return the path of the current theme.

Ecore_List * ewl_theme_font_path_get (void)
 retrieve the path of a widgets theme's fonts

void ewl_theme_font_path_add (char *path)
 Add a specified path to the font search path.

char * ewl_theme_image_get (Ewl_Widget *w, char *k)
 retrieve the path to an image from a widgets theme

char * ewl_theme_data_str_get (Ewl_Widget *w, char *k)
 Retrieve an string value from a widgets theme.

int ewl_theme_data_int_get (Ewl_Widget *w, char *k)
 Retrieve an integer value from a widgets theme.

void ewl_theme_data_str_set (Ewl_Widget *w, char *k, char *v)
 Store data into a widgets theme.

void ewl_theme_data_int_set (Ewl_Widget *w, char *k, int v)
 Store data into a widgets theme.

void ewl_theme_data_default_str_set (char *k, char *v)
 Set a theme key to a default value.

void ewl_theme_data_default_int_set (char *k, int v)
 Set a theme key to a default value.


Detailed Description

Provides methods for accessing theme data, global theme data or per-widget theme data.


Function Documentation

void ewl_theme_data_default_int_set char *  k,
int  v
 

Set a theme key to a default value.

Parameters:
k: the key to be set
v: the value to set for the key
Returns:
Returns no value.
Sets the data associated with key k to value v in the default theme data.

void ewl_theme_data_default_str_set char *  k,
char *  v
 

Set a theme key to a default value.

Parameters:
k: the key to be set
v: the value to set for the key
Returns:
Returns no value.
Sets the data associated with key k to value v in the default theme data.

int ewl_theme_data_int_get Ewl_Widget w,
char *  k
 

Retrieve an integer value from a widgets theme.

Parameters:
w: the widget to search
k: the key to search for
Returns:
Returns the integer associated with key k on success, 0 on failure.

void ewl_theme_data_int_set Ewl_Widget w,
char *  k,
int  v
 

Store data into a widgets theme.

Parameters:
w: the widget to change theme data
k: the key to change
v: the data to assign to the key
Returns:
Returns no value.
Changes the theme data in widget w so that key k now is associated with value v.

char* ewl_theme_data_str_get Ewl_Widget w,
char *  k
 

Retrieve an string value from a widgets theme.

Parameters:
w: the widget to search
k: the key to search for
Returns:
Returns the string associated with k on success, NULL on failure.

void ewl_theme_data_str_set Ewl_Widget w,
char *  k,
char *  v
 

Store data into a widgets theme.

Parameters:
w: the widget to change theme data
k: the key to change
v: the data to assign to the key
Returns:
Returns no value.
Changes the theme data in widget w so that key k now is associated with value v.

void ewl_theme_font_path_add char *  path  ) 
 

Add a specified path to the font search path.

Parameters:
path: the font to add to the search path
Returns:
Returns no value.
Duplicates the string pointed to by path and adds it to the list of paths that are searched for fonts.

Ecore_List* ewl_theme_font_path_get void   ) 
 

retrieve the path of a widgets theme's fonts

Returns:
Returns the font path of widget w on success, NULL on failure.

char* ewl_theme_image_get Ewl_Widget w,
char *  k
 

retrieve the path to an image from a widgets theme

Parameters:
w: the widget to search
k: the image to search for
Returns:
Returns the path of image key k on success, NULL on failure.

int ewl_theme_init void   ) 
 

Initialize the themeing system.

Returns:
Returns TRUE on success, FALSE on failure.
Initializes the data structures involved with theme handling. Involves finding the specified theme file. This is called by ewl_init, and is not necessary for the end programmer to call.

char* ewl_theme_name_get void   ) 
 

Return the name of the current theme.

Returns:
Returns a copy of the current theme name on success, NULL on failure

void ewl_theme_name_set char *  name  ) 
 

Set the name of the theme to use.

Parameters:
name: the name of the theme to use.
Returns:
Returns no value.

char* ewl_theme_path_get void   ) 
 

Return the path of the current theme.

Returns:
Returns a copy of the current theme path on success, NULL on failure

int ewl_theme_widget_init Ewl_Widget w  ) 
 

Initialize a widgets theme information to the default.

Parameters:
w: the widget to initialize theme information
Returns:
Returns TRUE on success, FALSE on failure.
Sets the widget w's theme information to the default values.

void ewl_theme_widget_shutdown Ewl_Widget w  ) 
 

remove the theme information from a widget

Parameters:
w: the widget to remove theme information
Returns:
Returns no value.
Removes and frees the theme information from the widget w.