[squeak-dev] The Trunk: Help-Squeak-TerseGuide-kfr.5.mcz

commits at source.squeak.org commits at source.squeak.org
Thu May 7 07:39:26 UTC 2015


Karl Ramberg uploaded a new version of Help-Squeak-TerseGuide to project The Trunk:
http://source.squeak.org/trunk/Help-Squeak-TerseGuide-kfr.5.mcz

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

Name: Help-Squeak-TerseGuide-kfr.5
Author: kfr
Time: 7 May 2015, 9:38:42.385 am
UUID: 75a587af-6dbb-ee4b-b469-ad18259f34f8
Ancestors: Help-Squeak-TerseGuide-dhn.4

Expanded Rectangle guide a little

=============== Diff against Help-Squeak-TerseGuide-dhn.4 ===============

Item was changed:
  ----- Method: TerseGuideHelp class>>rectangle (in category 'pages') -----
  rectangle
  
  	^HelpTopic
  		title: 'Rectangle' 
  		contents:
  
  '"************************************************************************
   * Rectangle:																		*
   ************************************************************************"
  Rectangle fromUser.
+ Rectangle origin: 0 at 0 corner: 100 at 100		"Origin and corners are absolute points"
+ Rectangle origin: 80 at 40 extent: 50 at 50		"Extent is added to origin"
+ Rectangle center: 40 at 50 extent: 30 at 20		"Center is half of extent"
+ Rectangle left: 1 right: 20 top: 1 bottom: 10
+  
+ | col |
+ col := OrderedCollection new.
+ col add: (Rectangle center: 40 at 50 extent: 30 at 20).
+ col add: (Rectangle left: 1 right: 20 top: 1 bottom: 10).
+ Rectangle merging: col
  
  '!



More information about the Squeak-dev mailing list