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.
Parameters
  • 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
Comment
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.
  • Follow