On 12.07.2011, at 15:38, Edzard Egberts wrote:
> Also I know wrapper like this, only keeping the interface:
>
> Header:
> class Fl3_Widget;
> class Fl_Widget
> {
> // Declare Methods compatible to old Fl_Widget
> // add:
> Fl3_Widget* pW3;
> };
That's more or less what I do.
The problem arises when a user writes his own Fl_Something::draw() function. In
that case, the function will never be called, and that's where the
back-reference from the FLTK 3 widget to the FLTK 1 wrapper is needed.
But as I said earlier, your original post pointed me to a version that will
solve three of my issues, including the removal of almost everything wrapper
related in FLTK 3 (sans on pointer).
- Matthias
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk