class Pen
package kha.input
Static methods
Methods
notify(?downListener:(Int, Int, Float) ‑> Void, ?upListener:(Int, Int, Float) ‑> Void, ?moveListener:(Int, Int, Float) ‑> Void):Void
Creates event handlers from passed functions.
Parameters:
downListener | (optional) function with |
---|---|
upListener | (optional) function with |
moveListener | (optional) function with |
notifyEraser(eraserDownListener:(Int, Int, Float) ‑> Void, eraserUpListener:(Int, Int, Float) ‑> Void, eraserMoveListener:(Int, Int, Float) ‑> Void):Void
Creates event handlers from passed functions specific to the pen's eraser.
Parameters:
downListener | function with |
---|---|
upListener | function with |
moveListener | function with |
notifyEraserWindowed(windowId:Int, eraserDownListener:(Int, Int, Float) ‑> Void, eraserUpListener:(Int, Int, Float) ‑> Void, eraserMoveListener:(Int, Int, Float) ‑> Void):Void
Creates event handlers from passed functions like notifyEraser
function, but only for window with windowId:Int
id argument. The windows are not supported by all the targets.
notifyWindowed(windowId:Int, ?downListener:(Int, Int, Float) ‑> Void, ?upListener:(Int, Int, Float) ‑> Void, ?moveListener:(Int, Int, Float) ‑> Void):Void
Creates event handlers from passed functions like notify
function, but only for window with windowId:Int
id argument. The windows are not supported by all the targets.
remove(?downListener:(Int, Int, Float) ‑> Void, ?upListener:(Int, Int, Float) ‑> Void, ?moveListener:(Int, Int, Float) ‑> Void):Void
Removes event handlers from the passed functions that were passed to notify
function.
removeEraser(eraserDownListener:(Int, Int, Float) ‑> Void, eraserUpListener:(Int, Int, Float) ‑> Void, eraserMoveListener:(Int, Int, Float) ‑> Void):Void
Removes event handlers from the passed functions that were passed to notifyEraser
function.