Developer

API Reference

IListContainerModel_GetItemWidget()

Brew Release
Brew MP 1.0.2
See Also
Description
This function returns a widget that represents an item of a certain type and state.
Parameters
  • pif
    []:
    Pointer to the IListContainerModel interface object.
  • nType
    []:
    Type of the item.
  • nState
    []:
    State of the item.
  • ppiw
    []:
    Pointer to an IWidget pointer that will be returned by the function, providing the widget that represents an item of a certain type and state.
Prototype
   int IListContainerModel_GetItemWidget(IListContainerModel* pif, int nType, int nState, IWidget **ppiw);
Return
   AEE_SUCCESS  - The model was able to successfully return item widget of 
                  certain type and state.
   Error code   - The model was not able to return item widget.
Side Effect
None
Comment
The reference count of the returned widget pointed to by 'ppiw' will be incremented.
The pointer passed in the 'ppiw' parameter is a double-indirection -- i.e., it is a pointer to a pointer. Applications should use care in ensuring that the proper level of indirection is used in calling the function.
  • Follow