Fl_Light_Button.H 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // "$Id: Fl_Light_Button.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. //
  4. // Lighted button 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_Light_Button widget . */
  20. #ifndef Fl_Light_Button_H
  21. #define Fl_Light_Button_H
  22. #include "Fl_Button.H"
  23. /**
  24. This subclass displays the "on" state by turning on a light,
  25. rather than drawing pushed in. The shape of the "light"
  26. is initially set to FL_DOWN_BOX. The color of the light when
  27. on is controlled with selection_color(), which defaults to FL_YELLOW.
  28. Buttons generate callbacks when they are clicked by the user. You
  29. control exactly when and how by changing the values for type() and when().
  30. <P ALIGN=CENTER>\image html Fl_Light_Button.png</P>
  31. \image latex Fl_Light_Button.png "Fl_Light_Button" width=4cm
  32. */
  33. class FL_EXPORT Fl_Light_Button : public Fl_Button {
  34. protected:
  35. virtual void draw();
  36. public:
  37. virtual int handle(int);
  38. Fl_Light_Button(int x,int y,int w,int h,const char *l = 0);
  39. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Light_Button, Fl_Button)
  40. };
  41. #endif
  42. //
  43. // End of "$Id: Fl_Light_Button.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
  44. //