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

Developer

API Reference

IDIRECTMODE_SETDIRECTMODE()

Brew Release
Brew MP 1.0.2
See Also
- IDirectMode_GetDirectMode
Description
This function sets the direct mode for the underlying object it is using.
Params
p
[]:
[in] Pointer to the IDirectMode object
nDirect
[]:
[in] Flags used for direct mode. Supported flags are
DMF_DISABLE
[]:
Disable direct mode.
DMF_ENABLE
[]:
Enable direct mode.
prc
[]:
[in] Pointer to AEERect. This specifies the rectangle to be used for drawing directly to the screen. IDirectMode implementation will pass this rectangle to the underlying interface (like IMedia)

Interface
Prototype
  •    int IDirectMode_SetDirectMode(IDirectMode *p, int nDirect, AEERect *prc);
    
Return
  •    AEE_SUCCESS     if successful
       AEE_EFAILED     if unable to set the requested mode on underlying interface.
    
Side Effect
  • If the direct mode is enabled, then the drawing on the specified rectangle on the screen is no longer controlled by the widget's framework. If there are any other layout related changes, which result in external invalidation of that rectangle, the application should disable direct mode for these changes to work correctly.

Comments
None