ReactOS 0.4.15-dev-7924-g5949c20
path.c
Go to the documentation of this file.
1/*
2 * reactos/lib/gdi32/objects/path.c
3 *
4 * GDI32.DLL Path
5 *
6 * When you implement one of these functions,
7 * remove its stub from this file.
8 *
9 */
10
11#include <precomp.h>
12
13/*
14 * @implemented
15 */
16BOOL
19 HDC hdc)
20{
22 return NtGdiAbortPath(hdc);
23}
24
25
26/*
27 * @implemented
28 */
29BOOL
32 HDC hdc)
33{
35 return NtGdiBeginPath(hdc);
36}
37
38/*
39 * @implemented
40 */
41BOOL
44 HDC hdc)
45{
47 return NtGdiCloseFigure(hdc);
48}
49
50
51/*
52 * @implemented
53 */
54BOOL
57 HDC hdc)
58{
60 return NtGdiEndPath( hdc );
61}
62
63
64/*
65 * @implemented
66 */
67BOOL
70 HDC hdc)
71{
73 return NtGdiFillPath( hdc );
74}
75
76
77/*
78 * @implemented
79 */
80BOOL
83 HDC hdc)
84{
86 return NtGdiFlattenPath ( hdc );
87}
88
89
90/*
91 * @implemented
92 */
93INT
96 LPPOINT pptlBuf,
97 LPBYTE pjTypes,
98 INT cptBuf)
99{
100 INT retValue = -1;
101
103 {
105 }
106 else
107 {
108 retValue = NtGdiGetPath(hdc,pptlBuf,pjTypes,cptBuf);
109 }
110
111 return retValue;
112}
113
114
115/*
116 * @implemented
117 */
118HRGN
119WINAPI
121 HDC hdc)
122{
124 return NtGdiPathToRegion(hdc);
125}
126
127/*
128 * @implemented
129 */
130BOOL
131WINAPI
133 HDC hdc,
134 FLOAT a1,
135 PFLOAT a2
136)
137{
138 BOOL Ret;
139 gxf_long worker, worker1;
140
141 worker.f = a1;
142 Ret = NtGdiSetMiterLimit ( hdc, worker.l, a2 ? &worker1.l : NULL );
143 if (a2 && Ret) *a2 = worker1.f;
144 return Ret;
145}
146
147
148/*
149 * @implemented
150 */
151BOOL
152WINAPI
154 HDC hdc)
155{
157 return NtGdiStrokeAndFillPath ( hdc );
158}
159
160
161/*
162 * @implemented
163 */
164BOOL
165WINAPI
167 HDC hdc)
168{
170 return NtGdiStrokePath ( hdc );
171}
172
173
174/*
175 * @implemented
176 */
177BOOL
178WINAPI
180 HDC hdc)
181{
183 return NtGdiWidenPath ( hdc );
184}
185
186/*
187 * @implemented
188 */
189BOOL
190WINAPI
192 HDC hdc,
193 int iMode)
194{
197}
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
unsigned int BOOL
Definition: ntddk_ex.h:94
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:622
#define HANDLE_EMETAFDC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:644
#define GDI_HANDLE_GET_TYPE(h)
Definition: gdi.h:31
#define GDI_OBJECT_TYPE_METADC
Definition: gdi.h:57
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
static const struct update_accum a1
Definition: msg.c:578
static const struct update_accum a2
Definition: msg.c:586
__kernel_entry W32KAPI BOOL APIENTRY NtGdiEndPath(_In_ HDC hdc)
__kernel_entry W32KAPI INT APIENTRY NtGdiGetPath(_In_ HDC hdc, _Out_writes_opt_(cptBuf) LPPOINT pptlBuf, _Out_writes_opt_(cptBuf) LPBYTE pjTypes, _In_ INT cptBuf)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiCloseFigure(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiFlattenPath(_In_ HDC hdc)
__kernel_entry W32KAPI HRGN APIENTRY NtGdiPathToRegion(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiSelectClipPath(_In_ HDC hdc, _In_ INT iMode)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiStrokePath(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiAbortPath(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiWidenPath(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiFillPath(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiSetMiterLimit(_In_ HDC hdc, _In_ DWORD dwNew, _Inout_opt_ PDWORD pdwOut)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiBeginPath(_In_ HDC hdc)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiStrokeAndFillPath(_In_ HDC hdc)
unsigned char * LPBYTE
Definition: typedefs.h:53
float FLOAT
Definition: typedefs.h:69
int32_t INT
Definition: typedefs.h:58
ULONG l
Definition: ntgdityp.h:427
FLOAT f
Definition: ntgdityp.h:426
BOOL WINAPI SetMiterLimit(HDC hdc, FLOAT a1, PFLOAT a2)
Definition: path.c:132
_In_ ULONG iMode
Definition: winddi.h:3520
FLOAT * PFLOAT
Definition: windef.h:174
#define WINAPI
Definition: msvc.h:6
BOOL WINAPI SelectClipPath(_In_ HDC, _In_ int)
BOOL WINAPI FlattenPath(_In_ HDC)
BOOL WINAPI FillPath(_In_ HDC)
HRGN WINAPI PathToRegion(_In_ HDC)
BOOL WINAPI StrokePath(_In_ HDC)
BOOL WINAPI StrokeAndFillPath(_In_ HDC)
BOOL WINAPI WidenPath(_In_ HDC)
BOOL WINAPI EndPath(_In_ HDC)
BOOL WINAPI BeginPath(_In_ HDC hdc)
BOOL WINAPI CloseFigure(_In_ HDC hdc)
int WINAPI GetPath(_In_ HDC hdc, _Out_writes_opt_(cpt) LPPOINT apt, _Out_writes_opt_(cpt) LPBYTE aj, int cpt)
BOOL WINAPI AbortPath(_In_ HDC hdc)