alaCarte Maps
Renderer for OpenStreetMap tiles
Shield Struct Reference

#include <renderer_private.hpp>

Inheritance diagram for Shield:
Label

Public Member Functions

 Shield (const FloatRect &box, const FloatRect &owner, const MaybeCachedString &text, const Style *s, const FloatPoint &origin, const FloatRect &shield)
 
void translate (double dx, double dy)
 used by the placement algorith to move the shield More...
 
- Public Member Functions inherited from Label
 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 shield
 Dimensions of the shield that should be painted. More...
 
- Public Attributes inherited from Label
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 Stylestyle
 Style that is used to paint the label. More...
 
const MaybeCachedStringtext
 The text that should be used (don't use the style text to make it generic) More...
 

Detailed Description

Definition at line 90 of file renderer_private.hpp.

Constructor & Destructor Documentation

Shield::Shield ( const FloatRect box,
const FloatRect owner,
const MaybeCachedString text,
const Style s,
const FloatPoint origin,
const FloatRect shield 
)
inline

Definition at line 91 of file renderer_private.hpp.

Member Function Documentation

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

used by the placement algorith to move the shield

Definition at line 100 of file renderer_private.hpp.

Member Data Documentation

FloatRect Shield::shield

Dimensions of the shield that should be painted.

Definition at line 97 of file renderer_private.hpp.


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