Canvas.canvas
inherit Stk.Widget.widget
method root : group
Returns root group.
method set_root : group -> unit
Sets root group.
method get_item_at : x:int -> y:int -> full_item option
Returns item at the given coordinates, if any. Coordinates have the same origin as the canvas coordinates.
method get_leaf_items_at : x:int -> y:int -> full_item list
Get leaf items at the given coordinates. Coordinates have the same origin as the canvas coordinates.