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