#include <SkPathEffect.h>
Inherits SkPairPathEffect.
Public Member Functions | |
SkComposePathEffect (SkPathEffect *outer, SkPathEffect *inner) | |
virtual bool | filterPath (SkPath *dst, const SkPath &src, SkScalar *width) |
Protected Member Functions | |
virtual Factory | getFactory () |
This subclass of SkPathEffect composes its two arguments, to create a compound pathEffect.
Definition at line 77 of file SkPathEffect.h.
SkComposePathEffect::SkComposePathEffect | ( | SkPathEffect * | outer, | |
SkPathEffect * | inner | |||
) | [inline] |
Construct a pathEffect whose effect is to apply first the inner pathEffect and the the outer pathEffect (e.g. outer(inner(path))) The reference counts for outer and inner are both incremented in the constructor, and decremented in the destructor.
Definition at line 84 of file SkPathEffect.h.
virtual bool SkComposePathEffect::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 Factory SkComposePathEffect::getFactory | ( | ) | [inline, protected, 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.
Definition at line 93 of file SkPathEffect.h.