source: golgotha/src/i4/video/win32/dx5_mouse.hh @ 80

Last change on this file since 80 was 80, checked in by Sam Hocevar, 15 years ago
  • Adding the Golgotha source code. Not sure what's going to be interesting in there, but since it's all public domain, there's certainly stuff to pick up.
File size: 1.2 KB
Line 
1/********************************************************************** <BR>
2  This file is part of Crack dot Com's free source code release of
3  Golgotha. <a href="http://www.crack.com/golgotha_release"> <BR> for
4  information about compiling & licensing issues visit this URL</a>
5  <PRE> If that doesn't help, contact Jonathan Clark at
6  golgotha_source@usa.net (Subject should have "GOLG" in it)
7***********************************************************************/
8
9#ifndef DX5_MOUSE_HH
10#define DX5_MOUSE_HH
11
12#include "video/win32/dx5_util.hh"
13#include "window/cursor.hh"
14
15class i4_cursor_class;
16
17class dx5_mouse_class
18{
19  struct save_struct
20  {
21    i4_dx5_image_class *save_buffer;
22    int x,y;
23    save_struct() { save_buffer=0; }
24
25    ~save_struct()
26    {
27      if (save_buffer)
28        delete save_buffer;
29      save_buffer=0;
30    }
31  }
32  current, last;
33
34  i4_cursor_class cursor;
35  i4_bool page_flipped;
36
37public:
38  dx5_mouse_class(i4_bool page_flipped);
39
40  virtual void save_and_draw(int x, int y);
41  virtual void restore();
42  virtual void set_cursor(i4_cursor_class *cursor);
43
44  virtual ~dx5_mouse_class();
45} ;
46
47
48#endif
Note: See TracBrowser for help on using the repository browser.