Class
PainterBase
open class PainterBase : PainterProtocol
Relationships
Conforms To
PainterProtocol
Initializers
init()
public required init()
Methods
framesPerSecond()
open func framesPerSecond() -> Int
setup(canvas:)
open func setup(canvas:Canvas)
calculate(canvasId:canvasSize:)
open func calculate(canvasId:Int, canvasSize:Size?)
render(canvas:)
open func render(canvas:Canvas)
onCanvasResize(size:)
open func onCanvasResize(size:Size)
onWindowResize(size:)
open func onWindowResize(size:Size)
onClick(location:)
open func onClick(location:Point)
onMouseDown(location:)
open func onMouseDown(location:Point)
onMouseUp(location:)
open func onMouseUp(location:Point)
onWindowMouseUp(location:)
open func onWindowMouseUp(location:Point)
onMouseMove(location:)
open func onMouseMove(location:Point)
onKeyDown(key:code:ctrlKey:shiftKey:altKey:metaKey:)
open func onKeyDown(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)
onKeyUp(key:code:ctrlKey:shiftKey:altKey:metaKey:)
open func onKeyUp(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)