Developer

API Reference

IDirectMode

Brew Release
Brew MP 1.0.2
Description
IDirectMode is derived from IQueryInterface. It is expected to be implemented by FrameModel which supports DirectMode. Whenever the application tries to set or get direct mode property (PROPEX_DIRECT) on the FrameWidget, FrameWidget communicates to FrameModel, about this property, using IDirectMode. FrameWidget queries for this interface (IDirectMode) and, if it is successful, it uses the DirectMode API to set/get the directmode.
Usage
The interface supplies the following two API's to set/get direct mode:
      IDirectMode_SetDirectMode()
      IDirectMode_GetDirectMode()

A typical usage is to first obtain an IDirectMode interface from FrameModel and then call the appropriate API to set/get direct mode. For example,
      (void) IFRAMEMODEL_QueryInterface(piFrameModel, AEEIID_IDirectMode, (void**) &piDirect);
      if(piDirect) {
         nErr = IDIRECTMODE_SetDirectMode(piDirect, nDirect, &rc);
      }
  • Follow