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

commits at source.squeak.org commits at source.squeak.org
Fri Apr 17 14:52:44 UTC 2020


Marcel Taeumel uploaded a new version of Graphics to project The Trunk:
http://source.squeak.org/trunk/Graphics-mt.430.mcz

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

Name: Graphics-mt.430
Author: mt
Time: 17 April 2020, 4:52:36.27086 pm
UUID: 1e5eac6b-e758-8445-b60e-7b09db8dcc63
Ancestors: Graphics-nice.429

Adds a simple way to use forms as text anchors without exposing Morphic, where such anchors are currently implemented.

=============== Diff against Graphics-nice.429 ===============

Item was added:
+ ----- Method: Form>>asTextAnchor (in category 'converting') -----
+ asTextAnchor
+ 	"Convert the receiver to be embedded in text."
+ 
+ 	self flag: #refactor. "mt: Text anchors should work outside of Morphic, too. Any instance of Form could be embedded in Text."
+ 	^ (Smalltalk classNamed: 'TextAnchor')
+ 		ifNil: [TextColor black "Fall back"]
+ 		ifNotNil: [:cls | cls new anchoredMorph: self]!



More information about the Squeak-dev mailing list