Developer

API Reference

IFrameModel_AddListener()

Brew Release
Brew MP 1.0.2
Description
This function allows objects such as widgets and UI controls to attach a listener to the given text model. The listener includes a callback function that BREW will call whenever the model has changed state, thereby notifying the owner of the listener that data has changed.
Parameters
  • p
    []:
    Pointer to the IFrameModel interface object.
  • pl
    []:
    Pointer to the ModelListener that will be attached to the object. The ModelListener will contain the PFNLISTENER callback function BREW will call to notify the registering object of changes to the value model.
Interface
Prototype
   int IFrameModel_AddListener(IFrameModel *p, ModelListener pl); 
Return
   AEE_SUCCESS          - Listener successfully added
   AEE_EBADPARM         - Invalid argument
   ENOMEMORY        - Insufficient memory
Side Effect
None
Comment
None
  • Follow