ReactOS  0.4.13-dev-464-g6b95727
xlateobj.h
Go to the documentation of this file.
1  /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS kernel
4  * PURPOSE: XLATEOBJ structures and functions
5  * FILE: win32ss/gdi/eng/xlateobj.h
6  * PROGRAMER: Timo Kreuzer
7  *
8  */
9 
10 struct _EXLATEOBJ;
11 
12 _Function_class_(FN_XLATE)
13 typedef
14 ULONG
16  _In_ struct _EXLATEOBJ *pexlo,
18 
19 typedef struct _EXLATEOBJ
20 {
22 
24 
28 
30 
31  union
32  {
34  struct
35  {
42  };
43  };
45 
46 extern EXLATEOBJ gexloTrivial;
47 
53 {
54  return ((PEXLATEOBJ)pxlo)->pfnXlate;
55 }
56 
57 VOID
58 NTAPI
60  _Out_ PEXLATEOBJ pexlo,
61  _In_opt_ PPALETTE ppalSrc,
62  _In_opt_ PPALETTE ppalDst,
63  _In_ COLORREF crSrcBackColor,
64  _In_ COLORREF crDstBackColor,
65  _In_ COLORREF crDstForeColor);
66 
67 VOID
68 NTAPI
70  _Out_ PEXLATEOBJ pexlo,
71  _In_ PDC pdcSrc,
72  _In_ PDC pdcDst);
73 
74 VOID
75 NTAPI
77  _Out_ PEXLATEOBJ pexlo,
78  _In_ PPALETTE ppalDst,
79  _In_ COLORREF crBackgroundClr,
80  _In_ COLORREF crForegroundClr);
81 
82 VOID
83 NTAPI
85  _Inout_ PEXLATEOBJ pexlo);
86 
ULONG ulGreenShift
Definition: xlateobj.h:40
#define _Notnull_
Definition: no_sal2.h:316
VOID NTAPI EXLATEOBJ_vInitSrcMonoXlate(_Out_ PEXLATEOBJ pexlo, _In_ PPALETTE ppalDst, _In_ COLORREF crBackgroundClr, _In_ COLORREF crForegroundClr)
ULONG(FASTCALL * PFN_XLATE)(XLATEOBJ *pxlo, ULONG ulColor)
Definition: DibLib.h:23
ULONG ulBlueMask
Definition: xlateobj.h:38
EXLATEOBJ gexloTrivial
_Function_class_(FN_XLATE) typedef ULONG(FASTCALL *PFN_XLATE)(_In_ struct _EXLATEOBJ *pexlo
ULONG aulXlate[6]
Definition: xlateobj.h:33
#define FASTCALL
Definition: nt_native.h:50
#define _In_opt_
Definition: no_sal2.h:213
XLATEOBJ xlo
Definition: xlateobj.h:21
ULONG ulRedMask
Definition: xlateobj.h:36
HANDLE hColorTransform
Definition: xlateobj.h:29
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
ULONG ulBlueShift
Definition: xlateobj.h:41
VOID NTAPI EXLATEOBJ_vInitXlateFromDCs(_Out_ PEXLATEOBJ pexlo, _In_ PDC pdcSrc, _In_ PDC pdcDst)
PFN_XLATE pfnXlate
Definition: xlateobj.h:23
#define FORCEINLINE
Definition: ntbasedef.h:221
#define _Out_
Definition: no_sal2.h:323
ULONG ulRedShift
Definition: xlateobj.h:39
VOID NTAPI EXLATEOBJ_vCleanup(_Inout_ PEXLATEOBJ pexlo)
Definition: xlateobj.c:649
Definition: polytest.cpp:40
DWORD COLORREF
Definition: windef.h:285
#define _Inout_
Definition: no_sal2.h:244
struct _EXLATEOBJ EXLATEOBJ
#define _In_
Definition: no_sal2.h:204
PPALETTE ppalDstDc
Definition: xlateobj.h:27
VOID NTAPI EXLATEOBJ_vInitialize(_Out_ PEXLATEOBJ pexlo, _In_opt_ PPALETTE ppalSrc, _In_opt_ PPALETTE ppalDst, _In_ COLORREF crSrcBackColor, _In_ COLORREF crDstBackColor, _In_ COLORREF crDstForeColor)
unsigned int ULONG
Definition: retypes.h:1
ULONG ulGreenMask
Definition: xlateobj.h:37
_Notnull_ FORCEINLINE PFN_XLATE XLATEOBJ_pfnXlate(_In_ XLATEOBJ *pxlo)
Definition: xlateobj.h:51
PPALETTE ppalSrc
Definition: xlateobj.h:25
_In_ SURFOBJ _In_ CLIPOBJ _In_opt_ XLATEOBJ * pxlo
Definition: winddi.h:3414
_In_ ULONG iColor
Definition: xlateobj.h:17
PPALETTE ppalDst
Definition: xlateobj.h:26
struct _EXLATEOBJ * PEXLATEOBJ