Make GetCursorPos call XQueryPointer.
[wine] / include / wine / wingdi16.h
1 #ifndef __WINE_WINE_WINGDI16_H
2 #define __WINE_WINE_WINGDI16_H
3
4 #include "windef.h"
5 #include "wingdi.h"
6 #include "wine/winbase16.h"
7
8 #include "pshpack1.h"
9
10 typedef HANDLE16 HPQ16;
11 typedef HANDLE16 HPJOB16;
12
13 typedef struct
14 {
15     WORD   wFirst;
16     WORD   wSecond;
17     INT16  iKernAmount;
18 } KERNINGPAIR16, *LPKERNINGPAIR16;
19
20 typedef struct
21 {
22     INT16  bmType;
23     INT16  bmWidth;
24     INT16  bmHeight;
25     INT16  bmWidthBytes;
26     BYTE   bmPlanes;
27     BYTE   bmBitsPixel;
28     SEGPTR bmBits;
29 } BITMAP16, *LPBITMAP16;
30
31 typedef struct
32
33     UINT16     lbStyle;
34     COLORREF   lbColor;
35     INT16      lbHatch;
36 } LOGBRUSH16, *LPLOGBRUSH16;
37
38 typedef struct
39 {
40     INT16  lfHeight;
41     INT16  lfWidth;
42     INT16  lfEscapement;
43     INT16  lfOrientation;
44     INT16  lfWeight;
45     BYTE   lfItalic;
46     BYTE   lfUnderline;
47     BYTE   lfStrikeOut;
48     BYTE   lfCharSet;
49     BYTE   lfOutPrecision;
50     BYTE   lfClipPrecision;
51     BYTE   lfQuality;
52     BYTE   lfPitchAndFamily;
53     CHAR   lfFaceName[LF_FACESIZE];
54 } LOGFONT16, *LPLOGFONT16;
55
56 typedef struct
57 {
58   LOGFONT16  elfLogFont;
59   BYTE       elfFullName[LF_FULLFACESIZE];
60   BYTE       elfStyle[LF_FACESIZE];
61 } ENUMLOGFONT16, *LPENUMLOGFONT16;
62
63 typedef struct
64 {
65   LOGFONT16  elfLogFont;
66   BYTE       elfFullName[LF_FULLFACESIZE];
67   BYTE       elfStyle[LF_FACESIZE];
68   BYTE       elfScript[LF_FACESIZE];
69 } ENUMLOGFONTEX16, *LPENUMLOGFONTEX16;
70
71 typedef struct 
72 {
73     INT16  txfHeight;
74     INT16  txfWidth;
75     INT16  txfEscapement;
76     INT16  txfOrientation;
77     INT16  txfWeight;
78     CHAR   txfItalic;
79     CHAR   txfUnderline;
80     CHAR   txfStrikeOut;
81     CHAR   txfOutPrecision;
82     CHAR   txfClipPrecision;
83     INT16  txfAccelerator;
84     INT16  txfOverhang;
85 } TEXTXFORM16, *LPTEXTXFORM16;
86
87 typedef struct
88 {
89     INT16 dfType;
90     INT16 dfPoints;
91     INT16 dfVertRes;
92     INT16 dfHorizRes;
93     INT16 dfAscent;
94     INT16 dfInternalLeading;
95     INT16 dfExternalLeading;
96     CHAR  dfItalic;
97     CHAR  dfUnderline;
98     CHAR  dfStrikeOut;
99     INT16 dfWeight;
100     BYTE  dfCharSet;
101     INT16 dfPixWidth;
102     INT16 dfPixHeight;
103     CHAR  dfPitchAndFamily;
104     INT16 dfAvgWidth;
105     INT16 dfMaxWidth;
106     CHAR  dfFirstChar;
107     CHAR  dfLastChar;
108     CHAR  dfDefaultChar;
109     CHAR  dfBreakChar;
110     INT16 dfWidthBytes;
111     LONG  dfDevice;
112     LONG  dfFace;
113     LONG  dfBitsPointer;
114     LONG  dfBitsOffset;
115     CHAR  dfReserved;
116     /* Fields, introduced for Windows 3.x fonts */
117     LONG  dfFlags;
118     INT16 dfAspace;
119     INT16 dfBspace;
120     INT16 dfCspace;
121     LONG  dfColorPointer;
122     LONG  dfReserved1[4];
123 } FONTINFO16, *LPFONTINFO16;
124
125 typedef struct
126 {
127     INT16     tmHeight;
128     INT16     tmAscent;
129     INT16     tmDescent;
130     INT16     tmInternalLeading;
131     INT16     tmExternalLeading;
132     INT16     tmAveCharWidth;
133     INT16     tmMaxCharWidth;
134     INT16     tmWeight;
135     BYTE      tmItalic;
136     BYTE      tmUnderlined;
137     BYTE      tmStruckOut;
138     BYTE      tmFirstChar;
139     BYTE      tmLastChar;
140     BYTE      tmDefaultChar;
141     BYTE      tmBreakChar;
142     BYTE      tmPitchAndFamily;
143     BYTE      tmCharSet;
144     INT16     tmOverhang;
145     INT16     tmDigitizedAspectX;
146     INT16     tmDigitizedAspectY;
147 } TEXTMETRIC16, *LPTEXTMETRIC16;
148
149 typedef struct _OUTLINETEXTMETRIC16
150 {
151     UINT16          otmSize;
152     TEXTMETRIC16    otmTextMetrics;
153     BYTE            otmFiller;
154     PANOSE          otmPanoseNumber;
155     UINT16          otmfsSelection;
156     UINT16          otmfsType;
157     INT16           otmsCharSlopeRise;
158     INT16           otmsCharSlopeRun;
159     INT16           otmItalicAngle;
160     UINT16          otmEMSquare;
161     INT16           otmAscent;
162     INT16           otmDescent;
163     UINT16          otmLineGap;
164     UINT16          otmsCapEmHeight;
165     UINT16          otmsXHeight;
166     RECT16          otmrcFontBox;
167     INT16           otmMacAscent;
168     INT16           otmMacDescent;
169     UINT16          otmMacLineGap;
170     UINT16          otmusMinimumPPEM;
171     POINT16         otmptSubscriptSize;
172     POINT16         otmptSubscriptOffset;
173     POINT16         otmptSuperscriptSize;
174     POINT16         otmptSuperscriptOffset;
175     UINT16          otmsStrikeoutSize;
176     INT16           otmsStrikeoutPosition;
177     INT16           otmsUnderscoreSize;
178     INT           otmsUnderscorePosition;
179     LPSTR           otmpFamilyName;
180     LPSTR           otmpFaceName;
181     LPSTR           otmpStyleName;
182     LPSTR           otmpFullName;
183 } OUTLINETEXTMETRIC16,*LPOUTLINETEXTMETRIC16;
184
185 typedef struct
186 {
187     INT16     tmHeight;
188     INT16     tmAscent;
189     INT16     tmDescent;
190     INT16     tmInternalLeading;
191     INT16     tmExternalLeading;
192     INT16     tmAveCharWidth;
193     INT16     tmMaxCharWidth;
194     INT16     tmWeight;
195     BYTE      tmItalic;
196     BYTE      tmUnderlined;
197     BYTE      tmStruckOut;
198     BYTE      tmFirstChar;
199     BYTE      tmLastChar;
200     BYTE      tmDefaultChar;
201     BYTE      tmBreakChar;
202     BYTE      tmPitchAndFamily;
203     BYTE      tmCharSet;
204     INT16     tmOverhang;
205     INT16     tmDigitizedAspectX;
206     INT16     tmDigitizedAspectY;
207     DWORD     ntmFlags;
208     UINT16    ntmSizeEM;
209     UINT16    ntmCellHeight;
210     UINT16    ntmAvgWidth;
211 } NEWTEXTMETRIC16,*LPNEWTEXTMETRIC16;
212
213 typedef struct
214 {
215     NEWTEXTMETRIC16     ntmTm;
216     FONTSIGNATURE       ntmFontSig;
217 } NEWTEXTMETRICEX16,*LPNEWTEXTMETRICEX16;
218
219 typedef INT16 CALLBACK (*FONTENUMPROC16)(SEGPTR,SEGPTR,UINT16,LPARAM);
220 typedef INT16 CALLBACK (*FONTENUMPROCEX16)(SEGPTR,SEGPTR,UINT16,LPARAM);
221 typedef VOID  CALLBACK (*LINEDDAPROC16)(INT16,INT16,LPARAM);
222 typedef INT16 CALLBACK (*GOBJENUMPROC16)(SEGPTR,LPARAM);
223
224 typedef struct
225 {
226     UINT16      gmBlackBoxX;
227     UINT16      gmBlackBoxY;
228     POINT16     gmptGlyphOrigin;
229     INT16       gmCellIncX;
230     INT16       gmCellIncY;
231 } GLYPHMETRICS16, *LPGLYPHMETRICS16;
232
233 typedef struct
234 {
235     INT16   abcA;
236     UINT16  abcB;
237     INT16   abcC;
238 } ABC16, *LPABC16;
239
240 typedef struct
241 {
242     UINT16   lopnStyle; 
243     POINT16  lopnWidth;
244     COLORREF lopnColor;
245 } LOGPEN16, *LPLOGPEN16;
246
247 typedef struct
248 {
249     HGDIOBJ16 objectHandle[1];
250 } HANDLETABLE16, *LPHANDLETABLE16;
251
252 typedef struct
253 {
254     INT16        mm;
255     INT16        xExt;
256     INT16        yExt;
257     HMETAFILE16  hMF;
258 } METAFILEPICT16, *LPMETAFILEPICT16;
259
260 typedef struct {
261     EMR    emr;
262     RECTL  rclBounds;
263     DWORD  cpts;
264     POINT16 apts[1];
265 } EMRPOLYLINE16,     *PEMRPOLYLINE16,
266   EMRPOLYBEZIER16,   *PEMRPOLYBEZIER16,
267   EMRPOLYGON16,      *PEMRPOLYGON16,
268   EMRPOLYBEZIERTO16, *PEMRPOLYBEZIERTO16,
269   EMRPOLYLINETO16,   *PEMRPOLYLINETO16;
270
271 typedef struct {
272     EMR    emr;
273     RECTL  rclBounds;
274     DWORD  cpts;
275     POINT16 apts[1];
276     BYTE   abTypes[1];
277 } EMRPOLYDRAW16, *PEMRPOLYDRAW16;
278
279 typedef struct {
280     EMR     emr;
281     RECTL   rclBounds;
282     DWORD   nPolys;
283     DWORD   cpts;
284     DWORD   aPolyCounts[1];
285     POINT16 apts[1];
286 } EMRPOLYPOLYLINE16, *PEMRPOLYPOLYLINE16,
287   EMRPOLYPOLYGON16,  *PEMRPOLYPOLYGON16;
288
289 typedef INT16 CALLBACK (*MFENUMPROC16)(HDC16,HANDLETABLE16*,METARECORD*,
290                                        INT16,LPARAM);
291 typedef struct 
292 {
293     INT16    cbSize;
294     SEGPTR   lpszDocName;
295     SEGPTR   lpszOutput;
296     SEGPTR   lpszDatatype;
297     DWORD    fwType;
298 } DOCINFO16, *LPDOCINFO16;
299
300 typedef BOOL16 CALLBACK (*ABORTPROC16)(HDC16, INT16);
301
302 #define INT_PD_DEFAULT_DEVMODE  1
303 #define INT_PD_DEFAULT_MODEL    2
304
305 #include "poppack.h"
306
307
308 INT16       WINAPI AbortDoc16(HDC16);
309 BOOL16      WINAPI AbortPath16(HDC16);
310 INT16       WINAPI AddFontResource16(LPCSTR);
311 void        WINAPI AnimatePalette16(HPALETTE16,UINT16,UINT16,const PALETTEENTRY*);
312 BOOL16      WINAPI Arc16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16);
313 BOOL16      WINAPI BeginPath16(HDC16);
314 BOOL16      WINAPI BitBlt16(HDC16,INT16,INT16,INT16,INT16,HDC16,INT16,INT16,DWORD);
315 BOOL16      WINAPI Chord16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16);
316 BOOL16      WINAPI CloseFigure16(HDC16);
317 INT16       WINAPI CloseJob16(HPJOB16);
318 HMETAFILE16 WINAPI CloseMetaFile16(HDC16);
319 INT16       WINAPI CombineRgn16(HRGN16,HRGN16,HRGN16,INT16);
320 HMETAFILE16 WINAPI CopyMetaFile16(HMETAFILE16,LPCSTR);
321 HBITMAP16   WINAPI CreateBitmap16(INT16,INT16,UINT16,UINT16,LPCVOID);
322 HBITMAP16   WINAPI CreateBitmapIndirect16(const BITMAP16*);
323 HBRUSH16    WINAPI CreateBrushIndirect16(const LOGBRUSH16*);
324 HBITMAP16   WINAPI CreateCompatibleBitmap16(HDC16,INT16,INT16);
325 HDC16       WINAPI CreateCompatibleDC16(HDC16);
326 HDC16       WINAPI CreateDC16(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*);
327 HBITMAP16   WINAPI CreateDIBitmap16(HDC16,const BITMAPINFOHEADER*,DWORD,
328                                     LPCVOID,const BITMAPINFO*,UINT16);
329 HBRUSH16    WINAPI CreateDIBPatternBrush16(HGLOBAL16,UINT16);
330 HBITMAP16   WINAPI CreateDIBSection16 (HDC16, BITMAPINFO *, UINT16,
331                                        SEGPTR *, HANDLE, DWORD offset);
332 HBITMAP16   WINAPI CreateDiscardableBitmap16(HDC16,INT16,INT16);
333 HRGN16      WINAPI CreateEllipticRgn16(INT16,INT16,INT16,INT16);
334 HRGN16      WINAPI CreateEllipticRgnIndirect16(const RECT16 *);
335 HFONT16     WINAPI CreateFont16(INT16,INT16,INT16,INT16,INT16,BYTE,BYTE,BYTE,
336                                 BYTE,BYTE,BYTE,BYTE,BYTE,LPCSTR);
337 HFONT16     WINAPI CreateFontIndirect16(const LOGFONT16*);
338 HBRUSH16    WINAPI CreateHatchBrush16(INT16,COLORREF);
339 HDC16       WINAPI CreateIC16(LPCSTR,LPCSTR,LPCSTR,const DEVMODEA*);
340 HDC16       WINAPI CreateMetaFile16(LPCSTR);
341 HPALETTE16  WINAPI CreatePalette16(const LOGPALETTE*);
342 HBRUSH16    WINAPI CreatePatternBrush16(HBITMAP16);
343 HPEN16      WINAPI CreatePen16(INT16,INT16,COLORREF);
344 HPEN16      WINAPI CreatePenIndirect16(const LOGPEN16*);
345 HRGN16      WINAPI CreatePolyPolygonRgn16(const POINT16*,const INT16*,INT16,INT16);
346 HRGN16      WINAPI CreatePolygonRgn16(const POINT16*,INT16,INT16);
347 HRGN16      WINAPI CreateRectRgn16(INT16,INT16,INT16,INT16);
348 HRGN16      WINAPI CreateRectRgnIndirect16(const RECT16*);
349 HRGN16      WINAPI CreateRoundRectRgn16(INT16,INT16,INT16,INT16,INT16,INT16);
350 BOOL16      WINAPI CreateScalableFontResource16(UINT16,LPCSTR,LPCSTR,LPCSTR);
351 HBRUSH16    WINAPI CreateSolidBrush16(COLORREF);
352 VOID        WINAPI Death16(HDC16);
353 BOOL16      WINAPI DeleteDC16(HDC16);
354 INT16       WINAPI DeleteJob16(HPJOB16,INT16);
355 BOOL16      WINAPI DeleteMetaFile16(HMETAFILE16);
356 BOOL16      WINAPI DeleteObject16(HGDIOBJ16);
357 BOOL16      WINAPI DPtoLP16(HDC16,LPPOINT16,INT16);
358 DWORD       WINAPI DrvGetPrinterData16(LPSTR,LPSTR,LPDWORD,LPBYTE,int cbData,LPDWORD);
359 DWORD       WINAPI DrvSetPrinterData16(LPSTR,LPSTR,DWORD,LPBYTE,DWORD);
360 BOOL16      WINAPI Ellipse16(HDC16,INT16,INT16,INT16,INT16);
361 INT16       WINAPI EndDoc16(HDC16);
362 INT16       WINAPI EndPage16(HDC16);
363 BOOL16      WINAPI EndPath16(HDC16);
364 INT16       WINAPI EndSpoolPage16(HPJOB16);
365 INT16       WINAPI EnumFontFamilies16(HDC16,LPCSTR,FONTENUMPROC16,LPARAM);
366 INT16       WINAPI EnumFontFamiliesEx16(HDC16,LPLOGFONT16,FONTENUMPROCEX16,LPARAM,DWORD);
367 INT16       WINAPI EnumFonts16(HDC16,LPCSTR,FONTENUMPROC16,LPARAM);
368 BOOL16      WINAPI EnumMetaFile16(HDC16,HMETAFILE16,MFENUMPROC16,LPARAM);
369 INT16       WINAPI EnumObjects16(HDC16,INT16,GOBJENUMPROC16,LPARAM);
370 BOOL16      WINAPI EqualRgn16(HRGN16,HRGN16);
371 INT16       WINAPI Escape16(HDC16,INT16,INT16,SEGPTR,SEGPTR);
372 INT16       WINAPI ExcludeClipRect16(HDC16,INT16,INT16,INT16,INT16);
373 INT16       WINAPI ExcludeVisRect16(HDC16,INT16,INT16,INT16,INT16);
374 HPEN16      WINAPI ExtCreatePen16(DWORD,DWORD,const LOGBRUSH16*,DWORD,const DWORD*);
375 BOOL16      WINAPI ExtFloodFill16(HDC16,INT16,INT16,COLORREF,UINT16);
376 BOOL16      WINAPI ExtTextOut16(HDC16,INT16,INT16,UINT16,const RECT16*,
377                                 LPCSTR,UINT16,const INT16*);
378 BOOL16      WINAPI FastWindowFrame16(HDC16,const RECT16*,INT16,INT16,DWORD);
379 BOOL16      WINAPI FillPath16(HDC16);
380 BOOL16      WINAPI FillRgn16(HDC16,HRGN16,HBRUSH16);
381 BOOL16      WINAPI FlattenPath16(HDC16);
382 BOOL16      WINAPI FloodFill16(HDC16,INT16,INT16,COLORREF);
383 BOOL16      WINAPI FrameRgn16(HDC16,HRGN16,HBRUSH16,INT16,INT16);
384 UINT16      WINAPI GDIRealizePalette16(HDC16);
385 DWORD       WINAPI GdiSeeGdiDo16(WORD,WORD,WORD,WORD);
386 HPALETTE16  WINAPI GDISelectPalette16(HDC16,HPALETTE16,WORD);
387 INT16       WINAPI GetArcDirection16(HDC16);
388 BOOL16      WINAPI GetAspectRatioFilterEx16(HDC16,LPSIZE16);
389 LONG        WINAPI GetBitmapBits16(HBITMAP16,LONG,LPVOID);
390 DWORD       WINAPI GetBitmapDimension16(HBITMAP16);
391 BOOL16      WINAPI GetBitmapDimensionEx16(HBITMAP16,LPSIZE16);
392 DWORD       WINAPI GetBrushOrg16(HDC16);
393 BOOL16      WINAPI GetBrushOrgEx16(HDC16,LPPOINT16);
394 COLORREF    WINAPI GetBkColor16(HDC16);
395 INT16       WINAPI GetBkMode16(HDC16);
396 UINT16      WINAPI GetBoundsRect16(HDC16,LPRECT16,UINT16);
397 BOOL16      WINAPI GetCharABCWidths16(HDC16,UINT16,UINT16,LPABC16);
398 BOOL16      WINAPI GetCharWidth16(HDC16,UINT16,UINT16,LPINT16);
399 INT16       WINAPI GetClipBox16(HDC16,LPRECT16);
400 HRGN16      WINAPI GetClipRgn16(HDC16);
401 HFONT16     WINAPI GetCurLogFont16(HDC16);
402 DWORD       WINAPI GetCurrentPosition16(HDC16);
403 BOOL16      WINAPI GetCurrentPositionEx16(HDC16,LPPOINT16);
404 DWORD       WINAPI GetDCHook(HDC16,FARPROC16*);
405 DWORD       WINAPI GetDCOrg16(HDC16);
406 HDC16       WINAPI GetDCState16(HDC16);
407 INT16       WINAPI GetDeviceCaps16(HDC16,INT16);
408 UINT16      WINAPI GetDIBColorTable16(HDC16,UINT16,UINT16,RGBQUAD*);
409 INT16       WINAPI GetDIBits16(HDC16,HBITMAP16,UINT16,UINT16,LPVOID,LPBITMAPINFO,UINT16);
410 INT16       WINAPI GetEnvironment16(LPCSTR,LPDEVMODEA,UINT16);
411 DWORD       WINAPI GetFontData16(HDC16,DWORD,DWORD,LPVOID,DWORD);
412 DWORD       WINAPI GetFontLanguageInfo16(HDC16);
413 DWORD       WINAPI GetGlyphOutline16(HDC16,UINT16,UINT16,LPGLYPHMETRICS16,DWORD,LPVOID,const MAT2*);
414 INT16       WINAPI GetKerningPairs16(HDC16,INT16,LPKERNINGPAIR16);
415 INT16       WINAPI GetMapMode16(HDC16);
416 HMETAFILE16 WINAPI GetMetaFile16(LPCSTR);
417 HGLOBAL16   WINAPI GetMetaFileBits16(HMETAFILE16);
418 DWORD       WINAPI GetNearestColor16(HDC16,DWORD);
419 UINT16      WINAPI GetNearestPaletteIndex16(HPALETTE16,COLORREF);
420 INT16       WINAPI GetObject16(HANDLE16,INT16,LPVOID);
421 UINT16      WINAPI GetOutlineTextMetrics16(HDC16,UINT16,LPOUTLINETEXTMETRIC16);
422 UINT16      WINAPI GetPaletteEntries16(HPALETTE16,UINT16,UINT16,LPPALETTEENTRY);
423 INT16       WINAPI GetPath16(HDC16,LPPOINT16,LPBYTE,INT16);
424 COLORREF    WINAPI GetPixel16(HDC16,INT16,INT16);
425 INT16       WINAPI GetPolyFillMode16(HDC16);
426 BOOL16      WINAPI GetRasterizerCaps16(LPRASTERIZER_STATUS,UINT16);
427 DWORD       WINAPI GetRegionData16(HRGN16,DWORD,LPRGNDATA);
428 INT16       WINAPI GetRelAbs16(HDC16);
429 INT16       WINAPI GetRgnBox16(HRGN16,LPRECT16);
430 INT16       WINAPI GetROP216(HDC16);
431 DWORD       WINAPI GetSpoolJob16(int,LONG);
432 HGDIOBJ16   WINAPI GetStockObject16(INT16);
433 INT16       WINAPI GetStretchBltMode16(HDC16);
434 UINT16      WINAPI GetSystemPaletteEntries16(HDC16,UINT16,UINT16,LPPALETTEENTRY);
435 UINT16      WINAPI GetSystemPaletteUse16(HDC16);
436 UINT16      WINAPI GetTextAlign16(HDC16);
437 INT16       WINAPI GetTextCharacterExtra16(HDC16);
438 UINT16      WINAPI GetTextCharset16(HDC16);
439 COLORREF    WINAPI GetTextColor16(HDC16);
440 DWORD       WINAPI GetTextExtent16(HDC16,LPCSTR,INT16);
441 BOOL16      WINAPI GetTextExtentPoint16(HDC16,LPCSTR,INT16,LPSIZE16);
442 INT16       WINAPI GetTextFace16(HDC16,INT16,LPSTR);
443 BOOL16      WINAPI GetTextMetrics16(HDC16,LPTEXTMETRIC16);
444 DWORD       WINAPI GetViewportExt16(HDC16);
445 BOOL16      WINAPI GetViewportExtEx16(HDC16,LPSIZE16);
446 BOOL16      WINAPI GetViewportOrgEx16(HDC16,LPPOINT16);
447 DWORD       WINAPI GetViewportOrg16(HDC16);
448 DWORD       WINAPI GetWindowExt16(HDC16);
449 DWORD       WINAPI GetWindowOrg16(HDC16);
450 BOOL16      WINAPI GetWindowExtEx16(HDC16,LPSIZE16);
451 BOOL16      WINAPI GetWindowOrgEx16(HDC16,LPPOINT16);
452 HRGN16      WINAPI InquireVisRgn16(HDC16);
453 INT16       WINAPI IntersectClipRect16(HDC16,INT16,INT16,INT16,INT16);
454 INT16       WINAPI IntersectVisRect16(HDC16,INT16,INT16,INT16,INT16);
455 BOOL16      WINAPI InvertRgn16(HDC16,HRGN16);
456 BOOL16      WINAPI IsDCCurrentPalette16(HDC16);
457 BOOL16      WINAPI IsGDIObject16(HGDIOBJ16);
458 BOOL16      WINAPI IsValidMetaFile16(HMETAFILE16);
459 VOID        WINAPI LineDDA16(INT16,INT16,INT16,INT16,LINEDDAPROC16,LPARAM);
460 BOOL16      WINAPI LineTo16(HDC16,INT16,INT16);
461 BOOL16      WINAPI LPtoDP16(HDC16,LPPOINT16,INT16);
462 DWORD       WINAPI MoveTo16(HDC16,INT16,INT16);
463 BOOL16      WINAPI MoveToEx16(HDC16,INT16,INT16,LPPOINT16);
464 INT16       WINAPI MulDiv16(INT16,INT16,INT16);
465 INT16       WINAPI OffsetClipRgn16(HDC16,INT16,INT16);
466 INT16       WINAPI OffsetRgn16(HRGN16,INT16,INT16);
467 DWORD       WINAPI OffsetViewportOrg16(HDC16,INT16,INT16);
468 BOOL16      WINAPI OffsetViewportOrgEx16(HDC16,INT16,INT16,LPPOINT16);
469 INT16       WINAPI OffsetVisRgn16(HDC16,INT16,INT16);
470 DWORD       WINAPI OffsetWindowOrg16(HDC16,INT16,INT16);
471 BOOL16      WINAPI OffsetWindowOrgEx16(HDC16,INT16,INT16,LPPOINT16);
472 HANDLE16    WINAPI OpenJob16(LPCSTR,LPCSTR,HDC16);
473 BOOL16      WINAPI PaintRgn16(HDC16,HRGN16);
474 BOOL16      WINAPI PatBlt16(HDC16,INT16,INT16,INT16,INT16,DWORD);
475 HRGN16      WINAPI PathToRegion16(HDC16);
476 BOOL16      WINAPI Pie16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,INT16,INT16);
477 BOOL16      WINAPI PlayMetaFile16(HDC16,HMETAFILE16);
478 VOID        WINAPI PlayMetaFileRecord16(HDC16,LPHANDLETABLE16,LPMETARECORD,UINT16);
479 BOOL16      WINAPI PolyBezier16(HDC16,const POINT16*,INT16);
480 BOOL16      WINAPI PolyBezierTo16(HDC16,const POINT16*,INT16);
481 BOOL16      WINAPI PolyPolygon16(HDC16,const POINT16*,const INT16*,UINT16);
482 BOOL16      WINAPI Polygon16(HDC16,const POINT16*,INT16);
483 BOOL16      WINAPI Polyline16(HDC16,const POINT16*,INT16);
484 BOOL16      WINAPI PtInRegion16(HRGN16,INT16,INT16);
485 BOOL16      WINAPI PtVisible16(HDC16,INT16,INT16);
486 BOOL16      WINAPI QueryAbort16(HDC16,INT16);
487 UINT16      WINAPI RealizeDefaultPalette16(HDC16);
488 BOOL16      WINAPI Rectangle16(HDC16,INT16,INT16,INT16,INT16);
489 BOOL16      WINAPI RectInRegion16(HRGN16,const RECT16 *);
490 BOOL16      WINAPI RectVisible16(HDC16,const RECT16*);
491 BOOL16      WINAPI RemoveFontResource16(LPCSTR);
492 HDC16       WINAPI ResetDC16(HDC16,const DEVMODEA *);
493 BOOL16      WINAPI ResizePalette16(HPALETTE16,UINT16);
494 BOOL16      WINAPI RestoreDC16(HDC16,INT16);
495 INT16       WINAPI RestoreVisRgn16(HDC16);
496 VOID        WINAPI Resurrection16(HDC16,WORD,WORD,WORD,WORD,WORD,WORD);
497 BOOL16      WINAPI RoundRect16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16);
498 INT16       WINAPI SaveDC16(HDC16);
499 HRGN16      WINAPI SaveVisRgn16(HDC16);
500 DWORD       WINAPI ScaleViewportExt16(HDC16,INT16,INT16,INT16,INT16);
501 BOOL16      WINAPI ScaleViewportExtEx16(HDC16,INT16,INT16,INT16,INT16,LPSIZE16);
502 DWORD       WINAPI ScaleWindowExt16(HDC16,INT16,INT16,INT16,INT16);
503 BOOL16      WINAPI ScaleWindowExtEx16(HDC16,INT16,INT16,INT16,INT16,LPSIZE16);
504 BOOL16      WINAPI SelectClipPath16(HDC16,INT16);
505 INT16       WINAPI SelectClipRgn16(HDC16,HRGN16);
506 HGDIOBJ16   WINAPI SelectObject16(HDC16,HGDIOBJ16);
507 INT16       WINAPI SelectVisRgn16(HDC16,HRGN16);
508 INT16       WINAPI SetAbortProc16(HDC16,SEGPTR);
509 INT16       WINAPI SetArcDirection16(HDC16,INT16);
510 LONG        WINAPI SetBitmapBits16(HBITMAP16,LONG,LPCVOID);
511 DWORD       WINAPI SetBitmapDimension16(HBITMAP16,INT16,INT16);
512 BOOL16      WINAPI SetBitmapDimensionEx16(HBITMAP16,INT16,INT16,LPSIZE16);
513 COLORREF    WINAPI SetBkColor16(HDC16,COLORREF);
514 INT16       WINAPI SetBkMode16(HDC16,INT16);
515 UINT16      WINAPI SetBoundsRect16(HDC16,const RECT16*,UINT16);
516 DWORD       WINAPI SetBrushOrg16(HDC16,INT16,INT16);
517 BOOL16      WINAPI SetDCHook(HDC16,FARPROC16,DWORD);
518 DWORD       WINAPI SetDCOrg16(HDC16,INT16,INT16);
519 VOID        WINAPI SetDCState16(HDC16,HDC16);
520 UINT16      WINAPI SetDIBColorTable16(HDC16,UINT16,UINT16,RGBQUAD*);
521 INT16       WINAPI SetDIBits16(HDC16,HBITMAP16,UINT16,UINT16,LPCVOID,const BITMAPINFO*,UINT16);
522 INT16       WINAPI SetDIBitsToDevice16(HDC16,INT16,INT16,INT16,INT16,INT16,
523                          INT16,UINT16,UINT16,LPCVOID,const BITMAPINFO*,UINT16);
524 INT16       WINAPI SetEnvironment16(LPCSTR,LPDEVMODEA,UINT16);
525 WORD        WINAPI SetHookFlags16(HDC16,WORD);
526 INT16       WINAPI SetMapMode16(HDC16,INT16);
527 DWORD       WINAPI SetMapperFlags16(HDC16,DWORD);
528 HMETAFILE16 WINAPI SetMetaFileBits16(HGLOBAL16);
529 UINT16      WINAPI SetPaletteEntries16(HPALETTE16,UINT16,UINT16,LPPALETTEENTRY);
530 COLORREF    WINAPI SetPixel16(HDC16,INT16,INT16,COLORREF);
531 INT16       WINAPI SetPolyFillMode16(HDC16,INT16);
532 VOID        WINAPI SetRectRgn16(HRGN16,INT16,INT16,INT16,INT16);
533 INT16       WINAPI SetRelAbs16(HDC16,INT16);
534 INT16       WINAPI SetROP216(HDC16,INT16);
535 INT16       WINAPI SetStretchBltMode16(HDC16,INT16);
536 UINT16      WINAPI SetSystemPaletteUse16(HDC16,UINT16);
537 UINT16      WINAPI SetTextAlign16(HDC16,UINT16);
538 INT16       WINAPI SetTextCharacterExtra16(HDC16,INT16);
539 COLORREF    WINAPI SetTextColor16(HDC16,COLORREF);
540 INT16       WINAPI SetTextJustification16(HDC16,INT16,INT16);
541 DWORD       WINAPI SetViewportExt16(HDC16,INT16,INT16);
542 BOOL16      WINAPI SetViewportExtEx16(HDC16,INT16,INT16,LPSIZE16);
543 DWORD       WINAPI SetViewportOrg16(HDC16,INT16,INT16);
544 BOOL16      WINAPI SetViewportOrgEx16(HDC16,INT16,INT16,LPPOINT16);
545 DWORD       WINAPI SetWindowExt16(HDC16,INT16,INT16);
546 BOOL16      WINAPI SetWindowExtEx16(HDC16,INT16,INT16,LPSIZE16);
547 DWORD       WINAPI SetWindowOrg16(HDC16,INT16,INT16);
548 BOOL16      WINAPI SetWindowOrgEx16(HDC16,INT16,INT16,LPPOINT16);
549 INT16       WINAPI StartDoc16(HDC16,const DOCINFO16*);
550 INT16       WINAPI StartPage16(HDC16);
551 INT16       WINAPI StartSpoolPage16(HPJOB16);
552 BOOL16      WINAPI StretchBlt16(HDC16,INT16,INT16,INT16,INT16,HDC16,INT16,
553                                 INT16,INT16,INT16,DWORD);
554 INT16       WINAPI StretchDIBits16(HDC16,INT16,INT16,INT16,INT16,INT16,INT16,
555                        INT16,INT16,const VOID*,const BITMAPINFO*,UINT16,DWORD);
556 BOOL16      WINAPI StrokeAndFillPath16(HDC16);
557 BOOL16      WINAPI StrokePath16(HDC16);
558 BOOL16      WINAPI TextOut16(HDC16,INT16,INT16,LPCSTR,INT16);
559 BOOL16      WINAPI UnrealizeObject16(HGDIOBJ16);
560 INT16       WINAPI UpdateColors16(HDC16);
561 BOOL16      WINAPI WidenPath16(HDC16);
562 INT16       WINAPI WriteDialog16(HPJOB16,LPSTR,INT16);
563 INT16       WINAPI WriteSpool16(HPJOB16,LPSTR,INT16);
564
565
566 inline static void CONV_POINT16TO32( const POINT16 *p16, POINT *p32 )
567 {
568     p32->x = p16->x;
569     p32->y = p16->y;
570 }
571
572 inline static void CONV_POINT32TO16( const POINT *p32, POINT16 *p16 )
573 {
574     p16->x = (INT16)p32->x;
575     p16->y = (INT16)p32->y;
576 }
577
578 inline static void CONV_RECT16TO32( const RECT16 *r16, RECT *r32 )
579 {
580     r32->left   = r16->left;
581     r32->top    = r16->top;
582     r32->right  = r16->right;
583     r32->bottom = r16->bottom;
584 }
585
586 inline static void CONV_RECT32TO16( const RECT *r32, RECT16 *r16 )
587 {
588     r16->left   = (INT16)r32->left;
589     r16->top    = (INT16)r32->top;
590     r16->right  = (INT16)r32->right;
591     r16->bottom = (INT16)r32->bottom;
592 }
593
594 #endif /* __WINE_WINE_WINGDI16_H */