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

CP_DemoImageView Class Reference

List of all members.

Public Member Functions

Constructor / Destructor
 CP_DemoImageView (CPLAT::CP_View *inSuperview, const CPLAT::CP_Point &inUpperLeft, const CPLAT::CP_Size &inContentSize, bool inUseOffscreen)
 Constructor.
virtual ~CP_DemoImageView () throw ()
 Destructor.
Setters
void SetSpec (CPLAT::CP_FileSystemSpec &inSpec)

Protected Member Functions

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

Protected Attributes

CPLAT::CP_FileSystemSpec fImageSpec
bool fUseOffscreen

Constructor & Destructor Documentation

CP_DemoImageView::CP_DemoImageView CPLAT::CP_View *  inSuperview,
const CPLAT::CP_Point &  inUpperLeft,
const CPLAT::CP_Size &  inContentSize,
bool  inUseOffscreen
 

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_DemoImageView::~CP_DemoImageView  )  throw () [virtual]
 

Destructor.

Exceptions:
none 


Member Function Documentation

void CP_DemoImageView::SetSpec CPLAT::CP_FileSystemSpec &  inSpec  ) 
 

Sets the file system spec used to draw the image.

Parameters:
inSpec The file system spec used to draw the image.
Exceptions:
none 
Returns:
void

void CP_DemoImageView::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


Member Data Documentation

CPLAT::CP_FileSystemSpec CP_DemoImageView::fImageSpec [protected]
 

bool CP_DemoImageView::fUseOffscreen [protected]
 


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