Class Canvas.group

A group is a [full_item] container_item. Its default class_ is "canvas_group".

method as_group : group
method items : full_item list
method clear : unit

Removes all items from group.

method of_canvas_coords : x:int -> y:int -> int * int
method width : int
method height : int
method add_item : ?x:int -> ?y:int -> full_item -> unit

Adds the given item to group. The item's coordinates can be set with x and y optional arguments.

method remove_item : full_item -> unit

Removes the given item from the group.

method raise : full_item -> unit

Raises the given item above all the other items of the group.