set_parent


Description:

public abstract void set_parent (CanvasItem parent)

This function is only intended to be used when implementing new canvas items (specifically container items such as CanvasGroup).

It sets the parent of the child item.

<note><para> This function cannot be used to add an item to a group or to change the parent of an item. To do that use the parent property. </para></note>

Parameters:

this

an item.

parent

the new parent item.