Class: Morph

Morph

new Morph ()

Extends

Methods

add (aMorph)

Name Type Description
aMorph Morph

addBack (aMorph)

Name Type Description
aMorph Morph

addChild (aNode) inherited

Name Type Description
aNode Node

addChildFirst (aNode) inherited

Name Type Description
aNode Node

addShadow (off, a, color)ShadowMorph

Name Type Description
off Point optional
a number optional
color Color optional
Returns:
Type Description
ShadowMorph

allChildren ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

allEntryFields ()Array.<Morph>

Returns:
Type Description
Array.<Morph>

allLeafs ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

allParents ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

anyChild (aPredicate)boolean inherited

Name Type Description
aPredicate function
Returns:
Type Description
boolean

attach ()

backTab (editField)

Name Type Description
editField Morph

bottom ()number

Returns:
Type Description
number

bottomCenter ()Point

Returns:
Type Description
Point

bottomLeft ()Point

Returns:
Type Description
Point

bottomRight ()Point

Returns:
Type Description
Point

boundingBox ()Point

Returns:
Type Description
Point

center ()Point

Returns:
Type Description
Point

changed ()

childChanged ()

colorSetters ()Array.<String>

Returns:
Type Description
Array.<String>

contextMenu ()MenuMorph

Returns:
Type Description
MenuMorph

copy ()Morph

Returns:
Type Description
Morph

copyRecordingReferences (map)Morph

Name Type Description
map Map
Returns:
Type Description
Morph

corners ()Array.<Point>

Returns:
Type Description
Array.<Point>

depth ()number inherited

Returns:
Type Description
number

destroy ()

developersMenu ()MenuMorph

Returns:
Type Description
MenuMorph

drawCachedTexture ()

drawNew ()

drawOn (aCanvas, aRect)

Name Type Description
aCanvas HTMLCanvasElement
aRect Rectangle optional

drawTexture (url)

Name Type Description
url String

droppedAudio (anAudio, name)

Name Type Description
anAudio Audio
name String

droppedBinary (anArrayBuffer, name)

Name Type Description
anArrayBuffer Array
name String

droppedImage (aCanvas, name)

Name Type Description
aCanvas HTMLCanvasElement
name String

droppedSVG (anImage, name)

Name Type Description
anImage Image
name String

droppedText (aString, name)

Name Type Description
aString String
name String

escalateEvent (functionName, arg)

Name Type Description
functionName String
arg *

evaluateString (code)*

Name Type Description
code String
Returns:
Type Description
*

extent ()Point

Returns:
Type Description
Point

fadeTo (endAlpha, msecs, easing, onComplete)

Name Type Description
endAlpha number
msecs number optional
easing String | function optional
onComplete function optional

forAllChildren (aFunction) inherited

Name Type Description
aFunction function

fullBounds ()Rectangle

Returns:
Type Description
Rectangle

fullBoundsNoShadow ()Rectangle

Returns:
Type Description
Rectangle

fullChanged ()

fullCopy ()Morph

Returns:
Type Description
Morph

fullDrawOn (aCanvas, aRect)

Name Type Description
aCanvas HTMLCanvasElement
aRect Rectangle optional

fullImage ()HTMLCanvasElement

Returns:
Type Description
HTMLCanvasElement

fullImageClassic ()HTMLCanvasElement

Returns:
Type Description
HTMLCanvasElement

getPixelColor (aPoint)Color

Name Type Description
aPoint Point
Returns:
Type Description
Color

getShadow ()ShadowMorph

Returns:
Type Description
ShadowMorph

glideTo (endPoint, msecs, easing, onComplete)

Name Type Description
endPoint Point
msecs number optional
easing String | function optional
onComplete function optional

height ()number

Returns:
Type Description
number

hide ()

hierarchyMenu ()MenuMorph

Returns:
Type Description
MenuMorph

hint (msg)

Name Type Default Description
msg String 'NULL' optional

inform (msg)

Name Type Default Description
msg String 'NULL' optional

init (noDraw) overrides

Name Type Default Description
noDraw boolean false optional

inspect (anotherObject)

Name Type Description
anotherObject *

isCorrectingOutsideDrag ()boolean

Returns:
Type Description
boolean

isPickedUp ()boolean

Returns:
Type Description
boolean

isTouching (otherMorph)boolean

Name Type Description
otherMorph Morph
Returns:
Type Description
boolean

isTransparentAt (aPoint)boolean

Name Type Description
aPoint Point
Returns:
Type Description
boolean

justDropped (handMorph)

Name Type Description
handMorph HandMorph

keepWithin (aMorph)

Name Type Description
aMorph Morph

left ()number

Returns:
Type Description
number

leftCenter ()Point

Returns:
Type Description
Point

mouseClickLeft (pos)

Name Type Description
pos Point

mouseClickRight (pos)

Name Type Description
pos Point

mouseDoubleClick (pos)

Name Type Description
pos Point

mouseDownLeft (pos)

Name Type Description
pos Point

mouseDownRight (pos)

Name Type Description
pos Point

mouseEnter (pos)

Name Type Description
pos Point

mouseEnterDragging (pos)

Name Type Description
pos Point

mouseLeave (pos)

Name Type Description
pos Point

mouseLeaveDragging (pos)

Name Type Description
pos Point

mouseMove (pos, button)

Name Type Description
pos Point
button String

mouseScroll (pos)

Name Type Description
pos Point

move ()

moveBy (delta)

Name Type Description
delta number | Point

moveCenter ()

nextEntryField (current)Morph

Name Type Description
current number
Returns:
Type Description
Morph

