SkPathEffect Class Reference

#include <SkPathEffect.h>

Inherits SkFlattenable.

Inherited by Sk1DPathEffect, Sk2DPathEffect, SkCornerPathEffect, SkDashPathEffect, SkDiscretePathEffect, SkPairPathEffect, and SkStrokePathEffect.

Collaboration diagram for SkPathEffect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkPathEffect ()
virtual bool filterPath (SkPath *dst, const SkPath &src, SkScalar *width)=0

Detailed Description

SkPathEffect is the base class for objects in the SkPaint that affect the geometry of a drawing primitive before it is transformed by the canvas' matrix and drawn.

Dashing is implemented as a subclass of SkPathEffect.

Definition at line 32 of file SkPathEffect.h.


Constructor & Destructor Documentation

SkPathEffect::SkPathEffect (  )  [inline]

Definition at line 35 of file SkPathEffect.h.


Member Function Documentation

virtual bool SkPathEffect::filterPath ( SkPath dst,
const SkPath src,
SkScalar width 
) [pure virtual]

Given a src path and a width value, return true if the patheffect has produced a new path (dst) and a new width value. If false is returned, ignore dst and width. On input, width >= 0 means the src should be stroked On output, width >= 0 means the dst should be stroked

Implemented in SkStrokePathEffect, SkComposePathEffect, SkSumPathEffect, Sk1DPathEffect, SkPath1DPathEffect, Sk2DPathEffect, SkCornerPathEffect, SkDashPathEffect, and SkDiscretePathEffect.


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

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1