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

commits at source.squeak.org commits at source.squeak.org
Thu Jan 17 10:19:00 UTC 2019


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: ' )'.!



More information about the Squeak-dev mailing list