Main Page | Class Hierarchy | Class List | File List | Class Members

Flu_Output.h

00001 // $Id: Flu_Output.h,v 1.8 2003/08/20 16:29:42 jbryan Exp $
00002 
00003 /***************************************************************
00004  *                FLU - FLTK Utility Widgets 
00005  *  Copyright (C) 2002 Ohio Supercomputer Center, Ohio State University
00006  *
00007  * This file and its content is protected by a software license.
00008  * You should have received a copy of this license with this file.
00009  * If not, please contact the Ohio Supercomputer Center immediately:
00010  * Attn: Jason Bryan Re: FLU 1224 Kinnear Rd, Columbus, Ohio 43212
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

Generated on Fri Nov 5 12:41:32 2004 for FLTK Utility Library and Widget Collection (FLU) by doxygen 1.3.5