Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

Undo_TestView Class Reference

CP_View class to draw items to demonstrate undo/redo.

List of all members.

Public Member Functions

Constructor / Destructor
 Undo_TestView (CPLAT::CP_View *inSuperview, const CPLAT::CP_Point &inUpperLeft, const CPLAT::CP_Size &inContentSize)
 Constructor.
virtual ~Undo_TestView () throw ()
 Destructor.

Protected Member Functions

Drawing
virtual void OnDraw (CPLAT::CP_Canvas &inCanvas, CPLAT::CP_Region &inUpdateArea)


Constructor & Destructor Documentation

Undo_TestView::Undo_TestView CPLAT::CP_View *  inSuperview,
const CPLAT::CP_Point &  inUpperLeft,
const CPLAT::CP_Size &  inContentSize
 

Constructor.

Parameters:
inSuperview The subview handler that contains this pane.
inUpperLeft Upper left corner of pane in releation to its superview.
inContentSize Content size of the pane.
Exceptions:
none 

Undo_TestView::~Undo_TestView  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

void Undo_TestView::OnDraw CPLAT::CP_Canvas &  inCanvas,
CPLAT::CP_Region &  inUpdateArea
[protected, virtual]
 

Called when the view needs to update the visual appearance of itself. In this demo we use the CP_Graphics class to draw rectangles.

Parameters:
inCanvas The CP_Canvas to draw into.
inUpdateArea The area that needs to be drawn.
Exceptions:
none 
Returns:
void


The documentation for this class was generated from the following files:
Generated on Tue Sep 20 20:29:19 2005 for CPLAT_MacOS by  doxygen 1.4.0