X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d394edcac8c94d0ac1c1025f5b43bb372f8eb905..41fecb4451682f11e352fc5b9b7383f6335322a7:/wxPython/src/clip_dnd.i diff --git a/wxPython/src/clip_dnd.i b/wxPython/src/clip_dnd.i index bf4acd7712..1c0b7b3dc5 100644 --- a/wxPython/src/clip_dnd.i +++ b/wxPython/src/clip_dnd.i @@ -13,8 +13,6 @@ %module clip_dnd -#ifndef __WXMAC__ - %{ #include "helpers.h" #include @@ -427,6 +425,15 @@ public: //---------------------------------------------------------------------- //---------------------------------------------------------------------- +// flags for wxDropSource::DoDragDrop() +// +enum +{ + wxDrag_CopyOnly = 0, // allow only copying + wxDrag_AllowMove = 1, // allow moving (copying is always allowed) + wxDrag_DefaultMove = 3 // the default operation is move, not copy +}; + enum wxDragResult { wxDragError, // error prevented the d&d operation from completing @@ -484,7 +491,7 @@ public: void SetData(wxDataObject& data); wxDataObject *GetDataObject(); void SetCursor(wxDragResult res, const wxCursor& cursor); - wxDragResult DoDragDrop(int bAllowMove = FALSE); + wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly); bool base_GiveFeedback(wxDragResult effect); }; @@ -665,5 +672,5 @@ public: %} //---------------------------------------------------------------------- -#endif +