updated listbox control from wine 0.9.2
[reactos.git] / reactos / w32api / include / gdipluspixelformats.h
1 /*
2 * GdiPlusPixelFormats.h
3 *
4 * Windows GDI+
5 *
6 * This file is part of the w32api package.
7 *
8 * THIS SOFTWARE IS NOT COPYRIGHTED
9 *
10 * This source code is offered for use in the public domain. You may
11 * use, modify or distribute it freely.
12 *
13 * This code is distributed in the hope that it will be useful but
14 * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
15 * DISCLAIMED. This includes but is not limited to warranties of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17 */
18
19 #ifndef _GDIPLUSPIXELFORMATS_H
20 #define _GDIPLUSPIXELFORMATS_H
21
22 #if __GNUC__ >= 3
23 #pragma GCC system_header
24 #endif
25
26 #define PixelFormatIndexed 0x00010000
27 #define PixelFormatGDI 0x00020000
28 #define PixelFormatAlpha 0x00040000
29 #define PixelFormatPAlpha 0x00080000
30 #define PixelFormatExtended 0x00100000
31 #define PixelFormatCanonical 0x00200000
32
33 #define PixelFormatUndefined 0
34 #define PixelFormatDontCare 0
35
36 #define PixelFormat1bppIndexed (1 | ( 1 << 8) | PixelFormatIndexed | PixelFormatGDI)
37 #define PixelFormat4bppIndexed (2 | ( 4 << 8) | PixelFormatIndexed | PixelFormatGDI)
38 #define PixelFormat8bppIndexed (3 | ( 8 << 8) | PixelFormatIndexed | PixelFormatGDI)
39 #define PixelFormat16bppARGB1555 (7 | (16 << 8) | PixelFormatAlpha | PixelFormatGDI)
40 #define PixelFormat16bppGrayScale (4 | (16 << 8) | PixelFormatExtended)
41 #define PixelFormat16bppRGB555 (5 | (16 << 8) | PixelFormatGDI)
42 #define PixelFormat16bppRGB565 (6 | (16 << 8) | PixelFormatGDI)
43 #define PixelFormat24bppRGB (8 | (24 << 8) | PixelFormatGDI)
44 #define PixelFormat32bppARGB (10 | (32 << 8) | PixelFormatAlpha | PixelFormatGDI | PixelFormatCanonical)
45 #define PixelFormat32bppPARGB (11 | (32 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatGDI)
46 #define PixelFormat32bppRGB (9 | (32 << 8) | PixelFormatGDI)
47 #define PixelFormat48bppRGB (12 | (48 << 8) | PixelFormatExtended)
48 #define PixelFormat64bppARGB (13 | (64 << 8) | PixelFormatAlpha | PixelFormatCanonical | PixelFormatExtended)
49 #define PixelFormat64bppPARGB (14 | (64 << 8) | PixelFormatAlpha | PixelFormatPAlpha | PixelFormatExtended)
50
51
52 typedef INT PixelFormat;
53
54 typedef DWORD ARGB;
55
56 typedef struct {
57 UINT Flags;
58 UINT Count;
59 ARGB Entries[1];
60 } ColorPalette;
61
62 #endif /* _GDIPLUSPIXELFORMATS_H */