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 HANDLE hFile; /* Handle for disk based MetaFile */
38 INT horzsize, vertsize;
39 INT logpixelsx, logpixelsy;
44 extern BOOL EMFDRV_WriteRecord( PHYSDEV dev, EMR *emr );
45 extern int EMFDRV_AddHandleDC( PHYSDEV dev );
46 extern void EMFDRV_UpdateBBox( PHYSDEV dev, RECTL *rect );
47 extern DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush );
49 /* Metafile driver functions */
50 extern BOOL EMFDRV_AbortPath( PHYSDEV dev );
51 extern BOOL EMFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right,
52 INT bottom, INT xstart, INT ystart, INT xend,
54 extern BOOL EMFDRV_BeginPath( PHYSDEV dev );
55 extern BOOL EMFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst,
56 INT width, INT height, PHYSDEV devSrc,
57 INT xSrc, INT ySrc, DWORD rop );
58 extern BOOL EMFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
59 INT bottom, INT xstart, INT ystart, INT xend,
61 extern BOOL EMFDRV_CloseFigure( PHYSDEV dev );
62 extern BOOL EMFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
63 INT right, INT bottom );
64 extern BOOL EMFDRV_EndPath( PHYSDEV dev );
65 extern INT EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom );
66 extern BOOL EMFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT fillType );
67 extern INT EMFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode );
68 extern BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
69 UINT flags, const RECT *lprect, LPCWSTR str,
70 UINT count, const INT *lpDx );
71 extern BOOL EMFDRV_FillPath( PHYSDEV dev );
72 extern BOOL EMFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
73 extern BOOL EMFDRV_FlattenPath( PHYSDEV dev );
74 extern BOOL EMFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT width,
76 extern INT EMFDRV_GetDeviceCaps( PHYSDEV dev, INT cap );
77 extern INT EMFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right,
79 extern BOOL EMFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
80 extern BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y );
81 extern BOOL EMFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
82 extern INT EMFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
83 extern INT EMFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
84 extern INT EMFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
85 extern BOOL EMFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
86 extern BOOL EMFDRV_PatBlt( PHYSDEV dev, INT left, INT top,
87 INT width, INT height, DWORD rop );
88 extern BOOL EMFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
89 INT bottom, INT xstart, INT ystart, INT xend,
91 extern BOOL EMFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt,
92 const INT* counts, UINT polys);
93 extern BOOL EMFDRV_PolyPolyline( PHYSDEV dev, const POINT* pt,
94 const DWORD* counts, DWORD polys);
95 extern BOOL EMFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
96 extern BOOL EMFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
97 extern BOOL EMFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
98 INT right, INT bottom);
99 extern BOOL EMFDRV_RestoreDC( PHYSDEV dev, INT level );
100 extern BOOL EMFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
101 INT right, INT bottom, INT ell_width,
103 extern INT EMFDRV_SaveDC( PHYSDEV dev );
104 extern INT EMFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum,
105 INT xDenom, INT yNum, INT yDenom );
106 extern INT EMFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom,
107 INT yNum, INT yDenom );
108 extern HBITMAP EMFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
109 extern HBRUSH EMFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
110 extern BOOL EMFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
111 extern HFONT EMFDRV_SelectFont( PHYSDEV dev, HFONT handle );
112 extern HPEN EMFDRV_SelectPen( PHYSDEV dev, HPEN handle );
113 extern COLORREF EMFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
114 extern INT EMFDRV_SetBkMode( PHYSDEV dev, INT mode );
115 extern INT EMFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest,
116 DWORD cx, DWORD cy, INT xSrc,
117 INT ySrc, UINT startscan, UINT lines,
118 LPCVOID bits, const BITMAPINFO *info,
120 extern INT EMFDRV_SetMapMode( PHYSDEV dev, INT mode );
121 extern DWORD EMFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
122 extern COLORREF EMFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
123 extern INT EMFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
124 extern INT EMFDRV_SetROP2( PHYSDEV dev, INT rop );
125 extern INT EMFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
126 extern UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align );
127 extern COLORREF EMFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
128 extern INT EMFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
129 extern INT EMFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
130 extern INT EMFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
131 extern INT EMFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
132 extern BOOL EMFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst,
133 INT widthDst, INT heightDst,
134 PHYSDEV devSrc, INT xSrc, INT ySrc,
135 INT widthSrc, INT heightSrc, DWORD rop );
136 extern INT EMFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
137 INT heightDst, INT xSrc, INT ySrc,
138 INT widthSrc, INT heightSrc,
139 const void *bits, const BITMAPINFO *info,
140 UINT wUsage, DWORD dwRop );
141 extern BOOL EMFDRV_StrokeAndFillPath( PHYSDEV dev );
142 extern BOOL EMFDRV_StrokePath( PHYSDEV dev );
143 extern BOOL EMFDRV_WidenPath( PHYSDEV dev );
146 #endif /* __WINE_METAFILEDRV_H */