source: NonGTP/glut/FLTK/include/FL/README @ 814

Revision 814, 1.5 KB checked in by gumbau, 19 years ago (diff)

Glut initial import used by Geometry modules

Line 
1These header files are for back-compatability with fltk1.x.  Do not
2use these header files in new programs. Use the ones in the fltk
3directory.
4
5Most fltk1.x programs should compile with no changes by using these
6header files and linking with the fltk2.0 library.
7
8Known changes that must be done to fltk1.1 code to make them compile:
9
10Widgets inside groups will need their x,y coordinates fixed as they
11are now relative to the group, not the window.
12
13FL_BOLD, FL_ITALIC - these symbols used to be added to fonts to get
14bold and italic. This no longer works. You should replace them with
15the single symbol for the font (like FL_HELVETICA_BOLD in place of
16FL_HELVETICA+FL_BOLD) or use font->plus(attributes).
17
18Drawing functions are only roughly emulated. You may need to add casts
19to float to get your compiler to locate the correct functions. And if
20you offset by the x,y of the widget you need to remove these offsets.
21
22Some new members of widgets may hide global data. For instance "width"
23and "height" are now members. You can fix this by putting "::" in
24front of the global data names.
25
26If you use the Fl_Browser you are probably going to have trouble. All
27the indexes are offset by 1 from fltk1.1, ie the first item has an
28index of zero, not 1. Adding items with forward slashes in them will
29produce a hierarchy, which is pretty confusing when you don't plan on
30it.
31
32Menu and browser callbacks: the widget passed is the item, not the
33menu or browser. If you use o->parent() to find what window it is in
34you will have to change this, in most cases you can use o->window().
35
Note: See TracBrowser for help on using the repository browser.