ReactOS  0.4.13-dev-259-g5ca9c9c
arc.c
Go to the documentation of this file.
1 #include <precomp.h>
2 
3 BOOL
4 WINAPI
6  _In_ HDC hdc,
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 
30  hdc,
31  xLeft,
32  yTop,
33  xRight,
34  yBottom,
35  xStartArc,
36  yStartArc,
37  xEndArc,
38  yEndArc);
39 }
40 
41 
42 /*
43  * @implemented
44  */
45 BOOL
46 WINAPI
48  _In_ HDC hdc,
49  _In_ INT x,
50  _In_ INT y,
51  _In_ DWORD dwRadius,
52  _In_ FLOAT eStartAngle,
53  _In_ FLOAT eSweepAngle)
54 {
56  AngleArc,
57  FALSE,
58  hdc,
59  x,
60  y,
61  dwRadius,
62  RCAST(DWORD, eStartAngle),
63  RCAST(DWORD, eSweepAngle));
64 
65  return NtGdiAngleArc(hdc,
66  x,
67  y,
68  dwRadius,
69  RCAST(DWORD, eStartAngle),
70  RCAST(DWORD, eSweepAngle));
71 }
72 
73 BOOL
74 WINAPI
76  _In_ HDC hdc,
77  _In_ INT xLeft,
78  _In_ INT yTop,
79  _In_ INT xRight,
80  _In_ INT yBottom,
81  _In_ INT xRadial1,
82  _In_ INT yRadial1,
83  _In_ INT xRadial2,
84  _In_ INT yRadial2)
85 {
87  ArcTo,
88  FALSE,
89  hdc,
90  xLeft,
91  yTop,
92  xRight,
93  yBottom,
94  xRadial1,
95  yRadial1,
96  xRadial2,
97  yRadial2);
98 
100  hdc,
101  xLeft,
102  yTop,
103  xRight,
104  yBottom,
105  xRadial1,
106  yRadial1,
107  xRadial2,
108  yRadial2);
109 }
110 
111 BOOL
112 WINAPI
114  _In_ HDC hdc,
115  _In_ INT xLeft,
116  _In_ INT yTop,
117  _In_ INT xRight,
118  _In_ INT yBottom,
119  _In_ INT xRadial1,
120  _In_ INT yRadial1,
121  _In_ INT xRadial2,
122  _In_ INT yRadial2)
123 {
125  Chord,
126  FALSE,
127  hdc,
128  xLeft,
129  yTop,
130  xRight,
131  yBottom,
132  xRadial1,
133  yRadial1,
134  xRadial2,
135  yRadial2);
136 
138  hdc,
139  xLeft,
140  yTop,
141  xRight,
142  yBottom,
143  xRadial1,
144  yRadial1,
145  xRadial2,
146  yRadial2);
147 }
148 
149 
150 /*
151  * @unimplemented
152  */
153 BOOL
154 WINAPI
156  _In_ HDC hdc,
157  _In_ INT xLeft,
158  _In_ INT yTop,
159  _In_ INT xRight,
160  _In_ INT yBottom,
161  _In_ INT xRadial1,
162  _In_ INT yRadial1,
163  _In_ INT xRadial2,
164  _In_ INT yRadial2)
165 {
167  Pie,
168  FALSE,
169  hdc,
170  xLeft,
171  yTop,
172  xRight,
173  yBottom,
174  xRadial1,
175  yRadial1,
176  xRadial2,
177  yRadial2);
178 
180  hdc,
181  xLeft,
182  yTop,
183  xRight,
184  yBottom,
185  xRadial1,
186  yRadial1,
187  xRadial2,
188  yRadial2);
189 }
190 
191 
static HDC
Definition: imagelist.c:92
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define RCAST(_Type, _Value)
Definition: gdi32p.h:89
int32_t INT
Definition: typedefs.h:56
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
Definition: arc.h:55
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI AngleArc(_In_ HDC hdc, _In_ INT x, _In_ INT y, _In_ DWORD dwRadius, _In_ FLOAT eStartAngle, _In_ FLOAT eSweepAngle)
Definition: arc.c:47
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:113
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:155
#define WINAPI
Definition: msvc.h:8
BOOL APIENTRY NtGdiArcInternal(ARCTYPE arctype, HDC hDC, int LeftRect, int TopRect, int RightRect, int BottomRect, int XStartArc, int YStartArc, int XEndArc, int YEndArc)
Definition: arc.c:347
unsigned long DWORD
Definition: ntddk_ex.h:95
HDC hdc
Definition: main.c:9
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:75
#define _In_
Definition: no_sal2.h:204
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
BOOL WINAPI Arc(_In_ HDC hdc, _In_ INT xLeft, _In_ INT yTop, _In_ INT xRight, _In_ INT yBottom, _In_ INT xStartArc, _In_ INT yStartArc, _In_ INT xEndArc, _In_ INT yEndArc)
Definition: arc.c:5
float FLOAT
Definition: typedefs.h:67
BOOL APIENTRY NtGdiAngleArc(IN HDC hDC, IN INT x, IN INT y, IN DWORD dwRadius, IN DWORD dwStartAngle, IN DWORD dwSweepAngle)
Definition: arc.c:301