From e0bfbbd5581256312f93395f7e33527365471c51 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 6 Jan 2002 17:51:12 +0000 Subject: [PATCH] Add Fl_BMP_Image class and docos. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1914 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 + FL/Fl_BMP_Image.H | 41 +++++ documentation/fltk.book | 1 + documentation/widgets.html | 2 + fluid/Fluid_Image.cxx | 6 +- src/Fl_BMP_Image.cxx | 353 +++++++++++++++++++++++++++++++++++++ src/Fl_File_Icon2.cxx | 6 +- src/Fl_Shared_Image.cxx | 7 +- src/Makefile | 5 +- src/makedepend | 13 +- test/pixmap_browser.cxx | 6 +- 11 files changed, 425 insertions(+), 17 deletions(-) create mode 100644 FL/Fl_BMP_Image.H create mode 100644 src/Fl_BMP_Image.cxx diff --git a/CHANGES b/CHANGES index 098c6eaea..fdb8bd7b5 100644 --- a/CHANGES +++ b/CHANGES @@ -1,5 +1,7 @@ CHANGES IN FLTK 1.1.0b9 + - Add Fl_BMP_Image class to support loading of Windows + bitmap (BMP) files. - The shiny demo didn't work on some systems (no single-buffered OpenGL visual), and the new box types were reset when show(argc, argv) was called. diff --git a/FL/Fl_BMP_Image.H b/FL/Fl_BMP_Image.H new file mode 100644 index 000000000..a70e1d5b7 --- /dev/null +++ b/FL/Fl_BMP_Image.H @@ -0,0 +1,41 @@ +// +// "$Id: Fl_BMP_Image.H,v 1.1.2.1 2002/01/06 17:51:12 easysw Exp $" +// +// BMP image header file for the Fast Light Tool Kit (FLTK). +// +// Copyright 1998-2002 by Bill Spitzak and others. +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Library General Public +// License as published by the Free Software Foundation; either +// version 2 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Library General Public License for more details. +// +// You should have received a copy of the GNU Library General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 +// USA. +// +// Please report all bugs and problems to "fltk-bugs@fltk.org". +// + +#ifndef Fl_BMP_Image_H +#define Fl_BMP_Image_H +# include "Fl_Image.H" + +class FL_EXPORT Fl_BMP_Image : public Fl_RGB_Image { + + public: + + Fl_BMP_Image(const char* filename); +}; + +#endif + +// +// End of "$Id: Fl_BMP_Image.H,v 1.1.2.1 2002/01/06 17:51:12 easysw Exp $". +// diff --git a/documentation/fltk.book b/documentation/fltk.book index 7b7154822..74ebf3d15 100644 --- a/documentation/fltk.book +++ b/documentation/fltk.book @@ -14,6 +14,7 @@ widgets.html Fl.html Fl_Adjuster.html Fl_Bitmap.html +Fl_BMP_Image.html Fl_Box.html Fl_Browser_.html Fl_Browser.html diff --git a/documentation/widgets.html b/documentation/widgets.html index a3932e34b..56e7aecd3 100644 --- a/documentation/widgets.html +++ b/documentation/widgets.html @@ -13,6 +13,7 @@ description of the fl_ functions, see Fl
Fl_Adjuster
Fl_Bitmap
+Fl_BMP_Image
Fl_Box
Fl_Browser_
Fl_Browser
@@ -112,6 +113,7 @@ description of the fl_ functions, see
  • Fl_RGB_Image