wxShapeFramework  1.13.0 beta
wxSFShapePasteEvent Class Reference

Class encapsulates wxEVT_SF_ON_PASTE event. More...

#include <SFEvents.h>

Inheritance diagram for wxSFShapePasteEvent:
Collaboration diagram for wxSFShapePasteEvent:

Public Member Functions

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

Private Attributes

ShapeList m_lstPastedShapes
 List of pasted shapes. More...
 
wxSFShapeCanvasm_pDropTarget
 Drop target. More...
 

Detailed Description

Class encapsulates wxEVT_SF_ON_PASTE event.

Constructor & Destructor Documentation

◆ wxSFShapePasteEvent() [1/2]

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

Constructor.

◆ wxSFShapePasteEvent() [2/2]

wxSFShapePasteEvent::wxSFShapePasteEvent ( const wxSFShapePasteEvent obj)

Copy constructor.

◆ ~wxSFShapePasteEvent()

virtual wxSFShapePasteEvent::~wxSFShapePasteEvent ( )
virtual

Destructor.

Member Function Documentation

◆ Clone()

wxEvent* wxSFShapePasteEvent::Clone ( ) const
inline

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

◆ GetDropTarget()

wxSFShapeCanvas* wxSFShapePasteEvent::GetDropTarget ( )
inline

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

Returns
Pointer to drop target (shape canvas)

◆ GetPastedShapes()

ShapeList& wxSFShapePasteEvent::GetPastedShapes ( )
inline

Get a shape object from the event object.

Returns
Pointer to the shape object.

◆ SetDropTarget()

void wxSFShapePasteEvent::SetDropTarget ( wxSFShapeCanvas target)
inline

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

Parameters
targetPointer to drop target (shape canvas)

◆ SetPastedShapes()

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

◆ m_lstPastedShapes

ShapeList wxSFShapePasteEvent::m_lstPastedShapes
private

List of pasted shapes.

◆ m_pDropTarget

wxSFShapeCanvas* wxSFShapePasteEvent::m_pDropTarget
private

Drop target.


The documentation for this class was generated from the following file: