1995-01-09 18:21:16 +00:00
|
|
|
/*
|
|
|
|
* GDI palette definitions
|
|
|
|
*
|
|
|
|
* Copyright 1994 Alexandre Julliard
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_PALETTE_H
|
|
|
|
#define __WINE_PALETTE_H
|
|
|
|
|
|
|
|
#include "gdi.h"
|
|
|
|
|
1997-06-16 17:43:53 +00:00
|
|
|
#define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
|
|
|
|
|
1995-01-09 18:21:16 +00:00
|
|
|
/* GDI logical palette object */
|
1999-04-01 08:16:08 +00:00
|
|
|
typedef struct tagPALETTEOBJ
|
1995-01-09 18:21:16 +00:00
|
|
|
{
|
1999-04-01 08:16:08 +00:00
|
|
|
GDIOBJHDR header;
|
|
|
|
int *mapping;
|
|
|
|
LOGPALETTE logpalette; /* _MUST_ be the last field */
|
1995-01-09 18:21:16 +00:00
|
|
|
} PALETTEOBJ;
|
|
|
|
|
1999-04-01 08:16:08 +00:00
|
|
|
typedef struct tagPALETTE_DRIVER
|
|
|
|
{
|
|
|
|
int (*pSetMapping)(struct tagPALETTEOBJ *, UINT, UINT, BOOL);
|
|
|
|
int (*pUpdateMapping)(struct tagPALETTEOBJ *);
|
|
|
|
BOOL (*pIsDark)(int pixel);
|
|
|
|
} PALETTE_DRIVER;
|
|
|
|
|
|
|
|
extern PALETTE_DRIVER *PALETTE_Driver;
|
|
|
|
|
1998-11-14 18:59:30 +00:00
|
|
|
extern HPALETTE16 PALETTE_Init(void);
|
1995-01-09 18:21:16 +00:00
|
|
|
extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
|
1999-02-26 11:11:13 +00:00
|
|
|
extern BOOL PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
|
|
|
|
extern BOOL PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
|
1995-01-09 18:21:16 +00:00
|
|
|
|
1999-02-09 15:37:16 +00:00
|
|
|
extern HPALETTE16 WINAPI CreateHalftonePalette16(HDC16 hdc);
|
1999-02-26 11:11:13 +00:00
|
|
|
extern HPALETTE WINAPI CreateHalftonePalette(HDC hdc);
|
1999-02-09 15:37:16 +00:00
|
|
|
|
1996-07-12 19:02:39 +00:00
|
|
|
#endif /* __WINE_PALETTE_H */
|