|
CartoType API
|
#include <cartotype_icon.h>
Public Member Functions | |
| CT_IMPORT | CBoxIcon (const TRect &aBounds, const TPaint &aFill, const TPaint &aStroke, TFixed aStrokeWidth) |
| CT_IMPORT TResult | Draw (CGraphicsContext &aGc, const TPoint &aTopLeft) const |
| CT_IMPORT TResult | Test (CLabelGraphicsContext &aGc, const TPoint &aTopLeft, bool aCanOverlapEdge) const |
| CT_IMPORT void | GetBounds (TRect &aRect) const |
A rectangular box icon used for road labels at small scales.
| CT_EXPORT TResult CBoxIcon::Draw | ( | CGraphicsContext & | aGc, |
| const TPoint & | aTopLeft | ||
| ) | const [virtual] |
Draw the icon with its top left (not its hotspot) at aTopLeft.
Implements CartoType::CIcon.
| CT_EXPORT void CBoxIcon::GetBounds | ( | TRect & | aBounds | ) | const [virtual] |
Get the bounds of the icon relative to its hotspot. The hotspot is the point, relative to the top left corner of the icon, that should be made to coincide with the point of interest marked by the icon.
Implements CartoType::CIcon.
| CT_EXPORT TResult CBoxIcon::Test | ( | CLabelGraphicsContext & | aGc, |
| const TPoint & | aTopLeft, | ||
| bool | aCanOverlapEdge | ||
| ) | const [virtual] |
Test the icon for overlap, with its top left (not its hotspot) at aTopLeft.
Implements CartoType::CIcon.
1.7.5.1