ReactOS  0.4.14-dev-384-g5b37caa
intgdi.h
Go to the documentation of this file.
1 #pragma once
2 
3 /* Convert WIN32 ROP into an ENG ROP */
4 #define WIN32_ROP3_TO_ENG_ROP4(dwRop4) ((((dwRop4) & 0x00FF0000) >> 16) | (((dwRop4) & 0x00FF0000) >> 8))
5 #define WIN32_ROP4_TO_ENG_ROP4(dwRop4) ((dwRop4) >> 16)
6 
7 #define WIN32_ROP4_USES_SOURCE(Rop) ((((Rop) & 0xCCCC0000) >> 2) != ((Rop) & 0x33330000))
8 
9 /* The range of valid ROP2 values is 1 .. 16 */
10 #define FIXUP_ROP2(rop2) ((((rop2) - 1) & 0xF) + 1)
11 
12 /* Brush functions */
13 
14 extern HDC hSystemBM;
16 
17 /* Line functions */
18 
21  int XEnd,
22  int YEnd);
23 
26  int X,
27  int Y,
28  LPPOINT Point);
29 
32  LPPOINT pt,
33  DWORD Count);
34 
37  LPPOINT pt,
38  int Count);
39 
42  LPPOINT pt,
43  DWORD Count);
44 
47  LPPOINT pt,
48  PULONG PolyPoints,
49  DWORD Count);
50 
53  LPPOINT pt,
54  DWORD Count);
55 
58  INT x,
59  INT y,
60  LPPOINT pptOut);
61 
62 /* Shape functions */
63 
64 BOOL
65 NTAPI
67  HDC hdc,
69  ULONG nVertex,
70  PVOID pMesh,
71  ULONG nMesh,
72  ULONG ulMode);
73 
74 /* DC functions */
75 
79  PVOID pUMdhpdev,
80  CONST PDEVMODEW InitData,
81  BOOL CreateAsIC);
82 
83 /* Stock objects */
84 
86 IntSetSysColors(UINT nColors, CONST INT *Elements, CONST COLORREF *Colors);
87 
90 
92 IntGetSysColor(INT nIndex);
93 
94 /* Other Stuff */
95 
99  VOID);
100 
101 DWORD
102 APIENTRY
104  DWORD Unknown0);
105 
106 HBITMAP
107 FASTCALL
109  _In_ PDC Dc,
110  _In_ INT Width,
111  _In_ INT Height,
112  _In_ UINT Bpp,
113  _In_ UINT Planes);
114 
116 
118 
120 
122 IntGetPaletteEntries(HPALETTE hpal,
123  UINT StartIndex,
124  UINT Entries,
125  LPPALETTEENTRY pe);
126 
129  UINT StartIndex,
130  UINT Entries,
131  LPPALETTEENTRY pe);
132 
135 
136 PPOINT GDI_Bezier (const POINT *Points, INT count, PINT nPtsOut);
137 
138 BOOL FASTCALL IntFillArc( PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, double StartArc, double EndArc, ARCTYPE arctype);
139 BOOL FASTCALL IntDrawArc( PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, double StartArc, double EndArc, ARCTYPE arctype, PBRUSH pbrush);
140 
141 BOOL FASTCALL IntFillEllipse( PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, PBRUSH pbrush);
142 BOOL FASTCALL IntDrawEllipse( PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, PBRUSH pbrush);
143 BOOL FASTCALL IntFillRoundRect( PDC dc, INT Left, INT Top, INT Right, INT Bottom, INT Wellipse, INT Hellipse, PBRUSH pbrush);
144 BOOL FASTCALL IntDrawRoundRect( PDC dc, INT Left, INT Top, INT Right, INT Bottom, INT Wellipse, INT Hellipse, PBRUSH pbrush);
_In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ TRIVERTEX _In_ ULONG _In_ PVOID _In_ ULONG nMesh
Definition: winddi.h:3649
_In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ TRIVERTEX _In_ ULONG _In_ PVOID pMesh
Definition: winddi.h:3649
UINT APIENTRY IntGetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, RGBQUAD *Colors)
BOOL FASTCALL IntGdiPolylineTo(DC *dc, LPPOINT pt, DWORD Count)
Definition: line.c:355
_In_ PIRP _In_ PDEVICE_OBJECT Device
Definition: fatprocs.h:2020
#define Y(I)
HGDIOBJ FASTCALL IntGetSysColorBrush(INT Object)
Definition: stockobj.c:317
#define pt(x, y)
Definition: drawing.c:79
GLuint GLuint GLsizei count
Definition: gl.h:1545
NTSTATUS APIENTRY NtGdiFlushUserBatch(VOID)
Definition: gdibatch.c:487
LONG NTSTATUS
Definition: precomp.h:26
static HDC
Definition: imagelist.c:92
HSEMAPHORE hsemDriverMgmt
_Inout_ __drv_aliasesMem PSLIST_ENTRY _Inout_ PSLIST_ENTRY _In_ ULONG Count
Definition: exfuncs.h:1015
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
HDC dc
Definition: cylfrac.c:34
BOOL FASTCALL IntFillEllipse(PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, PBRUSH pbrush)
Definition: drawing.c:1376
#define FASTCALL
Definition: nt_native.h:50
BOOL NTAPI GreGradientFill(HDC hdc, PTRIVERTEX pVertex, ULONG nVertex, PVOID pMesh, ULONG nMesh, ULONG ulMode)
Definition: fillshap.c:871
int32_t INT
Definition: typedefs.h:56
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID FASTCALL CreateSysColorObjects(VOID)
Definition: stockobj.c:329
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
unsigned int BOOL
Definition: ntddk_ex.h:94
WORD APIENTRY IntGdiSetHookFlags(HDC hDC, WORD Flags)
Definition: dcutil.c:422
VOID FASTCALL CreateStockObjects(VOID)
Definition: stockobj.c:247
BOOL FASTCALL IntFillRoundRect(PDC dc, INT Left, INT Top, INT Right, INT Bottom, INT Wellipse, INT Hellipse, PBRUSH pbrush)
Definition: drawing.c:1388
BOOL FASTCALL IntDrawEllipse(PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, PBRUSH pbrush)
Definition: drawing.c:1364
BOOL FASTCALL IntGdiPolyline(DC *dc, LPPOINT pt, int Count)
Definition: line.c:291
BOOL FASTCALL IntGdiPolyPolyline(DC *dc, LPPOINT pt, PULONG PolyPoints, DWORD Count)
Definition: line.c:394
_In_ PCUNICODE_STRING _In_ PVOID Driver
Definition: cmfuncs.h:32
Definition: types.h:100
_In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ TRIVERTEX * pVertex
Definition: winddi.h:3649
int * PINT
Definition: windef.h:177
Definition: polytest.cpp:40
DWORD_PTR HSEMAPHORE
Definition: axcore.idl:60
HDC hSystemBM
Definition: stockobj.c:52
DWORD COLORREF
Definition: windef.h:285
BOOL FASTCALL IntGdiPolyBezierTo(DC *dc, LPPOINT pt, DWORD Count)
Definition: line.c:254
Colors
Definition: ansiprsr.h:4
UINT APIENTRY IntSetDIBColorTable(HDC hDC, UINT StartIndex, UINT Entries, CONST RGBQUAD *Colors)
unsigned short WORD
Definition: ntddk_ex.h:93
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD FASTCALL IntGetSysColor(INT nIndex)
Definition: stockobj.c:323
HDC FASTCALL IntGdiCreateDC(PUNICODE_STRING Driver, PUNICODE_STRING Device, PVOID pUMdhpdev, CONST PDEVMODEW InitData, BOOL CreateAsIC)
Definition: dclife.c:1043
static IUnknown Object
Definition: main.c:512
HDC hdc
Definition: main.c:9
UINT APIENTRY IntGetSystemPaletteEntries(HDC hDC, UINT StartIndex, UINT Entries, LPPALETTEENTRY pe)
Definition: palette.c:894
_In_ UINT _Out_ PPOINTL pptOut
Definition: ntgdi.h:2197
BOOL FASTCALL GreMoveTo(HDC hdc, INT x, INT y, LPPOINT pptOut)
Definition: line.c:108
BOOL FASTCALL IntFillArc(PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, double StartArc, double EndArc, ARCTYPE arctype)
Definition: drawing.c:1306
#define _In_
Definition: no_sal2.h:204
static HDC hDC
Definition: 3dtext.c:33
_In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ TRIVERTEX _In_ ULONG _In_ PVOID _In_ ULONG _In_ RECTL _In_ POINTL _In_ ULONG ulMode
Definition: winddi.h:3649
static LPHIST_ENTRY Bottom
Definition: history.c:54
BOOL FASTCALL IntGdiLineTo(DC *dc, int XEnd, int YEnd)
Definition: line.c:146
LIST_ENTRY Entries[5]
Definition: ExDoubleList.c:8
BOOL FASTCALL IntDrawArc(PDC dc, INT XLeft, INT YLeft, INT Width, INT Height, double StartArc, double EndArc, ARCTYPE arctype, PBRUSH pbrush)
Definition: drawing.c:1342
UINT APIENTRY IntGetPaletteEntries(HPALETTE hpal, UINT StartIndex, UINT Entries, LPPALETTEENTRY pe)
Definition: palette.c:855
enum _ARCTYPE ARCTYPE
unsigned int * PULONG
Definition: retypes.h:1
unsigned int UINT
Definition: ndis.h:50
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
DWORD APIENTRY NtDxEngGetRedirectionBitmap(DWORD Unknown0)
Definition: ntstubs.c:1001
VOID FASTCALL IntSetSysColors(UINT nColors, CONST INT *Elements, CONST COLORREF *Colors)
Definition: stockobj.c:300
unsigned int ULONG
Definition: retypes.h:1
BOOL FASTCALL IntGdiMoveToEx(DC *dc, int X, int Y, LPPOINT Point)
Definition: line.c:78
BOOL FASTCALL IntDrawRoundRect(PDC dc, INT Left, INT Top, INT Right, INT Bottom, INT Wellipse, INT Hellipse, PBRUSH pbrush)
Definition: drawing.c:1454
_In_ CLIPOBJ _In_opt_ XLATEOBJ _In_ TRIVERTEX _In_ ULONG nVertex
Definition: winddi.h:3649
static HBITMAP
Definition: button.c:44
HBITMAP FASTCALL IntCreateCompatibleBitmap(_In_ PDC Dc, _In_ INT Width, _In_ INT Height, _In_ UINT Bpp, _In_ UINT Planes)
static LPHIST_ENTRY Top
Definition: history.c:53
#define CONST
Definition: pedump.c:81
BOOL FASTCALL IntGdiPolyBezier(DC *dc, LPPOINT pt, DWORD Count)
Definition: line.c:226
#define APIENTRY
Definition: api.h:79
PPOINT GDI_Bezier(const POINT *Points, INT count, PINT nPtsOut)