set_parent


Description:

public abstract void set_parent (CanvasItemModel parent)

This function is only intended to be used when implementing new canvas item models (specifically container models such as CanvasGroupModel).

It sets the parent of the child model.

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

Parameters:

this

an item model.

parent

the new parent item model.