00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031 #ifndef Fl_Value_Input_H
00032 #define Fl_Value_Input_H
00033
00034 #include "Fl_Valuator.H"
00035 #include "Fl_Input.H"
00036
00065 class FL_EXPORT Fl_Value_Input : public Fl_Valuator {
00066 public:
00067
00068
00069 Fl_Input input;
00070 private:
00071 char soft_;
00072 static void input_cb(Fl_Widget*,void*);
00073 virtual void value_damage();
00074 public:
00075 int handle(int);
00076 protected:
00077 void draw();
00078 public:
00079 void resize(int,int,int,int);
00080 Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
00081 ~Fl_Value_Input();
00082
00084 void soft(char s) {soft_ = s;}
00091 char soft() const {return soft_;}
00108 int shortcut() const {return input.shortcut();}
00110 void shortcut(int s) {input.shortcut(s);}
00111
00113 Fl_Font textfont() const {return input.textfont();}
00115 void textfont(Fl_Font s) {input.textfont(s);}
00117 Fl_Fontsize textsize() const {return input.textsize();}
00119 void textsize(Fl_Fontsize s) {input.textsize(s);}
00121 Fl_Color textcolor() const {return input.textcolor();}
00123 void textcolor(Fl_Color n) {input.textcolor(n);}
00125 Fl_Color cursor_color() const {return input.cursor_color();}
00127 void cursor_color(Fl_Color n) {input.cursor_color(n);}
00128
00129 };
00130
00131 #endif
00132
00133
00134
00135