CartoType API
Public Member Functions
CartoType::CBoxIcon Class Reference

#include <cartotype_icon.h>

Inheritance diagram for CartoType::CBoxIcon:
CartoType::CIcon

List of all members.

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

Detailed Description

A rectangular box icon used for road labels at small scales.


Member Function Documentation

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.


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