Aye, clipping is another matter though (would want the "interior" of a border to not be drawn, for performance and not having to wory about draw-order/translucency issues).
Gary
-----Original Message----- From: ui-bounces@lists.squeakfoundation.org [mailto:ui-bounces@lists.squeakfoundation.org]On Behalf Of Igor Stasenko Sent: 27 June 2008 3:35 PM To: Squeak's User Interface Subject: Re: [UI] FillStyles in borders
2008/6/27 Gary Chambers gazzaguru2@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. _______________________________________________ UI mailing list UI@lists.squeakfoundation.org http://lists.squeakfoundation.org/mailman/listinfo/ui