> > > Now we have our new Fl_Device class, I propose to add the new class > > Fl_Clipboard_Writer that would direct graphics requests to the > > clipboard (or pasteboard in Mac OS parlance). This would allow > > to copy to the clipboard any widget or any series of FLTK graphics > > requests. > > I think I do not understand what this is for. How do you see this used, > what is its purpose? > > This is different from fl_offscreen etc? How do they relate? > > > > I have that already in my app for Mac and MSWindows, > > so it could be done rapidly. > > What format is the data on the clipboard in these applications? > > > > The big question mark is what to do for the X11 platform? > > Our PostScript backend allows the generation of encapsulated > > PostScript. Is putting eps in the clipboard a pertinent idea ? > > If we do this, is it not better to put the data onto the clipboard in > something like a pixel map or something simple? > Again, this all comes down to me not understanding what this is for. > How will the data be read by other apps, for example? Is eps a sensible > format for portability (I'd say not, to be honest) or are we just > proposing eps because it is what we have to hand easily? > > > My overall worry, with proposals like this, is that it all feels a bit > like the creeping featuritis that killed fltk2, and I do not want to go > there. > > --=20 > Ian
In Mac OS and MSWindows, the clipboard can be routinely used to transfer graphical data between applications, in addition to transferring text data. These OSes have a standard format for that. In MSWindows, it's metafile; in Mac OS it used to be PICT and is now PDF. The objective is to allow the user of an FLTK application to draw a graphics, to copy it and to paste it to applications such as PowerPoint, Word, Illustrator, OpenOffice that can read any graphics-loaded clipboard. With Mac OS, the clipboard is best loaded with the same graphics data in two forms, PDF, used by those applications that know how to handle vector graphics, and jpeg, for those, more numerous applications, that can only receive an image. Sadly, not much of this is transposable to the X11 platform. _______________________________________________ fltk-dev mailing list [email protected] http://lists.easysw.com/mailman/listinfo/fltk-dev
