FLTK 1.3.0
Fl_Free.H
00001 //
00002 // "$Id$"
00003 //
00004 // Forms free 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_Free widget . */
00021 
00022 #ifndef Fl_Free_H
00023 #define Fl_Free_H
00024 
00025 #ifndef Fl_Widget_H
00026 #include "Fl_Widget.H"
00027 #endif
00028 
00029 #define FL_NORMAL_FREE          1 
00030 #define FL_SLEEPING_FREE        2 
00031 #define FL_INPUT_FREE           3 
00032 #define FL_CONTINUOUS_FREE      4 
00033 #define FL_ALL_FREE             5 
00036 typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
00037 
00057 class FL_EXPORT Fl_Free : public Fl_Widget {
00058     FL_HANDLEPTR hfunc;
00059     static void step(void *);
00060 protected:
00061     void draw();
00062 public:
00063     int handle(int e);
00064   Fl_Free(uchar t,int X,int Y,int W,int H,const char *L,FL_HANDLEPTR hdl);
00065   ~Fl_Free();
00066 };
00067 
00068 // old event names for compatibility:
00069 #define FL_MOUSE        FL_DRAG 
00070 #define FL_DRAW         100     
00071 #define FL_STEP         101     
00072 #define FL_FREEMEM      102     
00073 #define FL_FREEZE       103     
00074 #define FL_THAW         104     
00076 #endif
00077 
00078 //
00079 // End of "$Id$".
00080 //