On 19.07.2011, at 23:04, Patrick Mc(avery <[email protected]>
wrote:
> Some C++ features are already not used:
> templates, exceptions, RTTI, namespaces
That is correct. None of these are used in FLTK. This makes it possible to
compile FLTK on broken compilers and small embedded systems. This does not mean
that you can't use these features in *your* code, if you wish. Eventually.
FLTK 1.3 doesn't even use namespaces.
> We call functions from classes:
> return(Fl::run())
>
> We propagate new abstract data types by calling constructor functions:
> menu->add("Edit/Submenu/Bbb");
>
> We create our own classes and use them for constructors:
> class MyTimer : public Fl_Box {
> void draw() {
> static long start = time(NULL)................................
>
> MyTimer(int X,int Y,int W,int H,const char*L=0).......................
Yes, we use all kinds of tricks and "old style" coding to keep stuff small and
quick.
> I don't really know much about the standard library, friend functions,
> overloading and exceptions but should I care? If I understand the C++
> subset that deals with the above code am I pretty much ready good to go?
You will probably need overloading at some point if you want to draw custom
graphics, but no worries, there are a ton of examples in FLTK and on Greg's
Cheat Sheet. It sounds like you will feel pretty comfortable with FLTK in no
time.
- Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk