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_C-api.h | |
parent | bab6ede28687ff0b6f3cf579652224c7fdd79596 (diff) |
GHOST: add GHOST_HasWindowCursorShape() to test if standard cursor exists
Ref D5197
Diffstat (limited to 'intern/ghost/GHOST_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index 9c6a0861280..20bb144a924 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -316,7 +316,8 @@ extern GHOST_TSuccess GHOST_EndProgressBar(GHOST_WindowHandle windowhandle); extern GHOST_TStandardCursor GHOST_GetCursorShape(GHOST_WindowHandle windowhandle); /** - * Set the shape of the cursor. + * Set the shape of the cursor. If the shape is not supported by the platform, + * it will use the default cursor instead. * \param windowhandle The handle to the window * \param cursorshape The new cursor shape type id. * \return Indication of success. @@ -325,6 +326,13 @@ extern GHOST_TSuccess GHOST_SetCursorShape(GHOST_WindowHandle windowhandle, GHOST_TStandardCursor cursorshape); /** + * Test if the standard cursor shape is supported by current platform. + * \return Indication of success. + */ +extern GHOST_TSuccess GHOST_HasCursorShape(GHOST_WindowHandle windowhandle, + GHOST_TStandardCursor cursorshape); + +/** * Set the shape of the cursor to a custom cursor of specified size. * \param windowhandle The handle to the window * \param bitmap The bitmap data for the cursor. |