[squeak-dev] The Inbox: Graphics-ct.449.mcz

Thiede, Christoph Christoph.Thiede at student.hpi.uni-potsdam.de
Thu May 6 20:48:35 UTC 2021

If you merge this proposal, please consider merging the attached changeset as well, which eliminates the duplication from the mentioned senders. :-)



Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von commits at source.squeak.org <commits at source.squeak.org>
Gesendet: Donnerstag, 6. Mai 2021 22:46:23
An: squeak-dev at lists.squeakfoundation.org
Betreff: [squeak-dev] The Inbox: Graphics-ct.449.mcz

A new version of Graphics was added to project The Inbox:

==================== Summary ====================

Name: Graphics-ct.449
Author: ct
Time: 6 May 2021, 10:46:15.911809 pm
UUID: 52f12efc-da63-0d44-a252-72bc5f89b6c7
Ancestors: Graphics-mt.448

Proposal: Adds Form >> #scaledBy: that scales a form by a certain factor. I identified half a dozen of senders of #scaledToSize: in the Trunk each of which has reinvented this wheel.

=============== Diff against Graphics-mt.448 ===============

Item was added:
+ ----- Method: Form>>scaledBy: (in category 'scaling, rotation') -----
+ scaledBy: factor
+        "Answer a version of the receiver which is scaled by factor, which can be a number or point."
+        (factor closeTo: 1) ifTrue: [^ self].
+        ^ self scaledToSize: (self extent * factor) rounded!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210506/73836bb7/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scaledToSize-senders.1.cs
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20210506/73836bb7/attachment.ksh>

More information about the Squeak-dev mailing list