Public Member Functions | Protected Member Functions | Friends

gfxFlattenedPath Class Reference

Specialization of a path that only contains linear pieces. More...

#include <gfxPath.h>

Inheritance diagram for gfxFlattenedPath:
Collaboration diagram for gfxFlattenedPath:

List of all members.

Public Member Functions

virtual ~gfxFlattenedPath ()
gfxFloat GetLength ()
 Returns calculated total length of path.
gfxPoint FindPoint (gfxPoint aOffset, gfxFloat *aAngle=0L)
 Returns a point a certain distance along the path.

Protected Member Functions

 gfxFlattenedPath (cairo_path_t *aPath)

Friends

class gfxContext

Detailed Description

Specialization of a path that only contains linear pieces.

Can be created from the existing path of a gfxContext.


Constructor & Destructor Documentation

gfxFlattenedPath::gfxFlattenedPath ( cairo_path_t aPath  )  [protected]
virtual gfxFlattenedPath::~gfxFlattenedPath (  )  [virtual]

Member Function Documentation

gfxPoint gfxFlattenedPath::FindPoint ( gfxPoint  aOffset,
gfxFloat aAngle = 0L 
)

Returns a point a certain distance along the path.

Return is first or last point of the path if the requested length offset is outside the range for the path.

Parameters:
aOffset offset inpath parameter space (x=length, y=normal offset)
aAngle optional - output tangent
gfxFloat gfxFlattenedPath::GetLength (  ) 

Returns calculated total length of path.


Friends And Related Function Documentation

friend class gfxContext [friend]

Reimplemented from gfxPath.


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