Flu_Separator.H 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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. DECLARE_CLASS_CHEAP_RTTI_2(Flu_Separator, Fl_Widget)
  23. public:
  24. enum {
  25. HORIZONTAL,
  26. VERTICAL
  27. };
  28. //! Normal FLTK constructor. Default type() is \b HORIZONTAL
  29. Flu_Separator( int X, int Y, int W, int H, const char *l = 0 );
  30. //! Get the type
  31. inline int type() const
  32. { return _type; }
  33. //! Set the type
  34. inline void type( int t )
  35. { _type = t; }
  36. protected:
  37. int _type;
  38. void draw();
  39. };
  40. #endif