00001 struct MouseData;
00002
00003 class Mouse : public SystemCode {
00004 friend class Window;
00005 _PROTECTED_:
00006
00007 int hx, hy;
00008 BOOL loaded;
00009 BOOL inited;
00010 MouseData *md;
00011 Bitmap *icon;
00012 #ifdef _DF_MOUSE_SRC_
00013 #ifdef DF_WIN
00014 #include <df/win32/mouse.hpp>
00015 #else
00016 #include <df/linux/mouse.hpp>
00017 #endif
00018 #endif
00019 public:
00020 BOOL Valid;
00021 Mouse();
00022 void Init();
00023 ~Mouse();
00024 BOOL Create(int, int, int, int, int, int, Window *) { return FALSE;}
00025 BOOL Create(Bitmap *icon, int _hx, int _hy);
00026 void Destroy();
00027
00028 BOOL Load(File *, int hx = 0, int hy = 0);
00029 BOOL Load(char *fn, int hx = 0, int hy = 0);
00030 void UnLoad() {Destroy();}
00031
00032 BOOL Modify(Bitmap *icon, int _newhx, int _newhy);
00033 void DisplayChange(int, int, int);
00034 static void Capture(Window *);
00035 static void Release();
00036 };