| Derived From: | – |
| Mix-in Classes: | – |
| Declared In: | be/interface/Shape.h |
| Library: | libbe.so |
| Allocation: | Constructor only |
| Class Overview | |
status_t Iterate(BShape* shape);
Iterate() iterates over each command that comprises the shape, in order,
calling the Iterate…() function that corresponds to each command.
RETURN CODES
B_OK.No error.
None are defined at this time, but you should always check for errors returned by this function.
virtual status_t IterateBezierTo(int32 bezierCount,
BPoint* bezierPoints);virtual status_t IterateClose();virtual status_t IterateLineTo(int32 lineCount,
BPoint* linePoints);virtual status_t IterateMoveTo(BPoint* linePoints);
These functions are called by
Iterate()
to process the shape commands.
Your BShapeIterator-derived class must implement these four functions.