Public Member Functions | Private Member Functions | Private Attributes

SkinManager Class Reference

Scans Skins folder. More...

#include <SkinManager.h>

List of all members.

Public Member Functions

 SkinManager ()
 ~SkinManager ()
SkingetSkin (const string &name)

Private Member Functions

int scanSkins (const string &searchPath)
void load ()
void parse ()

Private Attributes

std::map< string, Skin * > mSkinList

Detailed Description

Scans Skins folder.

Scans for skin directories and stores valid directories to a list. Manages Skin resources.


Constructor & Destructor Documentation

SkinManager::SkinManager (  ) 
SkinManager::~SkinManager (  ) 

Member Function Documentation

Skin * SkinManager::getSkin ( const string &  name  ) 

Gets a skin by name from the available skins.

Parameters:
name Name of the Skin to retrieve.
Returns:
A pointer to a Skin Resource if the Skin was found. Otherwise it returns the first available Skin. If there are no available skins, NULL will be returned.
Warning:
The pointer returned is owned by the SkinManager and should not be deleted by the user.
void SkinManager::load (  )  [private]
void SkinManager::parse (  )  [private]
int SkinManager::scanSkins ( const string &  searchPath  )  [private]

Scans a search path and adds skin definitions to the list of available skins.


Member Data Documentation

std::map<string, Skin*> SkinManager::mSkinList [private]

List of fonts found in the specified fonts directory.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines