Drag'n'drop : moved "setAcceptDragOperation" functions at window level
[blender.git] / intern / ghost / GHOST_IWindow.h
index 512fad877cb1d2cc6a3842537cddcf70236d9f95..5d1e0a67e7ee5002ec4d222bfd6588b44c450314 100644 (file)
@@ -148,6 +148,17 @@ public:
         */
        virtual void clientToScreen(GHOST_TInt32 inX, GHOST_TInt32 inY, GHOST_TInt32& outX, GHOST_TInt32& outY) const = 0;
 
+       /**
+        * Tells if the ongoing drag'n'drop object can be accepted upon mouse drop
+        */
+       virtual void setAcceptDragOperation(bool canAccept) = 0;
+       
+       /**
+        * Returns acceptance of the dropped object
+        * Usually called by the "object dropped" event handling function
+        */
+       virtual bool canAcceptDragOperation() const = 0;
+       
        /**
         * Returns the state of the window (normal, minimized, maximized).
         * @return The state of the window.