Ewl_Theme: Methods for Accessing and Modifying Theme Data
Detailed Description
Provides methods for accessing theme data, global theme data or per-widget theme data.Tutorial
Defines | |
#define | EWL_THEME_KEY_NOMATCH ((char *)0xdeadbeef) |
Functions | |
int | ewl_theme_data_int_get (Ewl_Widget *w, const char *k) |
Retrieve an integer value from a widgets theme. | |
void | ewl_theme_data_int_set (Ewl_Widget *w, const char *k, int v) |
Store data into a widgets theme. | |
void | ewl_theme_data_reset (Ewl_Widget *w) |
Reset the theme settings for the widget w. | |
const char * | ewl_theme_data_str_get (Ewl_Widget *w, const char *k) |
Retrieve an string value from a widgets theme. | |
void | ewl_theme_data_str_set (Ewl_Widget *w, const char *k, const char *v) |
Store data into a widgets theme. | |
void | ewl_theme_font_path_add (const char *path) |
Add a specified path to the font search path. | |
Ecore_List * | ewl_theme_font_path_get (void) |
retrieve the path of a widgets theme's fonts | |
char * | ewl_theme_image_get (Ewl_Widget *w, const char *k) |
retrieve the path to an image from a widgets theme | |
int | ewl_theme_init (void) |
const char * | ewl_theme_path_get (void) |
Return the path of the current theme. | |
void | ewl_theme_shutdown (void) |
int | ewl_theme_theme_set (const char *theme) |
int | ewl_theme_widget_init (Ewl_Widget *w) |
void | ewl_theme_widget_shutdown (Ewl_Widget *w) |
Define Documentation
#define EWL_THEME_KEY_NOMATCH ((char *)0xdeadbeef) |
Function Documentation
int ewl_theme_data_int_get | ( | Ewl_Widget * | w, | |
const 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, | |
const 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.
void ewl_theme_data_reset | ( | Ewl_Widget * | w | ) |
Reset the theme settings for the widget w.
- Parameters:
-
w,: the widget to reset theme settings
- Returns:
- Returns no value.
const char* ewl_theme_data_str_get | ( | Ewl_Widget * | w, | |
const 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, | |
const char * | k, | |||
const 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.
void ewl_theme_font_path_add | ( | const 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.
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, | |
const 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 | ) |
const char* ewl_theme_path_get | ( | void | ) |
Return the path of the current theme.
- Returns:
- Returns the current theme path on success, NULL on failure
void ewl_theme_shutdown | ( | void | ) |
int ewl_theme_theme_set | ( | const char * | theme | ) |
int ewl_theme_widget_init | ( | Ewl_Widget * | w | ) |
void ewl_theme_widget_shutdown | ( | Ewl_Widget * | w | ) |