Squeak Class Documentation category index | class index  
 
UserInputEvent
  category: Morphic-Events
  superclass: MorphicEvent
  subclasses: KeyboardEvent MouseEvent

No comment. Sorry.

instance methods
  accessing
  buttons
handler
handler:
position
type
wasHandled
wasHandled:

  encoding
  encodedAsStringArray

  genie
  addButtons:
toggleButtons:
toggleCommandKey
toggleControlKey
toggleMacOptionKey
toggleShift

  initialize
  copyHandlerState:
resetHandlerFields

  modifier state
  anyModifierKeyPressed
commandKeyPressed
controlKeyPressed
macOptionKeyPressed
shiftPressed

  printing
  buttonString
modifierString

  private
  setPosition:

  transforming
  transformBy:
transformedBy:
translateBy:
translatedBy:

class methods
  no messages
 

instance methods
  accessing top  
 

buttons

Return the a word encoding the mouse and modifier buttons for this event.


 

handler


 

handler:


 

position


 

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.


  encoding top  
 

encodedAsStringArray

encode the receiver into an array of strings, such that it can be retrieved via the fromStringArray: class method


  genie top  
 

addButtons:


 

toggleButtons:


 

toggleCommandKey


 

toggleControlKey


 

toggleMacOptionKey


 

toggleShift


  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


  modifier state top  
 

anyModifierKeyPressed

ignore, however, the shift keys 'cause that's not REALLY a command key


 

commandKeyPressed

Answer true if the command key on the keyboard was being held down when this event occurred.


 

controlKeyPressed

Answer true if the control key on the keyboard was being held down when this event occurred.


 

macOptionKeyPressed

Answer whether the option key on the Macintosh keyboard was being held down when this event occurred. Macintosh specific.


 

shiftPressed

Answer true if the shift key on the keyboard was being held down when this event occurred.


  printing top  
 

buttonString

Return a string identifying the currently pressed buttons


 

modifierString

Return a string identifying the currently pressed modifiers


  private top  
 

setPosition:


  transforming top  
 

transformBy:

Transform the receiver into a local coordinate system.


 

transformedBy:

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


 

translateBy:

add delta to cursorPoint, and return the new event


 

translatedBy:

add delta to cursorPoint, and return the new event


class methods
  no messages top