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 DIXGRABS_H
|
---|
27 | #define DIXGRABS_H 1
|
---|
28 |
|
---|
29 | struct _GrabParameters;
|
---|
30 |
|
---|
31 | extern void PrintDeviceGrabInfo(DeviceIntPtr dev);
|
---|
32 | extern void UngrabAllDevices(Bool kill_client);
|
---|
33 |
|
---|
34 | extern GrabPtr AllocGrab(void);
|
---|
35 | extern void FreeGrab(GrabPtr grab);
|
---|
36 | extern Bool CopyGrab(GrabPtr dst, const GrabPtr src);
|
---|
37 |
|
---|
38 | extern GrabPtr CreateGrab(int /* client */ ,
|
---|
39 | DeviceIntPtr /* device */ ,
|
---|
40 | DeviceIntPtr /* modDevice */ ,
|
---|
41 | WindowPtr /* window */ ,
|
---|
42 | enum InputLevel /* grabtype */ ,
|
---|
43 | GrabMask * /* mask */ ,
|
---|
44 | struct _GrabParameters * /* param */ ,
|
---|
45 | int /* type */ ,
|
---|
46 | KeyCode /* keybut */ ,
|
---|
47 | WindowPtr /* confineTo */ ,
|
---|
48 | CursorPtr /* cursor */ );
|
---|
49 |
|
---|
50 | extern _X_EXPORT int DeletePassiveGrab(pointer /* value */ ,
|
---|
51 | XID /* id */ );
|
---|
52 |
|
---|
53 | extern _X_EXPORT Bool GrabMatchesSecond(GrabPtr /* pFirstGrab */ ,
|
---|
54 | GrabPtr /* pSecondGrab */ ,
|
---|
55 | Bool /*ignoreDevice */ );
|
---|
56 |
|
---|
57 | extern _X_EXPORT int AddPassiveGrabToList(ClientPtr /* client */ ,
|
---|
58 | GrabPtr /* pGrab */ );
|
---|
59 |
|
---|
60 | extern _X_EXPORT Bool DeletePassiveGrabFromList(GrabPtr /* pMinuendGrab */ );
|
---|
61 |
|
---|
62 | extern Bool GrabIsPointerGrab(GrabPtr grab);
|
---|
63 | extern Bool GrabIsKeyboardGrab(GrabPtr grab);
|
---|
64 | #endif /* DIXGRABS_H */
|
---|