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
|
2006-05-18 14:49:52 +02:00
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, 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"
|
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
|
|
|
|
{
|
2011-03-08 19:25:09 +01:00
|
|
|
struct gdi_physdev dev;
|
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 */
|
2011-03-10 20:22:22 +01:00
|
|
|
HBRUSH dc_brush;
|
|
|
|
HPEN dc_pen;
|
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;
|
2007-03-27 09:54:49 +02:00
|
|
|
INT numcolors;
|
2009-04-07 20:41:41 +02:00
|
|
|
INT restoring; /* RestoreDC counter */
|
1999-05-02 12:15:16 +02:00
|
|
|
} EMFDRV_PDEVICE;
|
|
|
|
|
|
|
|
|
2007-11-07 17:50:57 +01:00
|
|
|
extern BOOL EMFDRV_WriteRecord( PHYSDEV dev, EMR *emr ) DECLSPEC_HIDDEN;
|
|
|
|
extern void EMFDRV_UpdateBBox( PHYSDEV dev, RECTL *rect ) DECLSPEC_HIDDEN;
|
|
|
|
extern DWORD EMFDRV_CreateBrushIndirect( PHYSDEV dev, HBRUSH hBrush ) DECLSPEC_HIDDEN;
|
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 */
|
2008-12-16 14:18:49 +01:00
|
|
|
extern BOOL CDECL EMFDRV_AbortPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Arc( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_BeginPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_BitBlt( PHYSDEV devDst, INT xDst, INT yDst,
|
|
|
|
INT width, INT height, PHYSDEV devSrc,
|
|
|
|
INT xSrc, INT ySrc, DWORD rop ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Chord( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_CloseFigure( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_DeleteObject( PHYSDEV dev, HGDIOBJ obj ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Ellipse( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_EndPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_ExcludeClipRect( PHYSDEV dev, INT left, INT top, INT right, INT bottom ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_ExtFloodFill( PHYSDEV dev, INT x, INT y, COLORREF color, UINT fillType ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_ExtSelectClipRgn( PHYSDEV dev, HRGN hrgn, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_ExtTextOut( PHYSDEV dev, INT x, INT y,
|
|
|
|
UINT flags, const RECT *lprect, LPCWSTR str,
|
|
|
|
UINT count, const INT *lpDx ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_FillPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_FillRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_FlattenPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_FrameRgn( PHYSDEV dev, HRGN hrgn, HBRUSH hbrush, INT width,
|
|
|
|
INT height ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_GdiComment( PHYSDEV dev, UINT bytes, CONST BYTE *buffer ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_GetDeviceCaps( PHYSDEV dev, INT cap ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_IntersectClipRect( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_InvertRgn( PHYSDEV dev, HRGN hrgn ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_LineTo( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
2011-03-08 15:21:52 +01:00
|
|
|
extern BOOL CDECL EMFDRV_ModifyWorldTransform( PHYSDEV dev, const XFORM *xform, DWORD mode ) DECLSPEC_HIDDEN;
|
2008-12-16 14:18:49 +01:00
|
|
|
extern BOOL CDECL EMFDRV_MoveTo( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_OffsetClipRgn( PHYSDEV dev, INT x, INT y ) DECLSPEC_HIDDEN;
|
2011-03-09 16:21:45 +01:00
|
|
|
extern BOOL CDECL EMFDRV_OffsetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_OffsetWindowOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN;
|
2008-12-16 14:18:49 +01:00
|
|
|
extern BOOL CDECL EMFDRV_PaintRgn( PHYSDEV dev, HRGN hrgn ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_PatBlt( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT width, INT height, DWORD rop ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Pie( PHYSDEV dev, INT left, INT top, INT right,
|
|
|
|
INT bottom, INT xstart, INT ystart, INT xend,
|
|
|
|
INT yend ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_PolyPolygon( PHYSDEV dev, const POINT* pt,
|
|
|
|
const INT* counts, UINT polys) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_PolyPolyline( PHYSDEV dev, const POINT* pt,
|
|
|
|
const DWORD* counts, DWORD polys) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Polygon( PHYSDEV dev, const POINT* pt, INT count ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Polyline( PHYSDEV dev, const POINT* pt,INT count) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_Rectangle( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_RestoreDC( PHYSDEV dev, INT level ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_RoundRect( PHYSDEV dev, INT left, INT top,
|
|
|
|
INT right, INT bottom, INT ell_width,
|
|
|
|
INT ell_height ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_SaveDC( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
2011-03-09 16:21:45 +01:00
|
|
|
extern BOOL CDECL EMFDRV_ScaleViewportExtEx( PHYSDEV dev, INT xNum, INT xDenom,
|
|
|
|
INT yNum, INT yDenom, SIZE *size ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_ScaleWindowExtEx( PHYSDEV dev, INT xNum, INT xDenom,
|
|
|
|
INT yNum, INT yDenom, SIZE *size ) DECLSPEC_HIDDEN;
|
2008-12-16 14:18:49 +01:00
|
|
|
extern HBITMAP CDECL EMFDRV_SelectBitmap( PHYSDEV dev, HBITMAP handle ) DECLSPEC_HIDDEN;
|
|
|
|
extern HBRUSH CDECL EMFDRV_SelectBrush( PHYSDEV dev, HBRUSH handle ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_SelectClipPath( PHYSDEV dev, INT iMode ) DECLSPEC_HIDDEN;
|
|
|
|
extern HFONT CDECL EMFDRV_SelectFont( PHYSDEV dev, HFONT handle, HANDLE gdiFont ) DECLSPEC_HIDDEN;
|
|
|
|
extern HPEN CDECL EMFDRV_SelectPen( PHYSDEV dev, HPEN handle ) DECLSPEC_HIDDEN;
|
|
|
|
extern HPALETTE CDECL EMFDRV_SelectPalette( PHYSDEV dev, HPALETTE hPal, BOOL force ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_SetArcDirection( PHYSDEV dev, INT arcDirection ) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF CDECL EMFDRV_SetBkColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_SetBkMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
2011-03-10 20:22:22 +01:00
|
|
|
extern COLORREF CDECL EMFDRV_SetDCBrushColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF CDECL EMFDRV_SetDCPenColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
|
2008-12-16 14:18:49 +01:00
|
|
|
extern INT CDECL 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 ) DECLSPEC_HIDDEN;
|
2011-03-10 22:10:16 +01:00
|
|
|
extern DWORD CDECL EMFDRV_SetLayout( PHYSDEV dev, DWORD layout ) DECLSPEC_HIDDEN;
|
2008-12-16 14:18:49 +01:00
|
|
|
extern INT CDECL EMFDRV_SetMapMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern DWORD CDECL EMFDRV_SetMapperFlags( PHYSDEV dev, DWORD flags ) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF CDECL EMFDRV_SetPixel( PHYSDEV dev, INT x, INT y, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_SetPolyFillMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_SetROP2( PHYSDEV dev, INT rop ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL EMFDRV_SetStretchBltMode( PHYSDEV dev, INT mode ) DECLSPEC_HIDDEN;
|
|
|
|
extern UINT CDECL EMFDRV_SetTextAlign( PHYSDEV dev, UINT align ) DECLSPEC_HIDDEN;
|
|
|
|
extern COLORREF CDECL EMFDRV_SetTextColor( PHYSDEV dev, COLORREF color ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_SetTextJustification( PHYSDEV dev, INT nBreakExtra,
|
|
|
|
INT nBreakCount ) DECLSPEC_HIDDEN;
|
2011-03-09 16:21:45 +01:00
|
|
|
extern BOOL CDECL EMFDRV_SetViewportExtEx( PHYSDEV dev, INT x, INT y, SIZE *size ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_SetViewportOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_SetWindowExtEx( PHYSDEV dev, INT x, INT y, SIZE *size ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_SetWindowOrgEx( PHYSDEV dev, INT x, INT y, POINT *pt ) DECLSPEC_HIDDEN;
|
2008-12-16 14:18:49 +01:00
|
|
|
extern BOOL CDECL EMFDRV_SetWorldTransform( PHYSDEV dev, const XFORM *xform ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_StretchBlt( PHYSDEV devDst, INT xDst, INT yDst,
|
|
|
|
INT widthDst, INT heightDst,
|
|
|
|
PHYSDEV devSrc, INT xSrc, INT ySrc,
|
|
|
|
INT widthSrc, INT heightSrc, DWORD rop ) DECLSPEC_HIDDEN;
|
|
|
|
extern INT CDECL 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 ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_StrokeAndFillPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_StrokePath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
|
|
|
extern BOOL CDECL EMFDRV_WidenPath( PHYSDEV dev ) DECLSPEC_HIDDEN;
|
1999-05-02 12:15:16 +02:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* __WINE_METAFILEDRV_H */
|