home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12otk1.exe
/
include
/
Disptch.idl
< prev
next >
Wrap
Text File
|
1997-04-02
|
5KB
|
185 lines
/* @(#)Z 1.8 com/src/ui/idl/Disptch.idl, odui, od96os2, odos29712d 97/03/21 17:20:47 (96/10/21 16:55:17) */
//#====START_GENERATED_PROLOG======================================
//#
//#
//# COMPONENT_NAME: odui
//#
//# CLASSES: none
//#
//# ORIGINS: 82,27
//#
//#
//# (C) COPYRIGHT International Business Machines Corp. 1995,1996
//# All Rights Reserved
//# Licensed Materials - Property of IBM
//# US Government Users Restricted Rights - Use, duplication or
//# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//#
//# IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
//# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//# PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
//# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
//# USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
//# OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
//# OR PERFORMANCE OF THIS SOFTWARE.
//#
//#====END_GENERATED_PROLOG========================================
//#
/********************************************************************/
/* 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. */
/* */
/* */
/********************************************************************/
// Copyright: (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
#ifndef _DISPTCH_
#define _DISPTCH_
#ifndef _ODOBJECT_
#include "ODObject.idl"
#endif
//=====================================================================================
// Classes defined in this interface
//=====================================================================================
interface ODDispatcher;
//=====================================================================================
// Classes used by this interface
//=====================================================================================
interface ODDispatchModule;
interface ODFrame;
interface ODPart;
//=====================================================================================
// ODDispatcher
//=====================================================================================
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();
#ifdef _PLATFORM_MACINTOSH_
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 // _PLATFORM_MACINTOSH_
#ifdef _PLATFORM_UNIX_
void SetXtDispatchMode(in ODBoolean mode);
ODBoolean GetXtDispatchMode();
#endif // _PLATFORM_UNIX_
#ifdef __SOMIDL__
implementation
{
majorversion = 1; minorversion = 0;
functionprefix = ODDispatcher;
override:
somUninit,
Purge;
releaseorder:
AddDispatchModule,
GetDispatchModule,
RemoveDispatchModule,
AddMonitor,
RemoveMonitor,
Dispatch,
Redispatch,
Exit,
ShouldExit,
#ifdef _PLATFORM_MACINTOSH_ // Macintosh-only public methods
RegisterIdle,
UnregisterIdle,
SetIdleFrequency,
Yield,
SetMouseRegion,
GetMouseRegion,
InvalidateFacetUnderMouse,
GetSleepTime,
#endif // _PLATFORM_MACINTOSH_
#ifdef _PLATFORM_UNIX_ // UNIX-only public methods
SetXtDispatchMode,
GetXtDispatchMode,
#endif // _PLATFORM_UNIX_
reserved1,
#ifdef _PLATFORM_MACINTOSH_
reserved2,
reserved3,
reserved4,
reserved5,
reserved6,
reserved7,
reserved8,
#endif // _PLATFORM_MACINTOSH_
reserved_end; // end of releaseorder
};
#endif // __SOMIDL__
};
#endif // _DISPTCH_