type box = {x : float;y : float;w : float;h : float;
}val contains : box -> float -> float -> boolval inset : float -> box -> boxval bottom : box -> floattype canvas_event = | Hover of float * float| Press of float * float| Right_press of float * float
val text_width : size:float -> string -> float