ReactOS  0.4.14-dev-41-g31d7680
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 {
58  AngleArc,
59  FALSE,
60  hdc,
61  x,
62  y,
63  dwRadius,
64  RCAST(DWORD, eStartAngle),
65  RCAST(DWORD, 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 }
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:414
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
#define RCAST(_Type, _Value)
Definition: gdi32p.h:89
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
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:49
smooth NULL
Definition: ftsmooth.c:416
unsigned long DWORD
Definition: ntddk_ex.h:95
HDC hdc
Definition: main.c:9
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
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

Referenced by 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 }
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:414
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
Definition: arc.h:55
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
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
HDC hdc
Definition: main.c:9

Referenced by Subdivider::addArc(), Subdivider::arc_split(), DrawPrimitive(), Subdivider::join_s(), Subdivider::join_t(), Subdivider::makeBorderTrim(), Subdivider::makePatchBoundary(), Subdivider::monotonize(), PlayEnhMetaFileRecord(), PlayMetaFileRecord(), test_all_functions(), and test_emf_paths().

◆ 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 }
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:414
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
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
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:79

Referenced by 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 }
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:414
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
unsigned int BOOL
Definition: ntddk_ex.h:94
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
smooth NULL
Definition: ftsmooth.c:416
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
HDC hdc
Definition: main.c:9

Referenced by app_draw_arc(), app_fill_arc(), 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 }
HDC WINAPI GdiConvertAndCheckDC(HDC hdc)
Definition: dc.c:414
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
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
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
HDC hdc
Definition: main.c:9