00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef _FL_SHAPED_WINDOW_H_
00023 #define _FL_SHAPED_WINDOW_H_
00024
00025 #include "Fl_Double_Window.h"
00026 #include "Fl_Bitmap.h"
00027
00029 class FL_API Fl_Shaped_Window : public Fl_Double_Window {
00030 public:
00031 Fl_Shaped_Window(int W, int H, const char *l = 0) : Fl_Double_Window(W,H,l) { shape_ = 0; lw = lh = 0; changed = 0; }
00032 Fl_Shaped_Window(int X, int Y, int W, int H, const char *l = 0) : Fl_Double_Window(X,Y,W,H,l) { shape_ = 0; lw = lh = 0; }
00033
00034 void shape(Fl_Bitmap* b) { shape_ = b; changed = 1; }
00035 void shape(Fl_Bitmap& b) { shape(&b); }
00036
00037 virtual void draw();
00038
00039 protected:
00040 Fl_Bitmap* shape_;
00041 int lw, lh;
00042 int changed;
00043 };
00044
00045 #endif