[UI] FillStyles in borders

Igor Stasenko siguctua at gmail.com
Fri Jun 27 14:34:34 UTC 2008


2008/6/27 Gary Chambers <gazzaguru2 at btinternet.com>:
> Perhaps a "clean" model coul;d be something for Pharo...
>
> Maybe borders could be modelled via a decorator pattern to do away with some of these special cases.
> (think fillWith: fillStyle clippingTo: generalClipShape)The border (itself a morph) being a decoration of the morph... or maybe not called morph in a generalised framework, though interpreted that way for Morphic support...
>
> Then again, to go the full-hog, the "ordinates" idea should cover all bases (with adaptation to Morphic).
>
> Just a thought.
>

Btw, i was wrong: there is a 'generic' shape drawing primitives in
BalloonEngine. They used mostly to draw arbitrary Bezier shapes. For
instance, an SVGMorph using it to draw any SWG graphic - be it a set
of lines/curves or anything else.

It would be interesting, how this can be adopted to draw anything. So,
we could have few primitives which draw every bit on screen.


> Gary.


-- 
Best regards,
Igor Stasenko AKA sig.


More information about the UI mailing list