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
28 /* Metafile driver physical DC */
34 METAHEADER *mh; /* Pointer to metafile header */
35 UINT nextHandle; /* Next handle number */
36 HFILE hFile; /* HFILE for disk based MetaFile */
37 } METAFILEDRV_PDEVICE;
40 extern BOOL MFDRV_MetaParam0(PHYSDEV dev, short func);
41 extern BOOL MFDRV_MetaParam1(PHYSDEV dev, short func, short param1);
42 extern BOOL MFDRV_MetaParam2(PHYSDEV dev, short func, short param1, short param2);
43 extern BOOL MFDRV_MetaParam4(PHYSDEV dev, short func, short param1, short param2,
44 short param3, short param4);
45 extern BOOL MFDRV_MetaParam6(PHYSDEV dev, short func, short param1, short param2,
46 short param3, short param4, short param5,
48 extern BOOL MFDRV_MetaParam8(PHYSDEV dev, short func, short param1, short param2,
49 short param3, short param4, short param5,
50 short param6, short param7, short param8);
51 extern BOOL MFDRV_WriteRecord(PHYSDEV dev, METARECORD *mr, DWORD rlen);
52 extern int MFDRV_AddHandleDC( PHYSDEV dev );
53 extern INT16 MFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush );
55 /* Metafile driver functions */
57 extern BOOL MFDRV_AbortPath( PHYSDEV dev );
58 extern BOOL MFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right, INT bottom,
59 INT xstart, INT ystart, INT xend, INT yend );
60 extern BOOL MFDRV_BeginPath( PHYSDEV dev );
61 extern BOOL MFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst, INT width,
62 INT height, PHYSDEV devSrc, INT xSrc, INT ySrc,
64 extern BOOL MFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
65 INT bottom, INT xstart, INT ystart, INT xend,
67 extern BOOL MFDRV_CloseFigure( PHYSDEV dev );
68 extern BOOL MFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
69 INT right, INT bottom );
70 extern BOOL MFDRV_EndPath( PHYSDEV dev );
71 extern INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
73 extern INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
74 INT cbOutput, LPVOID out_data );
75 extern BOOL MFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y,
76 COLORREF color, UINT fillType );
77 extern BOOL MFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
78 UINT flags, const RECT *lprect, LPCWSTR str,
79 UINT count, const INT *lpDx );
80 extern BOOL MFDRV_FillPath( PHYSDEV dev );
81 extern BOOL MFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
82 extern BOOL MFDRV_FlattenPath( PHYSDEV dev );
83 extern BOOL MFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT x, INT y );
84 extern INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
86 extern BOOL MFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
87 extern BOOL MFDRV_LineTo( PHYSDEV dev, INT x, INT y );
88 extern BOOL MFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
89 extern INT MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
90 extern BOOL MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
91 extern BOOL MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
92 extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
93 extern BOOL MFDRV_PatBlt( PHYSDEV dev, INT left, INT top, INT width, INT height,
95 extern BOOL MFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
96 INT bottom, INT xstart, INT ystart, INT xend,
98 extern BOOL MFDRV_PolyBezier( PHYSDEV dev, const POINT* pt, DWORD count );
99 extern BOOL MFDRV_PolyBezierTo( PHYSDEV dev, const POINT* pt, DWORD count );
100 extern BOOL MFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt, const INT* counts,
102 extern BOOL MFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
103 extern BOOL MFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
104 extern BOOL MFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
105 INT right, INT bottom);
106 extern BOOL MFDRV_RestoreDC( PHYSDEV dev, INT level );
107 extern BOOL MFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
108 INT right, INT bottom, INT ell_width,
110 extern INT MFDRV_SaveDC( PHYSDEV dev );
111 extern BOOL MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
113 extern BOOL MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
115 extern HBITMAP MFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
116 extern HBRUSH MFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
117 extern BOOL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
118 extern HFONT MFDRV_SelectFont( PHYSDEV dev, HFONT handle );
119 extern HPEN MFDRV_SelectPen( PHYSDEV dev, HPEN handle );
120 extern COLORREF MFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
121 extern INT MFDRV_SetBkMode( PHYSDEV dev, INT mode );
122 extern INT MFDRV_SetMapMode( PHYSDEV dev, INT mode );
123 extern DWORD MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
124 extern COLORREF MFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
125 extern INT MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
126 extern INT MFDRV_SetROP2( PHYSDEV dev, INT rop );
127 extern INT MFDRV_SetRelAbs( PHYSDEV dev, INT mode );
128 extern INT MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
129 extern UINT MFDRV_SetTextAlign( PHYSDEV dev, UINT align );
130 extern INT MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra );
131 extern COLORREF MFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
132 extern INT MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks );
133 extern BOOL MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
134 extern BOOL MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
135 extern BOOL MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
136 extern BOOL MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
137 extern BOOL MFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst, INT widthDst,
138 INT heightDst, PHYSDEV devSrc, INT xSrc, INT ySrc,
139 INT widthSrc, INT heightSrc, DWORD rop );
140 extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
141 extern INT MFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest, DWORD cx,
142 DWORD cy, INT xSrc, INT ySrc,
143 UINT startscan, UINT lines, LPCVOID bits,
144 const BITMAPINFO *info, UINT coloruse );
145 extern INT MFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
146 INT heightDst, INT xSrc, INT ySrc,
147 INT widthSrc, INT heightSrc, const void *bits,
148 const BITMAPINFO *info, UINT wUsage,
150 extern BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev );
151 extern BOOL MFDRV_StrokePath( PHYSDEV dev );
152 extern BOOL MFDRV_WidenPath( PHYSDEV dev );
154 #endif /* __WINE_METAFILEDRV_H */