Commit of cursor framework. Cursors now defined in source/blender/src/cursors.c and
[blender.git] / source / blender / src / winlay.h
index 5cfac471710d777610c7094d3d84b2d7101a13e0..29b15700fcf55a5f80f0585a977418655aa518b7 100644 (file)
@@ -31,6 +31,8 @@
  */
 
 /* Abstract window operations */
+
+#include "GHOST_C-api.h"
        
 typedef struct _Window Window;
 typedef void   (*WindowHandlerFP)      (Window *win, void *user_data, short evt, short val, char ascii);
@@ -79,3 +81,29 @@ void winlay_process_events   (int wait_for_event);
 
 void   winlay_get_screensize   (int *width_r, int *height_r);
 
+
+struct _Window {
+       GHOST_WindowHandle      ghostwin;
+       
+               /* Handler and private data for handler */
+       WindowHandlerFP         handler;
+       void                            *user_data;
+       
+               /* Window state */
+       int             size[2], position[2];
+       int             active, visible;
+       
+               /* Last known mouse/button/qualifier state */
+       int             lmouse[2];
+       int             lqual;          /* (LR_SHFTKEY, LR_CTRLKEY, LR_ALTKEY) */
+       int             lmbut;          /* (L_MOUSE, M_MOUSE, R_MOUSE) */
+       int             commandqual;
+
+               /* Tracks the faked mouse button, if non-zero it is
+                * the event number of the last faked button.
+                */
+       int             faked_mbut;
+
+       GHOST_TimerTaskHandle   timer;
+       int                                             timer_event;
+};