Revert r20367 and r20368 since they crash the GUI in second boot by hitting a assert...
[reactos.git] / reactos / subsys / win32k / include / intgdi.h
1 #ifndef _WIN32K_INTGDI_H
2 #define _WIN32K_INTGDI_H
3
4 /* Brush functions */
5
6 XLATEOBJ* FASTCALL
7 IntGdiCreateBrushXlate(PDC Dc, GDIBRUSHOBJ *BrushObj, BOOLEAN *Failed);
8
9 VOID FASTCALL
10 IntGdiInitBrushInstance(GDIBRUSHINST *BrushInst, PGDIBRUSHOBJ BrushObj, XLATEOBJ *XlateObj);
11
12 HBRUSH STDCALL
13 IntGdiCreateDIBBrush(
14 CONST BITMAPINFO *BitmapInfo,
15 UINT ColorSpec,
16 UINT BitmapInfoSize,
17 CONST VOID *PackedDIB);
18
19 HBRUSH STDCALL
20 IntGdiCreateHatchBrush(
21 INT Style,
22 COLORREF Color);
23
24 HBRUSH STDCALL
25 IntGdiCreatePatternBrush(
26 HBITMAP hBitmap);
27
28 HBRUSH STDCALL
29 IntGdiCreateSolidBrush(
30 COLORREF Color);
31
32 HBRUSH STDCALL
33 IntGdiCreateNullBrush(VOID);
34
35 BOOL FASTCALL
36 IntPatBlt(
37 PDC dc,
38 INT XLeft,
39 INT YLeft,
40 INT Width,
41 INT Height,
42 DWORD ROP,
43 PGDIBRUSHOBJ BrushObj);
44
45 /* Pen functions */
46
47 HPEN FASTCALL
48 IntGdiCreatePenIndirect(PLOGPEN lgpn);
49
50 /* Line functions */
51
52 BOOL FASTCALL
53 IntGdiLineTo(DC *dc,
54 int XEnd,
55 int YEnd);
56
57 BOOL FASTCALL
58 IntGdiMoveToEx(DC *dc,
59 int X,
60 int Y,
61 LPPOINT Point);
62
63 BOOL FASTCALL
64 IntGdiPolyBezier(DC *dc,
65 LPPOINT pt,
66 DWORD Count);
67
68 BOOL FASTCALL
69 IntGdiPolyline(DC *dc,
70 LPPOINT pt,
71 int Count);
72
73 BOOL FASTCALL
74 IntGdiPolyBezierTo(DC *dc,
75 LPPOINT pt,
76 DWORD Count);
77
78 BOOL FASTCALL
79 IntGdiPolyPolyline(DC *dc,
80 LPPOINT pt,
81 LPDWORD PolyPoints,
82 DWORD Count);
83
84 BOOL FASTCALL
85 IntGdiPolylineTo(DC *dc,
86 LPPOINT pt,
87 DWORD Count);
88
89 BOOL FASTCALL
90 IntGdiArc(DC *dc,
91 int LeftRect,
92 int TopRect,
93 int RightRect,
94 int BottomRect,
95 int XStartArc,
96 int YStartArc,
97 int XEndArc,
98 int YEndArc);
99
100 INT FASTCALL
101 IntGdiGetArcDirection(DC *dc);
102
103 /* Shape functions */
104
105 BOOL FASTCALL
106 IntGdiPolygon(PDC dc,
107 PPOINT UnsafePoints,
108 int Count);
109
110 BOOL FASTCALL
111 IntGdiPolyPolygon(DC *dc,
112 LPPOINT Points,
113 LPINT PolyCounts,
114 int Count);
115
116 /* Rgn functions */
117
118 int FASTCALL
119 IntGdiGetClipBox(HDC hDC,
120 LPRECT rc);
121
122 HRGN FASTCALL REGION_CropRgn(HRGN hDst, HRGN hSrc, const PRECT lpRect, PPOINT lpPt);
123 void FASTCALL REGION_UnionRectWithRegion(const RECT *rect, ROSRGNDATA *rgn);
124 INT FASTCALL UnsafeIntGetRgnBox(PROSRGNDATA Rgn, LPRECT pRect);
125 BOOL FASTCALL UnsafeIntRectInRegion(PROSRGNDATA Rgn, CONST LPRECT rc);
126
127 #define UnsafeIntCreateRectRgnIndirect(prc) \
128 NtGdiCreateRectRgn((prc)->left, (prc)->top, (prc)->right, (prc)->bottom)
129
130 #define UnsafeIntUnionRectWithRgn(rgndest, prc) \
131 REGION_UnionRectWithRegion((prc), (rgndest))
132
133 /* DC functions */
134
135 BOOL FASTCALL
136 IntGdiGetDCOrgEx(DC *dc, LPPOINT Point);
137
138 INT FASTCALL
139 IntGdiGetObject(HANDLE handle, INT count, LPVOID buffer);
140
141 HDC FASTCALL
142 IntGdiCreateDC(PUNICODE_STRING Driver,
143 PUNICODE_STRING Device,
144 PUNICODE_STRING Output,
145 CONST PDEVMODEW InitData,
146 BOOL CreateAsIC);
147
148 COLORREF FASTCALL
149 IntGetDCColor(HDC hDC, ULONG Object);
150
151 COLORREF FASTCALL
152 IntSetDCColor(HDC hDC, ULONG Object, COLORREF Color);
153
154 /* Coord functions */
155
156 BOOL FASTCALL
157 IntGdiCombineTransform(LPXFORM XFormResult,
158 LPXFORM xform1,
159 LPXFORM xform2);
160
161 /* RECT functions */
162
163 VOID FASTCALL
164 IntGdiSetRect(PRECT Rect, INT left, INT top, INT right, INT bottom);
165
166 VOID FASTCALL
167 IntGdiSetEmptyRect(PRECT Rect);
168
169 BOOL FASTCALL
170 IntGdiIsEmptyRect(const RECT* Rect);
171
172 VOID FASTCALL
173 IntGdiOffsetRect(LPRECT Rect, INT x, INT y);
174
175 BOOL FASTCALL
176 IntGdiUnionRect(PRECT Dest, const RECT* Src1, const RECT* Src2);
177
178 BOOL FASTCALL
179 IntGdiIntersectRect(PRECT Dest, const RECT* Src1, const RECT* Src2);
180
181 /* Stock objects */
182
183 BOOL FASTCALL
184 IntSetSysColors(UINT nColors, INT *Elements, COLORREF *Colors);
185
186 BOOL FASTCALL
187 IntGetSysColorBrushes(HBRUSH *Brushes, UINT nBrushes);
188
189 BOOL FASTCALL
190 IntGetSysColorPens(HPEN *Pens, UINT nPens);
191
192 BOOL FASTCALL
193 IntGetSysColors(COLORREF *Colors, UINT nColors);
194
195 /* Other Stuff */
196
197 INT FASTCALL
198 IntGdiGetDeviceCaps(PDC dc, INT Index);
199
200 int STDCALL IntGdiExtSelectClipRgn (PDC dc, HRGN hrgn, int fnMode);
201
202 INT
203 FASTCALL
204 IntGdiEscape(PDC dc,
205 INT Escape,
206 INT InSize,
207 LPCSTR InData,
208 LPVOID OutData);
209
210 BOOL
211 FASTCALL
212 IntEnumDisplaySettings(
213 IN PUNICODE_STRING pDeviceName OPTIONAL,
214 IN DWORD iModeNum,
215 IN OUT LPDEVMODEW pDevMode,
216 IN DWORD dwFlags);
217
218 LONG
219 FASTCALL
220 IntChangeDisplaySettings(
221 IN PUNICODE_STRING pDeviceName OPTIONAL,
222 IN LPDEVMODEW pDevMode,
223 IN DWORD dwflags,
224 IN PVOID lParam OPTIONAL);
225
226 #endif /* _WIN32K_INTGDI_H */
227