source: trunk/include/win/metafiledrv.h

Last change on this file was 4, checked in by ktk, 26 years ago

Import

File size: 5.3 KB
Line 
1/* $Id: metafiledrv.h,v 1.1 1999-05-24 20:19:14 ktk Exp $ */
2
3/*
4 * Metafile driver definitions
5 */
6
7#ifndef __WINE_METAFILEDRV_H
8#define __WINE_METAFILEDRV_H
9
10#include "wingdi.h"
11#include "gdi.h"
12
13/* Metafile driver physical DC */
14
15typedef struct
16{
17 METAHEADER *mh; /* Pointer to metafile header */
18 UINT nextHandle; /* Next handle number */
19 HFILE hFile; /* HFILE for disk based MetaFile */
20} METAFILEDRV_PDEVICE;
21
22
23extern BOOL MFDRV_MetaParam0(DC *dc, short func);
24extern BOOL MFDRV_MetaParam1(DC *dc, short func, short param1);
25extern BOOL MFDRV_MetaParam2(DC *dc, short func, short param1, short param2);
26extern BOOL MFDRV_MetaParam4(DC *dc, short func, short param1, short param2,
27 short param3, short param4);
28extern BOOL MFDRV_MetaParam6(DC *dc, short func, short param1, short param2,
29 short param3, short param4, short param5,
30 short param6);
31extern BOOL MFDRV_MetaParam8(DC *dc, short func, short param1, short param2,
32 short param3, short param4, short param5,
33 short param6, short param7, short param8);
34extern BOOL MFDRV_WriteRecord(DC *dc, METARECORD *mr, DWORD rlen);
35extern int MFDRV_AddHandleDC( DC *dc );
36extern INT16 MFDRV_CreateBrushIndirect( DC *dc, HBRUSH hBrush );
37
38/* Metafile driver functions */
39
40extern BOOL MFDRV_Arc( DC *dc, INT left, INT top, INT right, INT bottom,
41 INT xstart, INT ystart, INT xend, INT yend );
42extern BOOL MFDRV_BitBlt( DC *dcDst, INT xDst, INT yDst, INT width,
43 INT height, DC *dcSrc, INT xSrc, INT ySrc,
44 DWORD rop );
45extern BOOL MFDRV_Chord( DC *dc, INT left, INT top, INT right,
46 INT bottom, INT xstart, INT ystart, INT xend,
47 INT yend );
48extern BOOL MFDRV_Ellipse( DC *dc, INT left, INT top,
49 INT right, INT bottom );
50extern INT MFDRV_ExcludeClipRect( DC *dc, INT left, INT top, INT right, INT
51 bottom );
52extern BOOL MFDRV_ExtFloodFill( DC *dc, INT x, INT y,
53 COLORREF color, UINT fillType );
54extern BOOL MFDRV_ExtTextOut( DC *dc, INT x, INT y,
55 UINT flags, const RECT *lprect, LPCSTR str,
56 UINT count, const INT *lpDx );
57extern BOOL MFDRV_FillRgn( DC *dc, HRGN hrgn, HBRUSH hbrush );
58extern BOOL MFDRV_FrameRgn( DC *dc, HRGN hrgn, HBRUSH hbrush, INT x, INT y );
59extern INT MFDRV_IntersectClipRect( DC *dc, INT left, INT top, INT right, INT
60 bottom );
61extern BOOL MFDRV_InvertRgn( DC *dc, HRGN hrgn );
62extern BOOL MFDRV_LineTo( DC *dc, INT x, INT y );
63extern BOOL MFDRV_MoveToEx( DC *dc, INT x, INT y, LPPOINT pt );
64extern INT MFDRV_OffsetClipRgn( DC *dc, INT x, INT y );
65extern BOOL MFDRV_OffsetViewportOrg( DC *dc, INT x, INT y );
66extern BOOL MFDRV_OffsetWindowOrg( DC *dc, INT x, INT y );
67extern BOOL MFDRV_PaintRgn( DC *dc, HRGN hrgn );
68extern BOOL MFDRV_PatBlt( DC *dc, INT left, INT top, INT width, INT height,
69 DWORD rop );
70extern BOOL MFDRV_Pie( DC *dc, INT left, INT top, INT right,
71 INT bottom, INT xstart, INT ystart, INT xend,
72 INT yend );
73extern BOOL MFDRV_PolyPolygon( DC *dc, const POINT* pt, const INT* counts,
74 UINT polygons);
75extern BOOL MFDRV_Polygon( DC *dc, const POINT* pt, INT count );
76extern BOOL MFDRV_Polyline( DC *dc, const POINT* pt,INT count);
77extern BOOL MFDRV_Rectangle( DC *dc, INT left, INT top,
78 INT right, INT bottom);
79extern BOOL MFDRV_RestoreDC( DC *dc, INT level );
80extern BOOL MFDRV_RoundRect( DC *dc, INT left, INT top,
81 INT right, INT bottom, INT ell_width,
82 INT ell_height );
83extern INT MFDRV_SaveDC( DC *dc );
84extern BOOL MFDRV_ScaleViewportExt( DC *dc, INT xNum, INT xDenom, INT yNum,
85 INT yDenom );
86extern BOOL MFDRV_ScaleWindowExt( DC *dc, INT xNum, INT xDenom, INT yNum,
87 INT yDenom );
88extern HGDIOBJ MFDRV_SelectObject( DC *dc, HGDIOBJ handle );
89extern COLORREF MFDRV_SetBkColor( DC *dc, COLORREF color );
90extern INT MFDRV_SetBkMode( DC *dc, INT mode );
91extern INT MFDRV_SetMapMode( DC *dc, INT mode );
92extern DWORD MFDRV_SetMapperFlags( DC *dc, DWORD flags );
93extern COLORREF MFDRV_SetPixel( DC *dc, INT x, INT y, COLORREF color );
94extern INT MFDRV_SetPolyFillMode( DC *dc, INT mode );
95extern INT MFDRV_SetROP2( DC *dc, INT rop );
96extern INT MFDRV_SetRelAbs( DC *dc, INT mode );
97extern INT MFDRV_SetStretchBltMode( DC *dc, INT mode );
98extern UINT MFDRV_SetTextAlign( DC *dc, UINT align );
99extern INT MFDRV_SetTextCharacterExtra( DC *dc, INT extra );
100extern COLORREF MFDRV_SetTextColor( DC *dc, COLORREF color );
101extern INT MFDRV_SetTextJustification( DC *dc, INT extra, INT breaks );
102extern BOOL MFDRV_SetViewportExt( DC *dc, INT x, INT y );
103extern BOOL MFDRV_SetViewportOrg( DC *dc, INT x, INT y );
104extern BOOL MFDRV_SetWindowExt( DC *dc, INT x, INT y );
105extern BOOL MFDRV_SetWindowOrg( DC *dc, INT x, INT y );
106extern BOOL MFDRV_StretchBlt( DC *dcDst, INT xDst, INT yDst, INT widthDst,
107 INT heightDst, DC *dcSrc, INT xSrc, INT ySrc,
108 INT widthSrc, INT heightSrc, DWORD rop );
109extern BOOL MFDRV_PaintRgn( DC *dc, HRGN hrgn );
110extern INT MFDRV_SetDIBitsToDevice( DC *dc, INT xDest, INT yDest, DWORD cx,
111 DWORD cy, INT xSrc, INT ySrc,
112 UINT startscan, UINT lines, LPCVOID bits,
113 const BITMAPINFO *info, UINT coloruse );
114extern INT MFDRV_StretchDIBits( DC *dc, INT xDst, INT yDst, INT widthDst,
115 INT heightDst, INT xSrc, INT ySrc,
116 INT widthSrc, INT heightSrc, const void *bits,
117 const BITMAPINFO *info, UINT wUsage,
118 DWORD dwRop );
119
120#endif /* __WINE_METAFILEDRV_H */
Note: See TracBrowser for help on using the repository browser.