xf86CursorPriv.h 1.4 KB

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