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
|
|
|
|
|
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-05-02 12:15:16 +02:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "gdi.h"
|
2004-03-04 21:41:12 +01:00
|
|
|
#include "gdi_private.h"
|
1999-05-02 12:15:16 +02:00
|
|
|
|
|
|
|
/* Enhanced Metafile driver physical DC */
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
2002-03-28 23:22:05 +01:00
|
|
|
HDC hdc;
|
|
|
|
DC *dc;
|
1999-05-02 12:15:16 +02:00
|
|
|
ENHMETAHEADER *emh; /* Pointer to enhanced metafile header */
|
2003-11-25 06:03:09 +01:00
|
|
|
UINT handles_size, cur_handles;
|
|
|
|
HGDIOBJ *handles;
|
2002-07-31 19:20:00 +02:00
|
|
|
HANDLE hFile; /* Handle for disk based MetaFile */
|
2002-08-17 02:25:05 +02:00
|
|
|
INT horzres, vertres;
|
|
|
|
INT horzsize, vertsize;
|
|
|
|
INT logpixelsx, logpixelsy;
|
|
|
|
INT bitspixel;
|
2003-05-19 23:51:44 +02:00
|
|
|
INT textcaps;
|
|
|
|
INT rastercaps;
|
|
|
|
INT technology;
|
|
|
|
INT planes;
|
1999-05-02 12:15:16 +02:00
|
|
|
} EMFDRV_PDEVICE;
|
|
|
|
|
|
|
|
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_WriteRecord( PHYSDEV dev, EMR *emr );
|
|
|
|
extern void EMFDRV_UpdateBBox( PHYSDEV dev, RECTL *rect );
|
|
|
|
extern DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush );
|
1999-05-02 12:15:16 +02:00
|
|
|
|
2003-11-25 06:03:09 +01:00
|
|
|
#define HANDLE_LIST_INC 20
|
|
|
|
|
1999-05-02 12:15:16 +02:00
|
|
|
/* Metafile driver functions */
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_AbortPath( PHYSDEV dev );
|
|
|
|
extern BOOL EMFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend );
|
|
|
|
extern BOOL EMFDRV_BeginPath( PHYSDEV dev );
|
|
|
|
extern BOOL EMFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst,
|
|
|
|
INT width, INT height, PHYSDEV devSrc,
|
|
|
|
INT xSrc, INT ySrc, DWORD rop );
|
|
|
|
extern BOOL EMFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend );
|
|
|
|
extern BOOL EMFDRV_CloseFigure( PHYSDEV dev );
|
2003-11-25 06:03:09 +01:00
|
|
|
extern BOOL EMFDRV_DeleteObject( PHYSDEV dev, HGDIOBJ obj );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom );
|
|
|
|
extern BOOL EMFDRV_EndPath( PHYSDEV dev );
|
2002-05-09 06:03:46 +02:00
|
|
|
extern INT EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom );
|
|
|
|
extern BOOL EMFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT fillType );
|
|
|
|
extern INT EMFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
|
2002-08-17 03:36:55 +02:00
|
|
|
UINT flags, const RECT *lprect, LPCWSTR str,
|
2004-03-04 02:42:57 +01:00
|
|
|
UINT count, const INT *lpDx, INT breakExtra );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_FillPath( PHYSDEV dev );
|
|
|
|
extern BOOL EMFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush );
|
|
|
|
extern BOOL EMFDRV_FlattenPath( PHYSDEV dev );
|
|
|
|
extern BOOL EMFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT width,
|
|
|
|
INT height );
|
2003-05-21 20:28:49 +02:00
|
|
|
extern BOOL EMFDRV_GdiComment( PHYSDEV dev, UINT bytes, CONST BYTE *buffer );
|
2002-08-17 02:25:05 +02:00
|
|
|
extern INT EMFDRV_GetDeviceCaps( PHYSDEV dev, INT cap );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern INT EMFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom );
|
|
|
|
extern BOOL EMFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn );
|
|
|
|
extern BOOL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y );
|
2003-06-23 21:46:56 +02:00
|
|
|
extern BOOL EMFDRV_ModifyWorldTransform( PHYSDEV dev, const XFORM *xform, INT mode );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_MoveTo( PHYSDEV dev, INT x, INT y );
|
|
|
|
extern INT EMFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y );
|
2002-08-17 20:32:12 +02:00
|
|
|
extern INT EMFDRV_OffsetViewportOrg( PHYSDEV dev, INT x, INT y );
|
|
|
|
extern INT EMFDRV_OffsetWindowOrg( PHYSDEV dev, INT x, INT y );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn );
|
|
|
|
extern BOOL EMFDRV_PatBlt( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT width, INT height, DWORD rop );
|
|
|
|
extern BOOL EMFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend );
|
|
|
|
extern BOOL EMFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt,
|
|
|
|
const INT* counts, UINT polys);
|
|
|
|
extern BOOL EMFDRV_PolyPolyline( PHYSDEV dev, const POINT* pt,
|
|
|
|
const DWORD* counts, DWORD polys);
|
|
|
|
extern BOOL EMFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count );
|
|
|
|
extern BOOL EMFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count);
|
|
|
|
extern BOOL EMFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom);
|
|
|
|
extern BOOL EMFDRV_RestoreDC( PHYSDEV dev, INT level );
|
|
|
|
extern BOOL EMFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom, INT ell_width,
|
|
|
|
INT ell_height );
|
|
|
|
extern INT EMFDRV_SaveDC( PHYSDEV dev );
|
2002-08-17 20:32:12 +02:00
|
|
|
extern INT EMFDRV_ScaleViewportExt( PHYSDEV dev, INT xNum,
|
2002-03-28 23:22:05 +01:00
|
|
|
INT xDenom, INT yNum, INT yDenom );
|
2002-08-17 20:32:12 +02:00
|
|
|
extern INT EMFDRV_ScaleWindowExt( PHYSDEV dev, INT xNum, INT xDenom,
|
2002-03-28 23:22:05 +01:00
|
|
|
INT yNum, INT yDenom );
|
|
|
|
extern HBITMAP EMFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle );
|
|
|
|
extern HBRUSH EMFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle );
|
|
|
|
extern BOOL EMFDRV_SelectClipPath( PHYSDEV dev, INT iMode );
|
2004-03-04 05:05:04 +01:00
|
|
|
extern HFONT EMFDRV_SelectFont( PHYSDEV dev, HFONT handle, HANDLE gdiFont );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern HPEN EMFDRV_SelectPen( PHYSDEV dev, HPEN handle );
|
2003-10-04 05:08:25 +02:00
|
|
|
extern INT EMFDRV_SetArcDirection( PHYSDEV dev, INT arcDirection );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern COLORREF EMFDRV_SetBkColor( PHYSDEV dev, COLORREF color );
|
|
|
|
extern INT EMFDRV_SetBkMode( PHYSDEV dev, INT mode );
|
|
|
|
extern INT EMFDRV_SetDIBitsToDevice( PHYSDEV dev, 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( PHYSDEV dev, INT mode );
|
|
|
|
extern DWORD EMFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags );
|
|
|
|
extern COLORREF EMFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color );
|
|
|
|
extern INT EMFDRV_SetPolyFillMode( PHYSDEV dev, INT mode );
|
|
|
|
extern INT EMFDRV_SetROP2( PHYSDEV dev, INT rop );
|
|
|
|
extern INT EMFDRV_SetStretchBltMode( PHYSDEV dev, INT mode );
|
|
|
|
extern UINT EMFDRV_SetTextAlign( PHYSDEV dev, UINT align );
|
|
|
|
extern COLORREF EMFDRV_SetTextColor( PHYSDEV dev, COLORREF color );
|
2003-10-10 02:06:59 +02:00
|
|
|
extern BOOL EMFDRV_SetTextJustification( PHYSDEV dev, INT nBreakExtra,
|
|
|
|
INT nBreakCount );
|
2002-08-17 20:32:12 +02:00
|
|
|
extern INT EMFDRV_SetViewportExt( PHYSDEV dev, INT x, INT y );
|
|
|
|
extern INT EMFDRV_SetViewportOrg( PHYSDEV dev, INT x, INT y );
|
|
|
|
extern INT EMFDRV_SetWindowExt( PHYSDEV dev, INT x, INT y );
|
|
|
|
extern INT EMFDRV_SetWindowOrg( PHYSDEV dev, INT x, INT y );
|
2003-06-23 21:46:56 +02:00
|
|
|
extern BOOL EMFDRV_SetWorldTransform( PHYSDEV dev, const XFORM *xform );
|
2002-03-28 23:22:05 +01:00
|
|
|
extern BOOL EMFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst,
|
|
|
|
INT widthDst, INT heightDst,
|
|
|
|
PHYSDEV devSrc, INT xSrc, INT ySrc,
|
|
|
|
INT widthSrc, INT heightSrc, DWORD rop );
|
|
|
|
extern INT EMFDRV_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, DWORD dwRop );
|
|
|
|
extern BOOL EMFDRV_StrokeAndFillPath( PHYSDEV dev );
|
|
|
|
extern BOOL EMFDRV_StrokePath( PHYSDEV dev );
|
|
|
|
extern BOOL EMFDRV_WidenPath( PHYSDEV dev );
|
1999-05-02 12:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WINE_METAFILEDRV_H */
|