diff options
Diffstat (limited to 'mi/mipointer.h')
-rw-r--r-- | mi/mipointer.h | 98 |
1 files changed, 69 insertions, 29 deletions
diff --git a/mi/mipointer.h b/mi/mipointer.h index a2f74b07b..0486fc5a3 100644 --- a/mi/mipointer.h +++ b/mi/mipointer.h @@ -29,94 +29,134 @@ Except as contained in this notice, the name of The Open Group shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/programs/Xserver/mi/mipointer.h,v 3.9 2001/12/14 20:00:24 dawes Exp $ */ + +#ifndef MIPOINTER_H +#define MIPOINTER_H + +#include "cursor.h" +#include "input.h" typedef struct _miPointerSpriteFuncRec { - Bool (*RealizeCursor)(); /* pScreen, pCursor */ - Bool (*UnrealizeCursor)(); /* pScreen, pCursor */ - void (*SetCursor)(); /* pScreen, pCursor, x, y */ - void (*MoveCursor)(); /* pScreen, x, y */ + Bool (*RealizeCursor)( + ScreenPtr /* pScr */, + CursorPtr /* pCurs */ + ); + Bool (*UnrealizeCursor)( + ScreenPtr /* pScr */, + CursorPtr /* pCurs */ + ); + void (*SetCursor)( + ScreenPtr /* pScr */, + CursorPtr /* pCurs */, + int /* x */, + int /* y */ + ); + void (*MoveCursor)( + ScreenPtr /* pScr */, + int /* x */, + int /* y */ + ); } miPointerSpriteFuncRec, *miPointerSpriteFuncPtr; typedef struct _miPointerScreenFuncRec { - Bool (*CursorOffScreen)(); /* ppScreen, px, py */ - void (*CrossScreen)(); /* pScreen, entering */ - void (*WarpCursor)(); /* pScreen, x, y */ - void (*EnqueueEvent)(); /* xEvent */ - void (*NewEventScreen)(); /* pScreen */ + Bool (*CursorOffScreen)( + ScreenPtr* /* ppScr */, + int* /* px */, + int* /* py */ + ); + void (*CrossScreen)( + ScreenPtr /* pScr */, + int /* entering */ + ); + void (*WarpCursor)( + ScreenPtr /* pScr */, + int /* x */, + int /* y */ + ); + void (*EnqueueEvent)( + xEventPtr /* event */ + ); + void (*NewEventScreen)( + ScreenPtr /* pScr */, + Bool /* fromDIX */ + ); } miPointerScreenFuncRec, *miPointerScreenFuncPtr; extern Bool miDCInitialize( -#if NeedFunctionPrototypes ScreenPtr /*pScreen*/, miPointerScreenFuncPtr /*screenFuncs*/ -#endif ); extern Bool miPointerInitialize( -#if NeedFunctionPrototypes ScreenPtr /*pScreen*/, miPointerSpriteFuncPtr /*spriteFuncs*/, miPointerScreenFuncPtr /*screenFuncs*/, Bool /*waitForUpdate*/ -#endif ); extern void miPointerWarpCursor( -#if NeedFunctionPrototypes ScreenPtr /*pScreen*/, int /*x*/, int /*y*/ -#endif ); extern int miPointerGetMotionBufferSize( -#if NeedFunctionPrototypes void -#endif ); extern int miPointerGetMotionEvents( -#if NeedFunctionPrototypes DeviceIntPtr /*pPtr*/, xTimecoord * /*coords*/, unsigned long /*start*/, unsigned long /*stop*/, ScreenPtr /*pScreen*/ -#endif ); extern void miPointerUpdate( -#if NeedFunctionPrototypes void -#endif ); extern void miPointerDeltaCursor( -#if NeedFunctionPrototypes int /*dx*/, int /*dy*/, unsigned long /*time*/ -#endif ); extern void miPointerAbsoluteCursor( -#if NeedFunctionPrototypes int /*x*/, int /*y*/, unsigned long /*time*/ -#endif ); extern void miPointerPosition( -#if NeedFunctionPrototypes int * /*x*/, int * /*y*/ -#endif ); +#undef miRegisterPointerDevice extern void miRegisterPointerDevice( -#if NeedFunctionPrototypes ScreenPtr /*pScreen*/, DevicePtr /*pDevice*/ -#endif ); + +extern void miPointerSetNewScreen( + int, /*screen_no*/ + int, /*x*/ + int /*y*/ +); +extern ScreenPtr miPointerCurrentScreen( + void +); + +#define miRegisterPointerDevice(pScreen,pDevice) \ + _miRegisterPointerDevice(pScreen,pDevice) + +extern void _miRegisterPointerDevice( + ScreenPtr /*pScreen*/, + DeviceIntPtr /*pDevice*/ +); + +extern int miPointerScreenIndex; + +#endif /* MIPOINTER_H */ |