CanvasItem.destroy

Destroy this item and remove it from the canvas.

Caveats: Once an item is destroyed it can no longer be referenced in your code or a segmentation fault will occur and potentially crash your program.

class CanvasItem
void
destroy
()

Meta