[CMAKE]
[reactos.git] / dll / win32 / gdi32 / objects / path.c
1 /* $Id: stubs.c 18897 2005-12-08 23:10:33Z cwittich $
2 *
3 * reactos/lib/gdi32/objects/path.c
4 *
5 * GDI32.DLL Path
6 *
7 * When you implement one of these functions,
8 * remove its stub from this file.
9 *
10 */
11
12 #include "precomp.h"
13
14 /*
15 * @implemented
16 */
17 BOOL
18 WINAPI
19 AbortPath(
20 HDC hdc
21 )
22 {
23 return NtGdiAbortPath( hdc );
24 }
25
26
27 /*
28 * @implemented
29 */
30 BOOL
31 WINAPI
32 BeginPath(
33 HDC hdc
34 )
35 {
36 return NtGdiBeginPath( hdc );
37 }
38
39 /*
40 * @implemented
41 */
42 BOOL
43 WINAPI
44 CloseFigure(
45 HDC hdc
46 )
47 {
48 return NtGdiCloseFigure ( hdc );
49 }
50
51
52 /*
53 * @implemented
54 */
55 BOOL
56 WINAPI
57 EndPath(
58 HDC hdc
59 )
60 {
61 return NtGdiEndPath( hdc );
62 }
63
64
65 /*
66 * @implemented
67 */
68 BOOL
69 WINAPI
70 FillPath(
71 HDC hdc
72 )
73 {
74 return NtGdiFillPath( hdc );
75 }
76
77
78 /*
79 * @implemented
80 */
81 BOOL
82 WINAPI
83 FlattenPath(
84 HDC hdc
85 )
86 {
87 return NtGdiFlattenPath ( hdc );
88 }
89
90
91 /*
92 * @implemented
93 */
94 INT
95 WINAPI
96 GetPath(HDC hdc,
97 LPPOINT pptlBuf,
98 LPBYTE pjTypes,
99 INT cptBuf)
100 {
101 INT retValue = -1;
102
103 if (GDI_HANDLE_GET_TYPE(hdc) == GDI_OBJECT_TYPE_METADC)
104 {
105 SetLastError(ERROR_INVALID_PARAMETER);
106 }
107 else
108 {
109 retValue = NtGdiGetPath(hdc,pptlBuf,pjTypes,cptBuf);
110 }
111
112 return retValue;
113 }
114
115
116 /*
117 * @implemented
118 */
119 HRGN
120 WINAPI
121 PathToRegion(
122 HDC hdc
123 )
124 {
125 return NtGdiPathToRegion ( hdc );
126 }
127
128 /*
129 * @implemented
130 */
131 BOOL
132 WINAPI
133 SetMiterLimit(
134 HDC hdc,
135 FLOAT a1,
136 PFLOAT a2
137 )
138 {
139 BOOL Ret;
140 gxf_long worker, worker1;
141
142 worker.f = a1;
143 Ret = NtGdiSetMiterLimit ( hdc, worker.l, a2 ? &worker1.l : NULL );
144 if (a2 && Ret) *a2 = worker1.f;
145 return Ret;
146 }
147
148
149 /*
150 * @implemented
151 */
152 BOOL
153 WINAPI
154 StrokeAndFillPath(
155 HDC hdc
156 )
157 {
158 return NtGdiStrokeAndFillPath ( hdc );
159 }
160
161
162 /*
163 * @implemented
164 */
165 BOOL
166 WINAPI
167 StrokePath(
168 HDC hdc
169 )
170 {
171 return NtGdiStrokePath ( hdc );
172 }
173
174
175 /*
176 * @implemented
177 */
178 BOOL
179 WINAPI
180 WidenPath(
181 HDC hdc
182 )
183 {
184 return NtGdiWidenPath ( hdc );
185 }
186
187 /*
188 * @implemented
189 */
190 BOOL
191 WINAPI
192 SelectClipPath(
193 HDC hdc,
194 int Mode
195 )
196 {
197 return NtGdiSelectClipPath ( hdc, Mode );
198 }