2 * MetaFile driver DC value functions
4 * Copyright 1999 Huw D M Davies
8 #include "metafiledrv.h"
10 INT
MFDRV_SaveDC( DC
*dc
)
12 return MFDRV_MetaParam0( dc
, META_SAVEDC
);
15 BOOL
MFDRV_RestoreDC( DC
*dc
, INT level
)
17 if(level
!= -1) return FALSE
;
18 return MFDRV_MetaParam1( dc
, META_RESTOREDC
, level
);
21 UINT
MFDRV_SetTextAlign( DC
*dc
, UINT align
)
23 return MFDRV_MetaParam1( dc
, META_SETTEXTALIGN
, (WORD
)align
);
26 INT
MFDRV_SetBkMode( DC
*dc
, INT mode
)
28 return MFDRV_MetaParam1( dc
, META_SETBKMODE
, (WORD
)mode
);
31 INT
MFDRV_SetROP2( DC
*dc
, INT rop
)
33 return MFDRV_MetaParam1( dc
, META_SETROP2
, (WORD
)rop
);
36 INT
MFDRV_SetRelAbs( DC
*dc
, INT mode
)
38 return MFDRV_MetaParam1( dc
, META_SETRELABS
, (WORD
)mode
);
41 INT
MFDRV_SetPolyFillMode( DC
*dc
, INT mode
)
43 return MFDRV_MetaParam1( dc
, META_SETPOLYFILLMODE
, (WORD
)mode
);
46 INT
MFDRV_SetStretchBltMode( DC
*dc
, INT mode
)
48 return MFDRV_MetaParam1( dc
, META_SETSTRETCHBLTMODE
, (WORD
)mode
);
51 INT
MFDRV_IntersectClipRect( DC
*dc
, INT left
, INT top
, INT right
, INT bottom
)
53 return MFDRV_MetaParam4( dc
, META_INTERSECTCLIPRECT
, left
, top
, right
,
57 INT
MFDRV_ExcludeClipRect( DC
*dc
, INT left
, INT top
, INT right
, INT bottom
)
59 return MFDRV_MetaParam4( dc
, META_EXCLUDECLIPRECT
, left
, top
, right
,
63 INT
MFDRV_OffsetClipRgn( DC
*dc
, INT x
, INT y
)
65 return MFDRV_MetaParam2( dc
, META_OFFSETCLIPRGN
, x
, y
);
68 INT
MFDRV_SetTextJustification( DC
*dc
, INT extra
, INT breaks
)
70 return MFDRV_MetaParam2( dc
, META_SETTEXTJUSTIFICATION
, extra
, breaks
);
73 INT
MFDRV_SetTextCharacterExtra( DC
*dc
, INT extra
)
75 return MFDRV_MetaParam1( dc
, META_SETTEXTCHAREXTRA
, extra
);
78 DWORD
MFDRV_SetMapperFlags( DC
*dc
, DWORD flags
)
80 return MFDRV_MetaParam2( dc
, META_SETMAPPERFLAGS
, HIWORD(flags
),
84 BOOL
MFDRV_AbortPath( DC
*dc
)
89 BOOL
MFDRV_BeginPath( DC
*dc
)
94 BOOL
MFDRV_CloseFigure( DC
*dc
)
99 BOOL
MFDRV_EndPath( DC
*dc
)
104 BOOL
MFDRV_FillPath( DC
*dc
)
109 BOOL
MFDRV_FlattenPath( DC
*dc
)
114 BOOL
MFDRV_SelectClipPath( DC
*dc
, INT iMode
)
119 BOOL
MFDRV_StrokeAndFillPath( DC
*dc
)
124 BOOL
MFDRV_StrokePath( DC
*dc
)
129 BOOL
MFDRV_WidenPath( DC
*dc
)