50 const double pointSize,
56 m_pointSize(pointSize),
161 m_decoration = decoration;
171 m_letterSpacing = spacing;
176 return m_letterSpacing;
181 m_wordSpacing = spacing;
186 return m_wordSpacing;
201 m_fillOpacity = opacity;
206 return m_fillOpacity;
211 m_strokeColor = color;
216 return m_strokeColor;
221 m_strokeWidth = width;
226 return m_strokeWidth;
231 m_strokeOpacity = opacity;
236 return m_strokeOpacity;
261 m_multiLineJustification = just;
266 return m_multiLineJustification;
271 m_multiLineSpacing = spacing;
276 return m_multiLineSpacing;
TextDecoration
Text decoration for drawing text.
std::string m_strokeColor
text stroke color
void setTextColor(const std::string &color)
It sets the text color.
const std::string & getTextStrokeColor() const
It returns the text stroke color.
~Attributes()
Text Element destructor.
FontWeight
Font weight for drawing text.
FontWeight getWeight() const
It returns the font weight.
Attributes()
Text Attributes constructor.
FontWeight m_weight
font weight
LineJustification getLineJustification() const
It returns the multi line justification.
const double & getTextStrokeWidth() const
It returns the text stroke width.
std::string m_family
font family
const double & getPointSize() const
It returns the font point size.
void setWeight(FontWeight weight)
It sets the font weight.
double m_strokeWidth
text stroke width (0..1)
HorizontalAlignment
Horizontal alignment for drawing text.
const std::string & getTextColor() const
It returns the text color.
std::string m_fillColor
text fill color
void setFamily(const std::string &family)
It sets the font family.
FontStyle m_style
font style
const double & getLetterSpacing() const
It returns the letter spacing.
void setTextStrokeOpacity(const double &opacity)
It sets the text stroke opacity.
const double & getLineSpacing() const
It returns the multi line spacing.
const double & getTextStrokeOpacity() const
It returns the text stroke opacity.
TextDecoration getDecoration() const
It returns the font decoration.
double m_multiLineSpacing
multi line spacing
void setLineSpacing(const double &spacing)
It sets the multi line spacing.
double m_fillOpacity
text fill color opacity (0..1)
HorizontalAlignment m_hAlign
horizontal text alignment
LineJustification
Line justification for drawing multi line text.
VerticalAlignment getVerticalAlignment() const
It returns the vertical text alignment.
void setVerticalAlignment(VerticalAlignment va)
It sets the vertical text alignment.
const double & getWordSpacing() const
It returns the word spacing.
void setPointSize(const double &ps)
It sets the font point size.
const std::string & getFamily() const
It returns the font family.
double m_pointSize
font point size
VerticalAlignment m_vAlign
vertical text alignment
Attributes & operator=(const Attributes &rhs)
Assignment operator.
TextDecoration m_decoration
text decoration
double m_letterSpacing
letter spacing (0..1)
FontStyle getStyle() const
It returns the font style.
HorizontalAlignment getHorizontalAlignment() const
It returns the horizontal text alignment.
void setDecoration(TextDecoration decoration)
It sets the font decoration.
const double & getTextOpacity() const
It returns the text opacity.
void setLineJustification(LineJustification just)
It sets the multi line justification.
FontStyle
Font style for drawing text.
void setTextOpacity(double &opacity)
It sets the text opacity.
double m_wordSpacing
word spacing (0..1)
void setWordSpacing(const double &spacing)
It sets the word spacing.
void setHorizontalAlignment(HorizontalAlignment ha)
It sets the horizontal text alignment.
void setTextStrokeWidth(const double &width)
It sets the text stroke width.
double m_strokeOpacity
text stroke color opacity (0..1)
VerticalAlignment
Vertical alignment for drawing text.
LineJustification m_multiLineJustification
multi line justufucation
void setStyle(FontStyle style)
It sets the font style.
void setLetterSpacing(const double &spacing)
It sets the letter spacing.
void setTextStrokecolor(const std::string &color)
It sets the text stroke color.