#include <Region.h>
Public Member Functions | |
| BRegion () | |
| BRegion (const BRegion ®ion) | |
| BRegion (const BRect rect) | |
| virtual | ~BRegion () |
| BRegion & | operator= (const BRegion &from) |
| BRect | Frame () const |
| clipping_rect | FrameInt () const |
| BRect | RectAt (int32 index) const |
| clipping_rect | RectAtInt (int32 index) const |
| int32 | CountRects () const |
| void | Set (BRect newBounds) |
| void | Set (clipping_rect newBounds) |
| bool | Intersects (BRect r) const |
| bool | Intersects (clipping_rect r) const |
| bool | Contains (BPoint pt) const |
| bool | Contains (int32 x, int32 y) |
| void | PrintToStream () const |
| void | OffsetBy (int32 dh, int32 dv) |
| void | MakeEmpty () |
| void | Include (BRect r) |
| void | Include (clipping_rect r) |
| void | Include (const BRegion *) |
| void | Exclude (BRect r) |
| void | Exclude (clipping_rect r) |
| void | Exclude (const BRegion *) |
| void | IntersectWith (const BRegion *) |
| BRegion (BPrivate::IRegion *reg, bool takeOwnership=true) | |
Friends | |
| class | BPrivate::IKAccess |
|
|
Default constructor. If no argument is supplied, the BRegion is empty and Frame() returns and invalid BRect. |
|
|
Initializes the BRegion object to be a copy of region.
|
|
|
Initializes the BRegion object to be a rectangular region containing the space indicated by rect. |
|
|
Frees the memory that was allocated to hold data describing the region. |
|
||||||||||||
|
|
|
||||||||||||
|
|
|
|
|
|
|
/return the total number of rectangles in the BRegion. |
|
|
Modifies the region to exclude all rectangles contained in region. region Region to exclude |
|
|
|
|
|
Modifies the region to exclude all rectangles contained in rect. fr Rectangle to exclude |
|
|
Returns the smallest rectangle that encloses all the rectangles in the region. If the region is empty, the returned object will be invalid. Check the return thus.
|
|
|
|
|
|
Modifies the region to include (copies of) the rectangles contained in region. region Region to include |
|
|
|
|
|
Modifies the region to include (copies of) the rectangles contained in rect.
|
|
|
|
|
|
|
|
|
Modifies the region so that it includes only those areas that it has in common with another region.
|
|
|
Empties the BRegion and invalidates the object's Frame() rectangle. |
|
||||||||||||
|
Offsets all rectangles in the region by horizontal and vertical deltas.
|
|
|
Sets the left region to be an independent copy of the right region: BRegion left_region = right_region; |
|
|
Prints (to standard out) each rectangle in the BRegion in the form: "BRect(left, top, right, bottom)" The first string that's printed is the object's frame rectangle. Each subsequent string describes a single rectangle in the BRegion. |
|
|
|
|
|
|
|
|
|
|
|
Modifies the BRegion so that it only contains rect.
|
|
|
|