Commit of cursor framework. Cursors now defined in source/blender/src/cursors.c and
[blender.git] / intern / ghost / GHOST_C-api.h
index 35191c4e45dca4e46a34640e83e9670b44a88d3e..ba22074a62039b8409505ea53ef209854e4ad721 100644 (file)
@@ -300,6 +300,23 @@ extern GHOST_TSuccess GHOST_SetCustomCursorShape(GHOST_WindowHandle windowhandle
                                                                                                 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.
+ * @param      mask    The mask data for the cursor.
+ * @parm    sizex, sizey  The size 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
+ * @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 );
 
 /**
  * Returns the visibility state of the cursor.