Squeak Class Documentation category index | class index  
 
MorphicEvent
  category: Morphic-Events
  superclass: Object
  subclasses: DropEvent UserInputEvent MorphicUnknownEvent

This class represents the base for all events.

Instance variables:
stamp <Integer> The millisecond clock time stamp (based on Time millisecondClock)
source <Hand | nil> If non-nil the hand that generated the event.

instance methods
  accessing
  cursorPoint
hand
timeStamp
type
wasHandled
wasHandled:

  comparing
  =
hash

  dispatching
  sentTo:

  initialize
  copyHandlerState:
resetHandlerFields
type:readFrom:

  object fileIn
  convertOctober2000:using:
convertToCurrentVersion:refStream:

  private
  setHand:
setTimeStamp:

  testing
  isDraggingEvent
isDropEvent
isKeyboard
isKeystroke
isMorphicEvent
isMouse
isMouseOver

  transforming
  transformedBy:

class methods
  instance creation
  convertObsolete:
fromStringArray:
readFrom:
readFromObsolete:
type:readFrom:

instance methods
  accessing top  
 

cursorPoint

Backward compatibility. Use #position instead


 

hand

Return the source that generated the event


 

timeStamp

Return the millisecond clock value at which the event was generated


 

type

Return a symbol indicating the type this event.


 

wasHandled

Return true if this event was handled. May be ignored for some types of events.


 

wasHandled:

Determine if this event was handled. May be ignored for some types of events.


  comparing top  
 

=

Answer whether the receiver and the argument represent the same
object. If = is redefined in any subclass, consider also redefining the
message hash.


 

hash

Answer a SmallInteger whose value is related to the receiver's identity.
May be overridden, and should be overridden in any classes that define =


  dispatching top  
 

sentTo:

Dispatch the receiver into anObject


  initialize top  
 

copyHandlerState:

Copy the handler state from anEvent. Used for quickly transferring handler information between transformed events.


 

resetHandlerFields

Reset anything that is used to cross-communicate between two eventual handlers during event dispatch


 

type:readFrom:

Read a MorphicEvent from the given stream.


  object fileIn top  
 

convertOctober2000:using:

ar 10/25/2000: This method is used to convert OLD MorphicEvents into new ones.


 

convertToCurrentVersion:refStream:

ar 10/25/2000: This method is used to convert OLD MorphicEvents into new ones.


  private top  
 

setHand:


 

setTimeStamp:


  testing top  
 

isDraggingEvent


 

isDropEvent


 

isKeyboard


 

isKeystroke


 

isMorphicEvent


 

isMouse


 

isMouseOver


  transforming top  
 

transformedBy:

Return the receiver transformed by the given transform into a local coordinate system.


class methods
  instance creation top  
 

convertObsolete:

ar 10/25/2000: This method is used to convert OLD MorphicEvents into new ones.


 

fromStringArray:

decode an event that was encoded with encodedAsStringArray


 

readFrom:

Read a MorphicEvent from the given stream.


 

readFromObsolete:

Read one of those old and now obsolete events from the stream


 

type:readFrom: