diff options
author | Robert Wenzlaff <rwenzlaff@soylent-green.com> | 2003-12-26 23:12:42 +0300 |
---|---|---|
committer | Robert Wenzlaff <rwenzlaff@soylent-green.com> | 2003-12-26 23:12:42 +0300 |
commit | 85ae21d5dda29fcd6b0f7a145804323b084a5801 (patch) | |
tree | 237969cf87f5bae721d2f46c95fbb14f2b6bb4f5 /source/blender/src/winlay.h | |
parent | da0e131b1665b283fc53606dff43c21d7b7a2902 (diff) |
Commit of cursor framework. Cursors now defined in source/blender/src/cursors.c and
source/blender/include/BIF_cursors.h. Allows large cursors on Win32 and X11.
See cursors.c for documentatioin on how to use.
Diffstat (limited to 'source/blender/src/winlay.h')
-rw-r--r-- | source/blender/src/winlay.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/source/blender/src/winlay.h b/source/blender/src/winlay.h index 5cfac471710..29b15700fcf 100644 --- a/source/blender/src/winlay.h +++ b/source/blender/src/winlay.h @@ -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; +}; |