Class specifies a font. More...
#include <Font.h>
Public Member Functions | |
| Font () | |
| Constructor.  More... | |
| virtual void | fromString (std::string font) | 
| Sets this object state from a string.  More... | |
| std::string | getFamily () | 
| Sets font family name.  More... | |
| int | getPointSize () | 
| Returns point size of the font.  More... | |
| bool | isBold () | 
| Returns true if font use bold, false otherwise.  More... | |
| bool | isItalic () | 
| Returns true if font use italic, false otherwise.  More... | |
| bool | isKerning () | 
| Returns true if font use kerning, false otherwise.  More... | |
| bool | isStrikeout () | 
| Returns true if font use strikeout, false otherwise.  More... | |
| bool | isUnderline () | 
| Returns true if font use underline, false otherwise.  More... | |
| void | setBold (bool bold) | 
| Sets font with bold style.  More... | |
| void | setFamily (std::string family) | 
| Returns font family name.  More... | |
| void | setItalic (bool italic) | 
| Sets font with italic style.  More... | |
| void | setKerning (bool kerning) | 
| Sets font with kerning style.  More... | |
| void | setPointSize (int point) | 
| Sets point size of the font.  More... | |
| void | setStrikeout (bool strikeout) | 
| Sets font with strikeout style.  More... | |
| void | setUnderline (bool underline) | 
| Sets font with underline style.  More... | |
| virtual std::string | toString () | 
| Serialize font object.  More... | |
| virtual | ~Font () | 
| Destructor.  More... | |
Protected Member Functions | |
| virtual bool | toBool (std::string str) | 
| State string to boolean.  More... | |
| virtual std::string | toString (bool flag) | 
| State boolean to string.  More... | |
Protected Attributes | |
| bool | m_bold | 
| true if font use bold, false otherwise  More... | |
| std::string | m_family | 
| font family name  More... | |
| bool | m_italic | 
| true if font use italic, false otherwise  More... | |
| bool | m_kerning | 
| true if font use kerning, false otherwise  More... | |
| int | m_pointSize | 
| point size of the font  More... | |
| bool | m_strikeout | 
| true if font use strikeout, false otherwise  More... | |
| LayoutAlign | m_textAlign | 
| bool | m_underline | 
| true if font use underline, false otherwise  More... | |
      
  | 
  virtual | 
| std::string te::layout::Font::getFamily | ( | ) | 
Sets font family name.
Definition at line 61 of file Font.cpp.
Referenced by te::layout::BarCodeItem::BarCodeItem(), te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::onShowFontDlg(), te::layout::LegendItem::paint(), and te::layout::TextItem::updateTextConfig().
| int te::layout::Font::getPointSize | ( | ) | 
Returns point size of the font.
Definition at line 71 of file Font.cpp.
Referenced by te::layout::BarCodeItem::BarCodeItem(), te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::TextItem::createImage(), te::layout::MenuBuilder::onShowFontDlg(), te::layout::LegendItem::paint(), te::layout::TitleItem::updateDocument(), and te::layout::TextItem::updateTextConfig().
| bool te::layout::Font::isBold | ( | ) | 
Returns true if font use bold, false otherwise.
Definition at line 81 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::onShowFontDlg(), and te::layout::TextItem::updateTextConfig().
| bool te::layout::Font::isItalic | ( | ) | 
Returns true if font use italic, false otherwise.
Definition at line 91 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::onShowFontDlg(), and te::layout::TextItem::updateTextConfig().
| bool te::layout::Font::isKerning | ( | ) | 
Returns true if font use kerning, false otherwise.
Definition at line 121 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::onShowFontDlg(), and te::layout::TextItem::updateTextConfig().
| bool te::layout::Font::isStrikeout | ( | ) | 
Returns true if font use strikeout, false otherwise.
Definition at line 111 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::onShowFontDlg(), te::layout::LegendItem::paint(), and te::layout::TextItem::updateTextConfig().
| bool te::layout::Font::isUnderline | ( | ) | 
Returns true if font use underline, false otherwise.
Definition at line 101 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::MenuBuilder::onShowFontDlg(), te::layout::LegendItem::paint(), and te::layout::TextItem::updateTextConfig().
| void te::layout::Font::setBold | ( | bool | bold | ) | 
Sets font with bold style.
| true | if font use bold, false otherwise | 
Definition at line 76 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::getProperty(), and te::layout::MenuBuilder::onShowFontDlg().
| void te::layout::Font::setFamily | ( | std::string | family | ) | 
Returns font family name.
| font | family name | 
Definition at line 56 of file Font.cpp.
Referenced by te::layout::BarCodeModel::BarCodeModel(), te::layout::VariantPropertiesBrowser::changeQtVariantPropertyValue(), te::layout::ItemUtils::createTextItemFromObject(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::MenuBuilder::onShowFontDlg(), and te::layout::TextItem::updateTextConfig().
| void te::layout::Font::setItalic | ( | bool | italic | ) | 
Sets font with italic style.
| true | if font use italic, false otherwise | 
Definition at line 86 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::getProperty(), and te::layout::MenuBuilder::onShowFontDlg().
| void te::layout::Font::setKerning | ( | bool | kerning | ) | 
Sets font with kerning style.
| true | if font use kerning, false otherwise | 
Definition at line 116 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::getProperty(), and te::layout::MenuBuilder::onShowFontDlg().
| void te::layout::Font::setPointSize | ( | int | point | ) | 
Sets point size of the font.
| point | size of the font | 
Definition at line 66 of file Font.cpp.
Referenced by te::layout::BarCodeModel::BarCodeModel(), te::layout::ItemUtils::createTextItemFromObject(), te::layout::VariantPropertiesBrowser::getProperty(), te::layout::LegendChildModel::LegendChildModel(), te::layout::LegendModel::LegendModel(), te::layout::MenuBuilder::onShowFontDlg(), and te::layout::TextModel::TextModel().
| void te::layout::Font::setStrikeout | ( | bool | strikeout | ) | 
Sets font with strikeout style.
| true | if font use strikeout, false otherwise | 
Definition at line 106 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::getProperty(), and te::layout::MenuBuilder::onShowFontDlg().
| void te::layout::Font::setUnderline | ( | bool | underline | ) | 
Sets font with underline style.
| true | if font use underline, false otherwise | 
Definition at line 96 of file Font.cpp.
Referenced by te::layout::VariantPropertiesBrowser::getProperty(), and te::layout::MenuBuilder::onShowFontDlg().
      
  | 
  protectedvirtual | 
      
  | 
  virtual | 
      
  | 
  protectedvirtual | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected | 
      
  | 
  protected |