|
CartoType API
|
#include <cartotype_flatten.h>
Public Member Functions | |
| TResult | AppendLine (const TLineFixed &aLine) |
| int32 | Lines () const |
| const TLineFixed & | Line (int32 aIndex) const |
| TFixed | Length () const |
| CT_IMPORT TPointFixed | Point (TFixed aPos) const |
| CT_IMPORT CContour * | SubPath (TResult &aError, TFixed aStart, TFixed aLength) const |
Static Public Member Functions | |
| static CT_IMPORT CFlatPath * | New (TResult &aError, const MPath &aPath, int32 aFractionalPixelBits, TFixed aMaxDistance, const TRect &aClip) |
A path consisting of a series of straight lines. CFlatPath objects can be created from TContour and TOutline objects. They are used when drawing text along a path.
| CT_EXPORT TPointFixed CFlatPath::Point | ( | TFixed | aPos | ) | const |
Return a point at a certain distance along a path. If aPos is less than or equal to zero return the start of the path. If aPos is greater than the length of the path return the end of the path.
| CT_EXPORT CContour * CFlatPath::SubPath | ( | TResult & | aError, |
| TFixed | aSubPathStart, | ||
| TFixed | aSubPathLength | ||
| ) | const |
Create a CContour object containing the sub-path of length aSubPathLength starting at aSubPathStart.
1.7.5.1