#include <SkPaint.h>
Inherits SkPathEffect.
Public Member Functions | |
SkStrokePathEffect (const SkPaint &) | |
SkStrokePathEffect (SkScalar width, SkPaint::Style, SkPaint::Join, SkPaint::Cap, SkScalar miterLimit=-1) | |
virtual bool | filterPath (SkPath *dst, const SkPath &src, SkScalar *width) |
virtual void | flatten (SkFlattenableWriteBuffer &) |
virtual Factory | getFactory () |
SkStrokePathEffect simulates stroking inside a patheffect, allowing the caller to have explicit control of when to stroke a path. Typically this is used if the caller wants to stroke before another patheffect is applied (using SkComposePathEffect or SkSumPathEffect).
Definition at line 842 of file SkPaint.h.
SkStrokePathEffect::SkStrokePathEffect | ( | const SkPaint & | ) |
SkStrokePathEffect::SkStrokePathEffect | ( | SkScalar | width, | |
SkPaint::Style | , | |||
SkPaint::Join | , | |||
SkPaint::Cap | , | |||
SkScalar | miterLimit = -1 | |||
) |
virtual bool SkStrokePathEffect::filterPath | ( | SkPath * | dst, | |
const SkPath & | src, | |||
SkScalar * | width | |||
) | [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
Implements SkPathEffect.
virtual void SkStrokePathEffect::flatten | ( | SkFlattenableWriteBuffer & | ) | [virtual] |
Override this to write data specific to your subclass into the buffer, being sure to call your super-class' version first. This data will later be passed to your Factory function, returned by getFactory().
Reimplemented from SkFlattenable.
virtual Factory SkStrokePathEffect::getFactory | ( | ) | [virtual] |
Implement this to return a factory function pointer that can be called to recreate your class given a buffer (previously written to by your override of flatten().
Implements SkFlattenable.