VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/XFree86-4.3/Xserver/xf86Cursor.h@ 93369

Last change on this file since 93369 was 69098, checked in by vboxsync, 8 years ago

Clean up XFree86 driver header files.
bugref:3810: X11 Guest Additions maintenance
Over the years we have cleaned up the layout in the tree of the X.Org
header files we use to build drivers. The XFree86 ones were still in their
original, rather sub-optimal layout. This change fixes that.

  • Property svn:eol-style set to native
File size: 1.9 KB
Line 
1/* $XFree86: xc/programs/Xserver/hw/xfree86/ramdac/xf86Cursor.h,v 1.11 2003/02/15 03:14:47 tsi Exp $ */
2
3#ifndef _XF86CURSOR_H
4#define _XF86CURSOR_H
5
6#include "xf86str.h"
7#include "mipointer.h"
8
9typedef struct _xf86CursorInfoRec {
10 ScrnInfoPtr pScrn;
11 int Flags;
12 int MaxWidth;
13 int MaxHeight;
14 void (*SetCursorColors)(ScrnInfoPtr pScrn, int bg, int fg);
15 void (*SetCursorPosition)(ScrnInfoPtr pScrn, int x, int y);
16 void (*LoadCursorImage)(ScrnInfoPtr pScrn, unsigned char *bits);
17 void (*HideCursor)(ScrnInfoPtr pScrn);
18 void (*ShowCursor)(ScrnInfoPtr pScrn);
19 unsigned char* (*RealizeCursor)(struct _xf86CursorInfoRec *, CursorPtr);
20 Bool (*UseHWCursor)(ScreenPtr, CursorPtr);
21
22#ifdef ARGB_CURSOR
23 Bool (*UseHWCursorARGB) (ScreenPtr, CursorPtr);
24 void (*LoadCursorARGB) (ScrnInfoPtr, CursorPtr);
25#endif
26
27} xf86CursorInfoRec, *xf86CursorInfoPtr;
28
29Bool xf86InitCursor(ScreenPtr pScreen, xf86CursorInfoPtr infoPtr);
30xf86CursorInfoPtr xf86CreateCursorInfoRec(void);
31void xf86DestroyCursorInfoRec(xf86CursorInfoPtr);
32void xf86ForceHWCursor (ScreenPtr pScreen, Bool on);
33
34#define HARDWARE_CURSOR_INVERT_MASK 0x00000001
35#define HARDWARE_CURSOR_AND_SOURCE_WITH_MASK 0x00000002
36#define HARDWARE_CURSOR_SWAP_SOURCE_AND_MASK 0x00000004
37#define HARDWARE_CURSOR_SOURCE_MASK_NOT_INTERLEAVED 0x00000008
38#define HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_1 0x00000010
39#define HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_8 0x00000020
40#define HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_16 0x00000040
41#define HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_32 0x00000080
42#define HARDWARE_CURSOR_SOURCE_MASK_INTERLEAVE_64 0x00000100
43#define HARDWARE_CURSOR_TRUECOLOR_AT_8BPP 0x00000200
44#define HARDWARE_CURSOR_BIT_ORDER_MSBFIRST 0x00000400
45#define HARDWARE_CURSOR_NIBBLE_SWAPPED 0x00000800
46#define HARDWARE_CURSOR_SHOW_TRANSPARENT 0x00001000
47#define HARDWARE_CURSOR_UPDATE_UNHIDDEN 0x00002000
48
49#endif /* _XF86CURSOR_H */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette