libosmscout  1.1.1
Public Member Functions | Public Attributes | List of all members
osmscout::Label< NativeGlyph, NativeLabel > Class Template Reference

#include <libosmscout-map/include/osmscout/LabelLayouter.h>

Collaboration diagram for osmscout::Label< NativeGlyph, NativeLabel >:
Collaboration graph
[legend]

Public Member Functions

 Label ()=default
 
template<typename... Args>
 Label (Args &&... args)
 
std::vector< Glyph< NativeGlyph > > ToGlyphs () const
 

Public Attributes

NativeLabel label
 
double width {-1}
 
double height {-1}
 
double fontSize {1}
 Font size to be used. More...
 
std::string text
 The label text. More...
 

Detailed Description

template<class NativeGlyph, class NativeLabel>
class osmscout::Label< NativeGlyph, NativeLabel >

Position independent representation of layouted label

Constructor & Destructor Documentation

◆ Label() [1/2]

template<class NativeGlyph , class NativeLabel >
osmscout::Label< NativeGlyph, NativeLabel >::Label ( )
default

◆ Label() [2/2]

template<class NativeGlyph , class NativeLabel >
template<typename... Args>
osmscout::Label< NativeGlyph, NativeLabel >::Label ( Args &&...  args)
inline

Member Function Documentation

◆ ToGlyphs()

template<class NativeGlyph , class NativeLabel >
std::vector<Glyph<NativeGlyph> > osmscout::Label< NativeGlyph, NativeLabel >::ToGlyphs ( ) const

Implementation have to be provided by backend. Glyph positions should be relative to label baseline.

Returns
vector of glyphs

Member Data Documentation

◆ fontSize

template<class NativeGlyph , class NativeLabel >
double osmscout::Label< NativeGlyph, NativeLabel >::fontSize {1}

Font size to be used.

◆ height

template<class NativeGlyph , class NativeLabel >
double osmscout::Label< NativeGlyph, NativeLabel >::height {-1}

◆ label

template<class NativeGlyph , class NativeLabel >
NativeLabel osmscout::Label< NativeGlyph, NativeLabel >::label

◆ text

template<class NativeGlyph , class NativeLabel >
std::string osmscout::Label< NativeGlyph, NativeLabel >::text

The label text.

◆ width

template<class NativeGlyph , class NativeLabel >
double osmscout::Label< NativeGlyph, NativeLabel >::width {-1}

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