16#pragma warning(disable:4251)
23 Font(
FontFamily _fontFamily,
int _sizePx = 12,
bool _isBold =
false,
bool _isItalic =
false);
24 Font(
const std::string& _fontFamily,
int _sizePx = 12,
bool _isBold =
false,
bool _isItalic =
false);
28 Font& operator = (
const Font& _other);
30 bool operator != (
const Font& _other)
const;
40 virtual void setFromJsonObject(
const ConstJsonObject& _object)
override;
42 void setFamily(
const std::string& _fontFamily) { m_family = _fontFamily; };
44 const std::string&
family(
void)
const {
return m_family; };
46 void setSize(
int _px) { m_sizePx = _px; };
47 int size(
void)
const {
return m_sizePx; };
49 void setBold(
bool _isBold =
true) { m_isBold = _isBold; };
50 bool isBold(
void)
const {
return m_isBold; };
52 void setItalic(
bool _isItalic =
true) { m_isItalic = _isItalic; };
53 bool isItalic(
void)
const {
return m_isItalic; };
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
void setBold(bool _isBold=true)
Definition Font.h:49
bool isBold(void) const
Definition Font.h:50
void setItalic(bool _isItalic=true)
Definition Font.h:52
void setFamily(const std::string &_fontFamily)
Definition Font.h:42
void setSize(int _px)
Definition Font.h:46
const std::string & family(void) const
Definition Font.h:44
bool isItalic(void) const
Definition Font.h:53
int size(void) const
Definition Font.h:47
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
FontFamily
Generally available font families.
Definition GuiTypes.h:42
rapidjson::Value JsonValue
Writable JSON value.
Definition JSON.h:27
rapidjson::GenericObject< true, rapidjson::GenericValue< rapidjson::UTF8<>, rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > > > ConstJsonObject
Read only JSON Object.
Definition JSON.h:35
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30