original 1.0.1 release
[xwelltris.git] / src / include / wellinput.h
blobd36304cbfda3d28c0452b8c6d458734d8cbc7170
1 #ifndef WELLINPUT_H
2 #define WELLINPUT_H
4 #include "globals.h"
5 #include "wellobject.h"
6 #include "wellimagefont.h"
8 class WellInput: public WellObject
10 protected:
11 ObjectCaller object_on_enter;
12 char buf[L_MAXPATH];
13 int buflen,pos,maxlen;
14 WellImageFont *fnt;
16 virtual void draw_text();
18 public:
19 WellInput(char* keyname);
20 void set_object_on_enter(ObjectCaller o) { object_on_enter=o;};
21 virtual bool process_event(wEvent);
22 virtual void show();
23 virtual void hide();
24 virtual void redraw();
25 void set_text(char* txt);
26 void set_max_len(int ml) { maxlen=ml;};
27 virtual char* get_text() { return buf;};
30 #endif