package lib.ui; import lib.Pos; import kernel.ButtonType; using tink.CoreApi; typedef UIEvents = { public var ?onClick:Callback<{button:ButtonType, pos:Pos}>; public var ?onKey:Callback<{keyCode:Int, isHeld:Bool}>; public var ?onKeyUp:Callback; public var ?onMouseDrag:Callback<{button:ButtonType, pos:Pos}>; public var ?onMouseScroll:Callback<{dir:Int, pos:Pos}>; public var ?onMouseUp:Callback<{button:ButtonType, pos:Pos}>; public var ?onPaste:Callback; public var ?onChar:Callback; }