#include <Attributes.h>
Public Member Functions | |
| Attributes () | |
| Text Attributes constructor.  More... | |
| Attributes (const std::string &family, const double pointSize=10.0, FontStyle style=NormalStyle, FontWeight weight=NormalWeight, HorizontalAlignment ha=CenterH, VerticalAlignment va=Baseline) | |
| Text Attributes constructor.  More... | |
| Attributes (const Attributes &rhs) | |
| Copy constructor.  More... | |
| TextDecoration | getDecoration () const | 
| It returns the font decoration.  More... | |
| const std::string & | getFamily () const | 
| It returns the font family.  More... | |
| HorizontalAlignment | getHorizontalAlignment () const | 
| It returns the horizontal text alignment.  More... | |
| const double & | getLetterSpacing () const | 
| It returns the letter spacing.  More... | |
| LineJustification | getLineJustification () const | 
| It returns the multi line justification.  More... | |
| const double & | getLineSpacing () const | 
| It returns the multi line spacing.  More... | |
| const double & | getPointSize () const | 
| It returns the font point size.  More... | |
| FontStyle | getStyle () const | 
| It returns the font style.  More... | |
| const std::string & | getTextColor () const | 
| It returns the text color.  More... | |
| const double & | getTextOpacity () const | 
| It returns the text opacity.  More... | |
| const std::string & | getTextStrokeColor () const | 
| It returns the text stroke color.  More... | |
| const double & | getTextStrokeOpacity () const | 
| It returns the text stroke opacity.  More... | |
| const double & | getTextStrokeWidth () const | 
| It returns the text stroke width.  More... | |
| VerticalAlignment | getVerticalAlignment () const | 
| It returns the vertical text alignment.  More... | |
| FontWeight | getWeight () const | 
| It returns the font weight.  More... | |
| const double & | getWordSpacing () const | 
| It returns the word spacing.  More... | |
| Attributes & | operator= (const Attributes &rhs) | 
| Assignment operator.  More... | |
| void | setDecoration (TextDecoration decoration) | 
| It sets the font decoration.  More... | |
| void | setFamily (const std::string &family) | 
| It sets the font family.  More... | |
| void | setHorizontalAlignment (HorizontalAlignment ha) | 
| It sets the horizontal text alignment.  More... | |
| void | setLetterSpacing (const double &spacing) | 
| It sets the letter spacing.  More... | |
| void | setLineJustification (LineJustification just) | 
| It sets the multi line justification.  More... | |
| void | setLineSpacing (const double &spacing) | 
| It sets the multi line spacing.  More... | |
| void | setPointSize (const double &ps) | 
| It sets the font point size.  More... | |
| void | setStyle (FontStyle style) | 
| It sets the font style.  More... | |
| void | setTextColor (const std::string &color) | 
| It sets the text color.  More... | |
| void | setTextOpacity (double &opacity) | 
| It sets the text opacity.  More... | |
| void | setTextStrokecolor (const std::string &color) | 
| It sets the text stroke color.  More... | |
| void | setTextStrokeOpacity (const double &opacity) | 
| It sets the text stroke opacity.  More... | |
| void | setTextStrokeWidth (const double &width) | 
| It sets the text stroke width.  More... | |
| void | setVerticalAlignment (VerticalAlignment va) | 
| It sets the vertical text alignment.  More... | |
| void | setWeight (FontWeight weight) | 
| It sets the font weight.  More... | |
| void | setWordSpacing (const double &spacing) | 
| It sets the word spacing.  More... | |
| ~Attributes () | |
| Text Element destructor.  More... | |
Private Attributes | |
| TextDecoration | m_decoration | 
| text decoration  More... | |
| std::string | m_family | 
| font family  More... | |
| std::string | m_fillColor | 
| text fill color  More... | |
| double | m_fillOpacity | 
| text fill color opacity (0..1)  More... | |
| HorizontalAlignment | m_hAlign | 
| horizontal text alignment  More... | |
| double | m_letterSpacing | 
| letter spacing (0..1)  More... | |
| LineJustification | m_multiLineJustification | 
| multi line justufucation  More... | |
| double | m_multiLineSpacing | 
| multi line spacing  More... | |
| double | m_pointSize | 
| font point size  More... | |
| std::string | m_strokeColor | 
| text stroke color  More... | |
| double | m_strokeOpacity | 
| text stroke color opacity (0..1)  More... | |
| double | m_strokeWidth | 
| text stroke width (0..1)  More... | |
| FontStyle | m_style | 
| font style  More... | |
| VerticalAlignment | m_vAlign | 
| vertical text alignment  More... | |
| FontWeight | m_weight | 
| font weight  More... | |
| double | m_wordSpacing | 
| word spacing (0..1)  More... | |
Definition at line 52 of file Attributes.h.
| te::at::Attributes::Attributes | ( | ) | 
Text Attributes constructor.
Definition at line 29 of file Attributes.cpp.
References te::at::Baseline, te::at::Left, m_decoration, m_family, m_fillColor, m_fillOpacity, m_hAlign, m_letterSpacing, m_multiLineJustification, m_multiLineSpacing, m_pointSize, m_strokeColor, m_strokeOpacity, m_strokeWidth, m_style, m_vAlign, m_weight, m_wordSpacing, te::at::None, te::at::NormalStyle, te::at::NormalWeight, and te::at::Start.
| te::at::Attributes::Attributes | ( | const std::string & | family, | 
| const double | pointSize = 10.0,  | 
        ||
| FontStyle | style = NormalStyle,  | 
        ||
| FontWeight | weight = NormalWeight,  | 
        ||
| HorizontalAlignment | ha = CenterH,  | 
        ||
| VerticalAlignment | va = Baseline  | 
        ||
| ) | 
Text Attributes constructor.
| family | The font family. | 
| pointSize | The font point size | 
| style | The font style. | 
| weight | The font weight. | 
| ha | The text horizontal alignment. | 
| va | The text vertical alignment. | 
Definition at line 49 of file Attributes.cpp.
References te::at::Left, m_decoration, m_fillColor, m_fillOpacity, m_hAlign, m_letterSpacing, m_multiLineJustification, m_multiLineSpacing, m_strokeColor, m_strokeOpacity, m_strokeWidth, m_vAlign, m_wordSpacing, and te::at::None.
| te::at::Attributes::Attributes | ( | const Attributes & | rhs | ) | 
Copy constructor.
| rhs | The right-hand-side copy that would be used to copy from. | 
Definition at line 74 of file Attributes.cpp.
References m_decoration, m_family, m_fillColor, m_fillOpacity, m_hAlign, m_letterSpacing, m_multiLineJustification, m_multiLineSpacing, m_pointSize, m_strokeColor, m_strokeOpacity, m_strokeWidth, m_style, m_vAlign, m_weight, and m_wordSpacing.
| te::at::Attributes::~Attributes | ( | ) | 
Definition at line 115 of file Attributes.cpp.
| te::at::TextDecoration te::at::Attributes::getDecoration | ( | ) | const | 
It returns the font decoration.
Definition at line 164 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| const std::string & te::at::Attributes::getFamily | ( | ) | const | 
It returns the font family.
Definition at line 124 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| te::at::HorizontalAlignment te::at::Attributes::getHorizontalAlignment | ( | ) | const | 
It returns the horizontal text alignment.
Definition at line 244 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| const double & te::at::Attributes::getLetterSpacing | ( | ) | const | 
It returns the letter spacing.
Definition at line 174 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| te::at::LineJustification te::at::Attributes::getLineJustification | ( | ) | const | 
It returns the multi line justification.
Definition at line 264 of file Attributes.cpp.
Referenced by te::ag::Canvas::draw().
| const double & te::at::Attributes::getLineSpacing | ( | ) | const | 
It returns the multi line spacing.
Definition at line 274 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| const double & te::at::Attributes::getPointSize | ( | ) | const | 
It returns the font point size.
Definition at line 134 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| te::at::FontStyle te::at::Attributes::getStyle | ( | ) | const | 
It returns the font style.
Definition at line 144 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| const std::string & te::at::Attributes::getTextColor | ( | ) | const | 
It returns the text color.
Definition at line 194 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw().
| const double & te::at::Attributes::getTextOpacity | ( | ) | const | 
It returns the text opacity.
Definition at line 204 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| const std::string & te::at::Attributes::getTextStrokeColor | ( | ) | const | 
It returns the text stroke color.
Definition at line 214 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw().
| const double & te::at::Attributes::getTextStrokeOpacity | ( | ) | const | 
It returns the text stroke opacity.
Definition at line 234 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw().
| const double & te::at::Attributes::getTextStrokeWidth | ( | ) | const | 
It returns the text stroke width.
Definition at line 224 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw().
| te::at::VerticalAlignment te::at::Attributes::getVerticalAlignment | ( | ) | const | 
It returns the vertical text alignment.
Definition at line 254 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| te::at::FontWeight te::at::Attributes::getWeight | ( | ) | const | 
It returns the font weight.
Definition at line 154 of file Attributes.cpp.
Referenced by te::qt::widgets::Canvas::draw(), and te::ag::Canvas::draw().
| const double & te::at::Attributes::getWordSpacing | ( | ) | const | 
It returns the word spacing.
Definition at line 184 of file Attributes.cpp.
| te::at::Attributes & te::at::Attributes::operator= | ( | const Attributes & | rhs | ) | 
Assignment operator.
| rhs | The right-hand-side copy that would be used to copy from. | 
Definition at line 94 of file Attributes.cpp.
References m_decoration, m_family, m_fillColor, m_fillOpacity, m_hAlign, m_letterSpacing, m_multiLineJustification, m_multiLineSpacing, m_pointSize, m_strokeColor, m_strokeOpacity, m_strokeWidth, m_style, m_vAlign, m_weight, and m_wordSpacing.
| void te::at::Attributes::setDecoration | ( | TextDecoration | decoration | ) | 
It sets the font decoration.
| decoration | The font decoration. | 
Definition at line 159 of file Attributes.cpp.
| void te::at::Attributes::setFamily | ( | const std::string & | family | ) | 
It sets the font family.
| family | The font family. | 
Definition at line 119 of file Attributes.cpp.
| void te::at::Attributes::setHorizontalAlignment | ( | HorizontalAlignment | ha | ) | 
It sets the horizontal text alignment.
| ha | The horizontal text alignment. | 
Definition at line 239 of file Attributes.cpp.
| void te::at::Attributes::setLetterSpacing | ( | const double & | spacing | ) | 
It sets the letter spacing.
| spacing | The letter spacing. | 
Definition at line 169 of file Attributes.cpp.
| void te::at::Attributes::setLineJustification | ( | LineJustification | just | ) | 
It sets the multi line justification.
| just | The multi line justification. | 
Definition at line 259 of file Attributes.cpp.
| void te::at::Attributes::setLineSpacing | ( | const double & | spacing | ) | 
It sets the multi line spacing.
| spacing | The multi line spacing. | 
Definition at line 269 of file Attributes.cpp.
| void te::at::Attributes::setPointSize | ( | const double & | ps | ) | 
It sets the font point size.
| ps | The font point size. | 
Definition at line 129 of file Attributes.cpp.
| void te::at::Attributes::setStyle | ( | FontStyle | style | ) | 
It sets the font style.
| style | The font style. | 
Definition at line 139 of file Attributes.cpp.
| void te::at::Attributes::setTextColor | ( | const std::string & | color | ) | 
It sets the text color.
| color | The text color. | 
Definition at line 189 of file Attributes.cpp.
| void te::at::Attributes::setTextOpacity | ( | double & | opacity | ) | 
It sets the text opacity.
| opacity | The text opacity. | 
Definition at line 199 of file Attributes.cpp.
| void te::at::Attributes::setTextStrokecolor | ( | const std::string & | color | ) | 
It sets the text stroke color.
| color | The text stroke color. | 
Definition at line 209 of file Attributes.cpp.
| void te::at::Attributes::setTextStrokeOpacity | ( | const double & | opacity | ) | 
It sets the text stroke opacity.
| opacity | The text stroke opacity. | 
Definition at line 229 of file Attributes.cpp.
| void te::at::Attributes::setTextStrokeWidth | ( | const double & | width | ) | 
It sets the text stroke width.
| width | The text stroke width. | 
Definition at line 219 of file Attributes.cpp.
| void te::at::Attributes::setVerticalAlignment | ( | VerticalAlignment | va | ) | 
It sets the vertical text alignment.
| ha | The vertical text alignment. | 
Definition at line 249 of file Attributes.cpp.
| void te::at::Attributes::setWeight | ( | FontWeight | weight | ) | 
It sets the font weight.
| weight | The font weight. | 
Definition at line 149 of file Attributes.cpp.
| void te::at::Attributes::setWordSpacing | ( | const double & | spacing | ) | 
It sets the word spacing.
| spacing | The word spacing. | 
Definition at line 179 of file Attributes.cpp.
      
  | 
  private | 
text decoration
Definition at line 290 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
font family
Definition at line 286 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
text fill color
Definition at line 293 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
text fill color opacity (0..1)
Definition at line 294 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
horizontal text alignment
Definition at line 298 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
letter spacing (0..1)
Definition at line 291 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
multi line justufucation
Definition at line 300 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
multi line spacing
Definition at line 301 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
font point size
Definition at line 287 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
text stroke color
Definition at line 295 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
text stroke color opacity (0..1)
Definition at line 297 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
text stroke width (0..1)
Definition at line 296 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
font style
Definition at line 288 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
vertical text alignment
Definition at line 299 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
font weight
Definition at line 289 of file Attributes.h.
Referenced by Attributes(), and operator=().
      
  | 
  private | 
word spacing (0..1)
Definition at line 292 of file Attributes.h.
Referenced by Attributes(), and operator=().