original 1.0.1 release
[xwelltris.git] / src / include / wellkey.h
blob08444f96a8ad4709815bfc17f2351747a5e1c72b
1 #ifndef WELLKEY_H
2 #define WELLKEY_H
4 #include "wellobject.h"
6 class WellKey: public WellObject
8 protected:
9 ObjectCaller object_on_press;
10 bool highlighted;
12 bool press(int mx, int my);
13 bool highlight(int mx, int my);
15 public:
16 WellKey(char* keyname);
17 void set_object_on_press(ObjectCaller o) { object_on_press=o;};
18 virtual bool process_event(wEvent);
19 virtual void show();
20 virtual void hide();
21 virtual void redraw();
24 #endif