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

Developer

API Reference

IWIDGET_GETWIDGETBYID()

Brew Release
Brew MP 1.0.2
See Also
IWidget_FindElement()
Description
This inline function retrieves the Widget at the specified Element ID of WidgetElemInfo struct.
Params
piwContainer
[]:
[in] A pointer to the Container IWidget interface
nId
[]:
[in] Element ID (Unique element id from WidgetElemInfo)
Interface
Prototype
  •    IWidget* IWidget_GetWidgetByID(IWidget *piwContainer, int nId);
    
Return
  •    IWidget* - Pointer to Widget Interface associated with Element ID, NULL on failure
    
Side Effect
  • None
Comments
This inline function uses ICONTAINER_GetWidget() to get the widget at the specified element ID. It is important that the widget be inserted in the Container before making this call.