mirror of
https://github.com/reactos/wine.git
synced 2024-11-30 07:00:30 +00:00
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
/*
|
|
* GDI palette definitions
|
|
*
|
|
* Copyright 1994 Alexandre Julliard
|
|
*/
|
|
|
|
#ifndef __WINE_PALETTE_H
|
|
#define __WINE_PALETTE_H
|
|
|
|
#include "gdi.h"
|
|
|
|
#define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
|
|
|
|
/* GDI logical palette object */
|
|
typedef struct tagPALETTEOBJ
|
|
{
|
|
GDIOBJHDR header;
|
|
int *mapping;
|
|
LOGPALETTE logpalette; /* _MUST_ be the last field */
|
|
} PALETTEOBJ;
|
|
|
|
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;
|
|
|
|
extern HPALETTE16 PALETTE_Init(void);
|
|
extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
|
|
extern BOOL PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
|
|
extern BOOL PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
|
|
|
|
extern HPALETTE16 WINAPI CreateHalftonePalette16(HDC16 hdc);
|
|
extern HPALETTE WINAPI CreateHalftonePalette(HDC hdc);
|
|
|
|
#endif /* __WINE_PALETTE_H */
|