1 | /************************************************************
|
---|
2 |
|
---|
3 | Copyright 1996 by Thomas E. Dickey <[email protected]>
|
---|
4 |
|
---|
5 | All Rights Reserved
|
---|
6 |
|
---|
7 | Permission to use, copy, modify, and distribute this software and its
|
---|
8 | documentation for any purpose and without fee is hereby granted,
|
---|
9 | provided that the above copyright notice appear in all copies and that
|
---|
10 | both that copyright notice and this permission notice appear in
|
---|
11 | supporting documentation, and that the name of the above listed
|
---|
12 | copyright holder(s) not be used in advertising or publicity pertaining
|
---|
13 | to distribution of the software without specific, written prior
|
---|
14 | permission.
|
---|
15 |
|
---|
16 | THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
|
---|
17 | TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
---|
18 | AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
|
---|
19 | LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
---|
20 | WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
---|
21 | ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
---|
22 | OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
---|
23 |
|
---|
24 | ********************************************************/
|
---|
25 |
|
---|
26 | #ifndef DIXEVENTS_H
|
---|
27 | #define DIXEVENTS_H
|
---|
28 |
|
---|
29 | extern void SetCriticalEvent(int /* event */);
|
---|
30 |
|
---|
31 | extern CursorPtr GetSpriteCursor(void);
|
---|
32 |
|
---|
33 | extern int ProcAllowEvents(ClientPtr /* client */);
|
---|
34 |
|
---|
35 | extern int MaybeDeliverEventsToClient(
|
---|
36 | WindowPtr /* pWin */,
|
---|
37 | xEvent * /* pEvents */,
|
---|
38 | int /* count */,
|
---|
39 | Mask /* filter */,
|
---|
40 | ClientPtr /* dontClient */);
|
---|
41 |
|
---|
42 | extern int ProcWarpPointer(ClientPtr /* client */);
|
---|
43 |
|
---|
44 | #if 0
|
---|
45 | extern void
|
---|
46 | #ifdef XKB
|
---|
47 | CoreProcessKeyboardEvent (
|
---|
48 | #else
|
---|
49 | ProcessKeyboardEvent (
|
---|
50 | #endif
|
---|
51 | xEvent * /* xE */,
|
---|
52 | DeviceIntPtr /* keybd */,
|
---|
53 | int /* count */);
|
---|
54 |
|
---|
55 | extern void
|
---|
56 | #ifdef XKB
|
---|
57 | CoreProcessPointerEvent (
|
---|
58 | #else
|
---|
59 | ProcessPointerEvent (
|
---|
60 | #endif
|
---|
61 | xEvent * /* xE */,
|
---|
62 | DeviceIntPtr /* mouse */,
|
---|
63 | int /* count */);
|
---|
64 | #endif
|
---|
65 |
|
---|
66 | extern int EventSelectForWindow(
|
---|
67 | WindowPtr /* pWin */,
|
---|
68 | ClientPtr /* client */,
|
---|
69 | Mask /* mask */);
|
---|
70 |
|
---|
71 | extern int EventSuppressForWindow(
|
---|
72 | WindowPtr /* pWin */,
|
---|
73 | ClientPtr /* client */,
|
---|
74 | Mask /* mask */,
|
---|
75 | Bool * /* checkOptional */);
|
---|
76 |
|
---|
77 | extern int ProcSetInputFocus(ClientPtr /* client */);
|
---|
78 |
|
---|
79 | extern int ProcGetInputFocus(ClientPtr /* client */);
|
---|
80 |
|
---|
81 | extern int ProcGrabPointer(ClientPtr /* client */);
|
---|
82 |
|
---|
83 | extern int ProcChangeActivePointerGrab(ClientPtr /* client */);
|
---|
84 |
|
---|
85 | extern int ProcUngrabPointer(ClientPtr /* client */);
|
---|
86 |
|
---|
87 | extern int ProcGrabKeyboard(ClientPtr /* client */);
|
---|
88 |
|
---|
89 | extern int ProcUngrabKeyboard(ClientPtr /* client */);
|
---|
90 |
|
---|
91 | extern int ProcQueryPointer(ClientPtr /* client */);
|
---|
92 |
|
---|
93 | extern int ProcSendEvent(ClientPtr /* client */);
|
---|
94 |
|
---|
95 | extern int ProcUngrabKey(ClientPtr /* client */);
|
---|
96 |
|
---|
97 | extern int ProcGrabKey(ClientPtr /* client */);
|
---|
98 |
|
---|
99 | extern int ProcGrabButton(ClientPtr /* client */);
|
---|
100 |
|
---|
101 | extern int ProcUngrabButton(ClientPtr /* client */);
|
---|
102 |
|
---|
103 | extern int ProcRecolorCursor(ClientPtr /* client */);
|
---|
104 |
|
---|
105 | #ifdef PANORAMIX
|
---|
106 | extern void PostSyntheticMotion(int x, int y, int screen, unsigned long time);
|
---|
107 | #endif
|
---|
108 |
|
---|
109 | #endif /* DIXEVENTS_H */
|
---|