|
libosmscout 0.1
|
A textual label. More...
#include <Styles.h>
Inheritance diagram for osmscout::TextStyle:Public Types | |
| enum | Attribute { attrPriority , attrSize , attrLabel , attrPosition , attrTextColor , attrEmphasizeColor , attrStyle , attrScaleAndFadeMag , attrAutoSize } |
| enum | Style { normal , emphasize } |
Public Member Functions | |
| void | CopyAttributes (const TextStyle &other, const std::set< Attribute > &attributes) |
| double | GetAlpha () const override |
| bool | GetAutoSize () const |
| const Color & | GetEmphasizeColor () const |
| const LabelProviderRef & | GetLabel () const |
| size_t | GetPosition () const |
| Magnification | GetScaleAndFadeMag () const |
| const std::string & | GetSlot () const |
| const Style & | GetStyle () const |
| const Color & | GetTextColor () const |
| bool | IsVisible () const override |
| bool | operator!= (const TextStyle &other) const |
| bool | operator< (const TextStyle &other) const |
| bool | operator== (const TextStyle &other) const |
| TextStyle & | SetAutoSize (bool autoSize) |
| void | SetBoolValue (int attribute, bool value) override |
| void | SetColorValue (int attribute, const Color &value) override |
| void | SetDoubleValue (int attribute, double value) override |
| TextStyle & | SetEmphasizeColor (const Color &color) |
| void | SetIntValue (int attribute, int value) override |
| TextStyle & | SetLabel (const LabelProviderRef &label) |
| void | SetLabelValue (int attribute, const LabelProviderRef &value) override |
| void | SetMagnificationValue (int attribute, const Magnification &value) override |
| TextStyle & | SetPosition (size_t position) |
| TextStyle & | SetScaleAndFadeMag (const Magnification &mag) |
| TextStyle & | SetSize (double size) override |
| TextStyle & | SetSlot (const std::string &slot) |
| TextStyle & | SetStyle (Style style) |
| TextStyle & | SetTextColor (const Color &color) |
| void | SetUIntValue (int attribute, size_t value) override |
| TextStyle () | |
Public Member Functions inherited from osmscout::LabelStyle | |
| size_t | GetPriority () const |
| double | GetSize () const |
| LabelStyle () | |
| LabelStyle & | SetPriority (size_t priority) |
Public Member Functions inherited from osmscout::Style | |
| virtual void | SetDoubleArrayValue (int attribute, const std::vector< double > &value) |
| virtual void | SetStringValue (int attribute, const std::string &value) |
| virtual void | SetSymbolValue (int attribute, const SymbolRef &value) |
| virtual | ~Style ()=default |
Static Public Member Functions | |
| static StyleDescriptorRef | GetDescriptor () |
A textual label.
| osmscout::TextStyle::TextStyle | ( | ) |
|
inlineoverridevirtual |
Implements osmscout::LabelStyle.
References osmscout::Color::GetA().
|
inline |
|
static |
References osmscout::textStyleDescriptor.
Referenced by osmscout::oss::Parser::TEXTSTYLEATTR().
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineoverridevirtual |
Implements osmscout::LabelStyle.
| bool osmscout::TextStyle::operator!= | ( | const TextStyle & | other | ) | const |
References operator==().
| bool osmscout::TextStyle::operator< | ( | const TextStyle & | other | ) | const |
References osmscout::LabelStyle::GetPriority(), and osmscout::LabelStyle::GetSize().
| bool osmscout::TextStyle::operator== | ( | const TextStyle & | other | ) | const |
References osmscout::LabelStyle::GetPriority(), and osmscout::LabelStyle::GetSize().
Referenced by operator!=().
| TextStyle & osmscout::TextStyle::SetAutoSize | ( | bool | autoSize | ) |
Referenced by SetBoolValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrAutoSize, and SetAutoSize().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrEmphasizeColor, attrTextColor, SetEmphasizeColor(), and SetTextColor().
|
overridevirtual |
Reimplemented from osmscout::Style.
Referenced by SetColorValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrStyle, and SetStyle().
| TextStyle & osmscout::TextStyle::SetLabel | ( | const LabelProviderRef & | label | ) |
Referenced by SetLabelValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrLabel, and SetLabel().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrScaleAndFadeMag, and SetScaleAndFadeMag().
| TextStyle & osmscout::TextStyle::SetPosition | ( | size_t | position | ) |
Referenced by SetUIntValue().
| TextStyle & osmscout::TextStyle::SetScaleAndFadeMag | ( | const Magnification & | mag | ) |
Referenced by SetMagnificationValue().
|
overridevirtual |
Reimplemented from osmscout::LabelStyle.
References osmscout::LabelStyle::SetSize().
Referenced by CopyAttributes(), and SetDoubleValue().
| TextStyle & osmscout::TextStyle::SetSlot | ( | const std::string & | slot | ) |
Referenced by SetIntValue().
Referenced by SetColorValue().
|
overridevirtual |
Reimplemented from osmscout::Style.
References attrPosition, attrPriority, SetPosition(), and osmscout::LabelStyle::SetPriority().