git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43636
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxDragCancel // the operation was cancelled by user (not an error)
};
-inline WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res)
-{
- return res == wxDragCopy || res == wxDragMove || res == wxDragLink;
-}
+// return true if res indicates that something was done during a dnd operation,
+// i.e. is neither error nor none nor cancel
+WXDLLEXPORT bool wxIsDragResultOk(wxDragResult res);
// ----------------------------------------------------------------------------
// wxDropSource is the object you need to create (and call DoDragDrop on it)
#include "wx/dnd.h"
-// Not much to do here, really, but GNU need this file.
+bool wxIsDragResultOk(wxDragResult res)
+{
+ return res == wxDragCopy || res == wxDragMove || res == wxDragLink;
+}
+