links to this page:
Morph
Hello World program with StringHolder - details
Swiki Page List
Swiki short page list
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.