Fl_Box.H 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. /* \file
  19. Fl_Box widget . */
  20. #ifndef Fl_Box_H
  21. #define Fl_Box_H
  22. #ifndef Fl_Widget_H
  23. #include "Fl_Widget.H"
  24. #endif
  25. /**
  26. This widget simply draws its box, and possibly its label. Putting it
  27. before some other widgets and making it big enough to surround them
  28. will let you draw a frame around them.
  29. */
  30. class FL_EXPORT Fl_Box : public Fl_Widget {
  31. //protected:
  32. public:
  33. void draw();
  34. /**
  35. - The first constructor sets box() to FL_NO_BOX, which
  36. means it is invisible. However such widgets are useful as placeholders
  37. or Fl_Group::resizable()
  38. values. To change the box to something visible, use box(n).
  39. - The second form of the constructor sets the box to the specified box
  40. type.
  41. <P>The destructor removes the box.
  42. */
  43. Fl_Box(int X, int Y, int W, int H, const char *l=0);
  44. /** See Fl_Box::Fl_Box(int x, int y, int w, int h, const char * = 0) */
  45. Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l);
  46. virtual int handle(int);
  47. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Box, Fl_Widget)
  48. };
  49. #endif
  50. //
  51. // End of "$Id: Fl_Box.H 9672 2012-08-17 09:18:06Z manolo $".
  52. //