#include <SkPathEffect.h>
Inherits SkFlattenable.
Inherited by Sk1DPathEffect, Sk2DPathEffect, SkCornerPathEffect, SkDashPathEffect, SkDiscretePathEffect, SkPairPathEffect, and SkStrokePathEffect.
Public Member Functions | |
SkPathEffect () | |
virtual bool | filterPath (SkPath *dst, const SkPath &src, SkScalar *width)=0 |
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.
SkPathEffect::SkPathEffect | ( | ) | [inline] |
Definition at line 35 of file SkPathEffect.h.
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.