Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
Method translateTo: point
Last updated at 12:29 pm UTC on 3 July 2018
Receivers of #translateTo:


 MorphicEvent
 translateTo: point
       "do nothing is the default action"

Only two subclasses of MorphicEvent have overrides

     DropEvent
      translateTo: point

	    position := point.

     UserInputEvent
     translateTo: point

	    position := point.


The message #translateTo: is a simpler version of #transformedBy:, which was added back in 2000.

Basically, these are helper methods to cope with local coordinate systems in TransformMorphs.

It is only used in MorphicEventDispatcher.

The term "translate" means geometry like in Rectangle.

No morph should ever receive this message, only MorphicEvent (sub-)instances.