6
/* $Xorg: mipointer.h,v 1.4 2001/02/09 02:05:21 xorgcvs Exp $ */
10
Copyright 1989, 1998 The Open Group
12
Permission to use, copy, modify, distribute, and sell this software and its
13
documentation for any purpose is hereby granted without fee, provided that
14
the above copyright notice appear in all copies and that both that
15
copyright notice and this permission notice appear in supporting
18
The above copyright notice and this permission notice shall be included in
19
all copies or substantial portions of the Software.
21
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
25
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
26
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
28
Except as contained in this notice, the name of The Open Group shall not be
29
used in advertising or otherwise to promote the sale, use or other dealings
30
in this Software without prior written authorization from The Open Group.
32
/* $XFree86: xc/programs/Xserver/mi/mipointer.h,v 3.9 2001/12/14 20:00:24 dawes Exp $ */
40
typedef struct _miPointerSpriteFuncRec {
41
Bool (*RealizeCursor)(
45
Bool (*UnrealizeCursor)(
51
CursorPtr /* pCurs */,
60
} miPointerSpriteFuncRec, *miPointerSpriteFuncPtr;
62
typedef struct _miPointerScreenFuncRec {
63
Bool (*CursorOffScreen)(
64
ScreenPtr* /* ppScr */,
80
void (*NewEventScreen)(
84
} miPointerScreenFuncRec, *miPointerScreenFuncPtr;
86
extern Bool miDCInitialize(
87
ScreenPtr /*pScreen*/,
88
miPointerScreenFuncPtr /*screenFuncs*/
91
extern Bool miPointerInitialize(
92
ScreenPtr /*pScreen*/,
93
miPointerSpriteFuncPtr /*spriteFuncs*/,
94
miPointerScreenFuncPtr /*screenFuncs*/,
95
Bool /*waitForUpdate*/
98
extern void miPointerWarpCursor(
99
ScreenPtr /*pScreen*/,
104
extern int miPointerGetMotionBufferSize(
108
extern int miPointerGetMotionEvents(
109
DeviceIntPtr /*pPtr*/,
110
xTimecoord * /*coords*/,
111
unsigned long /*start*/,
112
unsigned long /*stop*/,
113
ScreenPtr /*pScreen*/
116
extern void miPointerUpdate(
120
extern void miPointerDeltaCursor(
123
unsigned long /*time*/
126
extern void miPointerAbsoluteCursor(
129
unsigned long /*time*/
132
extern void miPointerPosition(
137
#undef miRegisterPointerDevice
138
extern void miRegisterPointerDevice(
139
ScreenPtr /*pScreen*/,
140
DevicePtr /*pDevice*/
143
extern void miPointerSetNewScreen(
148
extern ScreenPtr miPointerCurrentScreen(
152
#define miRegisterPointerDevice(pScreen,pDevice) \
153
_miRegisterPointerDevice(pScreen,pDevice)
155
extern void _miRegisterPointerDevice(
156
ScreenPtr /*pScreen*/,
157
DeviceIntPtr /*pDevice*/
160
extern int miPointerScreenIndex;
162
#endif /* MIPOINTER_H */