> Thus, I propose to add these two virtual methods and use them
> where appropriate. They would also be useful for user code
> and the new (work in progress) Fl_Printer support.
>
> Fl_Widget::is_group() would be useful for traversing a widget
> tree (to avoid dynamic_cast).
>
> Opinions, better proposals, votes please ...

But you'd still have to cast, right?  To avoid casting (in the client
code at least) wouldn't you need:

virtual Fl_Group *Fl_Widget::as_group() const

_______________________________________________
fltk-dev mailing list
fltk-dev@easysw.com
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to