Added support for WAVE_FORMAT_QUERY flag in wodOpen.
[wine.git] / include / metafiledrv.h
blobd9faf605a43ceb72d09de0efb68c4386c51cbaea
1 /*
2 * Metafile driver definitions
3 */
5 #ifndef __WINE_METAFILEDRV_H
6 #define __WINE_METAFILEDRV_H
8 #include "wingdi.h"
9 #include "gdi.h"
11 /* Metafile driver physical DC */
13 typedef struct
15 METAHEADER *mh; /* Pointer to metafile header */
16 UINT nextHandle; /* Next handle number */
17 HFILE hFile; /* HFILE for disk based MetaFile */
18 } METAFILEDRV_PDEVICE;
21 extern BOOL MFDRV_MetaParam0(DC *dc, short func);
22 extern BOOL MFDRV_MetaParam1(DC *dc, short func, short param1);
23 extern BOOL MFDRV_MetaParam2(DC *dc, short func, short param1, short param2);
24 extern BOOL MFDRV_MetaParam4(DC *dc, short func, short param1, short param2,
25 short param3, short param4);
26 extern BOOL MFDRV_MetaParam6(DC *dc, short func, short param1, short param2,
27 short param3, short param4, short param5,
28 short param6);
29 extern BOOL MFDRV_MetaParam8(DC *dc, short func, short param1, short param2,
30 short param3, short param4, short param5,
31 short param6, short param7, short param8);
32 extern BOOL MFDRV_WriteRecord(DC *dc, METARECORD *mr, DWORD rlen);
33 extern int MFDRV_AddHandleDC( DC *dc );
34 extern INT16 MFDRV_CreateBrushIndirect( DC *dc, HBRUSH hBrush );
36 /* Metafile driver functions */
38 extern BOOL MFDRV_Arc( DC *dc, INT left, INT top, INT right, INT bottom,
39 INT xstart, INT ystart, INT xend, INT yend );
40 extern BOOL MFDRV_BitBlt( DC *dcDst, INT xDst, INT yDst, INT width,
41 INT height, DC *dcSrc, INT xSrc, INT ySrc,
42 DWORD rop );
43 extern BOOL MFDRV_Chord( DC *dc, INT left, INT top, INT right,
44 INT bottom, INT xstart, INT ystart, INT xend,
45 INT yend );
46 extern BOOL MFDRV_Ellipse( DC *dc, INT left, INT top,
47 INT right, INT bottom );
48 extern INT MFDRV_ExcludeClipRect( DC *dc, INT left, INT top, INT right, INT
49 bottom );
50 extern BOOL MFDRV_ExtFloodFill( DC *dc, INT x, INT y,
51 COLORREF color, UINT fillType );
52 extern BOOL MFDRV_ExtTextOut( DC *dc, INT x, INT y,
53 UINT flags, const RECT *lprect, LPCSTR str,
54 UINT count, const INT *lpDx );
55 extern BOOL MFDRV_FillRgn( DC *dc, HRGN hrgn, HBRUSH hbrush );
56 extern BOOL MFDRV_FrameRgn( DC *dc, HRGN hrgn, HBRUSH hbrush, INT x, INT y );
57 extern INT MFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right, INT
58 bottom );
59 extern BOOL MFDRV_InvertRgn( DC *dc, HRGN hrgn );
60 extern BOOL MFDRV_LineTo( DC *dc, INT x, INT y );
61 extern BOOL MFDRV_MoveToEx( DC *dc, INT x, INT y, LPPOINT pt );
62 extern INT MFDRV_OffsetClipRgn( DC *dc, INT x, INT y );
63 extern BOOL MFDRV_OffsetViewportOrg( DC *dc, INT x, INT y );
64 extern BOOL MFDRV_OffsetWindowOrg( DC *dc, INT x, INT y );
65 extern BOOL MFDRV_PaintRgn( DC *dc, HRGN hrgn );
66 extern BOOL MFDRV_PatBlt( DC *dc, INT left, INT top, INT width, INT height,
67 DWORD rop );
68 extern BOOL MFDRV_Pie( DC *dc, INT left, INT top, INT right,
69 INT bottom, INT xstart, INT ystart, INT xend,
70 INT yend );
71 extern BOOL MFDRV_PolyPolygon( DC *dc, const POINT* pt, const INT* counts,
72 UINT polygons);
73 extern BOOL MFDRV_Polygon( DC *dc, const POINT* pt, INT count );
74 extern BOOL MFDRV_Polyline( DC *dc, const POINT* pt,INT count);
75 extern BOOL MFDRV_Rectangle( DC *dc, INT left, INT top,
76 INT right, INT bottom);
77 extern BOOL MFDRV_RestoreDC( DC *dc, INT level );
78 extern BOOL MFDRV_RoundRect( DC *dc, INT left, INT top,
79 INT right, INT bottom, INT ell_width,
80 INT ell_height );
81 extern INT MFDRV_SaveDC( DC *dc );
82 extern BOOL MFDRV_ScaleViewportExt( DC *dc, INT xNum, INT xDenom, INT yNum,
83 INT yDenom );
84 extern BOOL MFDRV_ScaleWindowExt( DC *dc, INT xNum, INT xDenom, INT yNum,
85 INT yDenom );
86 extern HGDIOBJ MFDRV_SelectObject( DC *dc, HGDIOBJ handle );
87 extern COLORREF MFDRV_SetBkColor( DC *dc, COLORREF color );
88 extern INT MFDRV_SetBkMode( DC *dc, INT mode );
89 extern INT MFDRV_SetMapMode( DC *dc, INT mode );
90 extern DWORD MFDRV_SetMapperFlags( DC *dc, DWORD flags );
91 extern COLORREF MFDRV_SetPixel( DC *dc, INT x, INT y, COLORREF color );
92 extern INT MFDRV_SetPolyFillMode( DC *dc, INT mode );
93 extern INT MFDRV_SetROP2( DC *dc, INT rop );
94 extern INT MFDRV_SetRelAbs( DC *dc, INT mode );
95 extern INT MFDRV_SetStretchBltMode( DC *dc, INT mode );
96 extern UINT MFDRV_SetTextAlign( DC *dc, UINT align );
97 extern INT MFDRV_SetTextCharacterExtra( DC *dc, INT extra );
98 extern COLORREF MFDRV_SetTextColor( DC *dc, COLORREF color );
99 extern INT MFDRV_SetTextJustification( DC *dc, INT extra, INT breaks );
100 extern BOOL MFDRV_SetViewportExt( DC *dc, INT x, INT y );
101 extern BOOL MFDRV_SetViewportOrg( DC *dc, INT x, INT y );
102 extern BOOL MFDRV_SetWindowExt( DC *dc, INT x, INT y );
103 extern BOOL MFDRV_SetWindowOrg( DC *dc, INT x, INT y );
104 extern BOOL MFDRV_StretchBlt( DC *dcDst, INT xDst, INT yDst, INT widthDst,
105 INT heightDst, DC *dcSrc, INT xSrc, INT ySrc,
106 INT widthSrc, INT heightSrc, DWORD rop );
107 extern BOOL MFDRV_PaintRgn( DC *dc, HRGN hrgn );
108 extern INT MFDRV_SetDIBitsToDevice( DC *dc, INT xDest, INT yDest, DWORD cx,
109 DWORD cy, INT xSrc, INT ySrc,
110 UINT startscan, UINT lines, LPCVOID bits,
111 const BITMAPINFO *info, UINT coloruse );
112 extern INT MFDRV_StretchDIBits( DC *dc, INT xDst, INT yDst, INT widthDst,
113 INT heightDst, INT xSrc, INT ySrc,
114 INT widthSrc, INT heightSrc, const void *bits,
115 const BITMAPINFO *info, UINT wUsage,
116 DWORD dwRop );
118 #endif /* __WINE_METAFILEDRV_H */