A canvas that is attached to an interactor on the screen.
![]() | PInteractorCanvas ( PInteractor * theInteractor, BOOL inPixels ) Create a canvas associated with an interactor on the screen. |
![]() | ~PInteractorCanvas () Destroy the interactor canvas. |
![]() | GetDrawingBounds () const Get the drawable area of the interactor, this would be the dimensions of the PInteractor class associated with the canvas. |
![]() | GetInteractor () const Get the interactor that the canvas is attached to. |
![]() | Scroll ( const PPoint & amt ) Scroll the contents of the canvas by the amount specified. |
![]() | Copy ( const PRect & srcRect, PCanvas & dst, const PPoint & pt ) Copy the contents of the srcRect in this canvas to the destination canvas at the position specified or area rectangle. |
![]() | Overrides from class PCanvas |
![]() | New functions for class |
![]() | interactor The interactor this canvas is attached to. |
PORDINATE Member variables
Run Time Type functions
Comparison functions
I/O functions
Miscellaneous functions
A canvas that is attached to an interactor on the screen. This is an abstract class with two main descendents. If the application wants to draw into the interactor outside of the automatic update mechanism it must use PDrawCanvas, while the PInteractor::OnRedraw() function of an interactor receives an instance of the PRedrawCanvas class.NOTE *********************************** On Some platforms, canvases are a limited resource. Do NOT create and leave them around for long periods. As soon as it is not required till the next user event, destroy it!
~PInteractorCanvas()
Overrides from class PCanvas
virtual PRect GetDrawingBounds() const
New functions for class
PInteractor* GetInteractor() const
void Scroll( const PPoint & amt )
void Copy( const PRect & srcRect, PCanvas & dst, const PPoint & pt )
dst - Canvas to copy area to.
pt - Position in canvas to copy the area to.PInteractor* interactor
Alphabetic index HTML hierarchy of classes or Java