2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
#ifdef HAVE_XORG_CONFIG_H
|
|
|
|
#include <xorg-config.h>
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifndef _XF86CURSORPRIV_H
|
|
|
|
#define _XF86CURSORPRIV_H
|
|
|
|
|
|
|
|
#include "xf86Cursor.h"
|
|
|
|
#include "mipointrst.h"
|
|
|
|
|
|
|
|
typedef struct {
|
2012-06-10 07:21:05 -06:00
|
|
|
Bool SWCursor;
|
|
|
|
Bool isUp;
|
|
|
|
Bool showTransparent;
|
|
|
|
short HotX;
|
|
|
|
short HotY;
|
|
|
|
short x;
|
|
|
|
short y;
|
|
|
|
CursorPtr CurrentCursor, CursorToRestore;
|
|
|
|
xf86CursorInfoPtr CursorInfoPtr;
|
|
|
|
CloseScreenProcPtr CloseScreen;
|
|
|
|
RecolorCursorProcPtr RecolorCursor;
|
|
|
|
InstallColormapProcPtr InstallColormap;
|
|
|
|
QueryBestSizeProcPtr QueryBestSize;
|
|
|
|
miPointerSpriteFuncPtr spriteFuncs;
|
|
|
|
Bool PalettedCursor;
|
|
|
|
ColormapPtr pInstalledMap;
|
2013-06-07 11:28:45 -06:00
|
|
|
Bool (*SwitchMode) (ScrnInfoPtr, DisplayModePtr);
|
2006-11-26 11:13:41 -07:00
|
|
|
xf86EnableDisableFBAccessProc *EnableDisableFBAccess;
|
2012-06-10 07:21:05 -06:00
|
|
|
CursorPtr SavedCursor;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
|
|
|
/* Number of requests to force HW cursor */
|
2012-06-10 07:21:05 -06:00
|
|
|
int ForceHWCursorCount;
|
|
|
|
Bool HWCursorForced;
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
void *transparentData;
|
2006-11-26 11:13:41 -07:00
|
|
|
} xf86CursorScreenRec, *xf86CursorScreenPtr;
|
|
|
|
|
2014-09-27 11:52:59 -06:00
|
|
|
Bool xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y);
|
2006-11-26 11:13:41 -07:00
|
|
|
void xf86SetTransparentCursor(ScreenPtr pScreen);
|
|
|
|
void xf86MoveCursor(ScreenPtr pScreen, int x, int y);
|
|
|
|
void xf86RecolorCursor(ScreenPtr pScreen, CursorPtr pCurs, Bool displayed);
|
|
|
|
Bool xf86InitHardwareCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr);
|
|
|
|
|
2010-12-05 08:36:02 -07:00
|
|
|
extern _X_EXPORT DevPrivateKeyRec xf86CursorScreenKeyRec;
|
2012-06-10 07:21:05 -06:00
|
|
|
|
2010-12-05 08:36:02 -07:00
|
|
|
#define xf86CursorScreenKey (&xf86CursorScreenKeyRec)
|
2006-11-26 11:13:41 -07:00
|
|
|
|
2012-06-10 07:21:05 -06:00
|
|
|
#endif /* _XF86CURSORPRIV_H */
|