dixgrabs.h revision 05b261ec
105b261ecSmrg/************************************************************
205b261ecSmrg
305b261ecSmrgCopyright 1996 by Thomas E. Dickey <dickey@clark.net>
405b261ecSmrg
505b261ecSmrg                        All Rights Reserved
605b261ecSmrg
705b261ecSmrgPermission to use, copy, modify, and distribute this software and its
805b261ecSmrgdocumentation for any purpose and without fee is hereby granted,
905b261ecSmrgprovided that the above copyright notice appear in all copies and that
1005b261ecSmrgboth that copyright notice and this permission notice appear in
1105b261ecSmrgsupporting documentation, and that the name of the above listed
1205b261ecSmrgcopyright holder(s) not be used in advertising or publicity pertaining
1305b261ecSmrgto distribution of the software without specific, written prior
1405b261ecSmrgpermission.
1505b261ecSmrg
1605b261ecSmrgTHE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
1705b261ecSmrgTO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1805b261ecSmrgAND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
1905b261ecSmrgLIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
2005b261ecSmrgWHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
2105b261ecSmrgACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
2205b261ecSmrgOR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
2305b261ecSmrg
2405b261ecSmrg********************************************************/
2505b261ecSmrg
2605b261ecSmrg#ifndef DIXGRABS_H
2705b261ecSmrg#define DIXGRABS_H 1
2805b261ecSmrg
2905b261ecSmrgextern GrabPtr CreateGrab(
3005b261ecSmrg	int /* client */,
3105b261ecSmrg	DeviceIntPtr /* device */,
3205b261ecSmrg	WindowPtr /* window */,
3305b261ecSmrg	Mask /* eventMask */,
3405b261ecSmrg	Bool /* ownerEvents */,
3505b261ecSmrg	Bool /* keyboardMode */,
3605b261ecSmrg	Bool /* pointerMode */,
3705b261ecSmrg	DeviceIntPtr /* modDevice */,
3805b261ecSmrg	unsigned short /* modifiers */,
3905b261ecSmrg	int /* type */,
4005b261ecSmrg	KeyCode /* keybut */,
4105b261ecSmrg	WindowPtr /* confineTo */,
4205b261ecSmrg	CursorPtr /* cursor */);
4305b261ecSmrg
4405b261ecSmrgextern int DeletePassiveGrab(
4505b261ecSmrg	pointer /* value */,
4605b261ecSmrg	XID /* id */);
4705b261ecSmrg
4805b261ecSmrgextern Bool GrabMatchesSecond(
4905b261ecSmrg	GrabPtr /* pFirstGrab */,
5005b261ecSmrg	GrabPtr /* pSecondGrab */);
5105b261ecSmrg
5205b261ecSmrgextern int AddPassiveGrabToList(
5305b261ecSmrg	GrabPtr /* pGrab */);
5405b261ecSmrg
5505b261ecSmrgextern Bool DeletePassiveGrabFromList(
5605b261ecSmrg	GrabPtr /* pMinuendGrab */);
5705b261ecSmrg
5805b261ecSmrg#endif /* DIXGRABS_H */
59