Correct behaviour of DEL key back to deleting the current character.
[wine] / include / color.h
1 /*
2  * Copyright 1993 Alexandre Julliard
3  * Copyright 1996 Alex Korobka
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Lesser General Public
7  * License as published by the Free Software Foundation; either
8  * version 2.1 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public
16  * License along with this library; if not, write to the Free Software
17  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
18  */
19
20 #ifndef __WINE_COLOR_H
21 #define __WINE_COLOR_H
22
23 #include "windef.h"
24 #include "wingdi.h"
25 #include "palette.h"
26
27 #define PC_SYS_USED     0x80            /* palentry is used (both system and logical) */
28 #define PC_SYS_RESERVED 0x40            /* system palentry is not to be mapped to */
29 #define PC_SYS_MAPPED   0x10            /* logical palentry is a direct alias for system palentry */
30
31 extern BOOL  COLOR_IsSolid(COLORREF color);
32
33 extern COLORREF            COLOR_GetSystemPaletteEntry(UINT);
34 extern const PALETTEENTRY *COLOR_GetSystemPaletteTemplate(void);
35
36 extern COLORREF COLOR_LookupNearestColor(PALETTEENTRY *, int, COLORREF);
37 extern int      COLOR_PaletteLookupExactIndex(PALETTEENTRY *palPalEntry, int size, COLORREF col);
38 extern int      COLOR_PaletteLookupPixel(PALETTEENTRY *, int, int * , COLORREF, BOOL);
39
40 #endif /* __WINE_COLOR_H */