7 using namespace os::gui
;
9 const int COORD_MAX
= 0x7ffffff0;
16 Region(const Region
&);
18 Region
& Include(const Rect
&);
19 Region
& Include(const Region
&);
20 Region
& Exclude(const Rect
&);
21 Region
& Exclude(const Region
&);
23 Region
& Intersect(const Region
&);
24 bool Intersects(const Rect
&) const;
25 Region
& Translate(int x
, int y
);
26 Region
& ConstrainTo(const Rect
&);
27 Region
& SetTo(const Region
&);
28 Region
& operator=(const Region
&);
30 const bool FindRect(int x
, int y
, Rect
&outRect
) const;
33 inline bool Valid() const;
34 inline int CountRects() const;
35 const Rect
& RectAt(int index
) const;
41 void AddRect(const Rect
&);
42 void RemoveRect(int index
);
45 // Assumes there are no overlaps
46 void AddRegionRects(const Region
&);
48 void AllocSpace(int numRects
);
50 void BeginOperation();
58 inline int Region::CountRects() const
63 inline const Rect
& Region::RectAt(int index
) const
65 ASSERT(index
< fNumRects
);
70 inline bool Region::Valid() const