The Morphic Implementation


The AlignmentMorph class

An AlignmentMorph can align his submorphs. For that you can access the centering of the submorphs by using the messages centering: and centering. You can also access the orientation of the submorphs via orientation: and orientation. Use the following symbols to set the centering or orientation:

centering
#topLeft
#center
#bottomRight
orientation
#horizontal
#vertical
#free

You can also access the inset within the bounds of the AlignmentMorphs owner. The openToDragNDrop instance variable contains a true or false and allows if objects can be dropped in or dragged out of the AlignmentMorph.