2 * Enhanced MetaFile driver definitions
4 * Copyright 1999 Huw D M Davies
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_ENHMETAFILEDRV_H
22 #define __WINE_ENHMETAFILEDRV_H
28 /* Enhanced Metafile driver physical DC */
34 ENHMETAHEADER *emh; /* Pointer to enhanced metafile header */
35 UINT nextHandle; /* Next handle number */
36 HFILE hFile; /* HFILE for disk based MetaFile */
40 extern BOOL EMFDRV_WriteRecord( PHYSDEV dev, EMR *emr );
41 extern int EMFDRV_AddHandleDC( PHYSDEV dev );
42 extern void EMFDRV_UpdateBBox( PHYSDEV dev, RECTL *rect );
43 extern DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush );
45 /* Metafile driver functions */
46 extern BOOL EMFDRV_AbortPath( PHYSDEV dev );
47 extern BOOL EMFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right,
48 INT bottom, INT xstart, INT ystart, INT xend,
50 extern BOOL EMFDRV_BeginPath( PHYSDEV dev );
51 extern BOOL EMFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst,
52 INT width, INT height, PHYSDEV devSrc,
53 INT xSrc, INT ySrc, DWORD rop );
54 extern BOOL EMFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
55 INT bottom, INT xstart, INT ystart, INT xend,
57 extern BOOL EMFDRV_CloseFigure( PHYSDEV dev );
58 extern BOOL EMFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
59 INT right, INT bottom );
60 extern BOOL EMFDRV_EndPath( PHYSDEV dev );
61 extern INT EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right,
63 extern BOOL EMFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y,
64 COLORREF color, UINT fillType );
65 extern BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
66 UINT flags, const RECT *lprect, LPCSTR str,
67 UINT count, const INT *lpDx );
68 extern BOOL EMFDRV_FillPath( PHYSDEV dev );
69 extern BOOL EMFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
70 extern BOOL EMFDRV_FlattenPath( PHYSDEV dev );
71 extern BOOL EMFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT width,
73 extern INT EMFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right,
75 extern BOOL EMFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
76 extern BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y );
77 extern BOOL EMFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
78 extern INT EMFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
79 extern BOOL EMFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
80 extern BOOL EMFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
81 extern BOOL EMFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
82 extern BOOL EMFDRV_PatBlt( PHYSDEV dev, INT left, INT top,
83 INT width, INT height, DWORD rop );
84 extern BOOL EMFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
85 INT bottom, INT xstart, INT ystart, INT xend,
87 extern BOOL EMFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt,
88 const INT* counts, UINT polys);
89 extern BOOL EMFDRV_PolyPolyline( PHYSDEV dev, const POINT* pt,
90 const DWORD* counts, DWORD polys);
91 extern BOOL EMFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
92 extern BOOL EMFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
93 extern BOOL EMFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
94 INT right, INT bottom);
95 extern BOOL EMFDRV_RestoreDC( PHYSDEV dev, INT level );
96 extern BOOL EMFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
97 INT right, INT bottom, INT ell_width,
99 extern INT EMFDRV_SaveDC( PHYSDEV dev );
100 extern BOOL EMFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum,
101 INT xDenom, INT yNum, INT yDenom );
102 extern BOOL EMFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom,
103 INT yNum, INT yDenom );
104 extern HBITMAP EMFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
105 extern HBRUSH EMFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
106 extern BOOL EMFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
107 extern HFONT EMFDRV_SelectFont( PHYSDEV dev, HFONT handle );
108 extern HPEN EMFDRV_SelectPen( PHYSDEV dev, HPEN handle );
109 extern COLORREF EMFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
110 extern INT EMFDRV_SetBkMode( PHYSDEV dev, INT mode );
111 extern INT EMFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest,
112 DWORD cx, DWORD cy, INT xSrc,
113 INT ySrc, UINT startscan, UINT lines,
114 LPCVOID bits, const BITMAPINFO *info,
116 extern INT EMFDRV_SetMapMode( PHYSDEV dev, INT mode );
117 extern DWORD EMFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
118 extern COLORREF EMFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
119 extern INT EMFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
120 extern INT EMFDRV_SetROP2( PHYSDEV dev, INT rop );
121 extern INT EMFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
122 extern UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align );
123 extern COLORREF EMFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
124 extern BOOL EMFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
125 extern BOOL EMFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
126 extern BOOL EMFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
127 extern BOOL EMFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
128 extern BOOL EMFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst,
129 INT widthDst, INT heightDst,
130 PHYSDEV devSrc, INT xSrc, INT ySrc,
131 INT widthSrc, INT heightSrc, DWORD rop );
132 extern INT EMFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
133 INT heightDst, INT xSrc, INT ySrc,
134 INT widthSrc, INT heightSrc,
135 const void *bits, const BITMAPINFO *info,
136 UINT wUsage, DWORD dwRop );
137 extern BOOL EMFDRV_StrokeAndFillPath( PHYSDEV dev );
138 extern BOOL EMFDRV_StrokePath( PHYSDEV dev );
139 extern BOOL EMFDRV_WidenPath( PHYSDEV dev );
142 #endif /* __WINE_METAFILEDRV_H */