On 8 February 2011 16:37, Fernando Olivero <[email protected]> wrote: > There's a method in Morph>>clipsSubmorphs , that dictates that behavior. > surely is on by default . >
no. this is different. It tells whether submorphs can be drawn outside of morph's bounds, but nothing about morph itself. In fact, i think many of these flags are redundant. For instance: if one wants submorphs to be drawn outside of morph's bounds, he can simply put them into morph's parent and so on up to topmost one - world.. > Fernando > > > On Tue, Feb 8, 2011 at 10:20 AM, Stéphane Ducasse > <[email protected]> wrote: >> Yes now apparently even if I draw outside the bounds they are clipped in >> pharo too. I have to check how. >> >> On Feb 8, 2011, at 12:51 AM, Igor Stasenko wrote: >> >>> On 7 February 2011 22:41, Stéphane Ducasse <[email protected]> >>> wrote: >>>> Canvas>>draw: anObject >>>> ^anObject drawOn: self >>>> >>>> >>>> Now in SM we got >>>> >>>> SMxCanvas>>draw: anObject >>>> ^self clipBy: anObject bounds during: [ :c | anObject drawOn: c] >>>> >>>> and I'm wondering what is the exact difference. >>>> Any idea? >>>> >>> >>> yes, >>> SMxCanvas ensures that not matter what happens, a morph cannot draw >>> outside of its declared bounds. >>> Which usually should not happen anyways.. so it looks like an >>> additional rule enforcement. >>> >>> >>> >>>> Stef >>>> >>> >>> >>> -- >>> Best regards, >>> Igor Stasenko AKA sig. >>> >> >> >> >> > > -- Best regards, Igor Stasenko AKA sig.