nextSteps (arrayOfFunctions)

Name Type Description
arrayOfFunctions Array.<function()>

nextTab (editField)

Name Type Description
editField Morph

numericalSetters ()Array.<String>

Returns:
Type Description
Array.<String>

overlappedMorphs ()Array.<Morph>

Returns:
Type Description
Array.<Morph>

overlappingImage (otherMorph)HTMLCanvasElement

Name Type Description
otherMorph Morph
Returns:
Type Description
HTMLCanvasElement

parentThatIsA (constructor)Node inherited

Name Type Description
constructor function
Returns:
Type Description
Node

parentThatIsAnyOf (constructors)Node inherited

Name Type Description
constructors Array.<function()>
Returns:
Type Description
Node

penTrails ()HTMLCanvasElement

Returns:
Type Description
HTMLCanvasElement

perish (msecs, onComplete)

Name Type Description
msecs number optional
onComplete function optional

pickColor (msg, callback, environment, defaultContents)

Name Type Default Description
msg String '' optional
callback function optional
environment String optional
defaultContents String '' optional

pickUp (wrrld)

Name Type Description
wrrld WorldMorph optional

position ()Point

Returns:
Type Description
Point

prepareToBeGrabbed (handMorph)

Name Type Description
handMorph HandMorph

previousEntryField (current)Morph

Name Type Description
current number
Returns:
Type Description
Morph

previousTab (editField)

Name Type Description
editField Morph

processKeyDown (event)

Name Type Description
event KeyboardEvent

processKeyPress (event)

Name Type Description
event KeyboardEvent

processKeyUp (event)

Name Type Description
event KeyboardEvent

prompt (msg, callback, environment, defaultContents, width, floorNum, ceilingNum, isRounded)

Name Type Default Description
msg String '' optional
callback function optional
environment String optional
defaultContents String '' optional
width number 100 optional
floorNum number optional
ceilingNum number optional
isRounded boolean false optional

reactToChoice (arg)

Name Type Description
arg *

reactToDropOf (aMorph, handMorph)

Name Type Description
aMorph Morph
handMorph HandMorph

reactToGrabOf (grabbedMorph)

Name Type Description
grabbedMorph Morph

reactToKeystroke (event)

Name Type Description
event KeyboardEvent

reactToTemplateCopy ()

removeChild (aNode) inherited

Name Type Description
aNode Node

removeShadow ()

resize ()

Returns:
Type Description
number

rightCenter ()Point

Returns:
Type Description
Point

root ()Node inherited

Returns:
Type Description
Node

rootForGrab ()Morph

Returns:
Type Description
Morph

scrollIntoView ()

selectForEdit ()Morph

Returns:
Type Description
Morph

setAlphaScaled (alpha)

Name Type Description
alpha number

setBottom (y)

Name Type Description
y number

setCenter (aPoint)

Name Type Description
aPoint Point

setColor (aColor)

Name Type Description
aColor Color

setExtent (aPoint, silently)

Name Type Default Description
aPoint Point
silently boolean false optional

setFullCenter (aPoint)

Name Type Description
aPoint Point

setHeight (height)

Name Type Description
height number

setLeft (x)

Name Type Description
x number

setPosition (aPoint)

Name Type Description
aPoint Point

setRight (x)

Name Type Description
x number

setTop (y)

Name Type Description
y number

setWidth (width)

Name Type Description
width number

shadow (off, a, color)ShadowMorph

Name Type Description
off Point optional
a number optional
color Color optional
Returns:
Type Description
ShadowMorph

shadowImage (off, color)HTMLCanvasElement

Name Type Description
off Point optional
color Color optional
Returns:
Type Description
HTMLCanvasElement

shadowImageBlurred (off, color)HTMLCanvasElement

Name Type Description
off Point optional
color Color optional
Returns:
Type Description
HTMLCanvasElement

show ()

siblings ()Array.<Node> inherited

Returns:
Type Description
Array.<Node>

silentMoveBy (delta)

Name Type Description
delta number | Point

silentSetExtent (aPoint)

Name Type Description
aPoint Point

silentSetHeight (height)

Name Type Description
height number

silentSetPosition (aPoint)

Name Type Description
aPoint Point

silentSetWidth (width)

Name Type Description
width number

situation ()Object

Returns:
Type Description
Object

slideBackTo (situation, msecs, onBeforeDrop, onComplete)

Name Type Description
situation Object
msecs number optional
onBeforeDrop function optional
onComplete function optional

step ()

stepFrame ()

tab (editField)

Name Type Description
editField Morph

toggleIsDraggable ()

toggleVisibility ()

top ()number

Returns:
Type Description
number

topCenter ()Point

Returns:
Type Description
Point

topLeft ()Point

Returns:
Type Description
Point

topMorphAt (point)Morph

Name Type Description
point Point
Returns:
Type Description
Morph

topMorphSuchThat (predicate)Morph

Name Type Description
predicate function
Returns:
Type Description
Morph

topRight ()Point

Returns:
Type Description
Point

toString ()String overrides

Returns:
Type Description
String
Example
'a Morph 10 [0@0 | 50@40]'

updateReferences (map)

Name Type Description
map Map

userMenu ()MenuMorph

Returns:
Type Description
MenuMorph

visibleBounds ()Rectangle

Returns:
Type Description
Rectangle

wantsDropOf (aMorph)boolean

Name Type Description
aMorph Morph
Returns:
Type Description
boolean

width ()number

Returns:
Type Description
number

world ()WorldMorph

Returns:
Type Description
WorldMorph