Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Morphic Bounds
Last updated at 11:44 pm UTC on 22 February 2017
Every morph has, to a first approximation, a rectangular shape and position. This is summarized by the
#bounds
method. Example with this method sent to a RectangleMorph.

RectangleMorph_extent_40_40_2015-12-22.png

The bounds may be changed with

 #bounds: aRectangle

The method #position gives the point at the top-left corner of a morph, and
 #extent 
returns a point encoding the width and height of the morph.

There are also several convenience methods such as
and so on.

See also

Creating a Morph