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