1996-10-13 19:45:47 +02:00
|
|
|
/*
|
|
|
|
* Metafile driver definitions
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright 1996 Alexandre Julliard
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
1996-10-13 19:45:47 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_METAFILEDRV_H
|
|
|
|
#define __WINE_METAFILEDRV_H
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
2000-02-10 20:39:48 +01:00
|
|
|
#include "windef.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "winbase.h"
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "wingdi.h"
|
2004-03-04 21:41:12 +01:00
|
|
|
#include "gdi_private.h"
|
1996-10-13 19:45:47 +02:00
|
|
|
|
|
|
|
/* Metafile driver physical DC */
|
1996-11-17 19:59:11 +01:00
|
|
|
|
1996-10-13 19:45:47 +02:00
|
|
|
typedef struct
|
|
|
|
{
|
2002-03-28 23:22:05 +01:00
|
|
|
HDC hdc;
|
1996-10-13 19:45:47 +02:00
|
|
|
METAHEADER *mh; /* Pointer to metafile header */
|
2003-11-26 04:38:11 +01:00
|
|
|
UINT handles_size, cur_handles;
|
|
|
|
HGDIOBJ *handles;
|
2002-07-31 19:20:00 +02:00
|
|
|
HANDLE hFile; /* Handle for disk based MetaFile */
|
1996-10-13 19:45:47 +02:00
|
|
|
} METAFILEDRV_PDEVICE;
|
|
|
|
|
2003-11-26 04:38:11 +01:00
|
|
|
#define HANDLE_LIST_INC 20
|
|
|
|
|
1996-11-17 19:59:11 +01:00
|
|
|
|
2007-11-07 17:50:57 +01:00
|
|
|
extern BOOL MFDRV_MetaParam0(PHYSDEV dev, short func) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_MetaParam1(PHYSDEV dev, short func, short param1) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_MetaParam2(PHYSDEV dev, short func, short param1, short param2) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_MetaParam4(PHYSDEV dev, short func, short param1, short param2,
|
2007-11-07 17:50:57 +01:00
|
|
|
short param3, short param4) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_MetaParam6(PHYSDEV dev, short func, short param1, short param2,
|
|
|
|
short param3, short param4, short param5,
|
2007-11-07 17:50:57 +01:00
|
|
|
short param6) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_MetaParam8(PHYSDEV dev, short func, short param1, short param2,
|
|
|
|
short param3, short param4, short param5,
|
2007-11-07 17:50:57 +01:00
|
|
|
short param6, short param7, short param8) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_WriteRecord(PHYSDEV dev, METARECORD *mr, DWORD rlen) DECLSPEC_HIDDEN;
|
|
|
|
extern UINT MFDRV_AddHandle( PHYSDEV dev, HGDIOBJ obj ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_RemoveHandle( PHYSDEV dev, UINT index ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT16 MFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush ) DECLSPEC_HIDDEN;
|
1999-04-15 18:46:51 +02:00
|
|
|
|
1996-11-17 19:59:11 +01:00
|
|
|
/* Metafile driver functions */
|
|
|
|
|
2007-11-07 17:50:57 +01:00
|
|
|
extern BOOL MFDRV_AbortPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right, INT bottom,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT xstart, INT ystart, INT xend, INT yend ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_BeginPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst, INT width,
|
|
|
|
INT height, PHYSDEV devSrc, INT xSrc, INT ySrc,
|
2007-11-07 17:50:57 +01:00
|
|
|
DWORD rop ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT yend ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_CloseFigure( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_DeleteObject( PHYSDEV dev, HGDIOBJ obj ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT right, INT bottom ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_EndPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern INT MFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
|
2007-11-07 17:50:57 +01:00
|
|
|
bottom ) DECLSPEC_HIDDEN;
|
2002-04-04 00:47:50 +02:00
|
|
|
extern INT MFDRV_ExtEscape( PHYSDEV dev, INT nEscape, INT cbInput, LPCVOID in_data,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT cbOutput, LPVOID out_data ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT fillType ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
|
|
|
|
UINT flags, const RECT *lprect, LPCWSTR str,
|
2007-11-07 17:50:57 +01:00
|
|
|
UINT count, const INT *lpDx ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_FillPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_FlattenPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_GetDeviceCaps( PHYSDEV dev , INT cap ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern INT MFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right, INT
|
2007-11-07 17:50:57 +01:00
|
|
|
bottom ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_LineTo( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_MoveTo( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_PatBlt( PHYSDEV dev, INT left, INT top, INT width, INT height,
|
2007-11-07 17:50:57 +01:00
|
|
|
DWORD rop ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT yend ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_PolyBezier( PHYSDEV dev, const POINT* pt, DWORD count ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_PolyBezierTo( PHYSDEV dev, const POINT* pt, DWORD count ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt, const INT* counts,
|
2007-11-07 17:50:57 +01:00
|
|
|
UINT polygons) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT right, INT bottom) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_RestoreDC( PHYSDEV dev, INT level ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom, INT ell_width,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT ell_height ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SaveDC( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
2002-08-17 20:32:12 +02:00
|
|
|
extern INT MFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT yDenom ) DECLSPEC_HIDDEN;
|
2002-08-17 20:32:12 +02:00
|
|
|
extern INT MFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom, INT yNum,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT yDenom ) DECLSPEC_HIDDEN;
|
|
|
|
extern HBITMAP MFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle ) DECLSPEC_HIDDEN;
|
|
|
|
extern HBRUSH MFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_SelectClipPath( PHYSDEV dev, INT iMode ) DECLSPEC_HIDDEN;
|
|
|
|
extern HFONT MFDRV_SelectFont( PHYSDEV dev, HFONT handle, HANDLE gdiFont ) DECLSPEC_HIDDEN;
|
|
|
|
extern HPEN MFDRV_SelectPen( PHYSDEV dev, HPEN handle ) DECLSPEC_HIDDEN;
|
|
|
|
extern HPALETTE MFDRV_SelectPalette( PHYSDEV dev, HPALETTE hPalette, BOOL bForceBackground) DECLSPEC_HIDDEN;
|
|
|
|
extern UINT MFDRV_RealizePalette(PHYSDEV dev, HPALETTE hPalette, BOOL primary) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF MFDRV_SetBkColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetBkMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetMapMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern DWORD MFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags ) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF MFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetPolyFillMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetROP2( PHYSDEV dev, INT rop ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetRelAbs( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetStretchBltMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern UINT MFDRV_SetTextAlign( PHYSDEV dev, UINT align ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetTextCharacterExtra( PHYSDEV dev, INT extra ) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF MFDRV_SetTextColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetTextJustification( PHYSDEV dev, INT extra, INT breaks ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT MFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL MFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst, INT widthDst,
|
|
|
|
INT heightDst, PHYSDEV devSrc, INT xSrc, INT ySrc,
|
2007-11-07 17:50:57 +01:00
|
|
|
INT widthSrc, INT heightSrc, DWORD rop ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern INT MFDRV_SetDIBitsToDevice( PHYSDEV dev, INT xDest, INT yDest, DWORD cx,
|
|
|
|
DWORD cy, INT xSrc, INT ySrc,
|
|
|
|
UINT startscan, UINT lines, LPCVOID bits,
|
2007-11-07 17:50:57 +01:00
|
|
|
const BITMAPINFO *info, UINT coloruse ) DECLSPEC_HIDDEN;
|
2002-03-28 23:22:05 +01:00
|
|
|
extern INT MFDRV_StretchDIBits( PHYSDEV dev, INT xDst, INT yDst, INT widthDst,
|
|
|
|
INT heightDst, INT xSrc, INT ySrc,
|
|
|
|
INT widthSrc, INT heightSrc, const void *bits,
|
|
|
|
const BITMAPINFO *info, UINT wUsage,
|
2007-11-07 17:50:57 +01:00
|
|
|
DWORD dwRop ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_StrokeAndFillPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_StrokePath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL MFDRV_WidenPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
1996-11-17 19:59:11 +01:00
|
|
|
|
1996-10-13 19:45:47 +02:00
|
|
|
#endif /* __WINE_METAFILEDRV_H */
|