From 6a6e4ab66c655d2d897c3382a03cd9754257cf01 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 28 Jun 2002 21:04:37 +0000 Subject: Separate the extra image functions into fltk_images. Add new fl_register_images() function to register the extra file formats with Fl_Shared_Image. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2329 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- FL/Fl_Shared_Image.H | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'FL') diff --git a/FL/Fl_Shared_Image.H b/FL/Fl_Shared_Image.H index f2a0832c9..1a23276bb 100644 --- a/FL/Fl_Shared_Image.H +++ b/FL/Fl_Shared_Image.H @@ -1,5 +1,5 @@ // -// "$Id: Fl_Shared_Image.H,v 1.22.2.4 2002/05/25 13:38:24 easysw Exp $" +// "$Id: Fl_Shared_Image.H,v 1.22.2.5 2002/06/28 21:04:35 easysw Exp $" // // Shared image header file for the Fast Light Tool Kit (FLTK). // @@ -34,7 +34,7 @@ typedef Fl_Image *(*Fl_Shared_Handler)(const char *name, uchar *header, int headerlen); // Shared images class. -class Fl_Shared_Image : public Fl_Image { +class FL_EXPORT Fl_Shared_Image : public Fl_Image { protected: static Fl_Shared_Image **images_; // Shared images @@ -81,8 +81,16 @@ class Fl_Shared_Image : public Fl_Image { static void remove_handler(Fl_Shared_Handler f); }; +// +// The following function is provided in the fltk_images library and +// registers all of the "extra" image file formats that are not part +// of the core FLTK library... +// + +FL_EXPORT void fl_register_images(); + #endif // !Fl_Shared_Image_H // -// End of "$Id: Fl_Shared_Image.H,v 1.22.2.4 2002/05/25 13:38:24 easysw Exp $" +// End of "$Id: Fl_Shared_Image.H,v 1.22.2.5 2002/06/28 21:04:35 easysw Exp $" // -- cgit v1.2.3