FL_BLACK
and FL_WHITE
now remain black and white, even if the base color of the gray ramp is changed using Fl::background(). FL_DARK3
and FL_LIGHT3
can be used instead to draw a very dark or a very bright background hue.
Widgets use the new color symbols FL_FORGROUND_COLOR
, FL_BACKGROUND_COLOR
, FL_BACKGROUND2_COLOR
, FL_INACTIVE_COLOR
, and FL_SELECTION_COLOR
. More details can be found in the chapter FLTK Enumerations.
FCB
class or members will need to be ported to the new Fl_File_Chooser class.FLTK_1_0_COMPAT
symbol on the command-line when you compile (-DFLTK_1_0_COMPAT
) or in your source, e.g.:
#define FLTK_1_0_COMPAT #include <FL/Fl.H> #include <FL/Enumerations.H> #include <FL/filename.H>
The following table shows the old and new function names:
Old 1.0.x Name | New 1.1.x Name |
---|---|
contrast() | fl_contrast() |
down() | fl_down() |
filename_absolute() | fl_filename_absolute() |
filename_expand() | fl_filename_expand() |
filename_ext() | fl_filename_ext() |
filename_isdir() | fl_filename_isdir() |
filename_list() | fl_filename_list() |
filename_match() | fl_filename_match() |
filename_name() | fl_filename_name() |
filename_relative() | fl_filename_relative() |
filename_setext() | fl_filename_setext() |
frame() | fl_frame() |
inactive() | fl_inactive() |
numericsort() | fl_numericsort() |
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.
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.
Image labels in menu items must still use the old labeltype mechanism to preserve source compatibility.
[Prev] Operating System Issues | [Index] | Migrating Code from FLTK 1.1 to 1.3 [Next] |