24 static std::string
toString(TextSize _size);
25 static TextSize stringToTextSize(
const std::string& _size);
49 void setBold(
bool _isBold) { m_isBold = _isBold; };
50 bool getBold(
void)
const {
return m_isBold; };
52 void setItalic(
bool _isItalic) { m_isItalic = _isItalic; };
55 void setUnderline(
bool _isUnderline) { m_isUnderline = _isUnderline; };
58 void setLineTrough(
bool _isLineTrough) { m_isLineTrough = _isLineTrough; };
66 bool hasStyleSet(
void)
const {
return m_colorReference != StyledText::ColorReference::Default || m_isBold || m_isItalic || m_isUnderline || m_isLineTrough || m_size != TextSize::Regular; };
bool operator==(const FaceSelection &left, const FaceSelection &right)
Definition Model.cpp:55
#define OT_GUI_API_EXPORT
Definition OTGuiAPIExport.h:9
The Serializable class is the default interface of serializable objects.
Definition Serializable.h:17
ColorReference
Controls color style references.
Definition StyledText.h:19
Definition StyledTextStyle.h:15
void setItalic(bool _isItalic)
Definition StyledTextStyle.h:52
void setLineTrough(bool _isLineTrough)
Definition StyledTextStyle.h:58
bool getLineTrough(void) const
Definition StyledTextStyle.h:59
void setColorReference(StyledText::ColorReference _colorReference)
Definition StyledTextStyle.h:46
bool getItalic(void) const
Definition StyledTextStyle.h:53
TextSize getTextSize(void) const
Definition StyledTextStyle.h:62
void setUnderline(bool _isUnderline)
Definition StyledTextStyle.h:55
TextSize
Definition StyledTextStyle.h:17
virtual ~StyledTextStyle()=default
void setTextSize(TextSize _size)
Definition StyledTextStyle.h:61
StyledTextStyle(const StyledTextStyle &)=default
bool getUnderline(void) const
Definition StyledTextStyle.h:56
void setBold(bool _isBold)
Definition StyledTextStyle.h:49
bool hasStyleSet(void) const
Returns true if any style changes are set. If any style is set the generated text requires styling ot...
Definition StyledTextStyle.h:66
StyledText::ColorReference getColorReference(void) const
Definition StyledTextStyle.h:47
bool getBold(void) const
Definition StyledTextStyle.h:50
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
OT_GUI_API_EXPORT std::string toString(ColorStyleName _colorStyleName)
Definition ColorStyleTypes.cpp:10
rapidjson::MemoryPoolAllocator< rapidjson::CrtAllocator > JsonAllocator
Allocator used for writing to JSON values.
Definition JSON.h:30