Adds child to the list of children of this.
child
This function will acquire a reference on child.
a PaintNode
the child PaintNode to add