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