This class stores common data for determining the look of a Character. More...
#include <charactertraits.h>
Collaboration diagram for Mezzanine::UI::CharacterTraits:Public Member Functions | |
| CharacterTraits () | |
| Blank Constructor. | |
| CharacterTraits (FontData *Font, const ColourValue &Character) | |
| Descriptive Constructor. More... | |
| virtual | ~CharacterTraits () |
| Class Destructor. | |
| bool | operator!= (const CharacterTraits &Other) const |
| Inequality comparison operator. More... | |
| CharacterTraits & | operator= (const CharacterTraits &Other) |
| Assignment operator. More... | |
| bool | operator== (const CharacterTraits &Other) const |
| Equality comparison operator. More... | |
| void | ProtoDeSerialize (const XML::Node &SelfRoot) |
| Take the data stored in an XML Node and overwrite this object with it. More... | |
| void | ProtoSerialize (XML::Node &ParentNode) const |
| Convert this class to an XML::Node ready for serialization. More... | |
Static Public Member Functions | |
| static String | GetSerializableName () |
| Get the name of the the XML tag this class will leave behind as its instances are serialized. More... | |
Public Attributes | |
| ColourValue | CharColour |
| The colour to render this Character as. | |
| FontData * | CharFont |
| The font this Character belongs to. | |
This class stores common data for determining the look of a Character.
Definition at line 65 of file charactertraits.h.
| Mezzanine::UI::CharacterTraits::CharacterTraits | ( | FontData * | Font, |
| const ColourValue & | Character | ||
| ) |
Descriptive Constructor.
| Font | A pointer to the font to be used. |
| Character | The colour to be given to the characters altered by this class. |
Definition at line 59 of file charactertraits.cpp.
|
static |
Get the name of the the XML tag this class will leave behind as its instances are serialized.
Definition at line 141 of file charactertraits.cpp.
| bool Mezzanine::UI::CharacterTraits::operator!= | ( | const CharacterTraits & | Other) | const |
Inequality comparison operator.
| Other | The other CharacterTraits to compare with. |
Definition at line 82 of file charactertraits.cpp.
| CharacterTraits & Mezzanine::UI::CharacterTraits::operator= | ( | const CharacterTraits & | Other) |
Assignment operator.
| Other | The other CharacterTraits to copy from. |
Definition at line 70 of file charactertraits.cpp.
| bool Mezzanine::UI::CharacterTraits::operator== | ( | const CharacterTraits & | Other) | const |
Equality comparison operator.
| Other | The other CharacterTraits to compare with. |
Definition at line 76 of file charactertraits.cpp.
| void Mezzanine::UI::CharacterTraits::ProtoDeSerialize | ( | const XML::Node & | SelfRoot) |
Take the data stored in an XML Node and overwrite this object with it.
| SelfRoot | An XML::Node containing the data to populate this class with. |
Definition at line 107 of file charactertraits.cpp.
| void Mezzanine::UI::CharacterTraits::ProtoSerialize | ( | XML::Node & | ParentNode) | const |
Convert this class to an XML::Node ready for serialization.
| ParentNode | The point in the XML hierarchy that this renderable should be appended to. |
Definition at line 91 of file charactertraits.cpp.
1.8.4