Fl_FormsPixmap.H 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. //
  2. // "$Id: Fl_FormsPixmap.H 8864 2011-07-19 04:49:30Z greg.ercolano $"
  3. //
  4. // Forms pixmap 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_FormsPixmap widget . */
  20. #ifndef Fl_FormsPixmap_H
  21. #define Fl_FormsPixmap_H
  22. #include "Fl_Pixmap.H"
  23. /**
  24. \class Fl_FormsPixmap
  25. \brief Forms pixmap drawing routines
  26. */
  27. class FL_EXPORT Fl_FormsPixmap : public Fl_Widget {
  28. Fl_Pixmap *b;
  29. protected:
  30. void draw();
  31. public:
  32. Fl_FormsPixmap(Fl_Boxtype t, int X, int Y, int W, int H, const char *L= 0);
  33. void set(/*const*/char * const * bits);
  34. /**
  35. Set the internal pixmap pointer to an existing pixmap.
  36. \param[in] B existing pixmap
  37. */
  38. void Pixmap(Fl_Pixmap *B) {b = B;}
  39. /** Get the internal pixmap pointer. */
  40. Fl_Pixmap *Pixmap() const {return b;}
  41. };
  42. #endif
  43. //
  44. // End of "$Id: Fl_FormsPixmap.H 8864 2011-07-19 04:49:30Z greg.ercolano $".
  45. //