Igis Documentation Beta

Protocol Painter​Protocol

public protocol PainterProtocol 
%3 PainterProtocol PainterProtocol PainterBase PainterBase PainterBase->PainterProtocol

Types Conforming to Painter​Protocol

PainterBase

Requirements

init()

init()

frames​Per​Second()

func framesPerSecond() -> Int

setup(canvas:​)

func setup(canvas:Canvas)

calculate(canvas​Id:​canvas​Size:​)

func calculate(canvasId:Int, canvasSize:Size?)

render(canvas:​)

func render(canvas:Canvas)

on​Canvas​Resize(size:​)

func onCanvasResize(size:Size)

on​Window​Resize(size:​)

func onWindowResize(size:Size)

on​Click(location:​)

func onClick(location:Point)

on​Mouse​Down(location:​)

func onMouseDown(location:Point)

on​Mouse​Up(location:​)

func onMouseUp(location:Point)

on​Window​Mouse​Up(location:​)

func onWindowMouseUp(location:Point)

on​Mouse​Move(location:​)

func onMouseMove(location:Point)

on​Key​Down(key:​code:​ctrl​Key:​shift​Key:​alt​Key:​meta​Key:​)

func onKeyDown(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)

on​Key​Up(key:​code:​ctrl​Key:​shift​Key:​alt​Key:​meta​Key:​)

func onKeyUp(key:String, code:String, ctrlKey:Bool, shiftKey:Bool, altKey:Bool, metaKey:Bool)