- Fix headers to include less or smaller header files.
[wine/multimedia.git] / include / path.h
blob6bc39ca5da50f5749ccc9453f9e89b4bd81ccc89
1 /*
2 * Graphics paths (BeginPath, EndPath etc.)
4 * Copyright 1997, 1998 Martin Boehme
5 */
7 #ifndef __WINE_PATH_H
8 #define __WINE_PATH_H
10 #include "wintypes.h"
12 /* It should not be necessary to access the contents of the GdiPath
13 * structure directly; if you find that the exported functions don't
14 * allow you to do what you want, then please place a new exported
15 * function that does this job in path.c.
18 typedef enum tagGdiPathState
20 PATH_Null,
21 PATH_Open,
22 PATH_Closed
23 } GdiPathState;
25 typedef struct tagGdiPath
27 GdiPathState state;
28 POINT32 *pPoints;
29 BYTE *pFlags;
30 int numEntriesUsed, numEntriesAllocated;
31 BOOL32 newStroke;
32 } GdiPath;
34 #define PATH_IsPathOpen(path) ((path).state==PATH_Open)
35 /* Returns TRUE if the specified path is in the open state, i.e. in the
36 * state where points will be added to the path, or FALSE otherwise. This
37 * function is implemented as a macro for performance reasons.
40 extern void PATH_InitGdiPath(GdiPath *pPath);
41 extern void PATH_DestroyGdiPath(GdiPath *pPath);
42 extern BOOL32 PATH_AssignGdiPath(GdiPath *pPathDest,
43 const GdiPath *pPathSrc);
45 extern BOOL32 PATH_MoveTo(HDC32 hdc);
46 extern BOOL32 PATH_LineTo(HDC32 hdc, INT32 x, INT32 y);
47 extern BOOL32 PATH_Rectangle(HDC32 hdc, INT32 x1, INT32 y1,
48 INT32 x2, INT32 y2);
49 extern BOOL32 PATH_Ellipse(HDC32 hdc, INT32 x1, INT32 y1,
50 INT32 x2, INT32 y2);
51 extern BOOL32 PATH_Arc(HDC32 hdc, INT32 x1, INT32 y1, INT32 x2, INT32 y2,
52 INT32 xStart, INT32 yStart, INT32 xEnd, INT32 yEnd);
54 #endif /* __WINE_PATH_H */