Alexandre Julliard | e399fc3 | 1993-11-24 17:08:56 +0000 | [diff] [blame] | 1 | /* |
| 2 | * structure definitions for CURSOR |
| 3 | * |
| 4 | * Copyright Martin Ayotte, 1993 |
| 5 | * |
| 6 | */ |
Alexandre Julliard | 234bc24 | 1994-12-10 13:02:28 +0000 | [diff] [blame] | 7 | #ifndef __WINE_CURSOR_H |
| 8 | #define __WINE_CURSOR_H |
Alexandre Julliard | e399fc3 | 1993-11-24 17:08:56 +0000 | [diff] [blame] | 9 | |
Alexandre Julliard | bd34d4f | 1995-06-20 19:08:12 +0000 | [diff] [blame] | 10 | |
| 11 | typedef struct { |
| 12 | POINT pntHotSpot; /* cursor hot spot */ |
| 13 | WORD nWidth; /* width of bitmap in pixels */ |
| 14 | WORD nHeight; |
| 15 | WORD nWidthBytes; |
| 16 | BYTE byPlanes; /* number of bit planes */ |
| 17 | BYTE byBitsPix; /* bits per pixel */ |
| 18 | } CURSORICONINFO, FAR *LPCURSORICONINFO; |
| 19 | |
Alexandre Julliard | e399fc3 | 1993-11-24 17:08:56 +0000 | [diff] [blame] | 20 | typedef struct { |
| 21 | BYTE Width; |
| 22 | BYTE Reserved1; |
| 23 | BYTE Height; |
| 24 | BYTE Reserved2; |
| 25 | WORD curXHotspot; |
| 26 | WORD curYHotspot; |
| 27 | DWORD curDIBSize; |
| 28 | DWORD curDIBOffset; |
| 29 | } CURSORDESCRIP; |
| 30 | |
| 31 | typedef struct { |
| 32 | CURSORDESCRIP descriptor; |
| 33 | HBITMAP hBitmap; |
| 34 | Display *display; |
| 35 | Pixmap pixshape; |
| 36 | Pixmap pixmask; |
| 37 | Cursor xcursor; |
| 38 | } CURSORALLOC; |
| 39 | |
Alexandre Julliard | 234bc24 | 1994-12-10 13:02:28 +0000 | [diff] [blame] | 40 | extern void CURSOR_SetWinCursor( HWND hwnd, HCURSOR hcursor ); /* cursor.c */ |
| 41 | |
| 42 | #endif /* __WINE_CURSOR_H */ |