#include "Font.h"
◆ Font() [1/4]
◆ Font() [2/4]
ot::Font::Font |
( |
FontFamily | _fontFamily, |
|
|
int | _sizePx = 12, |
|
|
bool | _isBold = false, |
|
|
bool | _isItalic = false ) |
◆ Font() [3/4]
ot::Font::Font |
( |
const std::string & | _fontFamily, |
|
|
int | _sizePx = 12, |
|
|
bool | _isBold = false, |
|
|
bool | _isItalic = false ) |
◆ Font() [4/4]
ot::Font::Font |
( |
const Font & | _other | ) |
|
◆ ~Font()
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_document | The JSON document (used to get the allocator) |
_object | The JSON object to add the contents to |
◆ family()
const std::string & ot::Font::family |
( |
void | | ) |
const |
|
inline |
◆ isBold()
bool ot::Font::isBold |
( |
void | | ) |
const |
|
inline |
◆ isItalic()
bool ot::Font::isItalic |
( |
void | | ) |
const |
|
inline |
◆ operator!=()
bool ot::Font::operator!= |
( |
const Font & | _other | ) |
const |
◆ operator=()
◆ operator==()
bool ot::Font::operator== |
( |
const Font & | _other | ) |
const |
◆ setBold()
void ot::Font::setBold |
( |
bool | _isBold = true | ) |
|
|
inline |
◆ setFamily() [1/2]
void ot::Font::setFamily |
( |
const std::string & | _fontFamily | ) |
|
|
inline |
◆ setFamily() [2/2]
void ot::Font::setFamily |
( |
FontFamily | _fontFamily | ) |
|
◆ setFromJsonObject()
Will set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information |
- Exceptions
-
Will | throw an exception if the provided object is not valid (members missing or invalid types) |
Implements ot::Serializable.
◆ setItalic()
void ot::Font::setItalic |
( |
bool | _isItalic = true | ) |
|
|
inline |
◆ setSize()
void ot::Font::setSize |
( |
int | _px | ) |
|
|
inline |
◆ size()
int ot::Font::size |
( |
void | | ) |
const |
|
inline |
The documentation for this class was generated from the following files: