00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016 #ifndef _FLU_OUTPUT_H
00017 #define _FLU_OUTPUT_H
00018
00019 #include <FL/Fl_Output.H>
00020
00021 #include <stdlib.h>
00022 #include <string.h>
00023 #include <stdio.h>
00024
00025 #include "FLU/Flu_Enumerations.h"
00026
00028 class FLU_EXPORT Flu_Output : public Fl_Output
00029 {
00030 public:
00031
00033 Flu_Output( int X,int Y,int W,int H,const char *l = 0 );
00034
00036 ~Flu_Output();
00037
00039 inline int ivalue() const { return atoi( value() ); }
00040
00042 inline void ivalue( int v, const char *format = "%d" ) { char buf[32]; sprintf(buf,format,v); value(buf); }
00043
00045 inline float fvalue() const { return atof( value() ); }
00046
00048 inline void fvalue( float v, const char *format = "%.2f" ) { char buf[32]; sprintf(buf,format,v); value(buf); }
00049
00050 };
00051
00052 #endif