Squeak Class Documentation category index | class index  
 
TilePadMorph
  category: Morphic-Scripting Tiles
  superclass: Morph
  subclasses:

The drop target for colored tiles. Landing pad. In the hierarchy, but not a tile itself. Would like to eliminate this, but an attempt at it failed.

instance methods
  code generation
  storeCodeOn:indent:

  events
  handlesMouseOverDragging:
mouseEnterDragging:
mouseLeaveDragging:

  miscellaneous
  basicWidth
isColorConstant:
isOutsideRef:
lastTile
setType:
type

  mouse
  acceptDroppingMorph:event:
canAccept:
prepareToUndoDropOf:
wantsDroppedMorph:event:

  printing
  printOn:

class methods
  color
  colorFudge

  initialization
 

instance methods
  code generation top  
 

storeCodeOn:indent:


  events top  
 

handlesMouseOverDragging:

Return true if I want to receive mouseEnterDragging: and mouseLeaveDragging: when the hand drags something over me (button up or button down), or when the mouse button is down but there is no mouseDown recipient. The default response is false, except if you have added sensitivity to mouseEnterLaden: or mouseLeaveLaden:, using the on:send:to: mechanism.


 

mouseEnterDragging:

Handle a mouseEnterDragging event, meaning the mouse just entered my bounds with a button pressed or laden with submorphs. The default response is to let my eventHandler, if any, handle it, or else to do nothing.


 

mouseLeaveDragging:

Handle a mouseLeaveLaden event, meaning the mouse just left my bounds with a button pressed or laden with submorphs. The default response is to let my eventHandler, if any, handle it; else to do nothing.


  miscellaneous top  
 

basicWidth


 

isColorConstant:

Is this a Color constant, of the form (MessageNode (VariableNode Color->Color) (SelectorNode #r:g:b:) (LiteralNode LiteralNode LiteralNode))


 

isOutsideRef:

Is this a reference to an outside Player, of the form (self class refUnscriptedPlayer1)?
(MessageNode (VariableNode 'self') (SelectorNode 'class')) (SelectorNode 'refUnscriptedPlayer1')


 

lastTile

The tile that might get an extension arrow


 

setType:


 

type


  mouse top  
 

acceptDroppingMorph:event:

This message is sent when a morph is dropped onto a morph that has agreed to accept the dropped morph by responding 'true' to the wantsDroppedMorph:Event: message. This default implementation just adds the given morph to the receiver.


 

canAccept:

Answer whether this pad can accept the given morph


 

prepareToUndoDropOf:


 

wantsDroppedMorph:event:

Return true if the receiver wishes to accept the given morph, which is being dropped by a hand in response to the given event. Note that for a successful drop operation both parties need to agree. The symmetric check is done automatically via aMorph wantsToBeDroppedInto: self.


  printing top  
 

printOn:

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


class methods
  color top  
 

colorFudge


  initialization top