1 /*****************************************************************************/
2 /** Copyright 1988 by Evans & Sutherland Computer Corporation, **/
3 /** Salt Lake City, Utah **/
4 /** Portions Copyright 1989 by the Massachusetts Institute of Technology **/
5 /** Cambridge, Massachusetts **/
7 /** All Rights Reserved **/
9 /** Permission to use, copy, modify, and distribute this software and **/
10 /** its documentation for any purpose and without fee is hereby **/
11 /** granted, provided that the above copyright notice appear in all **/
12 /** copies and that both that copyright notice and this permis- **/
13 /** sion notice appear in supporting documentation, and that the **/
14 /** names of Evans & Sutherland and M.I.T. not be used in advertising **/
15 /** in publicity pertaining to distribution of the software without **/
16 /** specific, written prior permission. **/
18 /** EVANS & SUTHERLAND AND M.I.T. DISCLAIM ALL WARRANTIES WITH REGARD **/
19 /** TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANT- **/
20 /** ABILITY AND FITNESS, IN NO EVENT SHALL EVANS & SUTHERLAND OR **/
21 /** M.I.T. BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAM- **/
22 /** AGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA **/
23 /** OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER **/
24 /** TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE **/
25 /** OR PERFORMANCE OF THIS SOFTWARE. **/
26 /*****************************************************************************/
29 /***********************************************************************
31 * $XConsortium: events.h,v 1.14 91/05/10 17:53:58 dave Exp $
33 * twm event handler include file
35 * 17-Nov-87 Thomas E. LaStrange File created
37 ***********************************************************************/
42 typedef void (*event_proc)();
44 extern void InitEvents();
45 extern Bool StashEventTime();
46 extern Time lastTimestamp;
47 extern void SimulateMapRequest();
48 extern void AutoRaiseWindow();
49 #define LastTimestamp() lastTimestamp
50 extern Bool DispatchEvent();
51 /* depreciated - djhjr - 10/6/02
52 extern Bool DispatchEvent2();
54 extern void HandleEvents();
55 extern void HandleExpose();
56 extern void HandleDestroyNotify();
57 extern void HandleMapRequest();
58 extern void HandleMapNotify();
59 extern void HandleUnmapNotify();
60 extern void HandleMotionNotify();
61 extern void HandleButtonRelease();
62 extern void HandleButtonPress();
63 extern void HandleEnterNotify();
64 extern void HandleLeaveNotify();
65 extern void HandleConfigureRequest();
66 extern void HandleClientMessage();
67 extern void HandlePropertyNotify();
68 extern void HandleKeyPress();
69 extern void HandleColormapNotify();
70 extern void HandleVisibilityNotify();
71 extern void HandleUnknown();
72 extern void SendConfigureNotify();
73 extern void InstallRootColormap();
74 extern int Transient();
75 extern void UninstallRootColormap();
76 extern void InstallWindowColormaps();
77 extern void RedoDoorName(); /* djhjr - 2/28/99 */
78 extern void RedoListWindow(); /* djhjr - 3/1/99 */
80 extern event_proc EventHandler[];
81 extern Window DragWindow;
87 extern int DragHeight;
88 extern int CurrentDragX;
89 extern int CurrentDragY;
91 extern int ButtonPressed;