2
0

Flu_Separator.h 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // $Id: Flu_Separator.h,v 1.6 2003/08/20 16:29:42 jbryan Exp $
  2. /***************************************************************
  3. * FLU - FLTK Utility Widgets
  4. * Copyright (C) 2002 Ohio Supercomputer Center, Ohio State University
  5. *
  6. * This file and its content is protected by a software license.
  7. * You should have received a copy of this license with this file.
  8. * If not, please contact the Ohio Supercomputer Center immediately:
  9. * Attn: Jason Bryan Re: FLU 1224 Kinnear Rd, Columbus, Ohio 43212
  10. *
  11. ***************************************************************/
  12. #ifndef _FLU_SEPARATOR_H
  13. #define _FLU_SEPARATOR_H
  14. /* fltk includes */
  15. #include <FL/Fl.H>
  16. #include <FL/Fl_Widget.H>
  17. #include <FL/fl_draw.H>
  18. #include "FLU/Flu_Enumerations.h"
  19. //! A simple class that draws a separator line using the current box type
  20. class FLU_EXPORT Flu_Separator : public Fl_Widget
  21. {
  22. public:
  23. enum {
  24. HORIZONTAL,
  25. VERTICAL
  26. };
  27. //! Normal FLTK constructor. Default type() is \b HORIZONTAL
  28. Flu_Separator( int X, int Y, int W, int H, const char *l = 0 );
  29. //! Get the type
  30. inline int type() const
  31. { return _type; }
  32. //! Set the type
  33. inline void type( int t )
  34. { _type = t; }
  35. protected:
  36. int _type;
  37. void draw();
  38. };
  39. #endif