Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

Fl_Shaped_Window.h

00001 /*
00002  * $Id: Fl_Shaped_Window.h,v 1.3 2003/03/15 16:09:55 laza2000 Exp $
00003  *
00004  * Extended Fast Light Toolkit (EFLTK)
00005  * Copyright (C) 2002-2003 by EDE-Team
00006  * WWW: http://www.sourceforge.net/projects/ede
00007  *
00008  * Fast Light Toolkit (FLTK)
00009  * Copyright (C) 1998-2003 by Bill Spitzak and others.
00010  * WWW: http://www.fltk.org
00011  *
00012  * This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00013  * version 2. See COPYING for details.
00014  *
00015  * Author : Mikko Lahteenmaki
00016  * Email  : mikko@fltk.net
00017  *
00018  * Please report all bugs and problems to "efltk-bugs@fltk.net"
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

Generated on Thu Jul 31 15:33:45 2003 for eFLTK by doxygen1.2.15