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