Screen

backend.Screen (Class)
Implements: tracker.Events

Instance Members

headless
getWidth(): Int
Returns
Int

headless
getHeight(): Int
Returns
Int

headless
getDensity(): Float
Returns
Float

headless
setBackground(background: Int): Void
Name Type
background Int

headless
setWindowTitle(title: String): Void
Name Type
title String

headless
setWindowFullscreen(fullscreen: Bool): Void
Name Type
fullscreen Bool

headless
screenshotToTexture(done: Function): Void
Name Type
done Function

headless
screenshotToPng(?path: String, done: Function): Void
Name Type Default
path String (optional)
done Function

headless
screenshotToPixels(done: Function): Void
Name Type
done Function

headless
unbindEvents(): Void

headless
new(): Void

Private Members

headless
emitResize(): Void

resize event


headless
emitMouseDown(buttonId: Int, x: Float, y: Float): Void

mouseDown event

Name Type
buttonId Int
x Float
y Float

headless
emitMouseUp(buttonId: Int, x: Float, y: Float): Void

mouseUp event

Name Type
buttonId Int
x Float
y Float

headless
emitMouseWheel(x: Float, y: Float): Void

mouseWheel event

Name Type
x Float
y Float

headless
emitMouseMove(x: Float, y: Float): Void

mouseMove event

Name Type
x Float
y Float

headless
emitTouchDown(touchIndex: Int, x: Float, y: Float): Void

touchDown event

Name Type
touchIndex Int
x Float
y Float

headless
emitTouchUp(touchIndex: Int, x: Float, y: Float): Void

touchUp event

Name Type
touchIndex Int
x Float
y Float

headless
emitTouchMove(touchIndex: Int, x: Float, y: Float): Void

touchMove event

Name Type
touchIndex Int
x Float
y Float

Metadata

Name Parameters
:build tracker.macros.EventsMacro.build()
:autoBuild tracker.macros.EventsMacro.build()