module Base:
Base
contains default implementations of most sketch
functions. It does not provide the type of state
or the function
setup
; these must be specified for every sketch.
module R: R
val display : [> `Size of int * int ]
val loop : 'a -> 'b -> 'b
val draw : 'a -> 'b -> Shape.t
val mouse_pressed : 'a -> 'b -> 'b
val mouse_released : 'a -> 'b -> 'b
val mouse_moved : 'a -> 'b -> 'b
val mouse_dragged : 'a -> 'b -> 'b
val mouse_clicked : 'a -> 'b -> 'b
val mouse_scrolled : 'a -> 'b -> 'b
val key_pressed : 'a -> 'b -> 'b
val key_released : 'a -> 'b -> 'b
val key_typed : 'a -> 'b -> 'b
val window_resized : 'a -> 'b -> 'b
val window_closed : 'a -> 'b -> 'c