[squeak-dev] The Trunk: Graphics-mt.406.mcz

Jakob Reschke forums.jakob at resfarm.de
Sun Dec 29 23:11:30 UTC 2019


For some reason I encounter LayoutFrames with nil in the right and bottom
variables... of course, these don't understand printOn:maxDecimalPlaces:.

Am Do., 17. Jan. 2019 um 11:19 Uhr schrieb <commits at source.squeak.org>:

> Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
> http://source.squeak.org/trunk/Graphics-mt.406.mcz
>
> ==================== Summary ====================
>
> Name: Graphics-mt.406
> Author: mt
> Time: 17 January 2019, 11:18:39.003727 am
> UUID: 027d00a7-113d-4b9f-aaec-79e3373339c1
> Ancestors: Graphics-mt.405
>
> Adds an informative string representation for LayoutFrame to support
> layout design and debugging.
>
> =============== Diff against Graphics-mt.405 ===============
>
> Item was added:
> + ----- Method: LayoutFrame>>printOn: (in category 'printing') -----
> + printOn: aStream
> +
> +       super printOn: aStream.
> +
> +       aStream nextPutAll: '( '.
> +
> +       { {'l'. self leftFraction. self leftOffset}. {'t'. self
> topFraction. self topOffset}. {'r'. self rightFraction. self rightOffset}.
> {'b'. self bottomFraction. self bottomOffset} } do: [:spec |
> +               aStream nextPutAll: spec first; space.
> +
> +               spec second printOn: aStream maxDecimalPlaces: 2.
> +
> +               aStream nextPutAll: ((spec third ifNil: [0]) >= 0 ifTrue:
> ['+'] ifFalse: ['-']).
> +               (spec third ifNil: [0]) abs printOn: aStream
> maxDecimalPlaces: 0]
> +                       separatedBy: [aStream space].
> +
> +       aStream nextPutAll: ' )'.!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20191230/3e16bf2e/attachment.html>


More information about the Squeak-dev mailing list