Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XRectangle

Hierarchy

Index

Constructors

constructor

Properties

acceleration

acceleration: Vector

anchorX

anchorX: number

anchorY

anchorY: number

children

children: Array<XGameObject>

debugObject

debugObject: boolean

id

id: string

interactable

interactable: boolean

naturalHeight

naturalHeight: number

naturalScaleX

naturalScaleX: number

naturalScaleY

naturalScaleY: number

naturalWidth

naturalWidth: number

onMouseDown

onMouseDown: Function | null

onMouseMove

onMouseMove: Function | null

onMouseUp

onMouseUp: Function | null

position

position: Vector

rotation

rotation: number

texture

texture: XTexture | null

velocity

velocity: Vector

visible

visible: boolean

zIndex

zIndex: number

Accessors

alpha

alpha:

anchorGx

anchorGx:

anchorGy

anchorGy:

anchorOffsetVector

anchorOffsetVector:

anchorXOffset

anchorXOffset:

anchorYOffset

anchorYOffset:

ax

ax:

ay

ay:

gcx

gcx:

gcy

gcy:

globalCenterVector

globalCenterVector:

globalComputedBox

globalComputedBox:

gx

gx:

gy

gy:

height

height:

naturalAnchorXOffset

naturalAnchorXOffset:

naturalAnchorYOffset

naturalAnchorYOffset:

scaleX

scaleX:

scaleY

scaleY:

vx

vx:

vy

vy:

width

width:

x

x:

y

y:

Methods

addChild

orderChildrenByZIndex

  • orderChildrenByZIndex(): void

removeChild

render

  • render(ctx: CanvasRenderingContext2D): void

renderDebuggingOutlines

  • renderDebuggingOutlines(context: CanvasRenderingContext2D): void

setPosition

  • setPosition(x: number, y: number): void

setTexture

updatePositions

  • updatePositions(): void