Static methods

Constructor

new(?canvas:CanvasElement, ?globalEvents:Bool)

Variables

@:value(true)discardMouseCaptureEvent:Bool = true

When enabled, the user click event on the canvas that would trigger mouse capture to be enabled would be discarded. (default : true)

read onlyheight:Int

read onlyisFocused:Bool

mouseClip:Bool

If set, will restrain the mouse cursor within the window boundaries.

mouseLock:Bool

Deprecated: "Use mouseMode = AbsoluteUnbound(true)"

@:value(Absolute)mouseMode:MouseMode = Absolute

Set the mouse movement input handling mode.

See also:

read onlymouseX:Int

read onlymouseY:Int

title:String

@:value(js.Browser.supported)useScreenPixels:Bool = js.Browser.supported

When enabled, the browser zoom does not affect the canvas. (default : true)

vsync:Bool

read onlywidth:Int

Methods

addDragAndDropTarget(f:(event:DropFileEvent) ‑> Void):Void

addEventTarget(et:Event ‑> Void):Void

addResizeEvent(f:() ‑> Void):Void

dispose():Void

event(e:Event):Void

dynamiconClose():Bool

removeDragAndDropTarget(f:(event:DropFileEvent) ‑> Void):Void

removeEventTarget(et:Event ‑> Void):Void

removeResizeEvent(f:() ‑> Void):Void

resize(width:Int, height:Int):Void

setCurrent():Void

@:value({ emitEvent : false })setCursorPos(x:Int, y:Int, emitEvent:Bool = false):Void

setFullScreen(v:Bool):Void

Deprecated: "Use the displayMode property instead"