mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
704c67505d
Ellipse work with an open path.
70 lines
2.3 KiB
C
70 lines
2.3 KiB
C
/*
|
|
* Graphics paths (BeginPath, EndPath etc.)
|
|
*
|
|
* Copyright 1997, 1998 Martin Boehme
|
|
*/
|
|
|
|
#ifndef __WINE_PATH_H
|
|
#define __WINE_PATH_H
|
|
|
|
#include "windef.h"
|
|
|
|
/* It should not be necessary to access the contents of the GdiPath
|
|
* structure directly; if you find that the exported functions don't
|
|
* allow you to do what you want, then please place a new exported
|
|
* function that does this job in path.c.
|
|
*/
|
|
|
|
typedef enum tagGdiPathState
|
|
{
|
|
PATH_Null,
|
|
PATH_Open,
|
|
PATH_Closed
|
|
} GdiPathState;
|
|
|
|
typedef struct tagGdiPath
|
|
{
|
|
GdiPathState state;
|
|
POINT *pPoints;
|
|
BYTE *pFlags;
|
|
int numEntriesUsed, numEntriesAllocated;
|
|
BOOL newStroke;
|
|
} GdiPath;
|
|
|
|
#define PATH_IsPathOpen(path) ((path).state==PATH_Open)
|
|
/* Returns TRUE if the specified path is in the open state, i.e. in the
|
|
* state where points will be added to the path, or FALSE otherwise. This
|
|
* function is implemented as a macro for performance reasons.
|
|
*/
|
|
|
|
extern void PATH_InitGdiPath(GdiPath *pPath);
|
|
extern void PATH_DestroyGdiPath(GdiPath *pPath);
|
|
extern BOOL PATH_AssignGdiPath(GdiPath *pPathDest,
|
|
const GdiPath *pPathSrc);
|
|
|
|
struct tagDC;
|
|
|
|
extern BOOL PATH_MoveTo(struct tagDC *dc);
|
|
extern BOOL PATH_LineTo(struct tagDC *dc, INT x, INT y);
|
|
extern BOOL PATH_Rectangle(struct tagDC *dc, INT x1, INT y1,
|
|
INT x2, INT y2);
|
|
extern BOOL PATH_Ellipse(struct tagDC *dc, INT x1, INT y1,
|
|
INT x2, INT y2);
|
|
extern BOOL PATH_Arc(struct tagDC *dc, INT x1, INT y1, INT x2, INT y2,
|
|
INT xStart, INT yStart, INT xEnd, INT yEnd, INT lines);
|
|
extern BOOL PATH_PolyBezierTo(struct tagDC *dc, const POINT *pt, DWORD cbCount);
|
|
extern BOOL PATH_PolyBezier(struct tagDC *dc, const POINT *pt, DWORD cbCount);
|
|
extern BOOL PATH_PolylineTo(struct tagDC *dc, const POINT *pt, DWORD cbCount);
|
|
extern BOOL PATH_Polyline(struct tagDC *dc, const POINT *pt, DWORD cbCount);
|
|
extern BOOL PATH_Polygon(struct tagDC *dc, const POINT *pt, DWORD cbCount);
|
|
extern BOOL PATH_PolyPolyline(struct tagDC *dc, const POINT *pt, const DWORD *counts,
|
|
DWORD polylines);
|
|
extern BOOL PATH_PolyPolygon(struct tagDC *dc, const POINT *pt, const INT *counts,
|
|
UINT polygons);
|
|
extern BOOL PATH_RoundRect(struct tagDC *dc, INT x1, INT y1, INT x2, INT y2, INT ell_width,
|
|
INT ell_height);
|
|
extern BOOL PATH_AddEntry(GdiPath *pPath, const POINT *pPoint, BYTE flags);
|
|
#endif /* __WINE_PATH_H */
|
|
|
|
|