Pass the breakExtra value in the ExtTextOut driver call, since there
[wine/hacks.git] / dlls / gdi / enhmfdrv / enhmetafiledrv.h
blob14a073dfb8cf74d5b29061c5890efdc8d9f5ab97
1 /*
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
24 #include <stdarg.h>
26 #include "windef.h"
27 #include "winbase.h"
28 #include "wingdi.h"
29 #include "gdi.h"
31 /* Enhanced Metafile driver physical DC */
33 typedef struct
35 HDC hdc;
36 DC *dc;
37 ENHMETAHEADER *emh; /* Pointer to enhanced metafile header */
38 UINT handles_size, cur_handles;
39 HGDIOBJ *handles;
40 HANDLE hFile; /* Handle for disk based MetaFile */
41 INT horzres, vertres;
42 INT horzsize, vertsize;
43 INT logpixelsx, logpixelsy;
44 INT bitspixel;
45 INT textcaps;
46 INT rastercaps;
47 INT technology;
48 INT planes;
49 } EMFDRV_PDEVICE;
52 extern BOOL EMFDRV_WriteRecord( PHYSDEV dev, EMR *emr );
53 extern void EMFDRV_UpdateBBox( PHYSDEV dev, RECTL *rect );
54 extern DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush );
56 #define HANDLE_LIST_INC 20
58 /* Metafile driver functions */
59 extern BOOL EMFDRV_AbortPath( PHYSDEV dev );
60 extern BOOL EMFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right,
61 INT bottom, INT xstart, INT ystart, INT xend,
62 INT yend );
63 extern BOOL EMFDRV_BeginPath( PHYSDEV dev );
64 extern BOOL EMFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst,
65 INT width, INT height, PHYSDEV devSrc,
66 INT xSrc, INT ySrc, DWORD rop );
67 extern BOOL EMFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
68 INT bottom, INT xstart, INT ystart, INT xend,
69 INT yend );
70 extern BOOL EMFDRV_CloseFigure( PHYSDEV dev );
71 extern BOOL EMFDRV_DeleteObject( PHYSDEV dev, HGDIOBJ obj );
72 extern BOOL EMFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
73 INT right, INT bottom );
74 extern BOOL EMFDRV_EndPath( PHYSDEV dev );
75 extern INT EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom );
76 extern BOOL EMFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT fillType );
77 extern INT EMFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode );
78 extern BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
79 UINT flags, const RECT *lprect, LPCWSTR str,
80 UINT count, const INT *lpDx, INT breakExtra );
81 extern BOOL EMFDRV_FillPath( PHYSDEV dev );
82 extern BOOL EMFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
83 extern BOOL EMFDRV_FlattenPath( PHYSDEV dev );
84 extern BOOL EMFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT width,
85 INT height );
86 extern BOOL EMFDRV_GdiComment( PHYSDEV dev, UINT bytes, CONST BYTE *buffer );
87 extern INT EMFDRV_GetDeviceCaps( PHYSDEV dev, INT cap );
88 extern INT EMFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right,
89 INT bottom );
90 extern BOOL EMFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
91 extern BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y );
92 extern BOOL EMFDRV_ModifyWorldTransform( PHYSDEV dev, const XFORM *xform, INT mode );
93 extern BOOL EMFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
94 extern INT EMFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
95 extern INT EMFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
96 extern INT EMFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
97 extern BOOL EMFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
98 extern BOOL EMFDRV_PatBlt( PHYSDEV dev, INT left, INT top,
99 INT width, INT height, DWORD rop );
100 extern BOOL EMFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
101 INT bottom, INT xstart, INT ystart, INT xend,
102 INT yend );
103 extern BOOL EMFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt,
104 const INT* counts, UINT polys);
105 extern BOOL EMFDRV_PolyPolyline( PHYSDEV dev, const POINT* pt,
106 const DWORD* counts, DWORD polys);
107 extern BOOL EMFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
108 extern BOOL EMFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
109 extern BOOL EMFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
110 INT right, INT bottom);
111 extern BOOL EMFDRV_RestoreDC( PHYSDEV dev, INT level );
112 extern BOOL EMFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
113 INT right, INT bottom, INT ell_width,
114 INT ell_height );
115 extern INT EMFDRV_SaveDC( PHYSDEV dev );
116 extern INT EMFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum,
117 INT xDenom, INT yNum, INT yDenom );
118 extern INT EMFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom,
119 INT yNum, INT yDenom );
120 extern HBITMAP EMFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
121 extern HBRUSH EMFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
122 extern BOOL EMFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
123 extern HFONT EMFDRV_SelectFont( PHYSDEV dev, HFONT handle );
124 extern HPEN EMFDRV_SelectPen( PHYSDEV dev, HPEN handle );
125 extern INT EMFDRV_SetArcDirection( PHYSDEV dev, INT arcDirection );
126 extern COLORREF EMFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
127 extern INT EMFDRV_SetBkMode( PHYSDEV dev, INT mode );
128 extern INT EMFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest,
129 DWORD cx, DWORD cy, INT xSrc,
130 INT ySrc, UINT startscan, UINT lines,
131 LPCVOID bits, const BITMAPINFO *info,
132 UINT coloruse );
133 extern INT EMFDRV_SetMapMode( PHYSDEV dev, INT mode );
134 extern DWORD EMFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
135 extern COLORREF EMFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
136 extern INT EMFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
137 extern INT EMFDRV_SetROP2( PHYSDEV dev, INT rop );
138 extern INT EMFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
139 extern UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align );
140 extern COLORREF EMFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
141 extern BOOL EMFDRV_SetTextJustification( PHYSDEV dev, INT nBreakExtra,
142 INT nBreakCount );
143 extern INT EMFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
144 extern INT EMFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
145 extern INT EMFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
146 extern INT EMFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
147 extern BOOL EMFDRV_SetWorldTransform( PHYSDEV dev, const XFORM *xform );
148 extern BOOL EMFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst,
149 INT widthDst, INT heightDst,
150 PHYSDEV devSrc, INT xSrc, INT ySrc,
151 INT widthSrc, INT heightSrc, DWORD rop );
152 extern INT EMFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
153 INT heightDst, INT xSrc, INT ySrc,
154 INT widthSrc, INT heightSrc,
155 const void *bits, const BITMAPINFO *info,
156 UINT wUsage, DWORD dwRop );
157 extern BOOL EMFDRV_StrokeAndFillPath( PHYSDEV dev );
158 extern BOOL EMFDRV_StrokePath( PHYSDEV dev );
159 extern BOOL EMFDRV_WidenPath( PHYSDEV dev );
162 #endif /* __WINE_METAFILEDRV_H */