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

Fl_Pixmap.h

00001 /*
00002  * $Id: Fl_Pixmap.h,v 1.6 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_PIXMAP_H_
00023 #define _FL_PIXMAP_H_
00024 
00025 #include "Fl_Image.h"
00026 
00033 class FL_API Fl_Pixmap : public Fl_Image
00034 {
00035 public:
00036     Fl_Pixmap(char * const *d) : Fl_Image() { data = (const char **)d; measure(m_width, m_height); }
00037     Fl_Pixmap(uchar* const *d) : Fl_Image() { data = (const char **)d; measure(m_width, m_height); }
00038     Fl_Pixmap(const char * const *d) : Fl_Image() { data = (const char **)d; measure(m_width, m_height); }
00039     Fl_Pixmap(const uchar* const *d) : Fl_Image() { data = (const char **)d; measure(m_width, m_height); }
00040     virtual ~Fl_Pixmap() { }
00041 
00042     virtual void measure(int &w, int &h);
00043 
00044     const char * const * data; //XPM data
00045 protected:
00046     virtual void _draw(int dx, int dy, int dw, int dh,
00047                        int sx, int sy, int sw, int sh,
00048                        Fl_Flags f);
00049 };
00050 
00051 #endif

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