TBasicCanvasGraphic is constructed from any MGraphic. You can use this class to construct graphics such as rectangles and ellipses, and to act as a wrapper for any MGraphic that you want to incorporate into your GrafEdit application. If you derive from MCanvasGraphic to create your own canvas graphic, you must override the MCanvasGraphic HandleDraw, HandleGetBounds, HandleHit, HandleCreateInteractor, and HandleCreateFeedbacker. These classes are described later in this section.
The TSRTBoxFeedbacker canvas graphic is described under "Selection feedback graphic" on page 106.
Basic canvas graphic constructors
TBasicCanvasGraphic constructors take an MGraphic or another TBasicCanvasGraphic as a parameter. Use TBasicCanvasGraphic to create canvas graphics from MGraphic derived classes at run time. TBasicCanvasGraphic( const MGraphic* adoptGraphicToRepresent );
TBasicCanvasGraphic( const MGraphic& theGraphicToRepresent );
TBasicCanvasGraphic( const TBasicCanvasGraphic& );
TBasicCanvasGraphic(); Shape classes constructors
The canvas graphic-shape class constructors take the relevant geometry or another canvas graphic derived class of the same type as a parameter. TCanvasPolygon( const TGPolygon& aPolygonGeometry );
TCanvasPolygon( const TCanvasPolygon& aPolygonCanvasGraphic );
[Contents]
[Previous]
[Next]
Click the icon to mail questions or corrections about this material to Taligent personnel.
Generated with WebMaker