>
> > For the sake of argument lets say i want to fill a window area with
> > randomly  sized & placed and randomly coloured rectangles.
>
> You need to draw the entire scene, every time. This is "normal".
>
> So if you have multiple rectangles, then you need a data-structure that
> holds all of your rectangles; this structure would be a member of your
> subclassed "canvas" widget, and so is readily accessible to your draw
> method.=20
>
> Each time the draw method runs, the scene is cleared and redrawn.
>>
> If so, I can probably post a worked example (indeed, I think I did a
> while back) showing exactly that.
>

Yes The refresh whole scene method is familiar to me, i understand how
the whole thing would go together now, i could just use a member
variable in my struct to flag the status of the rectangle and colour it
or whatever accordingly. then draw the lot.
The individual 'incremental method you mentioned would be of interest to me for 
insight also, if you would like to post it, thanks.
>

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

Reply via email to