ReactOS  0.4.13-dev-464-g6b95727
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 47 of file arc.c.

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 }
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:47
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 
30  hdc,
31  xLeft,
32  yTop,
33  xRight,
34  yBottom,
35  xStartArc,
36  yStartArc,
37  xEndArc,
38  yEndArc);
39 }
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
Definition: arc.h:55
unsigned int BOOL
Definition: ntddk_ex.h:94
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 75 of file arc.c.

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 }
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
unsigned int BOOL
Definition: ntddk_ex.h:94
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:75

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 113 of file arc.c.

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 }
#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:113
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 155 of file arc.c.

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 }
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
unsigned int BOOL
Definition: ntddk_ex.h:94
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
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