List of all members.
Detailed Description
Skin Resource.
Parses and interprets Skin XML Definitions and builds a set of SkinParts that can then be used to draw GUI Elements.
Member Typedef Documentation
Constructor & Destructor Documentation
| Skin::Skin |
( |
const std::string & |
filePath |
) |
|
Member Function Documentation
| Uint Skin::countChildNodes |
( |
TiXmlNode * |
node, |
|
|
const std::string & |
filter = "" | |
|
) |
| | [private] |
| ControlState Skin::enumerateState |
( |
const string & |
state |
) |
[private] |
Translates a string into a ConstrolState enumeration.
- Parameters:
-
| state | A string defining a state. Case insensitive. |
- Returns:
- Returns a ControlState enumeration.
STATE_UNDEFINED if if an unrecognized string is passed in.
| const string& Skin::getSkinName |
( |
|
) |
const [inline] |
| bool Skin::getSkinName |
( |
TiXmlNode * |
node |
) |
[private] |
Searches a specified XML node for a 'name' attribute and then sets the internal Skin name.
| bool Skin::getSourceImage |
( |
TiXmlNode * |
node |
) |
[private] |
Searches a specified XML node for an 'image' attribute and then attempts to load the specified image file.
| bool Skin::hasPart |
( |
const std::string & |
partName |
) |
const |
| void Skin::load |
( |
|
) |
[private, virtual] |
Performs the necessary operations to load a Resource.
- Note:
- This is a pure virtual function and so must be overridden by all derived classes.
-
It is the responsibility of the derived class to call this function.
Implements Resource.
| TextOffsets Skin::parseCaptionTextNode |
( |
TiXmlNode * |
node |
) |
[private] |
Parses a 'captiontext' node.
| bool Skin::parseColordefNode |
( |
TiXmlNode * |
node, |
|
|
SkinPart * |
part | |
|
) |
| | [private] |
Parses a 'colordef' node.
| bool Skin::parseControlNode |
( |
TiXmlNode * |
node |
) |
[private] |
| bool Skin::parseRegionNode |
( |
TiXmlNode * |
node, |
|
|
SkinPart * |
part | |
|
) |
| | [private] |
| SkinPart * Skin::parseStateNode |
( |
TiXmlNode * |
node |
) |
[private] |
| bool Skin::readSkin |
( |
const std::string & |
path |
) |
[private] |
| ImageRegion Skin::translateRegion |
( |
const std::string & |
region |
) |
const [private] |
| const std::string Skin::translateState |
( |
ControlState |
state |
) |
const [private] |
Translates a ControlState to a human readable string.
Member Data Documentation
List of messages, error and otherwise.
List of Controls and their various associated parts.
Image containing all part graphics.
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Resources/Skin.h
- C:/Development/LoM/client/src/Resources/Skin.cpp