#include <MUISkin.h>
Public Types | |
enum | EFontType { KButtonFont, KCheckBoxFont, KRadioButtonFont, KTitleFont, KBigFont } |
Font types definitions. More... | |
enum | EImageType { KDesktopBackground = 0, KCheckOn, KCheckOff, KCheckOnDisabled, KCheckOffDisabled, KRadioOn, KRadioOff, KRadioOnDisabled, KRadioOffDisabled, KSliderHorizontalEnabled, KSliderHorizontalDisabled, KSliderVerticalEnabled, KSliderVerticalDisabled, KBlueLabyrinth, KRedLabyrinth, KGreenLabyrinth } |
Image types definition. | |
Public Member Functions | |
virtual MColorScheme * | GetColorScheme ()=0 |
Returns the pointer to MColorScheme interface that represents current color scheme. Returned pointer should not be explicitly deleted by the application. | |
virtual MFont * | GetFont (EFontType aFontType)=0 |
Returns the pointer to MFont interface that represents font with given type. Returned pointer should not be explicitly deleted by the application. | |
virtual MImage * | GetImage (EImageType aImageType)=0 |
Returns the pointer to MImage interface that represents the image with given type. | |
virtual void | SetColorSchemeType (MColorScheme::EDefaultColorScheme aType)=0 |
Sets the type of current color scheme After this call all the controls will redraw themselves using new color cheme. However, the screen is not redrawn automatically. | |
virtual MColorScheme::EDefaultColorScheme | GetColorSchemeType ()=0 |
Returns the type of currently selected color scheme. | |
Static Public Member Functions | |
MUISkin * | GetCurrentSkin () |
Returns the pointer to MUISkin interface that represents current skin. Returned pointer should not be explicitly deleted by the application. | |
void | SetCurrentSkin (MUISkin *aSkin) |
Deletes current skin and replaces it with a new given one. | |
void | SetDefaultSkinDirectory (const char *aDirectory) |
const char * | GetDefaultSkinDirectory () |
Returns the current default skin directory (without last /skin/ subdirectory). |
The skin is a set of parameters that determine the look and feel of the application. The application could use different skins to change its appearance on the fly. The skin is used by all widgets by default. However, there is a possibility to change the font, color scheme for every widget individually or for a given CUIScreen
For more information about default skin directory refer to SetDefaultSkinDirectory()
Default skin behaves in following way:
|
Font types definitions. Those font types are used by corresponding controls by default. However, there is a possibility to assign a different font type or event font to every MUIWidget. |
|
Returns the pointer to MUISkin interface that represents current skin. Returned pointer should not be explicitly deleted by the application. Application should not permanently store the returned pointer because it could became invalid after the change of skin directory or new color scheme setup |
|
Returns the pointer to MImage interface that represents the image with given type. If aImageType parameter equals KBlueLabyrinth, KRedLabyrinth or KGreenLabyrinth, application should delete returned pointer. Otherwise êeturned pointer should not be explicitly deleted by the applicationş |
|
Deletes current skin and replaces it with a new given one.
|
|
Sets the directory for default skin Default skin stores all its data in separate .bmp, .txt and .ttf files. By default, default skin reads all its data from following locations:
|