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 */
|
---|
17 | typedef struct tagPALETTEOBJ
|
---|
18 | {
|
---|
19 | GDIOBJHDR header;
|
---|
20 | int *mapping;
|
---|
21 | LOGPALETTE logpalette; /* _MUST_ be the last field */
|
---|
22 | } PALETTEOBJ;
|
---|
23 |
|
---|
24 | typedef 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 |
|
---|
31 | extern PALETTE_DRIVER *PALETTE_Driver;
|
---|
32 |
|
---|
33 | extern HPALETTE16 PALETTE_Init(void);
|
---|
34 | extern int PALETTE_GetObject( PALETTEOBJ * palette, int count, LPSTR buffer );
|
---|
35 | extern BOOL PALETTE_DeleteObject( HPALETTE16 hpalette, PALETTEOBJ *palette );
|
---|
36 | extern BOOL PALETTE_UnrealizeObject( HPALETTE16 hpalette, PALETTEOBJ *palette);
|
---|
37 |
|
---|
38 | extern HPALETTE16 WINAPI CreateHalftonePalette16(HDC16 hdc);
|
---|
39 | extern HPALETTE WINAPI CreateHalftonePalette(HDC hdc);
|
---|
40 |
|
---|
41 | #endif /* __WINE_PALETTE_H */
|
---|
Note:
See
TracBrowser
for help on using the repository browser.