xref: /OK3568_Linux_fs/external/xserver/hw/xfree86/ramdac/xf86CursorPriv.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun 
2*4882a593Smuzhiyun #ifdef HAVE_XORG_CONFIG_H
3*4882a593Smuzhiyun #include <xorg-config.h>
4*4882a593Smuzhiyun #endif
5*4882a593Smuzhiyun 
6*4882a593Smuzhiyun #ifndef _XF86CURSORPRIV_H
7*4882a593Smuzhiyun #define _XF86CURSORPRIV_H
8*4882a593Smuzhiyun 
9*4882a593Smuzhiyun #include "xf86Cursor.h"
10*4882a593Smuzhiyun #include "mipointrst.h"
11*4882a593Smuzhiyun 
12*4882a593Smuzhiyun typedef struct {
13*4882a593Smuzhiyun     Bool SWCursor;
14*4882a593Smuzhiyun     Bool isUp;
15*4882a593Smuzhiyun     Bool showTransparent;
16*4882a593Smuzhiyun     short HotX;
17*4882a593Smuzhiyun     short HotY;
18*4882a593Smuzhiyun     short x;
19*4882a593Smuzhiyun     short y;
20*4882a593Smuzhiyun     CursorPtr CurrentCursor, CursorToRestore;
21*4882a593Smuzhiyun     xf86CursorInfoPtr CursorInfoPtr;
22*4882a593Smuzhiyun     CloseScreenProcPtr CloseScreen;
23*4882a593Smuzhiyun     RecolorCursorProcPtr RecolorCursor;
24*4882a593Smuzhiyun     InstallColormapProcPtr InstallColormap;
25*4882a593Smuzhiyun     QueryBestSizeProcPtr QueryBestSize;
26*4882a593Smuzhiyun     miPointerSpriteFuncPtr spriteFuncs;
27*4882a593Smuzhiyun     Bool PalettedCursor;
28*4882a593Smuzhiyun     ColormapPtr pInstalledMap;
29*4882a593Smuzhiyun     Bool (*SwitchMode) (ScrnInfoPtr, DisplayModePtr);
30*4882a593Smuzhiyun     xf86EnableDisableFBAccessProc *EnableDisableFBAccess;
31*4882a593Smuzhiyun     CursorPtr SavedCursor;
32*4882a593Smuzhiyun 
33*4882a593Smuzhiyun     /* Number of requests to force HW cursor */
34*4882a593Smuzhiyun     int ForceHWCursorCount;
35*4882a593Smuzhiyun     Bool HWCursorForced;
36*4882a593Smuzhiyun 
37*4882a593Smuzhiyun     void *transparentData;
38*4882a593Smuzhiyun } xf86CursorScreenRec, *xf86CursorScreenPtr;
39*4882a593Smuzhiyun 
40*4882a593Smuzhiyun Bool xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y);
41*4882a593Smuzhiyun void xf86SetTransparentCursor(ScreenPtr pScreen);
42*4882a593Smuzhiyun void xf86MoveCursor(ScreenPtr pScreen, int x, int y);
43*4882a593Smuzhiyun void xf86RecolorCursor(ScreenPtr pScreen, CursorPtr pCurs, Bool displayed);
44*4882a593Smuzhiyun Bool xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr);
45*4882a593Smuzhiyun 
46*4882a593Smuzhiyun Bool xf86CheckHWCursor(ScreenPtr pScreen, CursorPtr cursor, xf86CursorInfoPtr infoPtr);
47*4882a593Smuzhiyun extern _X_EXPORT DevPrivateKeyRec xf86CursorScreenKeyRec;
48*4882a593Smuzhiyun 
49*4882a593Smuzhiyun #define xf86CursorScreenKey (&xf86CursorScreenKeyRec)
50*4882a593Smuzhiyun 
51*4882a593Smuzhiyun #endif                          /* _XF86CURSORPRIV_H */
52