Michael Sweet wrote:
> Albrecht Schlosser wrote:
>> Thoughts for a redesign of Fl_Shared_Image.
> > ... lots of good stuff removed ...
>
> I like this approach.
:-)
> My only modification would be to make the
> Fl_Shared_Image_intern class public (maybe as Fl_Image_Cache or
> something) so that we can support things like embedding of named
> images in programs.
Making it public wouldn't be a problem, and I like Fl_Image_Cache
as a name. Sounds good.
> The new class would allow for creation of
> "constant" images (that aren't released/deleted) in addition to the
> load-at-runtime variety...
Something like the "broken image" in Fl_Help_View?
static const char *broken_xpm[] = { ... }; // exists
static Fl_Pixmap broken_image(broken_xpm); // exists
static Fl_Shared_Image bi (broken_image); // *new*
I think that a constructor with an Fl_Pixmap (or Fl_Image)
as an argument could do that...
Albrecht
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev