FLTK 1.3.0
Fl_Value_Output.H
00001 //
00002 // "$Id$"
00003 //
00004 // Value output 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_Output widget . */
00021 
00022 #ifndef Fl_Value_Output_H
00023 #define Fl_Value_Output_H
00024 
00025 #ifndef Fl_Valuator_H
00026 #include "Fl_Valuator.H"
00027 #endif
00028 
00041 class FL_EXPORT Fl_Value_Output : public Fl_Valuator {
00042   Fl_Font textfont_;
00043   Fl_Fontsize textsize_;
00044   uchar soft_;
00045   Fl_Color textcolor_;
00046 
00047 protected:
00048   void draw();
00049 
00050 public:
00051   int handle(int);
00052   Fl_Value_Output(int x,int y,int w,int h,const char *l=0);
00053 
00060   void soft(uchar s) {soft_ = s;}
00067   uchar soft() const {return soft_;}
00068 
00070   Fl_Font textfont() const {return textfont_;}
00072   void textfont(Fl_Font s) {textfont_ = s;}
00074   Fl_Fontsize textsize() const {return textsize_;}
00075   void textsize(Fl_Fontsize s) {textsize_ = s;}
00077   Fl_Color textcolor() const {return textcolor_;}
00079   void textcolor(Fl_Color s) {textcolor_ = s;}
00080 };
00081 
00082 #endif
00083 
00084 //
00085 // End of "$Id$".
00086 //