Fl_Box.H 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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/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. #ifdef LUAFLTK
  32. public:
  33. #else
  34. protected:
  35. #endif
  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. /** See Fl_Box::Fl_Box(int x, int y, int w, int h, const char * = 0) */
  49. Fl_Box(Fl_Boxtype b, int X, int Y, int W, int H, const char *l);
  50. virtual int handle(int);
  51. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Box, Fl_Widget)
  52. };
  53. #endif
  54. //
  55. // End of "$Id: Fl_Box.H 9672 2012-08-17 09:18:06Z manolo $".
  56. //