SkSumPathEffect Class Reference

#include <SkPathEffect.h>

Inherits SkPairPathEffect.

Collaboration diagram for SkSumPathEffect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkSumPathEffect (SkPathEffect *first, SkPathEffect *second)
virtual bool filterPath (SkPath *dst, const SkPath &src, SkScalar *width)

Protected Member Functions

virtual Factory getFactory ()

Detailed Description

This subclass of SkPathEffect applies two pathEffects, one after the other. Its filterPath() returns true if either of the effects succeeded.

Definition at line 113 of file SkPathEffect.h.


Constructor & Destructor Documentation

SkSumPathEffect::SkSumPathEffect ( SkPathEffect first,
SkPathEffect second 
) [inline]

Construct a pathEffect whose effect is to apply two effects, in sequence. (e.g. first(path) + second(path)) The reference counts for first and second are both incremented in the constructor, and decremented in the destructor.

Definition at line 120 of file SkPathEffect.h.


Member Function Documentation

virtual bool SkSumPathEffect::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 SkSumPathEffect::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 128 of file SkPathEffect.h.


The documentation for this class was generated from the following file:

Generated on Tue Oct 20 11:03:42 2009 for Skia by  doxygen 1.6.1