FLTK 1.3.2

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

Fl_Value_Input.H

    00001 //
    00002 // "$Id: Fl_Value_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
    00003 //
    00004 // Value input header file for the Fast Light Tool Kit (FLTK).
    00005 //
    00006 // Copyright 1998-2010 by Bill Spitzak and others.
    00007 //
    00008 // This library is free software. Distribution and use rights are outlined in
    00009 // the file "COPYING" which should have been included with this file.  If this
    00010 // file is missing or damaged, see the license at:
    00011 //
    00012 //     http://www.fltk.org/COPYING.php
    00013 //
    00014 // Please report all bugs and problems on the following page:
    00015 //
    00016 //     http://www.fltk.org/str.php
    00017 //
    00018
    00019 /* \file
    00020    Fl_Value_Input widget . */
    00021
    00022 #ifndef Fl_Value_Input_H
    00023 #define Fl_Value_Input_H
    00024
    00025 #include "Fl_Valuator.H"
    00026 #include "Fl_Input.H"
    00027
    00056 class FL_EXPORT Fl_Value_Input : public Fl_Valuator {
    00057 public:
    00058   /* This is the encapsulated Fl_input attribute to which
    00059   this class delegates the value font, color and shortcut */
    00060   Fl_Input input;
    00061 private:
    00062   char soft_;
    00063   static void input_cb(Fl_Widget*,void*);
    00064   virtual void value_damage(); // cause damage() due to value() changing
    00065 public:
    00066   int handle(int);
    00067 protected:
    00068   void draw();
    00069 public:
    00070   void resize(int,int,int,int);
    00071   Fl_Value_Input(int x,int y,int w,int h,const char *l=0);
    00072   ~Fl_Value_Input();
    00073
    00075   void soft(char s) {soft_ = s;}
    00082   char soft() const {return soft_;}
    00087   int shortcut() const {return input.shortcut();}
    00105   void shortcut(int s) {input.shortcut(s);}
    00106
    00108   Fl_Font textfont() const {return input.textfont();}
    00110   void textfont(Fl_Font s) {input.textfont(s);}
    00112   Fl_Fontsize textsize() const {return input.textsize();}
    00114   void textsize(Fl_Fontsize s) {input.textsize(s);}
    00116   Fl_Color textcolor() const {return input.textcolor();}
    00118   void textcolor(Fl_Color n) {input.textcolor(n);}
    00120   Fl_Color cursor_color() const {return input.cursor_color();}
    00122   void cursor_color(Fl_Color n) {input.cursor_color(n);}
    00123
    00124 };
    00125
    00126 #endif
    00127
    00128 //
    00129 // End of "$Id: Fl_Value_Input.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
    00130 //