ReactOS 0.4.15-dev-8138-g1e75ea8
arc.c File Reference
#include <precomp.h>
Include dependency graph for arc.c:

Go to the source code of this file.

Functions

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)
 
BOOL WINAPI AngleArc (_In_ HDC hdc, _In_ INT x, _In_ INT y, _In_ DWORD dwRadius, _In_ FLOAT eStartAngle, _In_ FLOAT eSweepAngle)
 
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)
 
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)
 
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)
 

Function Documentation

◆ AngleArc()

BOOL WINAPI AngleArc ( _In_ HDC  hdc,
_In_ INT  x,
_In_ INT  y,
_In_ DWORD  dwRadius,
_In_ FLOAT  eStartAngle,
_In_ FLOAT  eSweepAngle 
)

Definition at line 49 of file arc.c.

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}
#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 AngleArc(_In_ HDC hdc, _In_ INT x, _In_ INT y, _In_ DWORD dwRadius, _In_ FLOAT eStartAngle, _In_ FLOAT eSweepAngle)
Definition: arc.c:49
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:403
#define RCAST(_Type, _Value)
Definition: gdi32p.h:89
#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
__kernel_entry W32KAPI BOOL APIENTRY NtGdiAngleArc(_In_ HDC hdc, _In_ INT x, _In_ INT y, _In_ DWORD dwRadius, _In_ DWORD dwStartAngle, _In_ DWORD dwSweepAngle)

Referenced by AngleArc(), PlayEnhMetaFileRecord(), test_all_functions(), test_anglearc(), and test_emf_paths().

◆ Arc()

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 at line 5 of file arc.c.

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}
Definition: arc.h:55
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:589
__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)
@ GdiTypeArc
Definition: ntgdityp.h:20

◆ ArcTo()

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 at line 79 of file arc.c.

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}
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
@ GdiTypeArcTo
Definition: ntgdityp.h:21

Referenced by ArcTo(), PlayEnhMetaFileRecord(), test_all_functions(), test_arcto(), and test_emf_paths().

◆ Chord()

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 at line 119 of file arc.c.

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}
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
@ GdiTypeChord
Definition: ntgdityp.h:22

Referenced by app_draw_arc(), app_fill_arc(), Chord(), DrawPrimitive(), IntDrawArc(), IntFillArc(), PlayEnhMetaFileRecord(), PlayMetaFileRecord(), test_all_functions(), and test_emf_paths().

◆ Pie()

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 at line 163 of file arc.c.

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}
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
@ GdiTypePie
Definition: ntgdityp.h:23

Referenced by Pie().