Font. More...
#include <eVision/Easy/EFont.h>
Public Member Functions | |
| EFont () | |
| Constructs a EFont. | |
| EFont (const std::string &fontFamily, int32_t pointSize, eVision::EFontStyle style) | |
| Constructs a EFont. | |
| EFont (const std::string &fontFamily, int32_t pointSize) | |
| Constructs a EFont. | |
| EFont (const eVision::EFont &other) | |
| Constructs a EFont. | |
| virtual | ~EFont () throw () |
| eVision::EFont & | operator= (const eVision::EFont &other) |
| Assignment operator. | |
| bool | operator== (const eVision::EFont &other) const |
| Equality operator. | |
| bool | operator!= (const eVision::EFont &other) const |
| Inequality operator. | |
| bool | IsValid () const |
| Whether the font is valid (Size != 0 and Family defined). | |
| std::string | GetFamily () const |
| Font family name. | |
| void | SetFamily (const std::string &family) |
| Font family name. | |
| int32_t | GetSize () const |
| Size of the font. | |
| void | SetSize (int32_t size) |
| Size of the font. | |
| eVision::EFontStyle | GetStyle () const |
| Font style. | |
| void | SetStyle (eVision::EFontStyle style) |
| Font style. | |
| void | Serialize (eVision::ESerializer *serializer) |
| Serializes the EFont. | |
| void | Load (const std::string &path) |
| Loads the EFont. The given ESerializer must have been created for reading. | |
| void | Load (eVision::ESerializer *serializer) |
| Loads the EFont. The given ESerializer must have been created for reading. | |
| void | Save (const std::string &path) |
| Saves the EFont. The given ESerializer must have been created for writing. | |
| void | Save (eVision::ESerializer *serializer) |
| Saves the EFont. The given ESerializer must have been created for writing. | |
| EFont (CppWrapperInternal::InternalConstructor) | |
Public Attributes | |
| CppWrapperInternal::WrappedClass | wrappedClass_ |
Font.
License(s): None
| eVision::EFont::EFont | ( | ) |
Constructs a EFont.
| eVision::EFont::EFont | ( | const std::string & | fontFamily, |
| int32_t | pointSize, | ||
| eVision::EFontStyle | style ) |
Constructs a EFont.
| fontFamily | Font family |
| pointSize | Font size |
| style | Font style |
| eVision::EFont::EFont | ( | const std::string & | fontFamily, |
| int32_t | pointSize ) |
Constructs a EFont.
| fontFamily | Font family |
| pointSize | Font size |
| eVision::EFont::EFont | ( | const eVision::EFont & | other | ) |
|
virtual | ||||||||||||
| eVision::EFont::EFont | ( | CppWrapperInternal::InternalConstructor | ) |
| std::string eVision::EFont::GetFamily | ( | ) | const |
Font family name.
| int32_t eVision::EFont::GetSize | ( | ) | const |
Size of the font.
| eVision::EFontStyle eVision::EFont::GetStyle | ( | ) | const |
Font style.
| bool eVision::EFont::IsValid | ( | ) | const |
Whether the font is valid (Size != 0 and Family defined).
| void eVision::EFont::Load | ( | const std::string & | path | ) |
Loads the EFont. The given ESerializer must have been created for reading.
| path | The file path. |
| void eVision::EFont::Load | ( | eVision::ESerializer * | serializer | ) |
Loads the EFont. The given ESerializer must have been created for reading.
| serializer | The serializer. |
| bool eVision::EFont::operator!= | ( | const eVision::EFont & | other | ) | const |
Inequality operator.
| other | Other font to compare with. |
| eVision::EFont & eVision::EFont::operator= | ( | const eVision::EFont & | other | ) |
Assignment operator.
| other | The other EFont that will be copied into this one. |
| bool eVision::EFont::operator== | ( | const eVision::EFont & | other | ) | const |
Equality operator.
| other | Other font to compare with. |
| void eVision::EFont::Save | ( | const std::string & | path | ) |
Saves the EFont. The given ESerializer must have been created for writing.
| path | The file path. |
| void eVision::EFont::Save | ( | eVision::ESerializer * | serializer | ) |
Saves the EFont. The given ESerializer must have been created for writing.
| serializer | The ESerializer object that is written to. |
| void eVision::EFont::Serialize | ( | eVision::ESerializer * | serializer | ) |
Serializes the EFont.
| serializer | Serializer |
Use EFont::Save or EFont::Load instead.
Deprecated in version 24.10. Scheduled to be removed in version 27.6.
| void eVision::EFont::SetFamily | ( | const std::string & | family | ) |
Font family name.
| family | The font family. |
| void eVision::EFont::SetSize | ( | int32_t | size | ) |
Size of the font.
| size | The size. |
| void eVision::EFont::SetStyle | ( | eVision::EFontStyle | style | ) |
Font style.
| style | The font style. |
| CppWrapperInternal::WrappedClass eVision::EFont::wrappedClass_ |