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

A textual label. More...

#include <StyleConfig.h>

+ Inheritance diagram for osmscout::TextStyle:

Public Types

enum  Attribute {
  attrPriority, attrSize, attrLabel, attrPosition,
  attrTextColor, attrStyle, attrScaleAndFadeMag, attrAutoSize
}
 
enum  Style { normal, emphasize }
 

Public Member Functions

void CopyAttributes (const TextStyle &other, const std::set< Attribute > &attributes)
 
double GetAlpha () const
 
bool GetAutoSize () 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
 
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)
 
void SetColorValue (int attribute, const Color &value)
 
void SetDoubleValue (int attribute, double value)
 
void SetIntValue (int attribute, int value)
 
TextStyleSetLabel (const LabelProviderRef &label)
 
void SetLabelValue (int attribute, const LabelProviderRef &value)
 
void SetMagnificationValue (int attribute, const Magnification &value)
 
TextStyleSetPosition (size_t position)
 
TextStyleSetPriority (uint8_t priority)
 
TextStyleSetScaleAndFadeMag (const Magnification &mag)
 
TextStyleSetSize (double size)
 
TextStyleSetSlot (const std::string &slot)
 
TextStyleSetStyle (Style style)
 
TextStyleSetTextColor (const Color &color)
 
void SetUIntValue (int attribute, size_t value)
 
 TextStyle ()
 
 TextStyle (const TextStyle &style)
 
- Public Member Functions inherited from osmscout::LabelStyle
size_t GetPriority () const
 
double GetSize () const
 
 LabelStyle ()
 
 LabelStyle (const LabelStyle &style)
 
LabelStyleSetPriority (size_t priority)
 
LabelStyleSetSize (double size)
 
virtual ~LabelStyle ()
 
- 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 ()
 

Static Public Member Functions

static StyleDescriptorRef GetDescriptor ()
 

Detailed Description

A textual label.

Member Enumeration Documentation

Enumerator
attrPriority 
attrSize 
attrLabel 
attrPosition 
attrTextColor 
attrStyle 
attrScaleAndFadeMag 
attrAutoSize 
Enumerator
normal 
emphasize 

Constructor & Destructor Documentation

osmscout::TextStyle::TextStyle ( )
osmscout::TextStyle::TextStyle ( const TextStyle style)

Member Function Documentation

void osmscout::TextStyle::CopyAttributes ( const TextStyle other,
const std::set< Attribute > &  attributes 
)
double osmscout::TextStyle::GetAlpha ( ) const
inlinevirtual

Implements osmscout::LabelStyle.

bool osmscout::TextStyle::GetAutoSize ( ) const
inline
StyleDescriptorRef osmscout::TextStyle::GetDescriptor ( )
static
const LabelProviderRef& osmscout::TextStyle::GetLabel ( ) const
inline
size_t osmscout::TextStyle::GetPosition ( ) const
inline
Magnification osmscout::TextStyle::GetScaleAndFadeMag ( ) const
inline
const std::string& osmscout::TextStyle::GetSlot ( ) const
inline
const Style& osmscout::TextStyle::GetStyle ( ) const
inline
bool osmscout::TextStyle::IsVisible ( ) const
inlinevirtual

Implements osmscout::LabelStyle.

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

References operator==().

bool osmscout::TextStyle::operator< ( const TextStyle other) const
bool osmscout::TextStyle::operator== ( const TextStyle other) const
TextStyle & osmscout::TextStyle::SetAutoSize ( bool  autoSize)

Referenced by SetBoolValue().

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

Reimplemented from osmscout::Style.

References attrAutoSize, and SetAutoSize().

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

Reimplemented from osmscout::Style.

References attrTextColor, and SetTextColor().

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

Reimplemented from osmscout::Style.

References attrSize, and SetSize().

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

Reimplemented from osmscout::Style.

References attrStyle, and SetStyle().

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

Referenced by SetLabelValue().

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

Reimplemented from osmscout::Style.

References attrLabel, and SetLabel().

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

Reimplemented from osmscout::Style.

References attrScaleAndFadeMag, and SetScaleAndFadeMag().

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

Referenced by SetUIntValue().

TextStyle & osmscout::TextStyle::SetPriority ( uint8_t  priority)
TextStyle & osmscout::TextStyle::SetScaleAndFadeMag ( const Magnification mag)

Referenced by SetMagnificationValue().

TextStyle & osmscout::TextStyle::SetSize ( double  size)
TextStyle & osmscout::TextStyle::SetSlot ( const std::string &  slot)
TextStyle & osmscout::TextStyle::SetStyle ( Style  style)

Referenced by SetIntValue().

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

Referenced by SetColorValue().

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

Reimplemented from osmscout::Style.

References attrPosition, attrPriority, SetPosition(), and SetPriority().


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