diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-16 20:45:57 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-06-16 20:58:26 +0300 |
commit | 087a4898676d744d4aaa46a59b47186825495820 (patch) | |
tree | a3ec2cbd2060a567f87dcd6790f507e7641187a8 /intern/ghost/GHOST_C-api.h | |
parent | 5767dcbe60c07cd9ef113e2f54eaad6981a47bce (diff) |
Cleanup: simplify GHOST cursor API, no functional changes
Diffstat (limited to 'intern/ghost/GHOST_C-api.h')
-rw-r--r-- | intern/ghost/GHOST_C-api.h | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/intern/ghost/GHOST_C-api.h b/intern/ghost/GHOST_C-api.h index b54c097c2ab..0f735711b24 100644 --- a/intern/ghost/GHOST_C-api.h +++ b/intern/ghost/GHOST_C-api.h @@ -325,20 +325,6 @@ extern GHOST_TSuccess GHOST_SetCursorShape(GHOST_WindowHandle windowhandle, GHOST_TStandardCursor cursorshape); /** - * Set the shape of the cursor to a custom cursor. - * \param windowhandle The handle to the window - * \param bitmap The bitmap data for the cursor. - * \param mask The mask data for the cursor. - * \param hotX The X coordinate of the cursor hotspot. - * \param hotY The Y coordinate of the cursor hotspot. - * \return Indication of success. - */ -extern GHOST_TSuccess GHOST_SetCustomCursorShape(GHOST_WindowHandle windowhandle, - GHOST_TUns8 bitmap[16][2], - GHOST_TUns8 mask[16][2], - int hotX, - int hotY); -/** * 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. @@ -347,18 +333,17 @@ extern GHOST_TSuccess GHOST_SetCustomCursorShape(GHOST_WindowHandle windowhandle * \param sizey The height of the cursor * \param hotX The X coordinate of the cursor hotspot. * \param hotY The Y coordinate of the cursor hotspot. - * \param fg_color, bg_color Colors of the cursor + * \param canInvertColor Let macOS invert cursor color to match platform convention. * \return Indication of success. */ -extern GHOST_TSuccess GHOST_SetCustomCursorShapeEx(GHOST_WindowHandle windowhandle, - GHOST_TUns8 *bitmap, - GHOST_TUns8 *mask, - int sizex, - int sizey, - int hotX, - int hotY, - int fg_color, - int bg_color); +extern GHOST_TSuccess GHOST_SetCustomCursorShape(GHOST_WindowHandle windowhandle, + GHOST_TUns8 *bitmap, + GHOST_TUns8 *mask, + int sizex, + int sizey, + int hotX, + int hotY, + GHOST_TUns8 canInvertColor); /** * Returns the visibility state of the cursor. |