First import
[xorg_rtime.git] / xorg-server-1.4 / include / exevents.h
blob69d4abc4c53fcf7a97f37aa6b528edd8d6d90147
1 /************************************************************
3 Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
5 All Rights Reserved
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.
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.
24 ********************************************************/
26 /********************************************************************
27 * Interface of 'exevents.c'
30 #ifndef EXEVENTS_H
31 #define EXEVENTS_H
33 extern void RegisterOtherDevice (
34 DeviceIntPtr /* device */);
36 extern void ProcessOtherEvent (
37 xEventPtr /* FIXME deviceKeyButtonPointer * xE */,
38 DeviceIntPtr /* other */,
39 int /* count */);
41 extern int InitProximityClassDeviceStruct(
42 DeviceIntPtr /* dev */);
44 extern void InitValuatorAxisStruct(
45 DeviceIntPtr /* dev */,
46 int /* axnum */,
47 int /* minval */,
48 int /* maxval */,
49 int /* resolution */,
50 int /* min_res */,
51 int /* max_res */);
53 extern void DeviceFocusEvent(
54 DeviceIntPtr /* dev */,
55 int /* type */,
56 int /* mode */,
57 int /* detail */,
58 WindowPtr /* pWin */);
60 extern int GrabButton(
61 ClientPtr /* client */,
62 DeviceIntPtr /* dev */,
63 BYTE /* this_device_mode */,
64 BYTE /* other_devices_mode */,
65 CARD16 /* modifiers */,
66 DeviceIntPtr /* modifier_device */,
67 CARD8 /* button */,
68 Window /* grabWindow */,
69 BOOL /* ownerEvents */,
70 Cursor /* rcursor */,
71 Window /* rconfineTo */,
72 Mask /* eventMask */);
74 extern int GrabKey(
75 ClientPtr /* client */,
76 DeviceIntPtr /* dev */,
77 BYTE /* this_device_mode */,
78 BYTE /* other_devices_mode */,
79 CARD16 /* modifiers */,
80 DeviceIntPtr /* modifier_device */,
81 CARD8 /* key */,
82 Window /* grabWindow */,
83 BOOL /* ownerEvents */,
84 Mask /* mask */);
86 extern int SelectForWindow(
87 DeviceIntPtr /* dev */,
88 WindowPtr /* pWin */,
89 ClientPtr /* client */,
90 Mask /* mask */,
91 Mask /* exclusivemasks */,
92 Mask /* validmasks */);
94 extern int AddExtensionClient (
95 WindowPtr /* pWin */,
96 ClientPtr /* client */,
97 Mask /* mask */,
98 int /* mskidx */);
100 extern void RecalculateDeviceDeliverableEvents(
101 WindowPtr /* pWin */);
103 extern int InputClientGone(
104 WindowPtr /* pWin */,
105 XID /* id */);
107 extern int SendEvent (
108 ClientPtr /* client */,
109 DeviceIntPtr /* d */,
110 Window /* dest */,
111 Bool /* propagate */,
112 xEvent * /* ev */,
113 Mask /* mask */,
114 int /* count */);
116 extern int SetButtonMapping (
117 ClientPtr /* client */,
118 DeviceIntPtr /* dev */,
119 int /* nElts */,
120 BYTE * /* map */);
122 extern int SetModifierMapping(
123 ClientPtr /* client */,
124 DeviceIntPtr /* dev */,
125 int /* len */,
126 int /* rlen */,
127 int /* numKeyPerModifier */,
128 KeyCode * /* inputMap */,
129 KeyClassPtr * /* k */);
131 extern void SendDeviceMappingNotify(
132 CARD8 /* request, */,
133 KeyCode /* firstKeyCode */,
134 CARD8 /* count */,
135 DeviceIntPtr /* dev */);
137 extern int ChangeKeyMapping(
138 ClientPtr /* client */,
139 DeviceIntPtr /* dev */,
140 unsigned /* len */,
141 int /* type */,
142 KeyCode /* firstKeyCode */,
143 CARD8 /* keyCodes */,
144 CARD8 /* keySymsPerKeyCode */,
145 KeySym * /* map */);
147 extern void DeleteWindowFromAnyExtEvents(
148 WindowPtr /* pWin */,
149 Bool /* freeResources */);
151 extern int MaybeSendDeviceMotionNotifyHint (
152 deviceKeyButtonPointer * /* pEvents */,
153 Mask /* mask */);
155 extern void CheckDeviceGrabAndHintWindow (
156 WindowPtr /* pWin */,
157 int /* type */,
158 deviceKeyButtonPointer * /* xE */,
159 GrabPtr /* grab */,
160 ClientPtr /* client */,
161 Mask /* deliveryMask */);
163 extern void MaybeStopDeviceHint(
164 DeviceIntPtr /* dev */,
165 ClientPtr /* client */);
167 extern int DeviceEventSuppressForWindow(
168 WindowPtr /* pWin */,
169 ClientPtr /* client */,
170 Mask /* mask */,
171 int /* maskndx */);
173 void SendEventToAllWindows(
174 DeviceIntPtr /* dev */,
175 Mask /* mask */,
176 xEvent * /* ev */,
177 int /* count */);
179 #endif /* EXEVENTS_H */