Non-rectangular clipping [message #190916] |
Sat, 06 August 2005 23:10 |
Eclipse User |
|
|
|
Originally posted by: venkataraman.m.tcs.com
It is just out of curiosity. Why non-rectangular clipping is not supported
by Draw2D's Graphics class when SWT's GC has it with
GC::setClipping(Region rg) ?
Is it just too advanced for GEF user or any other reason ?
~Venkat
|
|
|
|
|
Re: Non-rectangular clipping [message #191100 is a reply to message #190916] |
Mon, 08 August 2005 19:42 |
Eclipse User |
|
|
|
Originally posted by: none.us.ibm.com
The reason is that we decided to support things like push, pop, translate,
scale, etc, which seem to conflict with allowing Region to work.
For example, if you call Graphics.translate(10,0), then call
setClipping(Region), how are we supposed to translate the region? We might
be able to fix this in the future by using SWT's new Transform class, but
the solution is pretty ugly.
"venkat" <venkataraman.m@tcs.com> wrote in message
news:585f32c4e09062aeb6fee2aed9d150a4$1@www.eclipse.org...
> It is just out of curiosity. Why non-rectangular clipping is not supported
> by Draw2D's Graphics class when SWT's GC has it with
> GC::setClipping(Region rg) ?
> Is it just too advanced for GEF user or any other reason ?
>
> ~Venkat
>
|
|
|
Powered by
FUDForum. Page generated in 0.03549 seconds