API Reference | developer.brewmp.com API Reference | developer.brewmp.com

Developer

API Reference

ITRIGMLELEMENT_INSERTCHILD()

Brew Release
Brew MP 1.0.2
See Also
ITRIGMLELEMENT_RemoveChild() ITRIGMLELEMENT_RemoveAllChildren()
Description
Inserts one Trigml element as a child node of another.
The parent node will AddRef the new child. If you are finished with your reference to the child, you can Release it. The parent node will Release the child when the parent is destroyed.
Params
po
[]:
A pointer to the ITrigmlElement object into whose child list to insert the child element.
nodeToInsert
[]:
A pointer to another ITrigmlElement to will be inserted as a child of the first one.
beforeThisNode
[]:
Optionally, a pointer to a third ITrigmlElement, which should be an existing child node of po. nodeToInsert will be inserted into po's child list before beforeThisNode. Pass NULL to just append nodeToInsert at the end of po's child list.
Interface
  • ITRIGMLELEMENT
Prototype
  •    int ITRIGMLELEMENT_InsertChild(ITrigmlElement* po, ITrigmlElement* nodeToInsert, ITrigmlElement* beforeThisNode);
    
Return
  •    SUCCESS if the node was successfully inserted.
    
Side Effect
  • All loaded extensions receive a call to ITRIGMLEXTENSION_ChildInserted().
Comments
None