Implemented processing for actions: SPI_GET/SETGRIDGRANULARITY,
[wine] / include / color.h
1 #ifndef __WINE_COLOR_H
2 #define __WINE_COLOR_H
3
4 #include "windef.h"
5 #include "wingdi.h"
6 #include "palette.h"
7
8 #define PC_SYS_USED     0x80            /* palentry is used (both system and logical) */
9 #define PC_SYS_RESERVED 0x40            /* system palentry is not to be mapped to */
10 #define PC_SYS_MAPPED   0x10            /* logical palentry is a direct alias for system palentry */
11
12 extern BOOL  COLOR_IsSolid(COLORREF color);
13
14 extern COLORREF            COLOR_GetSystemPaletteEntry(UINT);
15 extern const PALETTEENTRY *COLOR_GetSystemPaletteTemplate(void);
16
17 extern COLORREF COLOR_LookupNearestColor(PALETTEENTRY *, int, COLORREF);
18 extern int      COLOR_PaletteLookupExactIndex(PALETTEENTRY *palPalEntry, int size, COLORREF col);
19 extern int      COLOR_PaletteLookupPixel(PALETTEENTRY *, int, int * , COLORREF, BOOL);
20
21 #endif /* __WINE_COLOR_H */