The Interface Kit Table of Contents | The Interface Kit Index |
Derived from: (none)
Declared in: be/interface/Shape.h
Library: libbe.so
Allocation: Constructor only
Applications can create classes derived from BShapeIterator to iterate over the components of a BShape object. There are four virtual functions that the application must implement to process the four graphics commands described in the BShape documentation: MoveTo(), LineTo(), BezierTo(), and Close().
These functions can be implemented to do anything they like with the commands (rendering them to the screen comes to mind as one possibility).
|
Constructor.
|
Destructor.
|
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.
|
These functions are called by Iterate() to process the shape commands. Your BShapeIterator-derived class must implement these four functions.
The Interface Kit Table of Contents | The Interface Kit Index |
Copyright © 2000 Be, Inc. All rights reserved..