8 #ifndef Sk1DPathEffect_DEFINED
9 #define Sk1DPathEffect_DEFINED
11 #include "SkPathEffect.h"
26 virtual SkScalar begin(SkScalar contourLength)
const = 0;
34 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
35 bool exposedInAndroidJavaAPI()
const override {
return true; }
49 kLastEnum_Style = kMorph_Style,
64 SK_TO_STRING_OVERRIDE()
72 SkScalar
begin(SkScalar contourLength)
const override;
78 SkScalar fInitialOffset;
The SkPath class encapsulates compound (multiple contour) geometric paths consisting of straight line...
Definition: SkPath.h:25
SkPathEffect is the base class for objects in the SkPaint that affect the geometry of a drawing primi...
Definition: SkPathEffect.h:27
Definition: SkStrokeRec.h:16
Definition: SkRefCnt.h:125
virtual SkScalar next(SkPath *dst, SkScalar dist, SkPathMeasure &) const =0
Called with the current distance along the path, with the current matrix for the point/tangent at the...
virtual bool filterPath(SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *cullR) const =0
Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path...
Definition: Sk1DPathEffect.h:42
virtual bool filterPath(SkPath *dst, const SkPath &src, SkStrokeRec *, const SkRect *) const override
Given a src path (input) and a stroke-rec (input and output), apply this effect to the src path...
Definition: SkWriteBuffer.h:27
Definition: Sk1DPathEffect.h:17
virtual void flatten(SkWriteBuffer &) const
Override this if your subclass needs to record data that it will need to recreate itself from its Cre...
Definition: SkFlattenable.h:117
virtual SkScalar begin(SkScalar contourLength) const =0
Called at the start of each contour, returns the initial offset into that contour.
Definition: SkPathMeasure.h:16