blob: 21bd322e08ff026fe0c17319071422c822b4b12c [file] [log] [blame]
Alexandre Julliarde399fc31993-11-24 17:08:56 +00001/*
2 * structure definitions for CURSOR
3 *
4 * Copyright Martin Ayotte, 1993
5 *
6 */
Alexandre Julliard234bc241994-12-10 13:02:28 +00007#ifndef __WINE_CURSOR_H
8#define __WINE_CURSOR_H
Alexandre Julliarde399fc31993-11-24 17:08:56 +00009
Alexandre Julliardbd34d4f1995-06-20 19:08:12 +000010
11typedef 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 Julliarde399fc31993-11-24 17:08:56 +000020typedef 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
31typedef struct {
32 CURSORDESCRIP descriptor;
33 HBITMAP hBitmap;
34 Display *display;
35 Pixmap pixshape;
36 Pixmap pixmask;
37 Cursor xcursor;
38 } CURSORALLOC;
39
Alexandre Julliard234bc241994-12-10 13:02:28 +000040extern void CURSOR_SetWinCursor( HWND hwnd, HCURSOR hcursor ); /* cursor.c */
41
42#endif /* __WINE_CURSOR_H */