2004-03-14 09:34:49 +01:00
|
|
|
/* $XFree86: xc/programs/Xserver/include/dixevents.h,v 3.5 2003/04/27 21:31:04 herrb Exp $ */
|
2003-11-14 17:48:57 +01:00
|
|
|
/************************************************************
|
|
|
|
|
|
|
|
Copyright 1996 by Thomas E. Dickey <dickey@clark.net>
|
|
|
|
|
|
|
|
All Rights Reserved
|
|
|
|
|
|
|
|
Permission to use, copy, modify, and distribute this software and its
|
|
|
|
documentation for any purpose and without fee is hereby granted,
|
|
|
|
provided that the above copyright notice appear in all copies and that
|
|
|
|
both that copyright notice and this permission notice appear in
|
|
|
|
supporting documentation, and that the name of the above listed
|
|
|
|
copyright holder(s) not be used in advertising or publicity pertaining
|
|
|
|
to distribution of the software without specific, written prior
|
|
|
|
permission.
|
|
|
|
|
|
|
|
THE ABOVE LISTED COPYRIGHT HOLDER(S) DISCLAIM ALL WARRANTIES WITH REGARD
|
|
|
|
TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
AND FITNESS, IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE
|
|
|
|
LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
|
|
********************************************************/
|
|
|
|
|
|
|
|
#ifndef DIXEVENTS_H
|
|
|
|
#define DIXEVENTS_H
|
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern void SetCriticalEvent(int /* event */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern CursorPtr GetSpriteCursor(void);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcAllowEvents(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int MaybeDeliverEventsToClient(
|
2003-11-14 17:48:57 +01:00
|
|
|
WindowPtr /* pWin */,
|
|
|
|
xEvent * /* pEvents */,
|
|
|
|
int /* count */,
|
|
|
|
Mask /* filter */,
|
2003-11-25 20:29:01 +01:00
|
|
|
ClientPtr /* dontClient */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcWarpPointer(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
#if 0
|
|
|
|
extern void
|
|
|
|
#ifdef XKB
|
|
|
|
CoreProcessKeyboardEvent (
|
|
|
|
#else
|
|
|
|
ProcessKeyboardEvent (
|
|
|
|
#endif
|
|
|
|
xEvent * /* xE */,
|
|
|
|
DeviceIntPtr /* keybd */,
|
2003-11-25 20:29:01 +01:00
|
|
|
int /* count */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
extern void
|
|
|
|
#ifdef XKB
|
|
|
|
CoreProcessPointerEvent (
|
|
|
|
#else
|
|
|
|
ProcessPointerEvent (
|
|
|
|
#endif
|
|
|
|
xEvent * /* xE */,
|
|
|
|
DeviceIntPtr /* mouse */,
|
2003-11-25 20:29:01 +01:00
|
|
|
int /* count */);
|
2003-11-14 17:48:57 +01:00
|
|
|
#endif
|
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int EventSelectForWindow(
|
2003-11-14 17:48:57 +01:00
|
|
|
WindowPtr /* pWin */,
|
|
|
|
ClientPtr /* client */,
|
2003-11-25 20:29:01 +01:00
|
|
|
Mask /* mask */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int EventSuppressForWindow(
|
2003-11-14 17:48:57 +01:00
|
|
|
WindowPtr /* pWin */,
|
|
|
|
ClientPtr /* client */,
|
|
|
|
Mask /* mask */,
|
2003-11-25 20:29:01 +01:00
|
|
|
Bool * /* checkOptional */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcSetInputFocus(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcGetInputFocus(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcGrabPointer(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcChangeActivePointerGrab(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcUngrabPointer(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcGrabKeyboard(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcUngrabKeyboard(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcQueryPointer(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcSendEvent(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcUngrabKey(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcGrabKey(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcGrabButton(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcUngrabButton(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
2003-11-25 20:29:01 +01:00
|
|
|
extern int ProcRecolorCursor(ClientPtr /* client */);
|
2003-11-14 17:48:57 +01:00
|
|
|
|
|
|
|
#endif /* DIXEVENTS_H */
|