home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
odtlktv4.zip
/
ODTLKT
/
TOOLKIT
/
IDL
/
DISPTCH.IDL
< prev
next >
Wrap
Text File
|
1995-12-13
|
4KB
|
151 lines
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
#ifndef _DISPATCH_
#define _DISPATCH_
#ifndef _ODOBJECT_
#include "ODObject.idl"
#endif
//=====================================================================================
// Classes defined in this interface
//=====================================================================================
interface ODDispatcher;
//=====================================================================================
// Classes used by this interface
//=====================================================================================
interface ODDispatchModule;
interface ODFacet;
interface ODFrame;
interface ODPart;
interface ODSession;
//=====================================================================================
// ODDispatcher
//=====================================================================================
#if defined(_PLATFORM_MACINTOSH_) || defined(_PLATFORM_OS2_)
interface ODDispatcher : ODObject
{
void AddDispatchModule(in ODEventType eventType,
in ODDispatchModule dispatchModule);
ODDispatchModule GetDispatchModule(in ODEventType eventType);
void RemoveDispatchModule(in ODEventType eventType);
void AddMonitor(in ODEventType eventType,
in ODDispatchModule dispatchModule);
void RemoveMonitor(in ODEventType eventType,
in ODDispatchModule dispatchModule);
ODBoolean Dispatch(inout ODEventData eventData);
ODBoolean Redispatch(inout ODEventData eventData, inout ODEventInfo eventInfo);
void Exit();
ODBoolean ShouldExit();
#ifndef _PLATFORM_OS2_
void RegisterIdle(in ODPart part,
in ODFrame frame,
in ODIdleFrequency frequency);
void UnregisterIdle(in ODPart part,
in ODFrame frame);
void SetIdleFrequency(in ODPart part,
in ODFrame frame,
in ODIdleFrequency frequency);
void Yield(in ODFrame frame);
void SetMouseRegion(in ODRgnHandle area);
ODRgnHandle GetMouseRegion();
void InvalidateFacetUnderMouse();
ODSLong GetSleepTime();
#endif
#ifdef __SOMIDL__
implementation
{
functionprefix = ODDispatcher;
override:
somInit,
somUninit,
Purge;
releaseorder:
AddDispatchModule,
GetDispatchModule,
RemoveDispatchModule,
AddMonitor,
RemoveMonitor,
Dispatch,
Redispatch,
Exit,
ShouldExit,
#ifndef _PLATFORM_OS2_ // CED
RegisterIdle,
UnregisterIdle,
SetIdleFrequency,
Yield,
SetMouseRegion,
GetMouseRegion,
InvalidateFacetUnderMouse,
GetSleepTime,
#endif // _PLATFORM_OS2_
#ifndef _PLATFORM_OS2_ // CED
reserved1,
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
reserved8;
#else
reserved1,
reserved2;
#endif // _PLATFORM_OS2_
majorversion = 1; minorversion = 0;
};
#endif
};
#endif // _PLATFORM_MACINTOSH_ || _PLATFORM_OS2_
// #endif // _PLATFORM_MACINTOSH_
#endif // _DISPATCH_