Protocol
PainterProtocol
public protocol PainterProtocol
Relationships
Types Conforming to PainterProtocol
PainterBase
Requirements
init()
init()
framesPerSecond()
func framesPerSecond() -> Int
setup(canvas:)
func setup(canvas:Canvas)
calculate(canvasId:canvasSize:)
func calculate(canvasId:Int, canvasSize:Size?)
render(canvas:)
func render(canvas:Canvas)
onCanvasResize(size:)
func onCanvasResize(size:Size)
onWindowResize(size:)
func onWindowResize(size:Size)
onClick(location:)
func onClick(location:Point)
onMouseDown(location:)
func onMouseDown(location:Point)
onMouseUp(location:)
func onMouseUp(location:Point)
onWindowMouseUp(location:)
func onWindowMouseUp(location:Point)
onMouseMove(location:)
func onMouseMove(location:Point)
onKeyDown(key:code:ctrlKey:shiftKey:altKey:metaKey:)
func onKeyDown(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)
onKeyUp(key:code:ctrlKey:shiftKey:altKey:metaKey:)
func onKeyUp(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)