Release 990226.
[wine/gsoc-2012-control.git] / include / palette.h
blobc6e4cfb8c42a5cd8ff46752846c1226b17551ca0
1 /*
2 * GDI palette definitions
4 * Copyright 1994 Alexandre Julliard
5 */
7 #ifndef __WINE_PALETTE_H
8 #define __WINE_PALETTE_H
10 #include "gdi.h"
12 #define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
14 /* GDI logical palette object */
15 typedef struct
17 GDIOBJHDR header;
18 int *mapping;
19 LOGPALETTE logpalette; /* _MUST_ be the last field */
20 } PALETTEOBJ;
22 extern HPALETTE16 PALETTE_Init(void);
23 extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
24 extern BOOL PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
25 extern BOOL PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
27 extern HPALETTE16 WINAPI CreateHalftonePalette16(HDC16 hdc);
28 extern HPALETTE WINAPI CreateHalftonePalette(HDC hdc);
30 #endif /* __WINE_PALETTE_H */