> What I want to do is something very simple, in the past I 
> wrote a program to display millions of rectangles, each is an 
> widget, being selectable and completely filled with an 
> fl_rect, with a tooltip with its name and selectable 
> rectangle colors (a viewer for semiconductor placements).

Oh yes, I remember that. 
Yes, it was sluggish, if I recall your sample code correctly, but it did
more or less work.

> Now the interesting news: there are also many components with 
> rectilinear shapes (like L-shape, T-shape and many more).
> 
> The easiest way - for me - would be the possibility of 
> widgets not only x,y,w,h but with a polygonal boundary. This 
> would be a cool feature :-).

Irregular widgets are tricky.

One thought though, is this a sort of "tetris-like" scene, where all the
polygons could be built from simpler rectilinear widgets?

If so, maybe you can derive a "Fl_Lego" from Fl_Box (or FL_something,
anyway) then use that to make your shapes up. That could then be dropped
onto your surface like the current boxes, and pop up your tooltips etc.

In my head (and I have not actually tried to write any code for this)
the "Fl_Lego" would contain a list of Fl_Boxes that comprise the full
shape, and all the boxes would have the same colour, tooltip, etc.

Well, maybe, I don't know...






SELEX Galileo Ltd
Registered Office: Sigma House, Christopher Martin Road, Basildon, Essex SS14 
3EL
A company registered in England & Wales.  Company no. 02426132
********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************

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

Reply via email to