[fpc-pascal] Looking for a suitable graphics library/component
sysrpl at gmail.com
Tue Mar 22 19:11:15 CET 2011
Oh, you want a retained mode graphics system. That should be pretty easy to
Just write a class like TDrawable with a Paint(), HitTest(Point), and
Intersects(Rect) methods and derive from that to have your different drawn
Keep a list of those items in your drawing surface.
Call HitTest(MousePoint) when the mouse moves over the drawing area and
track the hot/pressed/captured item.
When you surface needs to be painted, loop through the list and if
DrawableItem.Intersects(DirectRect) then DrawableItem.Paint().
I don't think you'll find a ready made system to accommodate all your
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the fpc-pascal