ReactOS 0.4.15-dev-7953-g1f49173
dc.c
Go to the documentation of this file.
1/*
2 * MetaFile driver DC value functions
3 *
4 * Copyright 1999 Huw D M Davies
5 *
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
10 *
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
15 *
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
19 */
20
21#include "mfdrv/metafiledrv.h"
22
24{
26}
27
29{
31}
32
34{
36}
37
39{
41}
42
44{
46}
47
49{
51}
52
54{
55 return MFDRV_MetaParam1( dev, META_SETROP2, (WORD)rop) ? rop : 0;
56}
57
59{
61}
62
64{
66}
67
69{
71}
72
74{
76}
77
79{
81}
82
84{
86}
87
89{
91}
92
94{
96}
97
99{
101}
102
104{
106}
107
109{
111}
112
114{
116}
117
119{
121}
122
123BOOL MFDRV_ScaleViewportExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size )
124{
125 return MFDRV_MetaParam4( dev, META_SCALEVIEWPORTEXT, xNum, xDenom, yNum, yDenom );
126}
127
128BOOL MFDRV_ScaleWindowExtEx( PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size )
129{
130 return MFDRV_MetaParam4( dev, META_SCALEWINDOWEXT, xNum, xDenom, yNum, yDenom );
131}
132
134{
136}
137
139{
140 return MFDRV_MetaParam1( dev, META_SETTEXTCHAREXTRA, extra ) ? extra : 0x80000000;
141}
142
144{
146}
147
149{
150 return FALSE;
151}
152
154{
155 return FALSE;
156}
157
159{
160 return FALSE;
161}
162
164{
165 return FALSE;
166}
167
169{
170 return FALSE;
171}
172
174{
175 return FALSE;
176}
177
179{
180 return FALSE;
181}
182
184{
185 return FALSE;
186}
187
189{
190 return FALSE;
191}
192
194{
195 return FALSE;
196}
197
199{
200 return CLR_INVALID;
201}
202
204{
205 return CLR_INVALID;
206}
#define FALSE
Definition: types.h:117
#define pt(x, y)
Definition: drawing.c:79
int align(int length, int align)
Definition: dsound8.c:36
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
GLint level
Definition: gl.h:1546
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
GLsizeiptr size
Definition: glext.h:5919
GLuint color
Definition: glext.h:6243
GLdouble GLdouble GLdouble GLdouble top
Definition: glext.h:10859
GLdouble GLdouble right
Definition: glext.h:10859
GLenum mode
Definition: glext.h:6217
GLint left
Definition: glext.h:7726
GLbitfield flags
Definition: glext.h:7161
GLint GLint bottom
Definition: glext.h:7726
@ extra
Definition: id3.c:95
static int rop(int rop, int src, int dst)
Definition: nanoxwin.c:124
unsigned int UINT
Definition: ndis.h:50
#define LOWORD(l)
Definition: pedump.c:82
int32_t INT
Definition: typedefs.h:58
#define HIWORD(l)
Definition: typedefs.h:247
COLORREF MFDRV_SetTextColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:48
COLORREF MFDRV_SetDCBrushColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:198
BOOL MFDRV_SetViewportOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:98
BOOL MFDRV_CloseFigure(PHYSDEV dev)
Definition: dc.c:158
BOOL MFDRV_SetWindowOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:108
BOOL MFDRV_SetViewportExtEx(PHYSDEV dev, INT x, INT y, SIZE *size)
Definition: dc.c:93
BOOL MFDRV_EndPath(PHYSDEV dev)
Definition: dc.c:163
BOOL MFDRV_SelectClipPath(PHYSDEV dev, INT iMode)
Definition: dc.c:178
BOOL MFDRV_FillPath(PHYSDEV dev)
Definition: dc.c:168
BOOL MFDRV_SetTextJustification(PHYSDEV dev, INT extra, INT breaks)
Definition: dc.c:133
INT MFDRV_SetROP2(PHYSDEV dev, INT rop)
Definition: dc.c:53
BOOL MFDRV_BeginPath(PHYSDEV dev)
Definition: dc.c:153
BOOL MFDRV_AbortPath(PHYSDEV dev)
Definition: dc.c:148
INT MFDRV_OffsetClipRgn(PHYSDEV dev, INT x, INT y)
Definition: dc.c:83
BOOL MFDRV_OffsetViewportOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:113
INT MFDRV_SetTextCharacterExtra(PHYSDEV dev, INT extra)
Definition: dc.c:138
INT MFDRV_SetRelAbs(PHYSDEV dev, INT mode)
Definition: dc.c:58
DWORD MFDRV_SetMapperFlags(PHYSDEV dev, DWORD flags)
Definition: dc.c:143
INT MFDRV_SetStretchBltMode(PHYSDEV dev, INT mode)
Definition: dc.c:68
BOOL MFDRV_WidenPath(PHYSDEV dev)
Definition: dc.c:193
UINT MFDRV_SetTextAlign(PHYSDEV dev, UINT align)
Definition: dc.c:33
INT MFDRV_SaveDC(PHYSDEV dev)
Definition: dc.c:23
BOOL MFDRV_ScaleWindowExtEx(PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size)
Definition: dc.c:128
INT MFDRV_SetBkMode(PHYSDEV dev, INT mode)
Definition: dc.c:38
BOOL MFDRV_StrokeAndFillPath(PHYSDEV dev)
Definition: dc.c:183
BOOL MFDRV_SetWindowExtEx(PHYSDEV dev, INT x, INT y, SIZE *size)
Definition: dc.c:103
BOOL MFDRV_OffsetWindowOrgEx(PHYSDEV dev, INT x, INT y, POINT *pt)
Definition: dc.c:118
BOOL MFDRV_FlattenPath(PHYSDEV dev)
Definition: dc.c:173
COLORREF MFDRV_SetBkColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:43
BOOL MFDRV_StrokePath(PHYSDEV dev)
Definition: dc.c:188
BOOL MFDRV_ScaleViewportExtEx(PHYSDEV dev, INT xNum, INT xDenom, INT yNum, INT yDenom, SIZE *size)
Definition: dc.c:123
INT MFDRV_SetPolyFillMode(PHYSDEV dev, INT mode)
Definition: dc.c:63
COLORREF MFDRV_SetDCPenColor(PHYSDEV dev, COLORREF color)
Definition: dc.c:203
INT MFDRV_IntersectClipRect(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
Definition: dc.c:73
BOOL MFDRV_RestoreDC(PHYSDEV dev, INT level)
Definition: dc.c:28
INT MFDRV_ExcludeClipRect(PHYSDEV dev, INT left, INT top, INT right, INT bottom)
Definition: dc.c:78
INT MFDRV_SetMapMode(PHYSDEV dev, INT mode)
Definition: dc.c:88
BOOL MFDRV_MetaParam4(PHYSDEV dev, short func, short param1, short param2, short param3, short param4)
Definition: init.c:566
BOOL MFDRV_MetaParam0(PHYSDEV dev, short func)
Definition: init.c:518
BOOL MFDRV_MetaParam1(PHYSDEV dev, short func, short param1)
Definition: init.c:532
BOOL MFDRV_MetaParam2(PHYSDEV dev, short func, short param1, short param2)
Definition: init.c:548
_In_ ULONG iMode
Definition: winddi.h:3520
DWORD COLORREF
Definition: windef.h:300
#define META_SETTEXTCOLOR
Definition: wingdi.h:219
#define META_SCALEVIEWPORTEXT
Definition: wingdi.h:228
#define META_SETTEXTCHAREXTRA
Definition: wingdi.h:217
#define META_SETSTRETCHBLTMODE
Definition: wingdi.h:216
#define META_EXCLUDECLIPRECT
Definition: wingdi.h:231
#define META_SETPOLYFILLMODE
Definition: wingdi.h:215
#define META_SETMAPMODE
Definition: wingdi.h:212
#define META_SETRELABS
Definition: wingdi.h:214
#define META_SETBKMODE
Definition: wingdi.h:211
#define META_SETTEXTALIGN
Definition: wingdi.h:256
#define CLR_INVALID
Definition: wingdi.h:883
#define META_SCALEWINDOWEXT
Definition: wingdi.h:226
#define META_RESTOREDC
Definition: wingdi.h:249
#define META_SETWINDOWORG
Definition: wingdi.h:221
#define META_SETROP2
Definition: wingdi.h:213
#define META_SETWINDOWEXT
Definition: wingdi.h:222
#define META_SETVIEWPORTEXT
Definition: wingdi.h:224
#define META_SETVIEWPORTORG
Definition: wingdi.h:223
#define GDI_ERROR
Definition: wingdi.h:1309
#define META_OFFSETCLIPRGN
Definition: wingdi.h:242
#define META_SETBKCOLOR
Definition: wingdi.h:210
#define META_SETTEXTJUSTIFICATION
Definition: wingdi.h:220
#define META_SAVEDC
Definition: wingdi.h:240
#define META_OFFSETWINDOWORG
Definition: wingdi.h:225
#define META_SETMAPPERFLAGS
Definition: wingdi.h:258
#define META_OFFSETVIEWPORTORG
Definition: wingdi.h:227
#define META_INTERSECTCLIPRECT
Definition: wingdi.h:232