FLTK 1.3.11
Toggle main menu visibility
Loading...
Searching...
No Matches
Fl_Free.H
1
//
2
// "$Id$"
3
//
4
// Forms free header file for the Fast Light Tool Kit (FLTK).
5
//
6
// Copyright 1998-2010 by Bill Spitzak and others.
7
//
8
// This library is free software. Distribution and use rights are outlined in
9
// the file "COPYING" which should have been included with this file. If this
10
// file is missing or damaged, see the license at:
11
//
12
// http://www.fltk.org/COPYING.php
13
//
14
// Please report all bugs and problems on the following page:
15
//
16
// http://www.fltk.org/str.php
17
//
18
19
/* \file
20
Fl_Free widget . */
21
22
#ifndef Fl_Free_H
23
#define Fl_Free_H
24
25
#ifndef Fl_Widget_H
26
#include "
Fl_Widget.H
"
27
#endif
28
29
#define FL_NORMAL_FREE 1
30
#define FL_SLEEPING_FREE 2
31
#define FL_INPUT_FREE 3
32
#define FL_CONTINUOUS_FREE 4
33
#define FL_ALL_FREE 5
34
36
typedef
int (*FL_HANDLEPTR)(
Fl_Widget
*, int , float, float, char);
37
57
class
FL_EXPORT
Fl_Free
:
public
Fl_Widget {
58
FL_HANDLEPTR hfunc;
59
static
void
step(
void
*);
60
protected
:
61
void
draw
();
62
public
:
63
int
handle
(
int
e);
64
Fl_Free
(
uchar
t,
int
X,
int
Y,
int
W,
int
H,
const
char
*L,FL_HANDLEPTR hdl);
65
~Fl_Free
();
66
};
67
68
// old event names for compatibility:
69
#define FL_MOUSE FL_DRAG
70
#define FL_DRAW 100
71
#define FL_STEP 101
72
#define FL_FREEMEM 102
73
#define FL_FREEZE 103
74
#define FL_THAW 104
75
76
#endif
77
78
//
79
// End of "$Id$".
80
//
Fl_Widget.H
Fl_Widget, 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:65
Fl_Widget
Fl_Widget is the base class for all widgets in FLTK.
Definition
Fl_Widget.H:101
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:112
uchar
unsigned char uchar
unsigned char
Definition
fl_types.h:30
FL
Fl_Free.H
Generated by
1.17.0