FLTK 1.4.4: Fl_Free.H Source File

FLTK 1.4.4

Loading...
Searching...
No Matches
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
32
34typedef 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 *);
58protected:
59 void draw() FL_OVERRIDE;
60public:
61 int handle(int e) FL_OVERRIDE;
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
73
74#endif
Fl_Widget.H
Fl_Widget and Fl_Label classes.
Fl_Free::Fl_Free
Fl_Free(uchar t, int X, int Y, int W, int H, const char *L, FL_HANDLEPTR hdl)
Create a new Fl_Free widget with type, position, size, label and handler.
Definition forms_free.cxx:63
Fl_Widget
Fl_Widget is the base class for all widgets in FLTK.
Definition Fl_Widget.H:112
Fl_Widget::draw
virtual void draw()=0
Draws the widget.
Fl_Widget::handle
virtual int handle(int event)
Handles the specified event.
Definition Fl_Widget.cxx:102
FL_OVERRIDE
#define FL_OVERRIDE
This macro makes it safe to use the C++11 keyword override with older compilers.
Definition fl_attr.h:46
uchar
unsigned char uchar
unsigned char
Definition fl_types.h:30