Flve_Check_Button.H 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. // ======================================================================
  2. // File: Flve_Check_Button.h - Flve_Check_Button implementation
  3. // Library: flvw - FLTK Widget
  4. // Version: 0.1.0
  5. // Started: 01/12/2000
  6. //
  7. // Copyright (C) 1999 Laurence Charlton
  8. //
  9. // Description:
  10. // Flve_Check_Button implements a toggle editor for a list/table
  11. //
  12. // This library is free software; you can redistribute it and/or
  13. // modify it under the terms of the GNU Library General Public
  14. // License as published by the Free Software Foundation; either
  15. // version 2 of the License, or (at your option) any later version.
  16. //
  17. // This library is distributed in the hope that it will be useful,
  18. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  20. // Library General Public License for more details.
  21. //
  22. // You should have received a copy of the GNU Library General Public
  23. // License along with this library; if not, write to the Free Software
  24. // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
  25. // USA.
  26. // ======================================================================
  27. #ifndef FLVE_CHECK_BUTTON_H
  28. #define FLVE_CHECK_BUTTON_H
  29. #include <FL/Fl_Check_Button.H>
  30. #include <FL/Flv_List.H>
  31. #include <stdio.h>
  32. class FL_EXPORT Flve_Check_Button : public Fl_Check_Button
  33. {
  34. public:
  35. Flve_Check_Button( int X, int Y, int W, int H, const char *l=0 ) :
  36. Fl_Check_Button(X,Y,W,H,l)
  37. {
  38. owner=NULL;
  39. };
  40. Fl_Widget *owner;
  41. DECLARE_CLASS_CHEAP_RTTI_2(Flve_Check_Button, Fl_Check_Button)
  42. protected:
  43. int handle(int event );
  44. };
  45. void draw_flve_check_button( int X, int Y, int W, int H,
  46. Flve_Check_Button *b, char *v );
  47. #endif