aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/hw/xfree86/ramdac/xf86CursorPriv.h
blob: d04f9320723965286e8fc7de234b2c07018f9a35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52

#ifdef HAVE_XORG_CONFIG_H
#include <xorg-config.h>
#endif

#ifndef _XF86CURSORPRIV_H
#define _XF86CURSORPRIV_H

#include "xf86Cursor.h"
#include "mipointrst.h"

typedef struct {
    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;
    Bool (*SwitchMode) (ScrnInfoPtr, DisplayModePtr);
    xf86EnableDisableFBAccessProc *EnableDisableFBAccess;
    CursorPtr SavedCursor;

    /* Number of requests to force HW cursor */
    int ForceHWCursorCount;
    Bool HWCursorForced;

    pointer transparentData;
} xf86CursorScreenRec, *xf86CursorScreenPtr;

void xf86SetCursor(ScreenPtr pScreen, CursorPtr pCurs, int x, int y);
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);

CARD32 xf86ReverseBitOrder(CARD32 data);

extern _X_EXPORT DevPrivateKeyRec xf86CursorScreenKeyRec;

#define xf86CursorScreenKey (&xf86CursorScreenKeyRec)

#endif                          /* _XF86CURSORPRIV_H */