BShapeIterator

Derived From:
Mix-in Classes:
Declared In:interface/Shape.h
Library:libbe.so
Allocation:Constructor only
Class Overview

Constructor and Destructor

BShapeIterator()

BShapeIterator();

Constructor

BShapeIterator()

~BShapeIterator();

Destructor


Member Functions

Iterate()

status_t Iterate(BShapeshape);

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

Return CodeDescription

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 IterateBezierTo(int32 bezierCount,
                                 BPointbezierPoints);
virtual status_t IterateClose();virtual status_t IterateLineTo(int32 lineCount,
                               BPointlinePoints);
virtual status_t IterateMoveTo(BPointlinePoints);

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

Creative Commons License
Legal Notice
This work is licensed under a Creative Commons Attribution-Non commercial-No Derivative Works 3.0 License.