On 12.07.2011, at 20:39, Edzard Egberts wrote:

> Matthias Melcher schrieb:
>> 
>> On 12.07.2011, at 15:42, Edzard Egberts wrote:
>> 
>>> Matthias Melcher schrieb:
>>>> 
>>>> This is the original FLTK 1 code:
>>>> 
>>>> 
>>>> void Fl_Button::draw() {
>>>>   if (type() == FL_HIDDEN_BUTTON) return;
>>>>   Fl_Color col = value() ? selection_color() : color();
>>>> 
>>>> 
>>>> This is the code in FLTK 3, wrapper included:
>>>> 
>>>> 
>>>> void fltk3::Button::draw() {
>>>>   FLTK3_OBJECT_VCALLS_WRAPPER(draw(), Draw)
>>>>   if (type() == fltk3::HIDDEN_BUTTON) return;
>>>>   fltk3::Color col = value() ? selection_color() : color();
>>>> 
>> 
>> Ooops, I pressed send to quickly. I corrected the version above.
>> 
>> 
>> I meant to show that only one single line of code is added
> 
> What's this good for? Would you please give me an impression, how this 
> is working?

I tried to explain this here:

http://www.fltk.org/articles.php?L1079+I0+T+P1+Q

> And maybe it's a blockheaded question, but what is the difference to 
> just using the old version?

I believe that FLTK 1 need a major overhaul, named FLTK 3. I like the idea of 
being able to change the API and guts of FLTK 3 while still being able to use 
the FLTK 1 interface. Or maybe I am just paranoid that the users won't move to 
FLTK 3 and we repeat FLTK 2 mistakes.
_______________________________________________
fltk mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk

Reply via email to