From 04581fad18851b40ca83627b82a92fc0ec1540e9 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sun, 29 Apr 2012 23:22:18 +0000 Subject: [PATCH] Explicitly document wxDrag_XXX flags. They were mentioned in DoDragDrop() documentation but not documented on their own. Do it now to be able to refer to them from elsewhere. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@71322 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- interface/wx/dnd.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/interface/wx/dnd.h b/interface/wx/dnd.h index fef09feb98..44bfbc2944 100644 --- a/interface/wx/dnd.h +++ b/interface/wx/dnd.h @@ -6,6 +6,16 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// +/** + Possible flags for drag and drop operations. + */ +enum +{ + wxDrag_CopyOnly = 0, ///< Allow only copying. + wxDrag_AllowMove = 1, ///< Allow moving too (copying is always allowed). + wxDrag_DefaultMove = 3 ///< Allow moving and make it default operation. +}; + /** @class wxTextDropTarget @@ -286,10 +296,11 @@ public: example. @param flags - If wxDrag_AllowMove is included in the flags, data may be moved and - not only copied (default). If wxDrag_DefaultMove is specified - (which includes the previous flag), this is even the default - operation. + If ::wxDrag_AllowMove is included in the flags, data may be moved + and not only copied as is the case for the default + ::wxDrag_CopyOnly. If ::wxDrag_DefaultMove is specified + (which includes the previous flag), moving is not only possible but + becomes the default operation. @return The operation requested by the user, may be ::wxDragCopy, ::wxDragMove, ::wxDragLink, ::wxDragCancel or ::wxDragNone if -- 2.45.2