From 37a65296279b2ffd08a33a143f68351df3feb1b7 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Mon, 25 Mar 2002 18:30:16 +0000 Subject: Update migration docos for 1.1.x. Reupdate the 2.0 documentation, which MUST be processed by HTMLDOC for the web site... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2013 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- documentation/migration.html | 43 ++++++++++++++++++++++++++++++++++++++----- 1 file changed, 38 insertions(+), 5 deletions(-) (limited to 'documentation/migration.html') diff --git a/documentation/migration.html b/documentation/migration.html index df84ff088..060fe7f13 100644 --- a/documentation/migration.html +++ b/documentation/migration.html @@ -6,15 +6,48 @@

This appendix describes the differences between the FLTK 1.0.x and FLTK 1.1.x functions and classes.

-

The File Chooser

+

Color Values

+ +

Color values are now stored in a 32-bit unsigned integer +instead of the unsigned character in 1.0.x. This allows for the +specification of 24-bit RGB values or 8-bit FLTK color indices. + +

Cut and Paste Support

+ +

The FLTK clipboard is now broken into two parts - a local +selection value and a cut-and-paste value. This allows FLTK to +support things like highlighting and replacing text that was +previously cut or copied, which makes FLTK applications behave +like traditional GUI applications. + +

File Chooser

The file chooser in FLTK 1.1.x is significantly different than the one supplied with FLTK 1.0.x. Any code that directly -references the old FCB class or members will need -to be ported to the new Fl_File_Chooser class.

+references the old FCB class or members will need +to be ported to the new Fl_File_Chooser +class.

+ +

Image Support

+ +

Image support in FLTK has been significantly revamped in +1.1.x. The Fl_Image class +is now a proper base class, with the core image drawing +functionality in the Fl_Bitmap, Fl_Pixmap, and Fl_RGB_Image classes. + +

BMP, GIF, JPEG, PNG, XBM, and XPM image files can now be +loaded using the appropriate image classes, and the Fl_Shared_Image class +can be used to cache images in memory. -

The Image Class

+

Image labels are no longer provided as an add-on label type. +If you use the old label() methods on an image, the +widget's image() method is called to set the image +as the label. -

The Fl_Image class -- cgit v1.2.3