metafile.h 1.73 KB
Newer Older
Alexandre Julliard's avatar
Alexandre Julliard committed
1 2 3 4 5 6
/*
 * Metafile definitions
 *
 * Copyright  David W. Metcalfe, 1994
 */

Alexandre Julliard's avatar
Alexandre Julliard committed
7 8
#ifndef __WINE_METAFILE_H
#define __WINE_METAFILE_H
Alexandre Julliard's avatar
Alexandre Julliard committed
9

10 11
#include "wingdi.h"
#include "gdi.h"
Alexandre Julliard's avatar
Alexandre Julliard committed
12 13 14 15 16

#define MFHEADERSIZE (sizeof(METAHEADER))
#define MFVERSION 0x300
#define META_EOF 0x0000

17 18 19 20
BOOL MF_MetaParam0(DC *dc, short func);
BOOL MF_MetaParam1(DC *dc, short func, short param1);
BOOL MF_MetaParam2(DC *dc, short func, short param1, short param2);
BOOL MF_MetaParam4(DC *dc, short func, short param1, short param2, 
Alexandre Julliard's avatar
Alexandre Julliard committed
21
		   short param3, short param4);
22
BOOL MF_MetaParam6(DC *dc, short func, short param1, short param2, 
Alexandre Julliard's avatar
Alexandre Julliard committed
23
		   short param3, short param4, short param5, short param6);
24
BOOL MF_MetaParam8(DC *dc, short func, short param1, short param2, 
Alexandre Julliard's avatar
Alexandre Julliard committed
25 26
		   short param3, short param4, short param5,
		   short param6, short param7, short param8);
27 28 29 30 31 32
BOOL MF_CreateBrushIndirect(DC *dc, HBRUSH16 hBrush, LOGBRUSH16 *logbrush);
BOOL MF_CreatePatternBrush(DC *dc, HBRUSH16 hBrush, LOGBRUSH16 *logbrush);
BOOL MF_CreatePenIndirect(DC *dc, HPEN16 hPen, LOGPEN16 *logpen);
BOOL MF_CreateFontIndirect(DC *dc, HFONT16 hFont, LOGFONT16 *logfont);
BOOL MF_TextOut(DC *dc, short x, short y, LPCSTR str, short count);
BOOL MF_ExtTextOut(DC *dc, short x, short y, UINT16 flags, const RECT16 *rect,
Alexandre Julliard's avatar
Alexandre Julliard committed
33
                   LPCSTR str, short count, const INT16 *lpDx);
34 35
BOOL MF_MetaPoly(DC *dc, short func, LPPOINT16 pt, short count);
BOOL MF_BitBlt(DC *dcDest, short xDest, short yDest, short width,
Alexandre Julliard's avatar
Alexandre Julliard committed
36
	       short height, DC *dcSrc, short xSrc, short ySrc, DWORD rop);
37
BOOL MF_StretchBlt(DC *dcDest, short xDest, short yDest, short widthDest,
Alexandre Julliard's avatar
Alexandre Julliard committed
38
		   short heightDest, DC *dcSrc, short xSrc, short ySrc, 
Alexandre Julliard's avatar
Alexandre Julliard committed
39
		   short widthSrc, short heightSrc, DWORD rop);
40
INT16 MF_CreateRegion(DC *dc, HRGN hrgn);
Alexandre Julliard's avatar
Alexandre Julliard committed
41
#endif   /* __WINE_METAFILE_H */
Alexandre Julliard's avatar
Alexandre Julliard committed
42