SkDashPathEffect Class Reference

#include <SkDashPathEffect.h>

Inherits SkPathEffect.

Collaboration diagram for SkDashPathEffect:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SkDashPathEffect (const SkScalar intervals[], int count, SkScalar phase, bool scaleToFit=false)
virtual ~SkDashPathEffect ()
virtual bool filterPath (SkPath *dst, const SkPath &src, SkScalar *width)
virtual Factory getFactory ()
virtual void flatten (SkFlattenableWriteBuffer &)

Protected Member Functions

 SkDashPathEffect (SkFlattenableReadBuffer &)

Detailed Description

SkDashPathEffect is a subclass of SkPathEffect that implements dashing

Definition at line 26 of file SkDashPathEffect.h.


Constructor & Destructor Documentation

SkDashPathEffect::SkDashPathEffect ( const SkScalar  intervals[],
int  count,
SkScalar  phase,
bool  scaleToFit = false 
)

The intervals array must contain an even number of entries (>=2), with the even indices specifying the "on" intervals, and the odd indices specifying the "off" intervals. phase is an offset into the intervals array (mod the sum of all of the intervals). Note: only affects framed paths

virtual SkDashPathEffect::~SkDashPathEffect (  )  [virtual]
SkDashPathEffect::SkDashPathEffect ( SkFlattenableReadBuffer  )  [protected]

Member Function Documentation

virtual bool SkDashPathEffect::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 SkDashPathEffect::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 SkDashPathEffect::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.


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