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 2:41 pm UTC on 16 January 2006
Every morph has, to a first approximation, a rectangular shape and position. This is summarized by the
#bounds
method, and can be changed with
#bounds:
.
#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
#left
,
#center
,
#height
,
#topRight
, and so on.