Hi, after using FLTK2 for some time, I have following ideas how to overall
improve it;
General directions, imho could be:
1) nicer modern C++
2) better examples
3) better layout mechanizms?
4) better OS and misc functions
5) stronger development team and QA
In detail:
1) For example using const char* and assuming its from text literal (need to
use copy_label). This is not very nice.
Instead I would prefer to just have a label(std::string)
I guess it can be trivially added by overloading like
foo::label(const std::string &txt) { copy_label(txt.c_str(); }
etc.
I understand that you do not want to internally work on / store
std::string's because of the embed devices or something?
Another thing are void* data.
I would like instead to have a genera class like
class user_data { public: };
and then users would inherit from it.
The benefit is that in callback's we would use dynamic_cast to get what we
assume the anonymous user data is, and if it is something else then error
will be nicely detected.
also allowing use of boost::any could be nice, via
class user_data_any : public user_data {
public: ...
boost::any data;
};
2) More examples would be a nice thing.
3) I am not yet sure if layout mechanizm is as flexible and comfortable as I
would expected... I still have feeling that wxWidget's sizers approach is
better overall to fastly and logically create flexible resizible layouts.
4) I added maximize, I guess few other similar things would be nice;
Also detecting OS type etc.
Perhaps also misc functions that are not pure GUI, but are in topic of
commonly needed desktop applications functions.
* registry access (on windows - registry, on linux - ~/.etc/.foo, something
on mac)
* system information access - i.e. register our application to handle given
file type (obvious on linux, dunno about linux), register it to run at
system startup, etc etc.
5) The docs need far more examples, and more in-depth explanations imho;
There are quite few bugs still to be fixed. I could help too I hope
--
RafaĆ Maj
Software developer
http://www.limcore.com/
_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev