First import
[xorg_rtime.git] / xorg-server-1.4 / include / dixgrabs.h
blob2d66d6ba1590b8bbfc159a3eed07c9fdea6d709e
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 #ifndef DIXGRABS_H
27 #define DIXGRABS_H 1
29 extern GrabPtr CreateGrab(
30 int /* client */,
31 DeviceIntPtr /* device */,
32 WindowPtr /* window */,
33 Mask /* eventMask */,
34 Bool /* ownerEvents */,
35 Bool /* keyboardMode */,
36 Bool /* pointerMode */,
37 DeviceIntPtr /* modDevice */,
38 unsigned short /* modifiers */,
39 int /* type */,
40 KeyCode /* keybut */,
41 WindowPtr /* confineTo */,
42 CursorPtr /* cursor */);
44 extern int DeletePassiveGrab(
45 pointer /* value */,
46 XID /* id */);
48 extern Bool GrabMatchesSecond(
49 GrabPtr /* pFirstGrab */,
50 GrabPtr /* pSecondGrab */);
52 extern int AddPassiveGrabToList(
53 GrabPtr /* pGrab */);
55 extern Bool DeletePassiveGrabFromList(
56 GrabPtr /* pMinuendGrab */);
58 #endif /* DIXGRABS_H */