wxShapeFramework  1.13.0 beta
wxSFShapePasteEvent Class Reference

Class encapsulates wxEVT_SF_ON_PASTE event. More...

#include <SFEvents.h>

Collaboration diagram for wxSFShapePasteEvent:

List of all members.

Public Member Functions

 wxSFShapePasteEvent (wxEventType cmdType=wxEVT_NULL, wxSFShapeCanvas *target=NULL, int id=0)
 Constructor.
 wxSFShapePasteEvent (const wxSFShapePasteEvent &obj)
 Copy constructor.
virtual ~wxSFShapePasteEvent ()
 Destructor.
void SetPastedShapes (const ShapeList &list)
 Copy given shapes to the internal list of pasted shapes.
void SetDropTarget (wxSFShapeCanvas *target)
 Set drop target (shape canvas where shapes have been pasted to).
ShapeList & GetPastedShapes ()
 Get a shape object from the event object.
wxSFShapeCanvasGetDropTarget ()
 Get drop target (shape canvas where shapes have been pasted to).
wxEvent * Clone () const
 Clone this event object and return pointer to the new instance.

Private Attributes

ShapeList m_lstPastedShapes
 List of pasted shapes.
wxSFShapeCanvasm_pDropTarget
 Drop target.

Detailed Description

Class encapsulates wxEVT_SF_ON_PASTE event.


Constructor & Destructor Documentation

wxSFShapePasteEvent::wxSFShapePasteEvent ( wxEventType  cmdType = wxEVT_NULL,
wxSFShapeCanvas target = NULL,
int  id = 0 
)

Constructor.

Destructor.


Member Function Documentation

wxEvent* wxSFShapePasteEvent::Clone ( ) const [inline]

Clone this event object and return pointer to the new instance.

Get drop target (shape canvas where shapes have been pasted to).

Returns:
Pointer to drop target (shape canvas)
ShapeList& wxSFShapePasteEvent::GetPastedShapes ( ) [inline]

Get a shape object from the event object.

Returns:
Pointer to the shape object.

Set drop target (shape canvas where shapes have been pasted to).

Parameters:
targetPointer to drop target (shape canvas)
void wxSFShapePasteEvent::SetPastedShapes ( const ShapeList &  list)

Copy given shapes to the internal list of pasted shapes.

Parameters:
listReference to a list of copied shapes

Member Data Documentation

List of pasted shapes.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines