libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::TextStyle Class Referencefinal

#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 ColorGetEmphasizeColor () const
 
const LabelProviderRefGetLabel () const
 
size_t GetPosition () const
 
Magnification GetScaleAndFadeMag () const
 
const std::string & GetSlot () const
 
const StyleGetStyle () const
 
const ColorGetTextColor () const
 
bool IsVisible () const override
 
bool operator!= (const TextStyle &other) const
 
bool operator< (const TextStyle &other) const
 
bool operator== (const TextStyle &other) const
 
TextStyleSetAutoSize (bool autoSize)
 
void SetBoolValue (int attribute, bool value) override
 
void SetColorValue (int attribute, const Color &value) override
 
void SetDoubleValue (int attribute, double value) override
 
TextStyleSetEmphasizeColor (const Color &color)
 
void SetIntValue (int attribute, int value) override
 
TextStyleSetLabel (const LabelProviderRef &label)
 
void SetLabelValue (int attribute, const LabelProviderRef &value) override
 
void SetMagnificationValue (int attribute, const Magnification &value) override
 
TextStyleSetPosition (size_t position)
 
TextStyleSetScaleAndFadeMag (const Magnification &mag)
 
TextStyleSetSize (double size) override
 
TextStyleSetSlot (const std::string &slot)
 
TextStyleSetStyle (Style style)
 
TextStyleSetTextColor (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 ()
 
LabelStyleSetPriority (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 ()
 

Detailed Description

A textual label.

Member Enumeration Documentation

◆ Attribute

Enumerator
attrPriority 
attrSize 
attrLabel 
attrPosition 
attrTextColor 
attrEmphasizeColor 
attrStyle 
attrScaleAndFadeMag 
attrAutoSize 

◆ Style

Enumerator
normal 
emphasize 

Constructor & Destructor Documentation

◆ TextStyle()

osmscout::TextStyle::TextStyle ( )

Member Function Documentation

◆ CopyAttributes()

◆ GetAlpha()

double osmscout::TextStyle::GetAlpha ( ) const
inlineoverridevirtual

◆ GetAutoSize()

bool osmscout::TextStyle::GetAutoSize ( ) const
inline

◆ GetDescriptor()

StyleDescriptorRef osmscout::TextStyle::GetDescriptor ( )
static

◆ GetEmphasizeColor()

const Color& osmscout::TextStyle::GetEmphasizeColor ( ) const
inline

◆ GetLabel()

const LabelProviderRef& osmscout::TextStyle::GetLabel ( ) const
inline

◆ GetPosition()

size_t osmscout::TextStyle::GetPosition ( ) const
inline

◆ GetScaleAndFadeMag()

Magnification osmscout::TextStyle::GetScaleAndFadeMag ( ) const
inline

◆ GetSlot()

const std::string& osmscout::TextStyle::GetSlot ( ) const
inline

◆ GetStyle()

const Style& osmscout::TextStyle::GetStyle ( ) const
inline

◆ GetTextColor()

const Color& osmscout::TextStyle::GetTextColor ( ) const
inline

◆ IsVisible()

bool osmscout::TextStyle::IsVisible ( ) const
inlineoverridevirtual

Implements osmscout::LabelStyle.

◆ operator!=()

bool osmscout::TextStyle::operator!= ( const TextStyle other) const

References operator==().

◆ operator<()

bool osmscout::TextStyle::operator< ( const TextStyle other) const

◆ operator==()

bool osmscout::TextStyle::operator== ( const TextStyle other) const

◆ SetAutoSize()

TextStyle & osmscout::TextStyle::SetAutoSize ( bool  autoSize)

Referenced by SetBoolValue().

◆ SetBoolValue()

void osmscout::TextStyle::SetBoolValue ( int  attribute,
bool  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrAutoSize, and SetAutoSize().

◆ SetColorValue()

void osmscout::TextStyle::SetColorValue ( int  attribute,
const Color value 
)
overridevirtual

◆ SetDoubleValue()

void osmscout::TextStyle::SetDoubleValue ( int  attribute,
double  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrSize, and SetSize().

◆ SetEmphasizeColor()

TextStyle & osmscout::TextStyle::SetEmphasizeColor ( const Color color)

Referenced by SetColorValue().

◆ SetIntValue()

void osmscout::TextStyle::SetIntValue ( int  attribute,
int  value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrStyle, and SetStyle().

◆ SetLabel()

TextStyle & osmscout::TextStyle::SetLabel ( const LabelProviderRef label)

Referenced by SetLabelValue().

◆ SetLabelValue()

void osmscout::TextStyle::SetLabelValue ( int  attribute,
const LabelProviderRef value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrLabel, and SetLabel().

◆ SetMagnificationValue()

void osmscout::TextStyle::SetMagnificationValue ( int  attribute,
const Magnification value 
)
overridevirtual

Reimplemented from osmscout::Style.

References attrScaleAndFadeMag, and SetScaleAndFadeMag().

◆ SetPosition()

TextStyle & osmscout::TextStyle::SetPosition ( size_t  position)

Referenced by SetUIntValue().

◆ SetScaleAndFadeMag()

TextStyle & osmscout::TextStyle::SetScaleAndFadeMag ( const Magnification mag)

Referenced by SetMagnificationValue().

◆ SetSize()

TextStyle & osmscout::TextStyle::SetSize ( double  size)
overridevirtual

Reimplemented from osmscout::LabelStyle.

References osmscout::LabelStyle::SetSize().

Referenced by CopyAttributes(), and SetDoubleValue().

◆ SetSlot()

TextStyle & osmscout::TextStyle::SetSlot ( const std::string &  slot)

◆ SetStyle()

TextStyle & osmscout::TextStyle::SetStyle ( Style  style)

Referenced by SetIntValue().

◆ SetTextColor()

TextStyle & osmscout::TextStyle::SetTextColor ( const Color color)

Referenced by SetColorValue().

◆ SetUIntValue()

void osmscout::TextStyle::SetUIntValue ( int  attribute,
size_t  value 
)
overridevirtual

The documentation for this class was generated from the following files: