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

Developer

API Reference

IWIDGET_GETVIEWMODEL()

Brew Release
Brew MP 1.0.2
See Also
IWidget_SetViewModel Model Events
Description

Retrieves the view model associated with the widget. View models are used to provide the user with notifications of when important events such as extent changes occur.
Params
pif
[]:
[in] Pointer to the IWidget interface object.
ppif
[]:
[out] On successful termination, stores a pointer to the ViewModel currently being used by the widget (pif).
Interface
Prototype
  • int IWidget_GetViewModel(IWidget *pif, IModel **ppif)
    
Return
  •    AEE_SUCCESS - Successfully retrieved the view model
       AEE_EFAILED - Failed to retrieve the view model
    
Side Effect

  • The returned view model has its reference count incremented. Please ensure you decrement that count using IModel_Release when you are done.
Comments
None