#include "StyledTextStyle.h"
◆ TextSize
Enumerator |
---|
Regular | |
Header1 | |
Header2 | |
Header3 | |
◆ StyledTextStyle() [1/3]
ot::StyledTextStyle::StyledTextStyle |
( |
| ) |
|
◆ StyledTextStyle() [2/3]
ot::StyledTextStyle::StyledTextStyle |
( |
const ConstJsonObject & | _jsonObject | ) |
|
◆ StyledTextStyle() [3/3]
◆ ~StyledTextStyle()
virtual ot::StyledTextStyle::~StyledTextStyle |
( |
| ) |
|
|
virtualdefault |
◆ addToJsonObject()
Add the object contents to the provided JSON object.
- Parameters
-
_object | Json object reference to write the data to. |
_allocator | Allocator. |
Implements ot::Serializable.
◆ getBold()
bool ot::StyledTextStyle::getBold |
( |
void | | ) |
const |
|
inline |
◆ getColorReference()
◆ getItalic()
bool ot::StyledTextStyle::getItalic |
( |
void | | ) |
const |
|
inline |
◆ getLineTrough()
bool ot::StyledTextStyle::getLineTrough |
( |
void | | ) |
const |
|
inline |
◆ getTextSize()
TextSize ot::StyledTextStyle::getTextSize |
( |
void | | ) |
const |
|
inline |
◆ getUnderline()
bool ot::StyledTextStyle::getUnderline |
( |
void | | ) |
const |
|
inline |
◆ hasStyleSet()
bool ot::StyledTextStyle::hasStyleSet |
( |
void | | ) |
const |
|
inline |
Returns true if any style changes are set. If any style is set the generated text requires styling otherwise the default text editor style will be used.
◆ operator!=()
bool ot::StyledTextStyle::operator!= |
( |
const StyledTextStyle & | _other | ) |
const |
◆ operator=()
◆ operator==()
bool ot::StyledTextStyle::operator== |
( |
const StyledTextStyle & | _other | ) |
const |
◆ setBold()
void ot::StyledTextStyle::setBold |
( |
bool | _isBold | ) |
|
|
inline |
◆ setColorReference()
◆ setFromJsonObject()
Set the object contents from the provided JSON object.
- Parameters
-
_object | The JSON object containing the information. |
- Exceptions
-
May | throw an exception if the provided object is not valid (members missing or invalid types). |
Implements ot::Serializable.
◆ setItalic()
void ot::StyledTextStyle::setItalic |
( |
bool | _isItalic | ) |
|
|
inline |
◆ setLineTrough()
void ot::StyledTextStyle::setLineTrough |
( |
bool | _isLineTrough | ) |
|
|
inline |
◆ setTextSize()
void ot::StyledTextStyle::setTextSize |
( |
TextSize | _size | ) |
|
|
inline |
◆ setUnderline()
void ot::StyledTextStyle::setUnderline |
( |
bool | _isUnderline | ) |
|
|
inline |
◆ stringToTextSize()
◆ toString()
std::string ot::StyledTextStyle::toString |
( |
TextSize | _size | ) |
|
|
static |
The documentation for this class was generated from the following files: