ReactOS  0.4.14-dev-1256-g2125fec
path.c File Reference
#include <precomp.h>
Include dependency graph for path.c:

Go to the source code of this file.

Functions

BOOL WINAPI AbortPath (HDC hdc)
 
BOOL WINAPI BeginPath (HDC hdc)
 
BOOL WINAPI CloseFigure (HDC hdc)
 
BOOL WINAPI EndPath (HDC hdc)
 
BOOL WINAPI FillPath (HDC hdc)
 
BOOL WINAPI FlattenPath (HDC hdc)
 
INT WINAPI GetPath (HDC hdc, LPPOINT pptlBuf, LPBYTE pjTypes, INT cptBuf)
 
HRGN WINAPI PathToRegion (HDC hdc)
 
BOOL WINAPI SetMiterLimit (HDC hdc, FLOAT a1, PFLOAT a2)
 
BOOL WINAPI StrokeAndFillPath (HDC hdc)
 
BOOL WINAPI StrokePath (HDC hdc)
 
BOOL WINAPI WidenPath (HDC hdc)
 
BOOL WINAPI SelectClipPath (HDC hdc, int iMode)
 

Function Documentation

◆ AbortPath()

BOOL WINAPI AbortPath ( HDC  hdc)

Definition at line 18 of file path.c.

