Class Canvas.rect

An item to draw a rectangle. Default class_ is "canvas_rect". Width and height of the rectangle can be specified with optional arguments w and h.

inherit full_item
method resize : ?w:int -> ?h:int -> unit -> unit