From 169b0cbee98d9fa789855f345249941ab3963f0d Mon Sep 17 00:00:00 2001 From: Damien Plisson Date: Thu, 19 Nov 2009 08:56:26 +0000 Subject: Drag'n'drop : moved "setAcceptDragOperation" functions at window level GHOST/Cocoa : changed strings encoding to isoLatin1 (was UTF-8) --- intern/ghost/GHOST_IWindow.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'intern/ghost/GHOST_IWindow.h') diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h index 512fad877cb..5d1e0a67e7e 100644 --- a/intern/ghost/GHOST_IWindow.h +++ b/intern/ghost/GHOST_IWindow.h @@ -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. -- cgit v1.2.3