1999-05-02 12:15:16 +02:00
|
|
|
/*
|
|
|
|
* Enhanced MetaFile driver definitions
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* Copyright 1999 Huw D M Davies
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
1999-05-02 12:15:16 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __WINE_ENHMETAFILEDRV_H
|
|
|
|
#define __WINE_ENHMETAFILEDRV_H
|
|
|
|
|
2000-02-10 20:39:48 +01:00
|
|
|
#include "windef.h"
|
1999-05-02 12:15:16 +02:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "gdi.h"
|
|
|
|
|
|
|
|
/* Enhanced Metafile driver physical DC */
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
ENHMETAHEADER *emh; /* Pointer to enhanced metafile header */
|
|
|
|
UINT nextHandle; /* Next handle number */
|
|
|
|
HFILE hFile; /* HFILE for disk based MetaFile */
|
|
|
|
} EMFDRV_PDEVICE;
|
|
|
|
|
|
|
|
|
|
|
|
extern BOOL EMFDRV_WriteRecord( DC *dc, EMR *emr );
|
|
|
|
extern int EMFDRV_AddHandleDC( DC *dc );
|
|
|
|
extern void EMFDRV_UpdateBBox( DC *dc, RECTL *rect );
|
|
|
|
extern DWORD EMFDRV_CreateBrushIndirect( DC *dc, HBRUSH hBrush );
|
|
|
|
|
|
|
|
/* Metafile driver functions */
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_AbortPath( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern BOOL EMFDRV_Arc( DC *dc, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_BeginPath( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern BOOL EMFDRV_BitBlt( DC *dcDst, INT xDst, INT yDst,
|
|
|
|
INT width, INT height, DC *dcSrc,
|
|
|
|
INT xSrc, INT ySrc, DWORD rop );
|
|
|
|
extern BOOL EMFDRV_Chord( DC *dc, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_CloseFigure( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern BOOL EMFDRV_Ellipse( DC *dc, INT left, INT top,
|
|
|
|
INT right, INT bottom );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_EndPath( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern INT EMFDRV_ExcludeClipRect( DC *dc, INT left, INT top, INT right,
|
|
|
|
INT bottom );
|
|
|
|
extern BOOL EMFDRV_ExtFloodFill( DC *dc, INT x, INT y,
|
|
|
|
COLORREF color, UINT fillType );
|
|
|
|
extern BOOL EMFDRV_ExtTextOut( DC *dc, INT x, INT y,
|
|
|
|
UINT flags, const RECT *lprect, LPCSTR str,
|
|
|
|
UINT count, const INT *lpDx );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_FillPath( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern BOOL EMFDRV_FillRgn( DC *dc, HRGN hrgn, HBRUSH hbrush );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_FlattenPath( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern BOOL EMFDRV_FrameRgn( DC *dc, HRGN hrgn, HBRUSH hbrush, INT width,
|
|
|
|
INT height );
|
|
|
|
extern INT EMFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right,
|
|
|
|
INT bottom );
|
|
|
|
extern BOOL EMFDRV_InvertRgn( DC *dc, HRGN hrgn );
|
|
|
|
extern BOOL EMFDRV_LineTo( DC *dc, INT x, INT y );
|
2000-11-05 04:28:18 +01:00
|
|
|
extern BOOL EMFDRV_MoveTo( DC *dc, INT x, INT y );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern INT EMFDRV_OffsetClipRgn( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_OffsetViewportOrg( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_OffsetWindowOrg( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_PaintRgn( DC *dc, HRGN hrgn );
|
|
|
|
extern BOOL EMFDRV_PatBlt( DC *dc, INT left, INT top,
|
|
|
|
INT width, INT height, DWORD rop );
|
|
|
|
extern BOOL EMFDRV_Pie( DC *dc, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend );
|
|
|
|
extern BOOL EMFDRV_PolyPolygon( DC *dc, const POINT* pt,
|
|
|
|
const INT* counts, UINT polys);
|
|
|
|
extern BOOL EMFDRV_PolyPolyline( DC *dc, const POINT* pt,
|
|
|
|
const DWORD* counts, DWORD polys);
|
|
|
|
extern BOOL EMFDRV_Polygon( DC *dc, const POINT* pt, INT count );
|
|
|
|
extern BOOL EMFDRV_Polyline( DC *dc, const POINT* pt,INT count);
|
|
|
|
extern BOOL EMFDRV_Rectangle( DC *dc, INT left, INT top,
|
|
|
|
INT right, INT bottom);
|
|
|
|
extern BOOL EMFDRV_RestoreDC( DC *dc, INT level );
|
|
|
|
extern BOOL EMFDRV_RoundRect( DC *dc, INT left, INT top,
|
|
|
|
INT right, INT bottom, INT ell_width,
|
|
|
|
INT ell_height );
|
|
|
|
extern INT EMFDRV_SaveDC( DC *dc );
|
|
|
|
extern BOOL EMFDRV_ScaleViewportExt( DC *dc, INT xNum,
|
|
|
|
INT xDenom, INT yNum, INT yDenom );
|
|
|
|
extern BOOL EMFDRV_ScaleWindowExt( DC *dc, INT xNum, INT xDenom,
|
|
|
|
INT yNum, INT yDenom );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_SelectClipPath( DC *dc, INT iMode );
|
1999-05-02 12:15:16 +02:00
|
|
|
extern HGDIOBJ EMFDRV_SelectObject( DC *dc, HGDIOBJ handle );
|
|
|
|
extern COLORREF EMFDRV_SetBkColor( DC *dc, COLORREF color );
|
|
|
|
extern INT EMFDRV_SetBkMode( DC *dc, INT mode );
|
|
|
|
extern INT EMFDRV_SetDIBitsToDevice( DC *dc, INT xDest, INT yDest,
|
|
|
|
DWORD cx, DWORD cy, INT xSrc,
|
|
|
|
INT ySrc, UINT startscan, UINT lines,
|
|
|
|
LPCVOID bits, const BITMAPINFO *info,
|
|
|
|
UINT coloruse );
|
|
|
|
extern INT EMFDRV_SetMapMode( DC *dc, INT mode );
|
|
|
|
extern DWORD EMFDRV_SetMapperFlags( DC *dc, DWORD flags );
|
|
|
|
extern COLORREF EMFDRV_SetPixel( DC *dc, INT x, INT y, COLORREF color );
|
|
|
|
extern INT EMFDRV_SetPolyFillMode( DC *dc, INT mode );
|
|
|
|
extern INT EMFDRV_SetROP2( DC *dc, INT rop );
|
|
|
|
extern INT EMFDRV_SetStretchBltMode( DC *dc, INT mode );
|
|
|
|
extern UINT EMFDRV_SetTextAlign( DC *dc, UINT align );
|
|
|
|
extern COLORREF EMFDRV_SetTextColor( DC *dc, COLORREF color );
|
|
|
|
extern BOOL EMFDRV_SetViewportExt( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_SetViewportOrg( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_SetWindowExt( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_SetWindowOrg( DC *dc, INT x, INT y );
|
|
|
|
extern BOOL EMFDRV_StretchBlt( DC *dcDst, INT xDst, INT yDst,
|
|
|
|
INT widthDst, INT heightDst,
|
|
|
|
DC *dcSrc, INT xSrc, INT ySrc,
|
|
|
|
INT widthSrc, INT heightSrc, DWORD rop );
|
|
|
|
extern INT EMFDRV_StretchDIBits( DC *dc, INT xDst, INT yDst, INT widthDst,
|
|
|
|
INT heightDst, INT xSrc, INT ySrc,
|
|
|
|
INT widthSrc, INT heightSrc,
|
|
|
|
const void *bits, const BITMAPINFO *info,
|
|
|
|
UINT wUsage, DWORD dwRop );
|
1999-12-06 00:54:02 +01:00
|
|
|
extern BOOL EMFDRV_StrokeAndFillPath( DC *dc );
|
|
|
|
extern BOOL EMFDRV_StrokePath( DC *dc );
|
|
|
|
extern BOOL EMFDRV_WidenPath( DC *dc );
|
1999-05-02 12:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WINE_METAFILEDRV_H */
|
|
|
|
|