ReactOS 0.4.16-dev-88-ga65b6ae
|
Go to the source code of this file.
Classes | |
struct | _PALETTE |
Macros | |
#define | PALETTE_UnlockPalette(pPalette) GDIOBJ_vUnlockObject((POBJ)pPalette) |
#define | PALETTE_ShareLockPalette(hpal) ((PPALETTE)GDIOBJ_ShareLockObj((HGDIOBJ)hpal, GDI_OBJECT_TYPE_PALETTE)) |
#define | PALETTE_ShareUnlockPalette(ppal) GDIOBJ_vDereferenceObject(&ppal->BaseObject) |
Typedefs | |
typedef struct _PALETTE | PALETTE |
typedef struct _PALETTE * | PPALETTE |
Enumerations | |
enum | _PALFLAGS { PAL_INDEXED = 0x00000001 , PAL_BITFIELDS = 0x00000002 , PAL_RGB = 0x00000004 , PAL_BGR = 0x00000008 , PAL_CMYK = 0x00000010 , PAL_DC = 0x00000100 , PAL_FIXED = 0x00000200 , PAL_FREE = 0x00000400 , PAL_MANAGED = 0x00000800 , PAL_NOSTATIC = 0x00001000 , PAL_MONOCHROME = 0x00002000 , PAL_BRUSHHACK = 0x00004000 , PAL_DIBSECTION = 0x00008000 , PAL_NOSTATIC256 = 0x00010000 , PAL_HT = 0x00100000 , PAL_RGB16_555 = 0x00200000 , PAL_RGB16_565 = 0x00400000 , PAL_GAMMACORRECTION = 0x00800000 } |
Variables | |
PALETTE | gpalRGB |
PALETTE | gpalBGR |
PALETTE | gpalRGB555 |
PALETTE | gpalRGB565 |
PALETTE * | gppalMono |
PALETTE * | gppalDefault |
PPALETTE | appalSurfaceDefault [] |
#define PALETTE_ShareLockPalette | ( | hpal | ) | ((PPALETTE)GDIOBJ_ShareLockObj((HGDIOBJ)hpal, GDI_OBJECT_TYPE_PALETTE)) |
#define PALETTE_ShareUnlockPalette | ( | ppal | ) | GDIOBJ_vDereferenceObject(&ppal->BaseObject) |
#define PALETTE_UnlockPalette | ( | pPalette | ) | GDIOBJ_vUnlockObject((POBJ)pPalette) |
Definition at line 8 of file palette.h.
FORCEINLINE ULONG CalculateShift | ( | ULONG | ulMask1, |
ULONG | ulMask2 | ||
) |
Definition at line 130 of file palette.h.
Referenced by EXLATEOBJ_vInitialize(), and PALETTE_ulGetNearestBitFieldsIndex().
HPALETTE NTAPI GreCreatePaletteInternal | ( | IN LPLOGPALETTE | pLogPal, |
IN UINT | cEntries | ||
) |
Systemcall Interface
Definition at line 448 of file palette.c.
Definition at line 66 of file palette.c.
Referenced by DriverEntry().
PPALETTE NTAPI PALETTE_AllocPalette | ( | _In_ ULONG | iMode, |
_In_ ULONG | cColors, | ||
_In_opt_ const PALETTEENTRY * | pEntries, | ||
_In_ FLONG | flRed, | ||
_In_ FLONG | flGreen, | ||
_In_ FLONG | flBlue | ||
) |
Definition at line 135 of file palette.c.
Referenced by CreateDIBPalette(), EngCreatePalette(), FixupDIBBrushPalette(), InitPaletteImpl(), NtGdiDdDDICreateDCFromMemory(), and PALETTE_AllocPalWithHandle().
PPALETTE NTAPI PALETTE_AllocPalWithHandle | ( | _In_ ULONG | iMode, |
_In_ ULONG | cColors, | ||
_In_opt_ const PALETTEENTRY * | pEntries, | ||
_In_ FLONG | flRed, | ||
_In_ FLONG | flGreen, | ||
_In_ FLONG | flBlue | ||
) |
Definition at line 209 of file palette.c.
Referenced by DIB_MapPaletteColors(), GreCreatePaletteInternal(), InitPaletteImpl(), NtGdiCreateHalftonePalette(), and NtGdiCreatePaletteInternal().
INT FASTCALL PALETTE_GetObject | ( | PPALETTE | pGdiObject, |
INT | cbCount, | ||
LPLOGBRUSH | lpBuffer | ||
) |
FORCEINLINE ULONG PALETTE_ulGetRGBColorFromIndex | ( | PPALETTE | ppal, |
ULONG | ulIndex | ||
) |
Definition at line 142 of file palette.h.
Referenced by CreateDIBPalette(), FixupDIBBrushPalette(), and TranslateCOLORREF().
VOID FASTCALL PALETTE_ValidateFlags | ( | PALETTEENTRY * | lpPalE, |
INT | size | ||
) |
Definition at line 125 of file palette.c.
Referenced by GreCreatePaletteInternal(), IntAnimatePalette(), and NtGdiCreatePaletteInternal().
Definition at line 322 of file palette.c.
Referenced by EXLATEOBJ_vInitialize().
FORCEINLINE VOID PALETTE_vSetRGBColorForIndex | ( | PPALETTE | ppal, |
ULONG | ulIndex, | ||
COLORREF | crColor | ||
) |
Definition at line 152 of file palette.h.
Referenced by CreateDIBPalette(), FixupDIBBrushPalette(), and InitPaletteImpl().
|
extern |
Definition at line 21 of file palette.c.
Referenced by InitPaletteImpl(), and SURFACE_AllocSurface().
|
extern |
Definition at line 20 of file palette.c.
Referenced by DIB_16BPP_AlphaBlend(), DIB_XXBPP_AlphaBlend(), EBRUSHOBJ_vSetSolidRGBColor(), EngSetPointerShape(), EXLATEOBJ_vInitialize(), GreGradientFill(), InitPaletteImpl(), IntExtTextOutW(), IntShowMousePointer(), NtGdiExtFloodFill(), NtGdiGetNearestColor(), NtGdiGetPixel(), NtGdiSetPixel(), NtGdiTransparentBlt(), and TranslateCOLORREF().