Flu_Link_Button.H 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. // $Id: Flu_Link_Button.h,v 1.3 2003/10/28 15:36:06 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_LINK_BUTTON_H
  13. #define _FLU_LINK_BUTTON_H
  14. #include "FLU/Flu_Button.H"
  15. //! This class extends Flu_Button to make a button that looks like a hyperlink
  16. class FLU_EXPORT Flu_Link_Button : public Flu_Button
  17. {
  18. DECLARE_CLASS_CHEAP_RTTI_2(Flu_Link_Button, Flu_Button)
  19. public:
  20. //! Normal FLTK widget constructor
  21. Flu_Link_Button( int X,int Y,int W,int H,const char *l = 0 );
  22. //! Default destructor
  23. ~Flu_Link_Button();
  24. //! Set whether the link underline appears only when the mouse is over the button. Default is \c false
  25. inline void overlink( bool b )
  26. { overLink = b; }
  27. //! Get whether the link underline appears only when the mouse is over the button
  28. inline bool overlink() const
  29. { return overLink; }
  30. };
  31. #endif