Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

MUISkin Class Reference

Generic skin management interface. More...

#include <MUISkin.h>

List of all members.

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 MColorSchemeGetColorScheme ()=0
 Returns the pointer to MColorScheme interface that represents current color scheme. Returned pointer should not be explicitly deleted by the application.

virtual MFontGetFont (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 MImageGetImage (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

MUISkinGetCurrentSkin ()
 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).


Detailed Description

Generic skin management interface.

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:


Member Enumeration Documentation

enum MUISkin::EFontType
 

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.

Enumeration values:
KButtonFont  Font to draw normal buttons
KCheckBoxFont  Font to draw check boxes
KRadioButtonFont  Font to draw radio buttons
KTitleFont  Font to draw labels and inputs
KBigFont  Font to use in message boxes


Member Function Documentation

MUISkin* MUISkin::GetCurrentSkin  )  [static]
 

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

virtual MImage* MUISkin::GetImage EImageType  aImageType  )  [pure virtual]
 

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ş

void MUISkin::SetCurrentSkin MUISkin aSkin  )  [static]
 

Deletes current skin and replaces it with a new given one.

Parameters:
aSkin Pointer to new MUISkin interface. If NULL the default skin is re-initialised

void MUISkin::SetDefaultSkinDirectory const char *  aDirectory  )  [static]
 

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:

  • /mnt/sdcard/skin on real GO device
  • ./skin on FLTK emulation

Parameters:
aDirectory Path to an existing directory without /skin/ suffix.


The documentation for this class was generated from the following file:
Generated on Fri Jul 15 16:46:44 2005 for TomTom GO User Interface library by doxygen 1.3.5