Fixed header dependencies to be fully compatible with the Windows
[wine/multimedia.git] / dlls / gdi / mfdrv / metafiledrv.h
blob28f61df12771c81d7fff396345b6f3f5233f5b7e
1 /*
2 * Metafile driver definitions
4 * Copyright 1996 Alexandre Julliard
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_METAFILEDRV_H
22 #define __WINE_METAFILEDRV_H
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "gdi.h"
31 /* Metafile driver physical DC */
33 typedef struct
35 HDC hdc;
36 DC *dc;
37 METAHEADER *mh; /* Pointer to metafile header */
38 UINT nextHandle; /* Next handle number */
39 HANDLE hFile; /* Handle for disk based MetaFile */
40 } METAFILEDRV_PDEVICE;
43 extern BOOL MFDRV_MetaParam0(PHYSDEV dev, short func);
44 extern BOOL MFDRV_MetaParam1(PHYSDEV dev, short func, short param1);
45 extern BOOL MFDRV_MetaParam2(PHYSDEV dev, short func, short param1, short param2);
46 extern BOOL MFDRV_MetaParam4(PHYSDEV dev, short func, short param1, short param2,
47 short param3, short param4);
48 extern BOOL MFDRV_MetaParam6(PHYSDEV dev, short func, short param1, short param2,
49 short param3, short param4, short param5,
50 short param6);
51 extern BOOL MFDRV_MetaParam8(PHYSDEV dev, short func, short param1, short param2,
52 short param3, short param4, short param5,
53 short param6, short param7, short param8);
54 extern BOOL MFDRV_WriteRecord(PHYSDEV dev, METARECORD *mr, DWORD rlen);
55 extern int MFDRV_AddHandleDC( PHYSDEV dev );
56 extern INT16 MFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush );
58 /* Metafile driver functions */
60 extern BOOL MFDRV_AbortPath( PHYSDEV dev );
61 extern BOOL MFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right, INT bottom,
62 INT xstart, INT ystart, INT xend, INT yend );
63 extern BOOL MFDRV_BeginPath( PHYSDEV dev );
64 extern BOOL MFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst, INT width,
65 INT height, PHYSDEV devSrc, INT xSrc, INT ySrc,
66 DWORD rop );
67 extern BOOL MFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
68 INT bottom, INT xstart, INT ystart, INT xend,
69 INT yend );
70 extern BOOL MFDRV_CloseFigure( PHYSDEV dev );
71 extern BOOL MFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
72 INT right, INT bottom );
73 extern BOOL MFDRV_EndPath( PHYSDEV dev );
74 extern INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
75 bottom );
76 extern INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
77 INT cbOutput, LPVOID out_data );
78 extern BOOL MFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT fillType );
79 extern INT MFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode );
80 extern BOOL MFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
81 UINT flags, const RECT *lprect, LPCWSTR str,
82 UINT count, const INT *lpDx );
83 extern BOOL MFDRV_FillPath( PHYSDEV dev );
84 extern BOOL MFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
85 extern BOOL MFDRV_FlattenPath( PHYSDEV dev );
86 extern BOOL MFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT x, INT y );
87 extern INT MFDRV_GetDeviceCaps( PHYSDEV dev , INT cap );
88 extern INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
89 bottom );
90 extern BOOL MFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
91 extern BOOL MFDRV_LineTo( PHYSDEV dev, INT x, INT y );
92 extern BOOL MFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
93 extern INT MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
94 extern INT MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
95 extern INT MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
96 extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
97 extern BOOL MFDRV_PatBlt( PHYSDEV dev, INT left, INT top, INT width, INT height,
98 DWORD rop );
99 extern BOOL MFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
100 INT bottom, INT xstart, INT ystart, INT xend,
101 INT yend );
102 extern BOOL MFDRV_PolyBezier( PHYSDEV dev, const POINT* pt, DWORD count );
103 extern BOOL MFDRV_PolyBezierTo( PHYSDEV dev, const POINT* pt, DWORD count );
104 extern BOOL MFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt, const INT* counts,
105 UINT polygons);
106 extern BOOL MFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
107 extern BOOL MFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
108 extern BOOL MFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
109 INT right, INT bottom);
110 extern BOOL MFDRV_RestoreDC( PHYSDEV dev, INT level );
111 extern BOOL MFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
112 INT right, INT bottom, INT ell_width,
113 INT ell_height );
114 extern INT MFDRV_SaveDC( PHYSDEV dev );
115 extern INT MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
116 INT yDenom );
117 extern INT MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
118 INT yDenom );
119 extern HBITMAP MFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
120 extern HBRUSH MFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
121 extern BOOL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
122 extern HFONT MFDRV_SelectFont( PHYSDEV dev, HFONT handle );
123 extern HPEN MFDRV_SelectPen( PHYSDEV dev, HPEN handle );
124 extern HPALETTE MFDRV_SelectPalette( PHYSDEV dev, HPALETTE hPalette, BOOL bForceBackground);
125 extern UINT MFDRV_RealizePalette(PHYSDEV dev, HPALETTE hPalette, BOOL primary);
126 extern COLORREF MFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
127 extern INT MFDRV_SetBkMode( PHYSDEV dev, INT mode );
128 extern INT MFDRV_SetMapMode( PHYSDEV dev, INT mode );
129 extern DWORD MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
130 extern COLORREF MFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
131 extern INT MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
132 extern INT MFDRV_SetROP2( PHYSDEV dev, INT rop );
133 extern INT MFDRV_SetRelAbs( PHYSDEV dev, INT mode );
134 extern INT MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
135 extern UINT MFDRV_SetTextAlign( PHYSDEV dev, UINT align );
136 extern INT MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra );
137 extern COLORREF MFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
138 extern INT MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks );
139 extern INT MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
140 extern INT MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
141 extern INT MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
142 extern INT MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
143 extern BOOL MFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst, INT widthDst,
144 INT heightDst, PHYSDEV devSrc, INT xSrc, INT ySrc,
145 INT widthSrc, INT heightSrc, DWORD rop );
146 extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
147 extern INT MFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest, DWORD cx,
148 DWORD cy, INT xSrc, INT ySrc,
149 UINT startscan, UINT lines, LPCVOID bits,
150 const BITMAPINFO *info, UINT coloruse );
151 extern INT MFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
152 INT heightDst, INT xSrc, INT ySrc,
153 INT widthSrc, INT heightSrc, const void *bits,
154 const BITMAPINFO *info, UINT wUsage,
155 DWORD dwRop );
156 extern BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev );
157 extern BOOL MFDRV_StrokePath( PHYSDEV dev );
158 extern BOOL MFDRV_WidenPath( PHYSDEV dev );
160 #endif /* __WINE_METAFILEDRV_H */