X-Git-Url: https://git.blender.org/gitweb/gitweb.cgi/blender.git/blobdiff_plain/525fbb22d22f0c8b8d5e13440fa1328bd56036db..169b0cbee98d9fa789855f345249941ab3963f0d:/intern/ghost/intern/GHOST_Window.h diff --git a/intern/ghost/intern/GHOST_Window.h b/intern/ghost/intern/GHOST_Window.h index 86447a8623c..1b5681dc41c 100644 --- a/intern/ghost/intern/GHOST_Window.h +++ b/intern/ghost/intern/GHOST_Window.h @@ -183,6 +183,17 @@ public: */ virtual GHOST_TSuccess getCursorGrabBounds(GHOST_Rect& bounds); + /** + * Tells if the ongoing drag'n'drop object can be accepted upon mouse drop + */ + virtual void setAcceptDragOperation(bool canAccept); + + /** + * Returns acceptance of the dropped object + * Usually called by the "object dropped" event handling function + */ + virtual bool canAcceptDragOperation() const; + /** * Sets the window "modified" status, indicating unsaved changes * @param isUnsavedChanges Unsaved changes or not @@ -294,6 +305,9 @@ protected: /** The current shape of the cursor */ GHOST_TStandardCursor m_cursorShape; + /** The acceptance of the "drop candidate" of the current drag'n'drop operation */ + bool m_canAcceptDragOperation; + /** Modified state : are there unsaved changes */ bool m_isUnsavedChanges;