alaCarte Maps
Renderer for OpenStreetMap tiles
Label Struct Reference

Stores bounding box and style of a label that needs to be placed. More...

#include <renderer_private.hpp>

Inheritance diagram for Label:
Shield

Public Member Functions

 Label (const FloatRect &box, const FloatRect &owner, const MaybeCachedString &text, const Style *s, const FloatPoint &origin)
 
void translate (double dx, double dy)
 used by the placement algorith to move the label More...
 

Public Attributes

FloatRect box
 bounding box in device-space coordinates More...
 
FloatRect owner
 bounding box of the object owing the label in device-space coordinates More...
 
FloatPoint origin
 Origin of the label. More...
 
const Style * style
 Style that is used to paint the label. More...
 
const MaybeCachedString & text
 The text that should be used (don't use the style text to make it generic) More...
 

Detailed Description

Stores bounding box and style of a label that needs to be placed.

Definition at line 61 of file renderer_private.hpp.

Constructor & Destructor Documentation

Label::Label ( const FloatRect &  box,
const FloatRect &  owner,
const MaybeCachedString &  text,
const Style *  s,
const FloatPoint &  origin 
)
inline

Definition at line 62 of file renderer_private.hpp.

Member Function Documentation

void Label::translate ( double  dx,
double  dy 
)
inline

used by the placement algorith to move the label

Definition at line 82 of file renderer_private.hpp.

Member Data Documentation

FloatRect Label::box

bounding box in device-space coordinates

Definition at line 71 of file renderer_private.hpp.

FloatPoint Label::origin

Origin of the label.

Definition at line 75 of file renderer_private.hpp.

FloatRect Label::owner

bounding box of the object owing the label in device-space coordinates

Definition at line 73 of file renderer_private.hpp.

const Style* Label::style

Style that is used to paint the label.

Definition at line 77 of file renderer_private.hpp.

const MaybeCachedString& Label::text

The text that should be used (don't use the style text to make it generic)

Definition at line 79 of file renderer_private.hpp.


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