|
wxShapeFramework
1.13.0 beta
|
Class encapsulates wxEVT_SF_ON_DROP event. More...
#include <SFEvents.h>

Public Member Functions | |
| wxSFShapeDropEvent (wxEventType cmdType=wxEVT_NULL, wxCoord x=0, wxCoord y=0, wxSFShapeCanvas *target=NULL, wxDragResult def=wxDragNone, int id=0) | |
| Constructor. | |
| wxSFShapeDropEvent (const wxSFShapeDropEvent &obj) | |
| Copy constructor. | |
| virtual | ~wxSFShapeDropEvent () |
| Destructor. | |
| void | SetDroppedShapes (const ShapeList &list) |
| Copy given shapes to the internal list of dropped shapes. | |
| void | SetDropPosition (const wxPoint &pos) |
| Set a position where the shapes were dropped. | |
| void | SetDragResult (wxDragResult def) |
| Set drag result. | |
| void | SetDropTarget (wxSFShapeCanvas *target) |
| Set drop target (shape canvas where shapes have been dropped to). | |
| ShapeList & | GetDroppedShapes () |
| Get a shape object from the event object. | |
| wxPoint | GetDropPosition () |
| Get drop position. | |
| wxDragResult | GetDragResult () |
| Get drag result. | |
| wxSFShapeCanvas * | GetDropTarget () |
| Get drop target (shape canvas where shapes have been dropped to). | |
| wxEvent * | Clone () const |
| Clone this event object and return pointer to the new instance. | |
Private Attributes | |
| ShapeList | m_lstDroppedShapes |
| List of dropped shapes. | |
| wxSFShapeCanvas * | m_pDropTarget |
| Drop target. | |
| wxPoint | m_nDropPosition |
| Drop position. | |
| wxDragResult | m_nDragResult |
| Drag result. | |
Class encapsulates wxEVT_SF_ON_DROP event.
| wxSFShapeDropEvent::wxSFShapeDropEvent | ( | wxEventType | cmdType = wxEVT_NULL, |
| wxCoord | x = 0, |
||
| wxCoord | y = 0, |
||
| wxSFShapeCanvas * | target = NULL, |
||
| wxDragResult | def = wxDragNone, |
||
| int | id = 0 |
||
| ) |
Constructor.
| wxSFShapeDropEvent::wxSFShapeDropEvent | ( | const wxSFShapeDropEvent & | obj | ) |
Copy constructor.
| virtual wxSFShapeDropEvent::~wxSFShapeDropEvent | ( | ) | [virtual] |
Destructor.
| wxEvent* wxSFShapeDropEvent::Clone | ( | ) | const [inline] |
Clone this event object and return pointer to the new instance.
| wxDragResult wxSFShapeDropEvent::GetDragResult | ( | ) | [inline] |
Get drag result.
| ShapeList& wxSFShapeDropEvent::GetDroppedShapes | ( | ) | [inline] |
Get a shape object from the event object.
| wxPoint wxSFShapeDropEvent::GetDropPosition | ( | ) | [inline] |
Get drop position.
| wxSFShapeCanvas* wxSFShapeDropEvent::GetDropTarget | ( | ) | [inline] |
Get drop target (shape canvas where shapes have been dropped to).
| void wxSFShapeDropEvent::SetDragResult | ( | wxDragResult | def | ) | [inline] |
Set drag result.
| def | Drag result |
| void wxSFShapeDropEvent::SetDroppedShapes | ( | const ShapeList & | list | ) |
Copy given shapes to the internal list of dropped shapes.
| list | Reference to a list of copied shapes |
| void wxSFShapeDropEvent::SetDropPosition | ( | const wxPoint & | pos | ) | [inline] |
Set a position where the shapes were dropped.
| pos | Position |
| void wxSFShapeDropEvent::SetDropTarget | ( | wxSFShapeCanvas * | target | ) | [inline] |
Set drop target (shape canvas where shapes have been dropped to).
| target | Pointer to drop target (shape canvas) |
ShapeList wxSFShapeDropEvent::m_lstDroppedShapes [private] |
List of dropped shapes.
wxDragResult wxSFShapeDropEvent::m_nDragResult [private] |
Drag result.
wxPoint wxSFShapeDropEvent::m_nDropPosition [private] |
Drop position.
wxSFShapeCanvas* wxSFShapeDropEvent::m_pDropTarget [private] |
Drop target.