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,
61 #ifdef SK_SUPPORT_LEGACY_PATHEFFECT_PTR
62 static SkPathEffect* Create(
const SkPath& path, SkScalar advance, SkScalar phase, Style s) {
63 return Make(path, advance, phase, s).
release();
70 SK_TO_STRING_OVERRIDE()
78 SkScalar
begin(SkScalar contourLength)
const override;
84 SkScalar fInitialOffset;
T *SK_WARN_UNUSED_RESULT release()
Return the bare pointer, and set the internal object pointer to nullptr.
Definition: SkRefCnt.h:363
The SkPath class encapsulates compound (multiple contour) geometric paths consisting of straight line...
Definition: SkPath.h:27
SkPathEffect is the base class for objects in the SkPaint that affect the geometry of a drawing primi...
Definition: SkPathEffect.h:29
Definition: SkStrokeRec.h:16
Definition: SkRefCnt.h:135
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:26
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