Matthias Melcher wrote:
> Um, looking at BLINE:
> 
> struct FL_BLINE {       // data is in a linked list of these
>    FL_BLINE* prev;
>    FL_BLINE* next;
>    void* data;
>    Fl_Image* icon;
>    short length;         // sizeof(txt)-1, may be longer than string
>    char flags;           // selected, displayed
>    char txt[1];          // start of allocated array
> };
> 
> isn't that a subset of Fl_Widget? Adding a "selected" flag should not  
> be an issue. Replacing all occurences of BLINE with Fl_Widget should  
> solve the first step of converting to using true hierarchies.

   I think making the browser items an Fl_Widget would add a bit
   of unexpected FLTK overhead to the widget.. wouldn't that add each
   widget to the overall FLTK widget hierarchy?

   I think Fl_Browser was designed with the items specifically to be
   non-widgets for speed and low overhead on the rest of FLTK, not sure.

_______________________________________________
fltk-dev mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-dev

Reply via email to