3 Copyright 1989, 1998 The Open Group
5 Permission to use, copy, modify, distribute, and sell this software and its
6 documentation for any purpose is hereby granted without fee, provided that
7 the above copyright notice appear in all copies and that both that
8 copyright notice and this permission notice appear in supporting
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21 Except as contained in this notice, the name of The Open Group shall not be
22 used in advertising or otherwise to promote the sale, use or other dealings
23 in this Software without prior written authorization from The Open Group.
32 typedef struct _miPointerSpriteFuncRec
{
33 Bool (*RealizeCursor
)(
37 Bool (*UnrealizeCursor
)(
43 CursorPtr
/* pCurs */,
52 } miPointerSpriteFuncRec
, *miPointerSpriteFuncPtr
;
54 typedef struct _miPointerScreenFuncRec
{
55 Bool (*CursorOffScreen
)(
56 ScreenPtr
* /* ppScr */,
70 DeviceIntPtr
/* pDev */,
73 void (*NewEventScreen
)(
77 } miPointerScreenFuncRec
, *miPointerScreenFuncPtr
;
79 extern Bool
miDCInitialize(
80 ScreenPtr
/*pScreen*/,
81 miPointerScreenFuncPtr
/*screenFuncs*/
84 extern Bool
miPointerInitialize(
85 ScreenPtr
/*pScreen*/,
86 miPointerSpriteFuncPtr
/*spriteFuncs*/,
87 miPointerScreenFuncPtr
/*screenFuncs*/,
88 Bool
/*waitForUpdate*/
91 extern void miPointerWarpCursor(
92 ScreenPtr
/*pScreen*/,
97 extern int miPointerGetMotionBufferSize(
101 extern int miPointerGetMotionEvents(
102 DeviceIntPtr
/*pPtr*/,
103 xTimecoord
* /*coords*/,
104 unsigned long /*start*/,
105 unsigned long /*stop*/,
106 ScreenPtr
/*pScreen*/
109 /* Deprecated in favour of miPointerUpdateSprite. */
110 extern void miPointerUpdate(
114 /* Deprecated in favour of miSetPointerPosition. */
115 extern void miPointerDeltaCursor(
118 unsigned long /*time*/
120 extern void miPointerAbsoluteCursor(
123 unsigned long /*time*/
126 /* Deprecated in favour of miGetPointerPosition. */
127 extern void miPointerPosition(
132 /* Deprecated in favour of miPointerSetScreen. */
133 extern void miPointerSetNewScreen(
139 /* Deprecated in favour of miPointerGetScreen. */
140 extern ScreenPtr
miPointerCurrentScreen(
144 extern ScreenPtr
miPointerGetScreen(
146 extern void miPointerSetScreen(
152 /* Returns the current cursor position. */
153 extern void miPointerGetPosition(
158 /* Moves the cursor to the specified position. May clip the co-ordinates:
159 * x and y are modified in-place. */
160 extern void miPointerSetPosition(
166 extern void miPointerUpdateSprite(
169 extern int miPointerScreenIndex
;
171 #endif /* MIPOINTER_H */