]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/gtk/dnd.h
Fix missing documentation for several GDI functions.
[wxWidgets.git] / include / wx / gtk / dnd.h
index 66a1c3a75743adb3d8a8002ca13c5a77e8329ab7..c9f677d3c7488e0cea2075185793c262d3d45f24 100644 (file)
@@ -81,6 +81,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);