API Documentation

BShapeIterator

BShapeIterator

Constructor and Destructor

BShapeIterator()

BShapeIterator::BShapeIterator()

Constructor

~BShapeIterator()

BShapeIterator::~BShapeIterator()

Destructor

Member Functions

Iterate()

status_t BShapeIterator::Iterate(BShape *shape)

Iterate() iterates over each command that comprises the shape, in order, calling the Iterate…() function that corresponds to each command.

Return Code

Description

B_OK.

No error.

Other errors.

None are defined at this time, but you should always check for errors returned by this function.

IterateBezierTo(), IterateClose(), IterateLineTo(), IterateMoveTo()

virtual status_t BShapeIterator::IterateBezierTo(int32 bezierCount, BPoint *bezierPoints)

virtual status_t BShapeIterator::IterateClose()

virtual status_t BShapeIterator::IterateLineTo(int32 lineCount, BPoint *linePoints)

virtual status_t BShapeIterator::IterateMoveTo(BPoint *linePoints)

These functions are called by Iterate() to process the shape commands. Your BShapeIterator-derived class must implement these four functions.