FLTK 1.3.4
Fl_Box.H
1 //
2 // "$Id: Fl_Box.H 9672 2012-08-17 09:18:06Z manolo $"
3 //
4 // Box 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_Box widget . */
21 
22 #ifndef Fl_Box_H
23 #define Fl_Box_H
24 
25 #ifndef Fl_Widget_H
26 #include "Fl_Widget.H"
27 #endif
28 
34 class FL_EXPORT Fl_Box : public Fl_Widget {
35 protected:
36  void draw();
37 public:
47  Fl_Box(int X, int Y, int W, int H, const char *l=0);
48 
50  Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l);
51 
52  virtual int handle(int);
53 };
54 
55 #endif
56 
57 //
58 // End of "$Id: Fl_Box.H 9672 2012-08-17 09:18:06Z manolo $".
59 //
Fl_Widget is the base class for all widgets in FLTK.
Definition: Fl_Widget.H:101
virtual int handle(int event)
Handles the specified event.
Definition: Fl_Widget.cxx:112
virtual void draw()=0
Draws the widget.
This widget simply draws its box, and possibly its label.
Definition: Fl_Box.H:34
Fl_Boxtype
Definition: Enumerations.H:603
Fl_Widget, Fl_Label classes .