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;
void setTextOpacity(double &opacity)
It sets the text opacity.
void setHorizontalAlignment(HorizontalAlignment ha)
It sets the horizontal text alignment.
TextDecoration getDecoration() const
It returns the font decoration.
std::string m_strokeColor
text stroke color
const double & getLetterSpacing() const
It returns the letter spacing.
const double & getWordSpacing() const
It returns the word spacing.
std::string m_fillColor
text fill color
FontWeight
Font weight for drawing text.
const double & getTextOpacity() const
It returns the text opacity.
VerticalAlignment m_vAlign
vertical text alignment
double m_letterSpacing
letter spacing (0..1)
void setTextColor(const std::string &color)
It sets the text color.
HorizontalAlignment m_hAlign
horizontal text alignment
const std::string & getFamily() const
It returns the font family.
LineJustification
Line justification for drawing multi line text.
FontStyle
Font style for drawing text.
const std::string & getTextColor() const
It returns the text color.
void setTextStrokecolor(const std::string &color)
It sets the text stroke color.
const double & getPointSize() const
It returns the font point size.
const std::string & getTextStrokeColor() const
It returns the text stroke color.
TextDecoration m_decoration
text decoration
void setFamily(const std::string &family)
It sets the font family.
Attributes & operator=(const Attributes &rhs)
Assignment operator.
~Attributes()
Text Element destructor.
HorizontalAlignment getHorizontalAlignment() const
It returns the horizontal text alignment.
void setWeight(FontWeight weight)
It sets the font weight.
double m_fillOpacity
text fill color opacity (0..1)
void setPointSize(const double &ps)
It sets the font point size.
FontStyle getStyle() const
It returns the font style.
TextDecoration
Text decoration for drawing text.
void setLetterSpacing(const double &spacing)
It sets the letter spacing.
Attributes()
Text Attributes constructor.
HorizontalAlignment
Horizontal alignment for drawing text.
VerticalAlignment getVerticalAlignment() const
It returns the vertical text alignment.
void setLineSpacing(const double &spacing)
It sets the multi line spacing.
const double & getLineSpacing() const
It returns the multi line spacing.
std::string m_family
font family
const double & getTextStrokeOpacity() const
It returns the text stroke opacity.
FontWeight getWeight() const
It returns the font weight.
void setWordSpacing(const double &spacing)
It sets the word spacing.
LineJustification m_multiLineJustification
multi line justufucation
void setVerticalAlignment(VerticalAlignment va)
It sets the vertical text alignment.
VerticalAlignment
Vertical alignment for drawing text.
double m_strokeWidth
text stroke width (0..1)
LineJustification getLineJustification() const
It returns the multi line justification.
void setTextStrokeWidth(const double &width)
It sets the text stroke width.
void setDecoration(TextDecoration decoration)
It sets the font decoration.
void setStyle(FontStyle style)
It sets the font style.
FontStyle m_style
font style
double m_pointSize
font point size
void setTextStrokeOpacity(const double &opacity)
It sets the text stroke opacity.
double m_multiLineSpacing
multi line spacing
double m_wordSpacing
word spacing (0..1)
void setLineJustification(LineJustification just)
It sets the multi line justification.
const double & getTextStrokeWidth() const
It returns the text stroke width.
FontWeight m_weight
font weight
double m_strokeOpacity
text stroke color opacity (0..1)