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

Developer

API Reference

ITRIGMLELEMENT_GETNEXTSIBLING()

Brew Release
Brew MP 1.0.2
See Also
ITRIGMLELEMENT_GetFirstChild() ITRIGMLELEMENT_GetLastChild() ITRIGMLELEMENT_GetPrevSibling()
Description
Returns the next element in the child list of the given element's parent.
For example, you can use this code fragment to forward iterate an element's children:
      ITrigmlElement *pChild = ITRIGMLELEMENT_GetFirstChild(pElement);

      while (pChild != NULL)
      {
         ...
         pChild = ITRIGMLELEMENT_GetNextSibling(pChild);
      }

The returned pointer is NOT Addref'd; the caller should not Release it.
Params
po
[]:
A pointer to the ITrigmlElement object for which to retrieve the next sibling.
Interface
  • ITRIGMLELEMENT
Prototype
  •    ITrigmlElement* ITRIGMLELEMENT_GetNextSibling(ITrigmlElement* po);
    
Return
  •    A pointer to the next sibling of the given element, or NULL if the element
       has no next sibling (i.e. it is the last element in its parent's child list).
    
Side Effect
  • None
Comments
None