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

Developer

API Reference

ITRIGMLELEMENT_CLONE()

Brew Release
Brew MP 1.0.2
Description
Creates and returns a copy of a Trigml element.
All attributes and their unresolved values are copied to the new element. Event handlers (including the default event handlers) and the attached object are not copied; instead, the loaded extensions recieve calls to ITRIGMLEXTENSION_ElementCreated() so that they can create them. The new element is not a member of the DOM tree - it has no parent or siblings.
Params
po
[]:
A pointer to an ITrigmlElement object.
ppClone
[]:
On successful return, *ppClone is a pointer to the new clone of the original element. You should call ITRIGMLELEMENT_Release() when you are finished with it.
pParent
[]:
Optional, a pointer to the ITrigmlElement into which the cloned element will be inserted, if NULL the cloned element won't be inserted.
Interface
  • ITRIGMLELEMENT
Prototype
  •    ITRIGMLELEMENT_Clone(ITrigmlElement* po, ITrigmlElement** ppClone, 
                            ITrigmlElement * pParent);
    
Return
  •    SUCCESS if the element was successfully cloned.
    
Side Effect
  • All loaded extensions receive a call to ITRIGMLEXTENSION_ElementCreated().
Comments
None