Fl_Toggle_Button.H 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. //
  2. // "$Id: Fl_Toggle_Button.H 9637 2012-07-24 04:37:22Z matt $"
  3. //
  4. // Toggle 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_Toggle_Button widget . */
  20. #ifndef Fl_Toggle_Button_H
  21. #define Fl_Toggle_Button_H
  22. #include "Fl_Button.H"
  23. /**
  24. The toggle button is a push button that needs to be clicked once
  25. to toggle on, and one more time to toggle off.
  26. The Fl_Toggle_Button subclass displays the "on" state by
  27. drawing a pushed-in button.</P>
  28. <P>Buttons generate callbacks when they are clicked by the user. You
  29. control exactly when and how by changing the values for type()
  30. and when().
  31. */
  32. class FL_EXPORT Fl_Toggle_Button : public Fl_Button {
  33. public:
  34. /**
  35. Creates a new Fl_Toggle_Button widget using the given
  36. position, size, and label string.
  37. <P>The inherited destructor deletes the toggle button.
  38. */
  39. Fl_Toggle_Button(int X,int Y,int W,int H,const char *l=0);
  40. DECLARE_CLASS_CHEAP_RTTI_2(Fl_Toggle_Button, Fl_Button)
  41. };
  42. #endif
  43. //
  44. // End of "$Id: Fl_Toggle_Button.H 9637 2012-07-24 04:37:22Z matt $".
  45. //