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 >
Text File  |  1997-04-02  |  5KB  |  185 lines

  1. /* @(#)Z 1.8 com/src/ui/idl/Disptch.idl, odui, od96os2, odos29712d 97/03/21 17:20:47 (96/10/21 16:55:17) */
  2. //#====START_GENERATED_PROLOG======================================
  3. //#
  4. //#
  5. //#   COMPONENT_NAME: odui
  6. //#
  7. //#   CLASSES: none
  8. //#
  9. //#   ORIGINS: 82,27
  10. //#
  11. //#
  12. //#   (C) COPYRIGHT International Business Machines Corp. 1995,1996
  13. //#   All Rights Reserved
  14. //#   Licensed Materials - Property of IBM
  15. //#   US Government Users Restricted Rights - Use, duplication or
  16. //#   disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  17. //#       
  18. //#   IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. //#   ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  20. //#   PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  21. //#   CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF
  22. //#   USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
  23. //#   OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE
  24. //#   OR PERFORMANCE OF THIS SOFTWARE.
  25. //#
  26. //#====END_GENERATED_PROLOG========================================
  27. //#
  28. /********************************************************************/
  29. /*  Licensed Materials - Property of IBM                            */
  30. /*                                                                  */
  31. /*                                                                  */
  32. /* Copyright (C) International Business Machines Corp., 1994.       */
  33. /* Copyright (C) Apple Computer, Inc., 1994                         */
  34. /*                                                                  */
  35. /*  US Government Users Restricted Rights -                         */
  36. /*  Use, duplication, or disclosure restricted                      */
  37. /*  by GSA ADP Schedule Contract with IBM Corp.                     */
  38. /*                                                                  */
  39. /*                                                                  */
  40. /********************************************************************/
  41. //    Copyright:    (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
  42.  
  43. #ifndef _DISPTCH_
  44. #define _DISPTCH_
  45.  
  46. #ifndef _ODOBJECT_
  47. #include "ODObject.idl"
  48. #endif
  49.  
  50. //=====================================================================================
  51. // Classes defined in this interface
  52. //=====================================================================================
  53.  
  54. interface  ODDispatcher;
  55.  
  56. //=====================================================================================
  57. // Classes used by this interface
  58. //=====================================================================================
  59.  
  60. interface  ODDispatchModule;
  61. interface  ODFrame;
  62. interface  ODPart;
  63.  
  64.  
  65.  
  66. //=====================================================================================
  67. // ODDispatcher
  68. //=====================================================================================
  69.  
  70. interface ODDispatcher :  ODObject
  71. {
  72.     void AddDispatchModule(in ODEventType eventType,
  73.                            in ODDispatchModule dispatchModule); 
  74.   
  75.     ODDispatchModule GetDispatchModule(in ODEventType eventType); 
  76.   
  77.     void RemoveDispatchModule(in ODEventType eventType); 
  78.   
  79.     void AddMonitor(in ODEventType eventType, 
  80.                     in ODDispatchModule dispatchModule);
  81.   
  82.     void RemoveMonitor(in ODEventType eventType,
  83.                        in ODDispatchModule dispatchModule); 
  84.   
  85.     ODBoolean Dispatch(inout ODEventData eventData); 
  86.  
  87.     ODBoolean Redispatch(inout ODEventData eventData, inout ODEventInfo eventInfo); 
  88.   
  89.     void Exit(); 
  90.   
  91.     ODBoolean ShouldExit(); 
  92.  
  93. #ifdef _PLATFORM_MACINTOSH_
  94.  
  95.    void RegisterIdle(in ODPart part,
  96.                         in ODFrame frame,
  97.                      in ODIdleFrequency frequency);
  98.  
  99.    void UnregisterIdle(in ODPart part,
  100.                           in ODFrame frame);
  101.  
  102.    void SetIdleFrequency(in ODPart part,
  103.                             in ODFrame frame,
  104.                          in ODIdleFrequency frequency);
  105.  
  106.    void Yield(in ODFrame frame);
  107.  
  108.    void SetMouseRegion(in ODRgnHandle area);
  109.  
  110.    ODRgnHandle GetMouseRegion();
  111.  
  112.    void InvalidateFacetUnderMouse();
  113.  
  114.    ODSLong GetSleepTime();
  115.  
  116. #endif // _PLATFORM_MACINTOSH_
  117.  
  118. #ifdef _PLATFORM_UNIX_
  119.  
  120.    void SetXtDispatchMode(in ODBoolean mode);
  121.  
  122.    ODBoolean GetXtDispatchMode();
  123.  
  124. #endif // _PLATFORM_UNIX_
  125.  
  126.  
  127. #ifdef __SOMIDL__
  128.  
  129.   implementation
  130.   {
  131.          majorversion = 1; minorversion = 0;
  132.  
  133.          functionprefix = ODDispatcher;
  134.     
  135.         override:
  136.             somUninit,
  137.             Purge;
  138.         
  139.         releaseorder:
  140.             AddDispatchModule,
  141.             GetDispatchModule,
  142.             RemoveDispatchModule,
  143.             AddMonitor,
  144.             RemoveMonitor,
  145.             Dispatch,
  146.             Redispatch,
  147.             Exit,
  148.             ShouldExit,
  149. #ifdef _PLATFORM_MACINTOSH_        // Macintosh-only public methods
  150.             RegisterIdle,                 
  151.             UnregisterIdle,
  152.             SetIdleFrequency,
  153.             Yield,
  154.             SetMouseRegion,
  155.             GetMouseRegion,
  156.             InvalidateFacetUnderMouse,
  157.             GetSleepTime,
  158. #endif // _PLATFORM_MACINTOSH_
  159.  
  160. #ifdef _PLATFORM_UNIX_            // UNIX-only public methods
  161.             SetXtDispatchMode,
  162.             GetXtDispatchMode,
  163. #endif // _PLATFORM_UNIX_
  164.  
  165.             reserved1,
  166. #ifdef _PLATFORM_MACINTOSH_
  167.             reserved2,
  168.             reserved3,
  169.             reserved4,
  170.             reserved5,
  171.             reserved6,
  172.             reserved7,
  173.             reserved8,
  174. #endif // _PLATFORM_MACINTOSH_
  175.  
  176.             reserved_end;    // end of releaseorder
  177.         
  178.     
  179.   };
  180. #endif // __SOMIDL__
  181.  
  182. };
  183.  
  184. #endif // _DISPTCH_
  185.