2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
5 Desc: Graphics function NewRectRegion()
9 #include <graphics/regions.h>
10 #include <proto/graphics.h>
12 /*****************************************************************************
15 #include <proto/alib.h>
17 struct Region
*NewRectRegion(
26 Creates a new rectangular Region
29 MinX, MinY, MaxX, MaxY - The extent of the Rect
32 Pointer to the newly created Region. NULL on failure.
35 This function is a shorthand for:
37 struct Rectangle rect;
38 struct Region *region;
46 OrRectRegion(region, &rect);
57 15-12-2000 stegerg implemented
59 *****************************************************************************/
61 struct Region
*region
= NewRegion();
65 struct Rectangle rect
= {MinX
, MinY
, MaxX
, MaxY
};
66 BOOL res
= OrRectRegion(region
, &rect
);
71 DisposeRegion(region
);