📄 mipointer.h
字号:
/* * mipointer.h * *//* $XConsortium: mipointer.h,v 5.7 94/04/17 20:27:40 dpw Exp $ *//* $XFree86: xc/programs/Xserver/mi/mipointer.h,v 3.2 1996/03/10 12:12:45 dawes Exp $ *//*Copyright (c) 1989 X ConsortiumPermission is hereby granted, free of charge, to any person obtaining a copyof this software and associated documentation files (the "Software"), to dealin the Software without restriction, including without limitation the rightsto use, copy, modify, merge, publish, distribute, sublicense, and/or sellcopies of the Software, and to permit persons to whom the Software isfurnished to do so, subject to the following conditions:The above copyright notice and this permission notice shall be included inall copies or substantial portions of the Software.THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS ORIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THEX CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER INAN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR INCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.Except as contained in this notice, the name of the X Consortium shall not beused in advertising or otherwise to promote the sale, use or other dealingsin this Software without prior written authorization from the X Consortium.*/#ifndef MIPOINTER_H#define MIPOINTER_Htypedef struct _miPointerSpriteFuncRec { Bool (*RealizeCursor)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, CursorPtr /* pCurs */#endif ); Bool (*UnrealizeCursor)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, CursorPtr /* pCurs */#endif ); void (*SetCursor)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, CursorPtr /* pCurs */, int /* x */, int /* y */#endif ); void (*MoveCursor)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, int /* x */, int /* y */#endif );} miPointerSpriteFuncRec, *miPointerSpriteFuncPtr;typedef struct _miPointerScreenFuncRec { Bool (*CursorOffScreen)(#if NeedFunctionPrototypes ScreenPtr* /* ppScr */, int* /* px */, int* /* py */#endif ); void (*CrossScreen)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, int /* entering */#endif ); void (*WarpCursor)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, int /* x */, int /* y */#endif ); void (*EnqueueEvent)(#if NeedFunctionPrototypes xEventPtr /* event */#endif ); void (*NewEventScreen)(#if NeedFunctionPrototypes ScreenPtr /* pScr */, Bool /* fromDIX */#endif );} 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 miRegisterPointerDeviceextern void miRegisterPointerDevice(#if NeedFunctionPrototypes ScreenPtr /*pScreen*/, DevicePtr /*pDevice*/#endif);#define miRegisterPointerDevice(pScreen,pDevice) \ _miRegisterPointerDevice(pScreen,pDevice)extern void _miRegisterPointerDevice(#if NeedFunctionPrototypes ScreenPtr /*pScreen*/, DeviceIntPtr /*pDevice*/#endif);#endif /* MIPOINTER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -