CartoType API
Public Member Functions | Static Public Member Functions
CartoType::CFlatPath Class Reference

#include <cartotype_flatten.h>

List of all members.

Public Member Functions

TResult AppendLine (const TLineFixed &aLine)
int32 Lines () const
const TLineFixedLine (int32 aIndex) const
TFixed Length () const
CT_IMPORT TPointFixed Point (TFixed aPos) const
CT_IMPORT CContourSubPath (TResult &aError, TFixed aStart, TFixed aLength) const

Static Public Member Functions

static CT_IMPORT CFlatPathNew (TResult &aError, const MPath &aPath, int32 aFractionalPixelBits, TFixed aMaxDistance, const TRect &aClip)

Detailed Description

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.


Member Function Documentation

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.


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