diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-26 15:31:43 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-09-26 15:31:43 +0300 |
commit | 6292cab193a6aa2a80ceba929079b47de7d8f48a (patch) | |
tree | 2a8dc1a2c8814679a923d57be96d088b6e321c1d /intern/ghost/GHOST_IWindow.h | |
parent | bab6ede28687ff0b6f3cf579652224c7fdd79596 (diff) |
GHOST: add GHOST_HasWindowCursorShape() to test if standard cursor exists
Ref D5197
Diffstat (limited to 'intern/ghost/GHOST_IWindow.h')
-rw-r--r-- | intern/ghost/GHOST_IWindow.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/intern/ghost/GHOST_IWindow.h b/intern/ghost/GHOST_IWindow.h index 1a1844bfe41..03a0db9abbe 100644 --- a/intern/ghost/GHOST_IWindow.h +++ b/intern/ghost/GHOST_IWindow.h @@ -280,6 +280,12 @@ class GHOST_IWindow { virtual GHOST_TSuccess setCursorShape(GHOST_TStandardCursor cursorShape) = 0; /** + * Test if the standard cursor shape is supported by current platform. + * \return Indication of success. + */ + virtual GHOST_TSuccess hasCursorShape(GHOST_TStandardCursor cursorShape) = 0; + + /** * Set the shape of the cursor to a custom cursor. * \param bitmap The bitmap data for the cursor. * \param mask The mask data for the cursor. |