AnimatLab
2
Test
|
Standard font. More...
#include <StdFont.h>
Public Member Functions | |
CStdFont () | |
Default constructor. More... | |
virtual | ~CStdFont () |
Destructor. More... | |
virtual void | Load (CStdXml &oXml, std::string strParamName, bool bThrowError=false) |
Loads the font. More... | |
virtual void | Save (CStdXml &oXml, std::string strParamName) |
Saves the font. More... | |
Public Attributes | |
bool | m_bBold |
true for bold font. | |
bool | m_bItalic |
true for italic font. | |
bool | m_bStrikethrough |
true for Strikethrough font. | |
bool | m_bUnderline |
true for Underline font. | |
float | m_fltSize |
Size of the font. | |
float | m_fltWeight |
The weight of the font. | |
std::string | m_strName |
Name of the font. | |
StdUtils::CStdFont::CStdFont | ( | ) |
Default constructor.
Definition at line 17 of file StdFont.cpp.
References m_bBold, m_bItalic, m_bStrikethrough, m_bUnderline, m_fltSize, m_fltWeight, and m_strName.
|
virtual |
|
virtual |
Loads the font.
[in,out] | oXml | The xml to load. |
strParamName | Name of the font xml parameter. | |
bThrowError | true to throw error if there is a problem. |
Definition at line 49 of file StdFont.cpp.
References StdUtils::CStdXml::FindChildElement(), StdUtils::CStdXml::GetChildAttribBool(), StdUtils::CStdXml::GetChildAttribFloat(), StdUtils::CStdXml::GetChildAttribString(), m_bBold, m_bItalic, m_bStrikethrough, m_bUnderline, m_fltSize, m_fltWeight, m_strName, and StdUtils::Std_InValidRange().
|
virtual |
Saves the font.
[in,out] | oXml | The xml to save. |
strParamName | Name of the font xml parameter. |
Definition at line 76 of file StdFont.cpp.
References StdUtils::CStdXml::AddChildElement(), m_bBold, m_bItalic, m_bStrikethrough, m_bUnderline, m_fltSize, m_fltWeight, m_strName, and StdUtils::CStdXml::SetChildAttrib().