]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/dnd.h
Don't define __STRICT_ANSI__, we should build both with and without it.
[wxWidgets.git] / include / wx / gtk / dnd.h
index 66a1c3a75743adb3d8a8002ca13c5a77e8329ab7..0aea7b41f6c392b3a967ed48a03304af6962dfdb 100644 (file)
@@ -2,7 +2,6 @@
 // Name:        wx/gtk/dnd.h
 // Purpose:     declaration of the wxDropTarget class
 // Author:      Robert Roebling
-// RCS-ID:      $Id$
 // Copyright:   (c) 1998 Vadim Zeitlin, Robert Roebling
 // Licence:     wxWindows licence
 ///////////////////////////////////////////////////////////////////////////////
@@ -81,6 +80,17 @@ public:
 
     virtual ~wxDropSource();
 
+    // set the icon corresponding to given drag result
+    void SetIcon(wxDragResult res, const wxIcon& icon)
+    {
+        if ( res == wxDragCopy )
+            m_iconCopy = icon;
+        else if ( res == wxDragMove )
+            m_iconMove = icon;
+        else
+            m_iconNone = icon;
+    }
+
     // start drag action
     virtual wxDragResult DoDragDrop(int flags = wxDrag_CopyOnly);