1 | /* $XFree86: xc/programs/Xserver/hw/xfree86/ramdac/xf86CursorPriv.h,v 1.4tsi Exp $ */
|
---|
2 |
|
---|
3 | #ifdef HAVE_XORG_CONFIG_H
|
---|
4 | #include <xorg-config.h>
|
---|
5 | #endif
|
---|
6 |
|
---|
7 | #ifndef _XF86CURSORPRIV_H
|
---|
8 | #define _XF86CURSORPRIV_H
|
---|
9 |
|
---|
10 | #include "xf86Cursor.h"
|
---|
11 | #include "mipointrst.h"
|
---|
12 |
|
---|
13 | typedef struct {
|
---|
14 | Bool SWCursor;
|
---|
15 | Bool isUp;
|
---|
16 | Bool showTransparent;
|
---|
17 | short HotX;
|
---|
18 | short HotY;
|
---|
19 | short x;
|
---|
20 | short y;
|
---|
21 | CursorPtr CurrentCursor, CursorToRestore;
|
---|
22 | xf86CursorInfoPtr CursorInfoPtr;
|
---|
23 | CloseScreenProcPtr CloseScreen;
|
---|
24 | RecolorCursorProcPtr RecolorCursor;
|
---|
25 | InstallColormapProcPtr InstallColormap;
|
---|
26 | QueryBestSizeProcPtr QueryBestSize;
|
---|
27 | miPointerSpriteFuncPtr spriteFuncs;
|
---|
28 | Bool PalettedCursor;
|
---|
29 | ColormapPtr pInstalledMap;
|
---|
30 | Bool (*SwitchMode)(int, DisplayModePtr,int);
|
---|
31 | Bool (*EnterVT)(int, int);
|
---|
32 | void (*LeaveVT)(int, int);
|
---|
33 | int (*SetDGAMode)(int, int, DGADevicePtr);
|
---|
34 |
|
---|
35 | /* Number of requests to force HW cursor */
|
---|
36 | int ForceHWCursorCount;
|
---|
37 | Bool HWCursorForced;
|
---|
38 |
|
---|
39 | pointer transparentData;
|
---|
40 | } xf86CursorScreenRec, *xf86CursorScreenPtr;
|
---|
41 |
|
---|
42 | void xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y);
|
---|
43 | void xf86SetTransparentCursor(ScreenPtr pScreen);
|
---|
44 | void xf86MoveCursor(ScreenPtr pScreen, int x, int y);
|
---|
45 | void xf86RecolorCursor(ScreenPtr pScreen, CursorPtr pCurs, Bool displayed);
|
---|
46 | Bool xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr);
|
---|
47 |
|
---|
48 | CARD32 xf86ReverseBitOrder(CARD32 data);
|
---|
49 |
|
---|
50 | extern int xf86CursorScreenIndex;
|
---|
51 |
|
---|
52 | #endif /* _XF86CURSORPRIV_H */
|
---|