Cleaned up a bit, removed todos for OpenThread, avoid TerminateThread
[wine] / dlls / gdi / mfdrv / metafiledrv.h
1 /*
2  * Metafile driver definitions
3  *
4  * Copyright 1996 Alexandre Julliard
5  *
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.
10  *
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.
15  *
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
19  */
20
21 #ifndef __WINE_METAFILEDRV_H
22 #define __WINE_METAFILEDRV_H
23
24 #include "windef.h"
25 #include "wingdi.h"
26 #include "gdi.h"
27
28 /* Metafile driver physical DC */
29
30 typedef struct
31 {
32     HDC          hdc;
33     DC          *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;
38
39
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,
47                              short param6);
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 );
54
55 /* Metafile driver functions */
56
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,
63                           DWORD rop );
64 extern BOOL MFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
65                          INT bottom, INT xstart, INT ystart, INT xend,
66                          INT yend );
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
72                                   bottom );
73 extern BOOL MFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y,
74                                 COLORREF color, UINT fillType );
75 extern BOOL MFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
76                               UINT flags, const RECT *lprect, LPCWSTR str,
77                               UINT count, const INT *lpDx );
78 extern BOOL MFDRV_FillPath( PHYSDEV dev );
79 extern BOOL MFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
80 extern BOOL MFDRV_FlattenPath( PHYSDEV dev );
81 extern BOOL MFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT x, INT y );
82 extern INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
83                                     bottom );
84 extern BOOL MFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
85 extern BOOL MFDRV_LineTo( PHYSDEV dev, INT x, INT y );
86 extern BOOL MFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
87 extern INT MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
88 extern BOOL MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
89 extern BOOL MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
90 extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
91 extern BOOL MFDRV_PatBlt( PHYSDEV dev, INT left, INT top, INT width, INT height,
92                           DWORD rop );
93 extern BOOL MFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
94                        INT bottom, INT xstart, INT ystart, INT xend,
95                        INT yend );
96 extern BOOL MFDRV_PolyBezier( PHYSDEV dev, const POINT* pt, DWORD count );
97 extern BOOL MFDRV_PolyBezierTo( PHYSDEV dev, const POINT* pt, DWORD count );
98 extern BOOL MFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt, const INT* counts,
99                                UINT polygons);
100 extern BOOL MFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
101 extern BOOL MFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
102 extern BOOL MFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
103                              INT right, INT bottom);
104 extern BOOL MFDRV_RestoreDC( PHYSDEV dev, INT level );
105 extern BOOL MFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
106                              INT right, INT bottom, INT ell_width,
107                              INT ell_height );
108 extern INT MFDRV_SaveDC( PHYSDEV dev );
109 extern BOOL MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
110                                     INT yDenom );
111 extern BOOL MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
112                                   INT yDenom );
113 extern HBITMAP MFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
114 extern HBRUSH MFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
115 extern BOOL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
116 extern HFONT MFDRV_SelectFont( PHYSDEV dev, HFONT handle );
117 extern HPEN MFDRV_SelectPen( PHYSDEV dev, HPEN handle );
118 extern COLORREF MFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
119 extern INT MFDRV_SetBkMode( PHYSDEV dev, INT mode );
120 extern INT MFDRV_SetMapMode( PHYSDEV dev, INT mode );
121 extern DWORD MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
122 extern COLORREF MFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
123 extern INT MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
124 extern INT MFDRV_SetROP2( PHYSDEV dev, INT rop );
125 extern INT MFDRV_SetRelAbs( PHYSDEV dev, INT mode );
126 extern INT MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
127 extern UINT MFDRV_SetTextAlign( PHYSDEV dev, UINT align );
128 extern INT MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra );
129 extern COLORREF MFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
130 extern INT MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks );
131 extern BOOL MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
132 extern BOOL MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
133 extern BOOL MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
134 extern BOOL MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
135 extern BOOL MFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst, INT widthDst,
136                               INT heightDst, PHYSDEV devSrc, INT xSrc, INT ySrc,
137                               INT widthSrc, INT heightSrc, DWORD rop );
138 extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
139 extern INT MFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest, DWORD cx,
140                                     DWORD cy, INT xSrc, INT ySrc,
141                                     UINT startscan, UINT lines, LPCVOID bits,
142                                     const BITMAPINFO *info, UINT coloruse );
143 extern INT MFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
144                                 INT heightDst, INT xSrc, INT ySrc,
145                                 INT widthSrc, INT heightSrc, const void *bits,
146                                 const BITMAPINFO *info, UINT wUsage,
147                                 DWORD dwRop );
148 extern BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev );
149 extern BOOL MFDRV_StrokePath( PHYSDEV dev );
150 extern BOOL MFDRV_WidenPath( PHYSDEV dev );
151
152 #endif  /* __WINE_METAFILEDRV_H */
153