Theming
[UI Utilities]


Defines

#define ALP_STATUS_THEMING_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00010000)
#define ALP_STATUS_THEMING_INVALID_BACKGROUND   ((alp_status_t)ALP_CLASS_THEMING | 0x00040000)
#define ALP_STATUS_THEMING_INVALID_PALETTE   ((alp_status_t)ALP_CLASS_THEMING | 0x00030000)
#define ALP_STATUS_THEMING_INVALID_THEME   ((alp_status_t)ALP_CLASS_THEMING | 0x00020000)
#define ALP_STATUS_THEMING_MULTIPLE_INIT_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00070000)
#define ALP_STATUS_THEMING_PALETTE_PROPERTY_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00060000)
#define ALP_STATUS_THEMING_SETTINGS_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00050000)

Functions

void alp_disable_theming ()
const gchar * alp_theme_get_current_background_filename ()
 Returns the filename of the current theme background image.
alp_status_t alp_theme_get_current_palette_color (const gchar *propName, GdkColor *colorVal)
 Request a color property defined in the theme's palette.
alp_status_t alp_theme_get_current_palette_property (const gchar *propName, GString *stringVal)
 Request a string property defined in the theme's palette.


Define Documentation

#define ALP_STATUS_THEMING_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00010000)
 

#define ALP_STATUS_THEMING_INVALID_BACKGROUND   ((alp_status_t)ALP_CLASS_THEMING | 0x00040000)
 

#define ALP_STATUS_THEMING_INVALID_PALETTE   ((alp_status_t)ALP_CLASS_THEMING | 0x00030000)
 

#define ALP_STATUS_THEMING_INVALID_THEME   ((alp_status_t)ALP_CLASS_THEMING | 0x00020000)
 

#define ALP_STATUS_THEMING_MULTIPLE_INIT_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00070000)
 

#define ALP_STATUS_THEMING_PALETTE_PROPERTY_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00060000)
 

#define ALP_STATUS_THEMING_SETTINGS_ERROR   ((alp_status_t)ALP_CLASS_THEMING | 0x00050000)
 


Function Documentation

void alp_disable_theming  ) 
 

Disables ALP theming for app

const gchar* alp_theme_get_current_background_filename  ) 
 

Returns the filename of the current theme background image.

Returns:
A pointer to the filename associated with the current AlpThemeBackground object or NULL if an error occurs.

alp_status_t alp_theme_get_current_palette_color const gchar *  propName,
GdkColor *  colorVal
 

Request a color property defined in the theme's palette.

Note:
In general, the returned value should not be cached, so that if the theme or palette changes, the correct values are used.

Requires the calling process to have called alp_theme_init(), so this only works for ALP native applications or for other privileged applications that have permission to invoke alp_theme_init().

Parameters:
[in] propName A string containing the name of the property from the palette
[in] color A pointer to a GdkColor where the color value will be returned
Returns:
ALP_STATUS_OK if property exists and color was set. ALP_STATUS_THEMING_PALETTE_PROPERTY_ERROR, otherwise

alp_status_t alp_theme_get_current_palette_property const gchar *  propName,
GString *  stringVal
 

Request a string property defined in the theme's palette.

Note:
In general, the returned value should not be cached, so that if the theme or palette changes, the correct values are used.

Requires the calling process to have called alp_theme_init(), so this only works for ALP native applications or for other privileged applications that have permission to invoke alp_theme_init().

Parameters:
propName A string containing the name of the property from the palette
string A pointer to a GString where the property value will be returned. The caller must have allocated the GString prior to the call and is responsible for freeing it when finished.
Returns:
ALP_STATUS_OK if property exists and color was set ALP_STATUS_THEMING_PALETTE_PROPERTY_ERROR, otherwise


Generated on Wed Jul 30 07:06:44 2008 by Doxygen 1.4.6 for ALP SDK + Hiker Documentation

Copyright © 1999-2008 ACCESS CO., LTD. All rights reserved.