[Cuis-dev] Clipping operation

Hilaire Fernandes hilaire at drgeo.eu
Thu Apr 30 01:45:24 PDT 2020


Hi Thierry,

Yes, it was looking odd to me. Thanks to confirm what I understood.

I guess the rationnal behind this paradigm is to optimize drawing 
operation?!

Hilaire

Le 30/04/2020 à 10:28, Thierry Goubier via Cuis-dev a écrit :
> in Cuis, Submorph clipping only happens for one submorph, and only if 
> aMorph>>#clippedSubmorph is true (and that clips to the parent morph, 
> so, if your wheel morphs are submorphs of your overall frame, then 
> incorrect clipping for the clipped submorph).
>
> In a case like yours, you will probably need to add a morph that do 
> nothing but clipping, to ensure that the morph you are drawing in has 
> the exact same bounds as its parents.
>
> The code in charge of that is MorphicCanvas>>#fullDraw:
> The code selecting the clipped submorph is Morph>>#clippedMorph. By 
> default, it is the last one.
>
-- 
GNU Dr. Geo
http://drgeo.eu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cuis.st/mailman/archives/cuis-dev/attachments/20200430/4b9813a9/attachment.htm>


More information about the Cuis-dev mailing list