[UI] A small change... for a start

Gary Chambers gazzaguru2 at btinternet.com
Sun Mar 23 03:30:49 UTC 2008


But the fillstyle is only now aware of the canvas, not the morph (was neither before).

Agree with you on relative vs absolute coordinates though.

TC. Gary.


----- Original message -----
From: Igor Stasenko  <siguctua at gmail.com>
To: Squeak's User Interface e canv <ui at lists.squeakfoundation.org>
Sent: Sun, 23 Mar 2008, 03:17:39 GMT
Subject: Re: [UI] A small change... for a start
On 22/03/2008, Gary Chambers <gazzaguru2 at btinternet.com> wrote:
> The current experiment works by double dispatch to "simple" methods that were previously the main entry point on Canvas, for compatibility.  So provides the flexibility of FillStyles to utilise the existing capabilities of various canvasses.
>
>  Ideally the whole thing could be restructured back to Canvas to efficiently deal with compositing. For the moment this achieves the overall aim without excessive redesign.
>

I think that your work with FillStyles highlighted some problems in
Morphic, which cannot be handled as extension.
For instance, a reason why morph asks if fillstyle isOrientedFill is
to update a oriented fill origin point, when morph changes it's
position.

Which, in own turn, shows that it was a bad design choice to specify
origin of gradient in screen-space coordinates, instead of coordinates
relative to morph.

But now, we can easily deal with that, because we dispatch to fill
style. So, fill style can choose how it can fill, and using what
coordinates - relative to morph or absolute.
And finally, we can get rid isXXXFill protocol.

-- 
Best regards,
Igor Stasenko AKA sig.
_______________________________________________
UI mailing list
UI at lists.squeakfoundation.org
http://lists.squeakfoundation.org/mailman/listinfo/ui


More information about the UI mailing list