[squeak-dev] The Inbox: EToys-ct.355.mcz
H. Hirzel
hannes.hirzel at gmail.com
Sat Sep 21 08:40:12 UTC 2019
+1
On Fri, 20 Sep 2019 17:00:30 0000, commits at source.squeak.org
<commits at source.squeak.org> wrote:
> A new version of EToys was added to project The Inbox:
> http://source.squeak.org/inbox/EToys-ct.355.mcz
>
> ==================== Summary ====================
>
> Name: EToys-ct.355
> Author: ct
> Time: 20 September 2019, 7:00:19.740437 pm
> UUID: fffa3998-3dea-bf46-ada8-7075405d741c
> Ancestors: EToys-mt.354
>
> Add Form>>#scaledToWidth:, an analogon for #scaledToHeight:
>
> =============== Diff against EToys-mt.354 ===============
>
> Item was added:
> + ----- Method: Form>>scaledToWidth: (in category
> '*Etoys-Squeakland-scaling, rotation') -----
> + scaledToWidth: newWidth
> + "Answer the receiver, scaled such that it has the desired width."
> +
> + newWidth = self width ifTrue: [^ self].
> + ^self magnify: self boundingBox by: (newWidth / self width) smoothing: 2.
> + !
>
>
>
More information about the Squeak-dev
mailing list
|