6 /* $XConsortium: mipointer.h,v 5.7 94/04/17 20:27:40 dpw Exp $ */
7 /* $XFree86: xc/programs/Xserver/mi/mipointer.h,v 3.2 1996/03/10 12:12:45 dawes Exp $ */
11 Copyright (c) 1989 X Consortium
13 Permission is hereby granted, free of charge, to any person obtaining a copy
14 of this software and associated documentation files (the "Software"), to deal
15 in the Software without restriction, including without limitation the rights
16 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
17 copies of the Software, and to permit persons to whom the Software is
18 furnished to do so, subject to the following conditions:
20 The above copyright notice and this permission notice shall be included in
21 all copies or substantial portions of the Software.
23 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
24 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
25 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
26 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
27 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
28 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
30 Except as contained in this notice, the name of the X Consortium shall not be
31 used in advertising or otherwise to promote the sale, use or other dealings
32 in this Software without prior written authorization from the X Consortium.
38 typedef struct _miPointerSpriteFuncRec {
39 Bool (*RealizeCursor)(
40 #if NeedFunctionPrototypes
45 Bool (*UnrealizeCursor)(
46 #if NeedFunctionPrototypes
52 #if NeedFunctionPrototypes
54 CursorPtr /* pCurs */,
60 #if NeedFunctionPrototypes
66 } miPointerSpriteFuncRec, *miPointerSpriteFuncPtr;
68 typedef struct _miPointerScreenFuncRec {
69 Bool (*CursorOffScreen)(
70 #if NeedFunctionPrototypes
71 ScreenPtr* /* ppScr */,
77 #if NeedFunctionPrototypes
83 #if NeedFunctionPrototypes
90 #if NeedFunctionPrototypes
94 void (*NewEventScreen)(
95 #if NeedFunctionPrototypes
100 } miPointerScreenFuncRec, *miPointerScreenFuncPtr;
102 extern Bool miDCInitialize(
103 #if NeedFunctionPrototypes
104 ScreenPtr /*pScreen*/,
105 miPointerScreenFuncPtr /*screenFuncs*/
109 extern Bool miPointerInitialize(
110 #if NeedFunctionPrototypes
111 ScreenPtr /*pScreen*/,
112 miPointerSpriteFuncPtr /*spriteFuncs*/,
113 miPointerScreenFuncPtr /*screenFuncs*/,
114 Bool /*waitForUpdate*/
118 extern void miPointerWarpCursor(
119 #if NeedFunctionPrototypes
120 ScreenPtr /*pScreen*/,
126 extern int miPointerGetMotionBufferSize(
127 #if NeedFunctionPrototypes
132 extern int miPointerGetMotionEvents(
133 #if NeedFunctionPrototypes
134 DeviceIntPtr /*pPtr*/,
135 xTimecoord * /*coords*/,
136 unsigned long /*start*/,
137 unsigned long /*stop*/,
138 ScreenPtr /*pScreen*/
142 extern void miPointerUpdate(
143 #if NeedFunctionPrototypes
148 extern void miPointerDeltaCursor(
149 #if NeedFunctionPrototypes
152 unsigned long /*time*/
156 extern void miPointerAbsoluteCursor(
157 #if NeedFunctionPrototypes
160 unsigned long /*time*/
164 extern void miPointerPosition(
165 #if NeedFunctionPrototypes
171 #undef miRegisterPointerDevice
172 extern void miRegisterPointerDevice(
173 #if NeedFunctionPrototypes
174 ScreenPtr /*pScreen*/,
175 DevicePtr /*pDevice*/
179 #define miRegisterPointerDevice(pScreen,pDevice) \
180 _miRegisterPointerDevice(pScreen,pDevice)
182 extern void _miRegisterPointerDevice(
183 #if NeedFunctionPrototypes
184 ScreenPtr /*pScreen*/,
185 DeviceIntPtr /*pDevice*/
189 #endif /* MIPOINTER_H */