home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / X / mit / lib / Xt / EventI.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-28  |  2.7 KB  |  105 lines

  1. /* $XConsortium: EventI.h,v 1.18 91/01/29 10:56:58 rws Exp $ */
  2. /* $oHeader: EventI.h,v 1.3 88/08/24 09:21:11 asente Exp $ */
  3.  
  4. /***********************************************************
  5. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  6. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  7.  
  8.                         All Rights Reserved
  9.  
  10. Permission to use, copy, modify, and distribute this software and its 
  11. documentation for any purpose and without fee is hereby granted, 
  12. provided that the above copyright notice appear in all copies and that
  13. both that copyright notice and this permission notice appear in 
  14. supporting documentation, and that the names of Digital or MIT not be
  15. used in advertising or publicity pertaining to distribution of the
  16. software without specific, written prior permission.  
  17.  
  18. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  19. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  20. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  21. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  22. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  23. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  24. SOFTWARE.
  25.  
  26. ******************************************************************/
  27.  
  28. /* 
  29.  * Event.h - exported types and functions for toolkit event handler
  30.  * 
  31.  * Author:    Charles Haynes
  32.  *         Digital Equipment Corporation
  33.  *         Western Software Laboratory
  34.  * Date:    Sun Dec  6 1987
  35.  */
  36.  
  37. #ifndef _Event_h_
  38. #define _Event_h_
  39.  
  40. typedef struct _XtGrabRec  *XtGrabList;
  41.  
  42. extern void _XtEventInitialize(
  43. #if NeedFunctionPrototypes
  44.     void
  45. #endif
  46. );
  47.  
  48. extern void _XtRegisterWindow(
  49. #if NeedFunctionPrototypes
  50.     Window     /* window */,
  51.     Widget     /* widget */
  52. #endif
  53. );
  54.  
  55. extern void _XtUnregisterWindow(
  56. #if NeedFunctionPrototypes
  57.     Window     /* window */,
  58.     Widget     /* widget */
  59. #endif
  60. );
  61.  
  62. typedef struct _XtEventRec {
  63.      XtEventTable    next;
  64.      EventMask        mask;
  65.      XtEventHandler    proc;
  66.      XtPointer        closure;
  67.      unsigned int    select:1;
  68.      unsigned int    async:1; /* not used, here for Digital extension? */
  69. } XtEventRec;
  70.  
  71. typedef struct _XtGrabRec {
  72.     XtGrabList next;
  73.     Widget   widget;
  74.     unsigned int exclusive:1;
  75.     unsigned int spring_loaded:1;
  76. }XtGrabRec;
  77.  
  78.  
  79. extern void _XtFreeEventTable(
  80. #if NeedFunctionPrototypes
  81.     XtEventTable*    /* event_table */
  82. #endif
  83. );
  84.  
  85. extern Boolean _XtOnGrabList(
  86. #if NeedFunctionPrototypes
  87.     Widget    /* widget */,
  88.     XtGrabRec*    /* grabList */
  89. #endif
  90. );
  91.  
  92. extern void _XtRemoveAllInputs(
  93. #if NeedFunctionPrototypes
  94.     XtAppContext /* app */
  95. #endif
  96. );
  97.  
  98. extern EventMask _XtConvertTypeToMask(
  99. #if NeedFunctionPrototypes
  100.     int        /* eventType */
  101. #endif
  102. );
  103.  
  104. #endif /* _Event_h_ */
  105.