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

CP_DemoShapesView Class Reference

List of all members.

Public Member Functions

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

Protected Member Functions

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

Private Member Functions

Drawing
SInt16 DrawRects (CPLAT::CP_Graphics &inGraphics, SInt16 inStartVerPosn)
SInt16 DrawBezier (CPLAT::CP_Graphics &inGraphics, SInt16 inStartVerPosn)
SInt16 DrawPolygons (CPLAT::CP_Graphics &inGraphics, SInt16 inStartVerPosn)

Constructor & Destructor Documentation

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

Constructor.

Parameters:
inSuperview The CP_View that contains this view.
inUpperLeft Upperleft coordinate of view.
inContentSize The size of the view.
inUseOffscreen Flag to indicate if the image should be drawn using an offscreen canvas.
Exceptions:
none 

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

Destructor.

Exceptions:
none 


Member Function Documentation

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

Perform the actual drawing of the view.

Parameters:
inCanvas CP_Canvas object to draw into.
inUpdateArea CP_Region containing the area to draw.
Exceptions:
none 
Returns:
void

SInt16 CP_DemoShapesView::DrawRects CPLAT::CP_Graphics &  inGraphics,
SInt16  inStartVerPosn
[private]
 

Draw example rects using CP_Graphics. Called from the OnDraw() method.

Parameters:
inGraphics The CP_Graphics object we are drawing to.
inStartVerPosn The starting vertical position for drawing.
Exceptions:
none 
Returns:
SInt16 The height in pixel occupied by this method to draw its shpaes.

SInt16 CP_DemoShapesView::DrawBezier CPLAT::CP_Graphics &  inGraphics,
SInt16  inStartVerPosn
[private]
 

Draw example bezier curves using CP_Graphics. Called from the OnDraw() method.

Parameters:
inGraphics The CP_Graphics object we are drawing to.
inStartVerPosn The starting vertical position for drawing.
Exceptions:
none 
Returns:
SInt16 The height in pixel occupied by this method to draw its shpaes.

SInt16 CP_DemoShapesView::DrawPolygons CPLAT::CP_Graphics &  inGraphics,
SInt16  inStartVerPosn
[private]
 

Draw example polygons using CP_Graphics. Called from the OnDraw() method.

Parameters:
inGraphics The CP_Graphics object we are drawing to.
inStartVerPosn The starting vertical position for drawing.
Exceptions:
none 
Returns:
SInt16 The height in pixel occupied by this method to draw its shpaes.


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