diff options
| author | Matthias Melcher <fltk@matthiasm.com> | 2011-01-24 17:04:22 +0000 |
|---|---|---|
| committer | Matthias Melcher <fltk@matthiasm.com> | 2011-01-24 17:04:22 +0000 |
| commit | fe25f19767f1cd2393c4d1796fb42d5aa82b194c (patch) | |
| tree | 229437962da4fa67acf27bf171d6124f5631c34e /FL/Fl_Shared_Image.H | |
| parent | f9363c16d0e6518ba82d05f1f7f415e9224a8e35 (diff) | |
Adding embedded documentation to Fluid if installed odcs are not found. Falls back to the internet if that does not exist either. Also, adds JPEG and PNG images to the Shared Image list if they were loaded from memory - see example use in fluid.cxx which loads and embedded html document containing an embedded PNG image.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@8306 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'FL/Fl_Shared_Image.H')
| -rw-r--r-- | FL/Fl_Shared_Image.H | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/FL/Fl_Shared_Image.H b/FL/Fl_Shared_Image.H index dd134947d..9a6134dc9 100644 --- a/FL/Fl_Shared_Image.H +++ b/FL/Fl_Shared_Image.H @@ -47,7 +47,11 @@ typedef Fl_Image *(*Fl_Shared_Handler)(const char *name, uchar *header, function to support standard image formats such as BMP, GIF, JPEG, and PNG. */ class FL_EXPORT Fl_Shared_Image : public Fl_Image { - protected: + + friend class Fl_JPEG_Image; + friend class Fl_PNG_Image; + +protected: static Fl_Shared_Image **images_; // Shared images static int num_images_; // Number of shared images |
