Squeak Class Documentation category index | class index  
 
MouseEvent
  category: Morphic-Events
  superclass: UserInputEvent
  subclasses: MouseButtonEvent MouseMoveEvent

No comment. Sorry.

instance methods
  accessing
  noticeMouseOver:
position

  button state
  anyButtonPressed
blueButtonPressed
cursorPoint
redButtonPressed
targetPoint
yellowButtonPressed

  comparing
  =
hash

  converting
  asMouseEnter
asMouseLeave
asMouseMove
asMouseOver

  dispatching
  sentTo:

  genie
  addMouseButtons:
toggleBlueButton
toggleMouseButtons:
toggleRedButton
toggleYellowButton

  printing
  printOn:
storeOn:

  private
  setType:
setType:position:buttons:hand:
type:readFrom:

  testing
  isDraggingEvent
isMouse
isMouseDown
isMouseEnter
isMouseLeave
isMouseMove
isMouseUp
isMove

  transforming
 

class methods
  no messages
 

instance methods
  accessing top  
 

noticeMouseOver:


 

position


  button state top  
 

anyButtonPressed

Answer true if any mouse button is being pressed.


 

blueButtonPressed

Answer true if the blue mouse button is being pressed. This is the third mouse button or cmd+click on the Mac.


 

cursorPoint

Answer the location of the cursor's hotspot when this event occured.


 

redButtonPressed

Answer true if the red mouse button is being pressed. This is the first mouse button.


 

targetPoint

Answer the location of the cursor's hotspot, adjusted by the offset
of the last mouseDown relative to the recipient morph.


 

yellowButtonPressed

Answer true if the yellow mouse button is being pressed. This is the second mouse button or option+click on the Mac.


  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 =


  converting top  
 

asMouseEnter


 

asMouseLeave


 

asMouseMove

Convert the receiver into a mouse move


 

asMouseOver

Convert the receiver into a mouse over event


  dispatching top  
 

sentTo:

Dispatch the receiver into anObject


  genie top  
 

addMouseButtons:


 

toggleBlueButton


 

toggleMouseButtons:


 

toggleRedButton


 

toggleYellowButton


  printing top  
 

printOn:

Append to the argument, aStream, a sequence of characters that
identifies the receiver.


 

storeOn:

Append to the argument aStream a sequence of characters that is an
expression whose evaluation creates an object similar to the receiver.


  private top  
 

setType:

For quick conversion between event types


 

setType:position:buttons:hand:


 

type:readFrom:

Read a MorphicEvent from the given stream.


  testing top  
 

isDraggingEvent


 

isMouse


 

isMouseDown


 

isMouseEnter


 

isMouseLeave


 

isMouseMove


 

isMouseUp


 

isMove


  transforming top  

class methods
  no messages top