FLTK
Fl_Free.H
1 //
2 // Forms free header file for the Fast Light Tool Kit (FLTK).
3 //
4 // Copyright 1998-2010 by Bill Spitzak and others.
5 //
6 // This library is free software. Distribution and use rights are outlined in
7 // the file "COPYING" which should have been included with this file. If this
8 // file is missing or damaged, see the license at:
9 //
10 // https://www.fltk.org/COPYING.php
11 //
12 // Please see the following page on how to report bugs and issues:
13 //
14 // https://www.fltk.org/bugs.php
15 //
16 
17 /* \file
18  Fl_Free widget . */
19 
20 #ifndef Fl_Free_H
21 #define Fl_Free_H
22 
23 #ifndef Fl_Widget_H
24 #include "Fl_Widget.H"
25 #endif
26 
27 #define FL_NORMAL_FREE 1
28 #define FL_SLEEPING_FREE 2
29 #define FL_INPUT_FREE 3
30 #define FL_CONTINUOUS_FREE 4
31 #define FL_ALL_FREE 5
34 typedef int (*FL_HANDLEPTR)(Fl_Widget *, int , float, float, char);
35 
55 class FL_EXPORT Fl_Free : public Fl_Widget {
56  FL_HANDLEPTR hfunc;
57  static void step(void *);
58 protected:
59  void draw();
60 public:
61  int handle(int e);
62  Fl_Free(uchar t,int X,int Y,int W,int H,const char *L,FL_HANDLEPTR hdl);
63  ~Fl_Free();
64 };
65 
66 // old event names for compatibility:
67 #define FL_MOUSE FL_DRAG
68 #define FL_DRAW 100
69 #define FL_STEP 101
70 #define FL_FREEMEM 102
71 #define FL_FREEZE 103
72 #define FL_THAW 104
74 #endif
Fl_Widget is the base class for all widgets in FLTK.
Definition: Fl_Widget.H:85
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:102
virtual void draw()=0
Draws the widget.
Fl_Widget, Fl_Label classes .
Emulation of the Forms "free" widget.
Definition: Fl_Free.H:55
unsigned char uchar
unsigned char
Definition: fl_types.h:28