Fixed ANSI C violations.
[wine] / include / region.h
1 /*
2  * GDI region definitions
3  *
4  * Copyright 1998 Huw Davies
5  */
6
7 #ifndef __WINE_REGION_H
8 #define __WINE_REGION_H
9
10 #include "wingdi.h"
11 #include "gdi.h"
12
13 typedef struct {
14     INT size;
15     INT numRects;
16     INT type; /* NULL, SIMPLE or COMPLEX */
17     RECT *rects;
18     RECT extents;
19 } WINEREGION;
20
21   /* GDI logical region object */
22 typedef struct
23 {
24     GDIOBJHDR   header;
25     WINEREGION  *rgn;
26 } RGNOBJ;
27
28 extern BOOL REGION_DeleteObject( HRGN hrgn, RGNOBJ * obj );
29 extern BOOL REGION_UnionRectWithRgn( HRGN hrgn, const RECT *lpRect );
30 extern HRGN REGION_CropRgn( HRGN hDst, HRGN hSrc, const RECT *lpRect, const POINT *lpPt );
31 extern BOOL REGION_FrameRgn( HRGN dest, HRGN src, INT x, INT y );
32 extern BOOL REGION_LPTODP( HDC hdc, HRGN hDest, HRGN hSrc );
33
34 #endif  /* __WINE_REGION_H */
35
36