[fpc-devel] TFPCustomCanvas Expanded Clipping

zeljko zeljko at holobit.net
Wed Dec 7 09:28:07 CET 2011


On Wednesday 07 of December 2011 09:05:21 Felipe Monteiro de Carvalho wrote:
>
> 
> I also joined zeljko's idea. If the region is not rectangular and you

It's not my idea ,I've just explained how it works in qt :)

> read the property ClipRect, it will return the bounding rectangle of
> the region. For rectagular regions it does the same, but the bounding

Yes, it must be so if you deal with > 1 rect or non-rectangular or eg. poly 
regions.
Note that xxx_boundingRect() functions of qt are marked as slow (I guess it's 
case when you deal with eg 1000 rects in region and you must calculate lower 
TopLeft and high BottomRight) in their docs, I hope that we'll have faster 
ones :)

zeljko

> box matches the region rectangle. It comes with a class for
> rectangular region clipping which is the trivial case for backwards
> compatibility.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20111207/39a30b7e/attachment.html>


More information about the fpc-devel mailing list