ReactOS 0.4.15-dev-5667-ged97270
arc.c
Go to the documentation of this file.
1#include <precomp.h>
2
7 _In_ INT xLeft,
8 _In_ INT yTop,
9 _In_ INT xRight,
10 _In_ INT yBottom,
11 _In_ INT xStartArc,
12 _In_ INT yStartArc,
13 _In_ INT xEndArc,
14 _In_ INT yEndArc)
15{
17 Arc,
18 FALSE,
19 hdc,
20 xLeft,
21 yTop,
22 xRight,
23 yBottom,
24 xStartArc,
25 yStartArc,
26 xEndArc,
27 yEndArc);
28
29 if ( GdiConvertAndCheckDC(hdc) == NULL ) return FALSE;
30
32 hdc,
33 xLeft,
34 yTop,
35 xRight,
36 yBottom,
37 xStartArc,
38 yStartArc,
39 xEndArc,
40 yEndArc);
41}
42
43
44/*
45 * @implemented
46 */
47BOOL
50 _In_ HDC hdc,
51 _In_ INT x,
52 _In_ INT y,
53 _In_ DWORD dwRadius,
54 _In_ FLOAT eStartAngle,
55 _In_ FLOAT eSweepAngle)
56{
59 FALSE,
60 hdc,
61 x,
62 y,
63 dwRadius,
64 eStartAngle,
65 eSweepAngle);
66
67 if ( GdiConvertAndCheckDC(hdc) == NULL ) return FALSE;
68
69 return NtGdiAngleArc(hdc,
70 x,
71 y,
72 dwRadius,
73 RCAST(DWORD, eStartAngle),
74 RCAST(DWORD, eSweepAngle));
75}
76
77BOOL
80 _In_ HDC hdc,
81 _In_ INT xLeft,
82 _In_ INT yTop,
83 _In_ INT xRight,
84 _In_ INT yBottom,
85 _In_ INT xRadial1,
86 _In_ INT yRadial1,
87 _In_ INT xRadial2,
88 _In_ INT yRadial2)
89{
91 ArcTo,
92 FALSE,
93 hdc,
94 xLeft,
95 yTop,
96 xRight,
97 yBottom,
98 xRadial1,
99 yRadial1,
100 xRadial2,
101 yRadial2);
102
103 if ( GdiConvertAndCheckDC(hdc) == NULL ) return FALSE;
104
106 hdc,
107 xLeft,
108 yTop,
109 xRight,
110 yBottom,
111 xRadial1,
112 yRadial1,
113 xRadial2,
114 yRadial2);
115}
116
117BOOL
118WINAPI
120 _In_ HDC hdc,
121 _In_ INT xLeft,
122 _In_ INT yTop,
123 _In_ INT xRight,
124 _In_ INT yBottom,
125 _In_ INT xRadial1,
126 _In_ INT yRadial1,
127 _In_ INT xRadial2,
128 _In_ INT yRadial2)
129{
131 Chord,
132 FALSE,
133 hdc,
134 xLeft,
135 yTop,
136 xRight,
137 yBottom,
138 xRadial1,
139 yRadial1,
140 xRadial2,
141 yRadial2);
142
143 if ( GdiConvertAndCheckDC(hdc) == NULL ) return FALSE;
144
146 hdc,
147 xLeft,
148 yTop,
149 xRight,
150 yBottom,
151 xRadial1,
152 yRadial1,
153 xRadial2,
154 yRadial2);
155}
156
157
158/*
159 * @unimplemented
160 */
161BOOL
162WINAPI
164 _In_ HDC hdc,
165 _In_ INT xLeft,
166 _In_ INT yTop,
167 _In_ INT xRight,
168 _In_ INT yBottom,
169 _In_ INT xRadial1,
170 _In_ INT yRadial1,
171 _In_ INT xRadial2,
172 _In_ INT yRadial2)
173{
175 Pie,
176 FALSE,
177 hdc,
178 xLeft,
179 yTop,
180 xRight,
181 yBottom,
182 xRadial1,
183 yRadial1,
184 xRadial2,
185 yRadial2);
186
187 if ( GdiConvertAndCheckDC(hdc) == NULL ) return FALSE;
188
190 hdc,
191 xLeft,
192 yTop,
193 xRight,
194 yBottom,
195 xRadial1,
196 yRadial1,
197 xRadial2,
198 yRadial2);
199}
200
201
Definition: arc.h:55
#define NULL
Definition: types.h:112
#define FALSE
Definition: types.h:117
unsigned int BOOL
Definition: ntddk_ex.h:94
unsigned long DWORD
Definition: ntddk_ex.h:95
BOOL WINAPI ArcTo(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom, _In_ INT xRadial1, _In_ INT yRadial1, _In_ INT xRadial2, _In_ INT yRadial2)
Definition: arc.c:79
BOOL WINAPI Chord(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom, _In_ INT xRadial1, _In_ INT yRadial1, _In_ INT xRadial2, _In_ INT yRadial2)
Definition: arc.c:119
BOOL WINAPI AngleArc(_In_ HDC hdc, _In_ INT x, _In_ INT y, _In_ DWORD dwRadius, _In_ FLOAT eStartAngle, _In_ FLOAT eSweepAngle)
Definition: arc.c:49
BOOL WINAPI Pie(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom, _In_ INT xRadial1, _In_ INT yRadial1, _In_ INT xRadial2, _In_ INT yRadial2)
Definition: arc.c:163
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:403
#define RCAST(_Type, _Value)
Definition: gdi32p.h:89
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:589
#define HANDLE_EMETAFDC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:644
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
HDC hdc
Definition: main.c:9
static HDC
Definition: imagelist.c:92
#define _In_
Definition: ms_sal.h:308
__kernel_entry W32KAPI BOOL APIENTRY NtGdiAngleArc(_In_ HDC hdc, _In_ INT x, _In_ INT y, _In_ DWORD dwRadius, _In_ DWORD dwStartAngle, _In_ DWORD dwSweepAngle)
__kernel_entry W32KAPI BOOL APIENTRY NtGdiArcInternal(_In_ ARCTYPE arctype, _In_ HDC hdc, _In_ INT x1, _In_ INT y1, _In_ INT x2, _In_ INT y2, _In_ INT x3, _In_ INT y3, _In_ INT x4, _In_ INT y4)
@ GdiTypeChord
Definition: ntgdityp.h:22
@ GdiTypeArc
Definition: ntgdityp.h:20
@ GdiTypeArcTo
Definition: ntgdityp.h:21
@ GdiTypePie
Definition: ntgdityp.h:23
float FLOAT
Definition: typedefs.h:69
int32_t INT
Definition: typedefs.h:58
#define WINAPI
Definition: msvc.h:6