This function is only intended to be used when implementing new canvas items, specifically container items such as CanvasGroup.
It sets the canvas of the item.
a CanvasItem.
a Canvas