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

CP_HelloWorld_View Class Reference

CP_View subclass to display "Hello World from CPLAT" in the content area.

List of all members.

Public Member Functions

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

Protected Member Functions

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


Constructor & Destructor Documentation

CP_HelloWorld_View::CP_HelloWorld_View 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 

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

Destructor.

Exceptions:
none 


Member Function Documentation

void CP_HelloWorld_View::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 display the line "Hello World from CPLAT" in the default font for a view.

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:25:02 2005 for CPLAT_MacOS by  doxygen 1.4.0