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

DragSourceView Class Reference

CP_View class to serve as a drag and drop CP_M_Source object.

List of all members.

Public Member Functions

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

Protected Member Functions

Drawing
virtual void OnDraw (CPLAT::CP_Canvas &inCanvas, CPLAT::CP_Region &inUpdateArea)
Drag and Drop
virtual void AddDragImage (CPLAT::CP_DragDrop &inDragDrop, const CPLAT::CP_Point &inStartPoint)
Events
virtual void InitEventHandler (CPLAT::CP_EventHandler &inEventHandler)
void HandleControlHitEvent (CPLAT::CP_Event_Base &inEvent)


Constructor & Destructor Documentation

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

Constructor.

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

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

Destructor.

Exceptions:
none 


Member Function Documentation

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

Draw the contents of this view.

Parameters:
inCanvas The destination CP_Canvas object.
inUpdateArea The area needing to be updated.
Exceptions:
none 
Returns:
void

void DragSourceView::AddDragImage CPLAT::CP_DragDrop &  inDragDrop,
const CPLAT::CP_Point &  inStartPoint
[protected, virtual]
 

Adds a drag image to the drag.

Parameters:
inDragDrop The CP_DragDrop that is performing the drag and drop.
inStartPoint The upper left corner for this image.
Exceptions:
none 
Returns:
void

void DragSourceView::InitEventHandler CPLAT::CP_EventHandler &  inEventHandler  )  [protected, virtual]
 

Install our event handlers. For this demo, we only install a control hit handler to be notified when the user clicks in this view.

Parameters:
inEventHandler The event handler to install the events to.
Exceptions:
none 
Returns:
void

void DragSourceView::HandleControlHitEvent CPLAT::CP_Event_Base &  inEvent  )  [protected]
 

Handle clicks in this view to being the drag and drop process.

Parameters:
inEvent The control click event when the user clicks in this view.
Exceptions:
none 
Returns:
void


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