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

Developer

API Reference

IWIDGET_SETELEMENTSTATE()

Brew Release
Brew MP 1.0.2
See Also
None.
Description
This inline method is generally used by a controller to set a state of widget element. The state can be any of the following: - WESTATE_NORMAL
- WESTATE_HIGHLIGHT
- WESTATE_PRESSED

A widget can decide to update its view based on the state of the element.
Params
pif
[]:
[in] A pointer to the IWidget interface
nElemType
[]:
[in] Element type
nElemID
[]:
[in] ID of the element
nElemState
[]:
[in] New state of the element.
Interface
Prototype
  •    int IWidget_SetElementState( IWidget *pif, 
                                    int nElemType, 
                                    int nElemID, 
                                    int nElemState );
    
Return
  •    AEE_SUCCESS -   If widget is able to update the state of the specified element
       AEE_EFAILED -   Otherwise
    
Side Effect
  • A widget could send a viewmodel notification on state update.
Comments
None.