diff options
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r-- | intern/ghost/GHOST_IWindow.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h index 0861d8b8946..d91995e35ec 100644 --- a/intern/ghost/GHOST_IWindow.h +++ b/intern/ghost/GHOST_IWindow.h @@ -252,6 +252,14 @@ public: * @return Indication of success. */ virtual GHOST_TSuccess setCursorVisibility(bool visible) = 0; + + /** + * Grabs the cursor for a modal operation. + * @param grab The new grab state of the cursor. + * @return Indication of success. + */ + virtual GHOST_TSuccess setCursorGrab(bool grab) { return GHOST_kSuccess; }; + }; #endif // _GHOST_IWINDOW_H_ |