Fl_FormsBitmap.H 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // "$Id: Fl_FormsBitmap.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. //
  4. // Forms bitmap 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_FormsBitmap widget . */
  20. #ifndef Fl_FormsBitmap_H
  21. #define Fl_FormsBitmap_H
  22. #include "Fl_Bitmap.H"
  23. /**
  24. Forms compatibility Bitmap Image Widget
  25. */
  26. class FL_EXPORT Fl_FormsBitmap : public Fl_Widget {
  27. Fl_Bitmap *b;
  28. protected:
  29. void draw();
  30. public:
  31. Fl_FormsBitmap(Fl_Boxtype, int, int, int, int, const char * = 0);
  32. void set(int W, int H, const uchar *bits);
  33. /** Sets a new bitmap. */
  34. void bitmap(Fl_Bitmap *B) {b = B;}
  35. /** Gets a the current associated Fl_Bitmap objects. */
  36. Fl_Bitmap *bitmap() const {return b;}
  37. };
  38. #endif
  39. //
  40. // End of "$Id: Fl_FormsBitmap.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
  41. //