20 {
22  return NtGdiAbortPath(hdc);
23 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL APIENTRY NtGdiAbortPath(HDC hDC)
Definition: path.c:2387
HDC hdc
Definition: main.c:9
BOOL WINAPI AbortPath(HDC hdc)
Definition: path.c:18

Referenced by test_closefigure(), test_path_state(), and test_widenpath().

◆ BeginPath()

BOOL WINAPI BeginPath ( HDC  hdc)

Definition at line 31 of file path.c.

33 {
35  return NtGdiBeginPath(hdc);
36 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
BOOL APIENTRY NtGdiBeginPath(HDC hDC)
Definition: path.c:2417
BOOL WINAPI BeginPath(HDC hdc)
Definition: path.c:31
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9

Referenced by test_all_functions(), test_anglearc(), test_arcto(), test_closefigure(), test_ellipse(), test_path_state(), test_polydraw(), test_rectangle(), test_roundrect(), and test_widenpath().

◆ CloseFigure()

BOOL WINAPI CloseFigure ( HDC  hdc)

Definition at line 43 of file path.c.

45 {
47  return NtGdiCloseFigure(hdc);
48 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
BOOL WINAPI CloseFigure(HDC hdc)
Definition: path.c:43
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9
BOOL APIENTRY NtGdiCloseFigure(HDC hDC)
Definition: path.c:2473

Referenced by test_anglearc(), test_arcto(), test_closefigure(), and test_path_state().

◆ EndPath()

BOOL WINAPI EndPath ( HDC  hdc)

Definition at line 56 of file path.c.

58 {
60  return NtGdiEndPath( hdc );
61 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL APIENTRY NtGdiEndPath(HDC hDC)
Definition: path.c:2512
HDC hdc
Definition: main.c:9
BOOL WINAPI EndPath(HDC hdc)
Definition: path.c:56

Referenced by RtlpCollapsePath(), test_all_functions(), test_anglearc(), test_arcto(), test_closefigure(), test_ellipse(), test_path_state(), test_polydraw(), test_rectangle(), test_roundrect(), and test_widenpath().

◆ FillPath()

BOOL WINAPI FillPath ( HDC  hdc)

Definition at line 69 of file path.c.

71 {
73  return NtGdiFillPath( hdc );
74 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI FillPath(HDC hdc)
Definition: path.c:69
HDC hdc
Definition: main.c:9
BOOL APIENTRY NtGdiFillPath(HDC hDC)
Definition: path.c:2554

Referenced by test_path_state().

◆ FlattenPath()

BOOL WINAPI FlattenPath ( HDC  hdc)

Definition at line 82 of file path.c.

84 {
86  return NtGdiFlattenPath ( hdc );
87 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9
BOOL APIENTRY NtGdiFlattenPath(HDC hDC)
Definition: path.c:2612
BOOL WINAPI FlattenPath(HDC hdc)
Definition: path.c:82

Referenced by test_path_state().

◆ GetPath()

INT WINAPI GetPath ( HDC  hdc,
LPPOINT  pptlBuf,
LPBYTE  pjTypes,
INT  cptBuf 
)

Definition at line 95 of file path.c.

99 {
100  INT retValue = -1;
101 
103  {
105  }
106  else
107  {
108  retValue = NtGdiGetPath(hdc,pptlBuf,pjTypes,cptBuf);
109  }
110 
111  return retValue;
112 }
#define ERROR_INVALID_PARAMETER
Definition: compat.h:91
INT APIENTRY NtGdiGetPath(HDC hDC, LPPOINT Points, LPBYTE Types, INT nSize)
Definition: path.c:2689
int32_t INT
Definition: typedefs.h:57
#define GDI_HANDLE_GET_TYPE(h)
Definition: gdi.h:31
#define SetLastError(x)
Definition: compat.h:417
#define GDI_OBJECT_TYPE_METADC
Definition: gdi.h:57
HDC hdc
Definition: main.c:9

Referenced by ok_path(), test_closefigure(), test_path_state(), and test_widenpath().

◆ PathToRegion()

HRGN WINAPI PathToRegion ( HDC  hdc)

Definition at line 120 of file path.c.

122 {
124  return NtGdiPathToRegion(hdc);
125 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
smooth NULL
Definition: ftsmooth.c:416
HRGN WINAPI PathToRegion(HDC hdc)
Definition: path.c:120
HDC hdc
Definition: main.c:9
HRGN APIENTRY NtGdiPathToRegion(HDC hDC)
Definition: path.c:2774

Referenced by nulldrv_SelectClipPath(), and test_path_state().

◆ SelectClipPath()

BOOL WINAPI SelectClipPath ( HDC  hdc,
int  iMode 
)

Definition at line 191 of file path.c.

194 {
196  return NtGdiSelectClipPath(hdc, iMode);
197 }
BOOL WINAPI SelectClipPath(HDC hdc, int iMode)
Definition: path.c:191
_In_ ULONG iMode
Definition: winddi.h:3520
#define HANDLE_METADC(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:616
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9
__kernel_entry W32KAPI BOOL APIENTRY NtGdiSelectClipPath(_In_ HDC hdc, _In_ INT iMode)

Referenced by test_path_state().

◆ SetMiterLimit()

BOOL WINAPI SetMiterLimit ( HDC  hdc,
FLOAT  a1,
PFLOAT  a2 
)

Definition at line 132 of file path.c.

137 {
138  BOOL Ret;
139  gxf_long worker, worker1;
140 
141  worker.f = a1;
142  Ret = NtGdiSetMiterLimit ( hdc, worker.l, a2 ? &worker1.l : NULL );
143  if (a2 && Ret) *a2 = worker1.f;
144  return Ret;
145 }
FLOAT f
Definition: ntgdityp.h:425
ULONG l
Definition: ntgdityp.h:426
unsigned int BOOL
Definition: ntddk_ex.h:94
smooth NULL
Definition: ftsmooth.c:416
static const struct update_accum a2
Definition: msg.c:586
HDC hdc
Definition: main.c:9
BOOL APIENTRY NtGdiSetMiterLimit(IN HDC hdc, IN DWORD dwNew, IN OUT OPTIONAL PDWORD pdwOut)
Definition: path.c:2850
static const struct update_accum a1
Definition: msg.c:578

◆ StrokeAndFillPath()

BOOL WINAPI StrokeAndFillPath ( HDC  hdc)

Definition at line 153 of file path.c.

155 {
157  return NtGdiStrokeAndFillPath ( hdc );
158 }
BOOL APIENTRY NtGdiStrokeAndFillPath(HDC hDC)
Definition: path.c:2890
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
BOOL WINAPI StrokeAndFillPath(HDC hdc)
Definition: path.c:153
unsigned int BOOL
Definition: ntddk_ex.h:94
HDC hdc
Definition: main.c:9

Referenced by test_path_state().

◆ StrokePath()

BOOL WINAPI StrokePath ( HDC  hdc)

Definition at line 166 of file path.c.

168 {
170  return NtGdiStrokePath ( hdc );
171 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
BOOL APIENTRY NtGdiStrokePath(HDC hDC)
Definition: path.c:2949
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL WINAPI StrokePath(HDC hdc)
Definition: path.c:166
HDC hdc
Definition: main.c:9

Referenced by test_path_state().

◆ WidenPath()

BOOL WINAPI WidenPath ( HDC  hdc)

Definition at line 179 of file path.c.

181 {
183  return NtGdiWidenPath ( hdc );
184 }
#define HANDLE_METADC0P(_RetType, _Func, dwError, hdc,...)
Definition: gdi32p.h:606
unsigned int BOOL
Definition: ntddk_ex.h:94
BOOL APIENTRY NtGdiWidenPath(HDC hDC)
Definition: path.c:3002
BOOL WINAPI WidenPath(HDC hdc)
Definition: path.c:179
HDC hdc
Definition: main.c:9

Referenced by test_path_state(), and test_widenpath().