source: trunk/include/win/palette.h@ 10367

Last change on this file since 10367 was 4, checked in by ktk, 26 years ago

Import

File size: 1.2 KB
Line 
1/* $Id: palette.h,v 1.1 1999-05-24 20:19:17 ktk Exp $ */
2
3/*
4 * GDI palette definitions
5 *
6 * Copyright 1994 Alexandre Julliard
7 */
8
9#ifndef __WINE_PALETTE_H
10#define __WINE_PALETTE_H
11
12#include "gdi.h"
13
14#define NB_RESERVED_COLORS 20 /* number of fixed colors in system palette */
15
16 /* GDI logical palette object */
17typedef struct tagPALETTEOBJ
18{
19 GDIOBJHDR header;
20 int *mapping;
21 LOGPALETTE logpalette; /* _MUST_ be the last field */
22} PALETTEOBJ;
23
24typedef struct tagPALETTE_DRIVER
25{
26 int (*pSetMapping)(struct tagPALETTEOBJ *, UINT, UINT, BOOL);
27 int (*pUpdateMapping)(struct tagPALETTEOBJ *);
28 BOOL (*pIsDark)(int pixel);
29} PALETTE_DRIVER;
30
31extern PALETTE_DRIVER *PALETTE_Driver;
32
33extern HPALETTE16 PALETTE_Init(void);
34extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
35extern BOOL PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
36extern BOOL PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
37
38extern HPALETTE16 WINAPI CreateHalftonePalette16(HDC16 hdc);
39extern HPALETTE WINAPI CreateHalftonePalette(HDC hdc);
40
41#endif /* __WINE_PALETTE_H */
Note: See TracBrowser for help on using the repository browser.