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