Constructors
constructor
- new default(textureManager, x, y): default
Parameters
- textureManager: default
- x: any
- y: any
Properties
Protected
height
height: any
Protected
scene
scene: any
Protected
textureManager
textureManager: any
Protected
visible
visible: any
Protected
width
width: any
Methods
add
- add(obj): void
Returns void
addAt
- addAt(obj, index): void
Returns void
addedToScene
- addedToScene(): void
Returns void
bringToTop
- bringToTop(obj): void
Returns void
clearTint
- clearTint(): void
Returns void
destroy
- destroy(): void
Returns void
getAll
- getAll(): any[]
Returns any[]
getAt
- getAt(index): any
Returns any
getBounds
- getBounds(): {
height: any;
width: any;
} Returns {
height: any;
width: any;
}
getIndex
- getIndex(obj): number
Returns number
moveAbove
- moveAbove(obj): void
Returns void
moveBelow
- moveBelow(obj): void
Returns void
off
- off(event, callback, source): void
Parameters
- event: any
- callback: any
- source: any
Returns void
on
- on(event, callback, source): void
Parameters
- event: any
- callback: any
- source: any
Returns void
once
- once(event, callback, source): void
Parameters
- event: any
- callback: any
- source: any
Returns void
remove
- remove(obj): void
Returns void
removeAll
- removeAll(): void
Returns void
removeFromDisplayList
- removeFromDisplayList(): void
Returns void
sendToBack
- sendToBack(): void
Returns void
setAlpha
- setAlpha(alpha): void
Returns void
setAngle
- setAngle(angle): void
Returns void
setColor
- setColor(color): void
Returns void
setDepth
- setDepth(depth): void
Returns void
setFontSize
- setFontSize(fontSize): void
Returns void
setFrame
- setFrame(frame, updateSize?, updateOrigin?): void
Parameters
- frame: any
Optional
updateSize: booleanOptional
updateOrigin: boolean
Returns void
setInteractive
- setInteractive(hitArea?, callback?, dropZone?): void
Parameters
Optional
hitArea: anyOptional
callback: anyOptional
dropZone: any
Returns void
setLineSpacing
- setLineSpacing(lineSpacing): void
Returns void
setMask
- setMask(): void
Returns void
setName
- setName(name): void
Returns void
setOrigin
- setOrigin(x, y): void
Returns void
setPosition
- setPosition(x, y): void
Returns void
setPositionRelative
- setPositionRelative(source, x, y): void
Returns void
setScale
- setScale(scale): void
Returns void
setShadow
- setShadow(shadowXpos, shadowYpos, shadowColor): void
Parameters
- shadowXpos: any
- shadowYpos: any
- shadowColor: any
Returns void
setShadowColor
- setShadowColor(color): void
Returns void
setShadowOffset
- setShadowOffset(offsetX, offsetY): void
Returns void
setSize
- setSize(width, height): void
Returns void
setStrokeStyle
- setStrokeStyle(thickness, color): default
setText
- setText(text): void
Returns void
setTexture
- setTexture(texture): void
Returns void
setTint
- setTint(color): void
Returns void
setVisible
- setVisible(visible): void
Returns void
setWordWrapWidth
- setWordWrapWidth(width): void
Returns void
setX
- setX(x): void
Returns void
setY
- setY(y): void
Returns void