Squeak
  links to this page:    
View this PageEdit this PageUploads to this PageHistory of this PageTop of the SwikiRecent ChangesSearch the SwikiHelp Guide
How Morphic processes events
Last updated at 1:57 pm UTC on 15 May 2018
EventSensor > HandMorph > Project current world (PasteUpMorph) > (MorphicEventDispatcher > Morph)


Page history:
Posted by Andreas Raab to the squeak-dev list on 2/12/2003
This page created by Brent Vukmer on 2/13/2003.
Reviewed by Daniel Vainsencher, with his clarifications [[between double brackets]]
Bob Arning added explaination on "front-most ... morphs" Examples added: TBD

This is an early description from 2003..2005: Needs to be rechecked for current versions of Squeak.



The Quick Overview



The front-most chain of morphs defined


Each morph has zero or more submorphs which are ordered front-to-back.

The chain would consist of (recursively) the frontmost submorph whose bounds contain the event point. So, it would look like:
1. The Project current world (the World).
2. The frontmost submorph of the World that intersects the event.
3. The frontmost submorph of #2 that intersects the event.
4. And so on until there are no submorphs that intersect the event.


The Details




See also Morphic Event Handling.