1 //
2 // "$Id$"
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 
29 /**
30   This widget simply draws its box, and possibly its label.  Putting it
31   before some other widgets and making it big enough to surround them
32   will let you draw a frame around them.
33 */
34 class FL_EXPORT Fl_Box : public Fl_Widget {
35 protected:
36   void draw();
37 public:
38   /**
39     - The first constructor sets box() to FL_NO_BOX, which
40     means it is invisible. However such widgets are useful as placeholders
41     or Fl_Group::resizable()
42     values.  To change the box to something visible, use box(n).
43     - The second form of the constructor sets the box to the specified box
44     type.
45     <P>The destructor removes the box.
46   */
47   Fl_Box(int X, int Y, int W, int H, const char *l=0);
48 
49   /**    See Fl_Box::Fl_Box(int x, int y, int w, int h, const char * = 0)   */
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$".
59 //
60