Developer

API Reference

ITRIGMLELEMENT_InsertChild()

deprecated
Items marked as deprecated have been replaced by a more powerful, alternative feature. Deprecated interfaces include a reference to the replacement interface, which should be used for all new application development. Deprecated features are still supported for backward compatibility, but should be avoided when developing new applications.
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.
Parameters
  • 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().
Comment
None
  • Follow