- wxRegion(long x, long y, long w, long h);
- wxRegion(const wxPoint& topLeft, const wxPoint& bottomRight);
- wxRegion(const wxRect& rect);
- wxRegion();
- ~wxRegion();
-
- //# Copying
- inline wxRegion(const wxRegion& r)
- { Ref(r); }
- inline wxRegion& operator = (const wxRegion& r)
- { Ref(r); return (*this); }
-
- //# Modify region
- // Clear current region
- void Clear();
-
- // Union rectangle or region with this.
- inline bool Union(long x, long y, long width, long height) { return Combine(x, y, width, height, wxRGN_OR); }
- inline bool Union(const wxRect& rect) { return Combine(rect, wxRGN_OR); }
- inline bool Union(const wxRegion& region) { return Combine(region, wxRGN_OR); }
-
- // Intersect rectangle or region with this.
- inline bool Intersect(long x, long y, long width, long height) { return Combine(x, y, width, height, wxRGN_AND); }
- inline bool Intersect(const wxRect& rect) { return Combine(rect, wxRGN_AND); }
- inline bool Intersect(const wxRegion& region) { return Combine(region, wxRGN_AND); }
-
- // Subtract rectangle or region from this:
+ wxRegion( wxCoord x
+ ,wxCoord y
+ ,wxCoord vWidth
+ ,wxCoord vHeight
+ );
+ wxRegion( const wxPoint& rTopLeft
+ ,const wxPoint& rBottomRight
+ );
+ wxRegion(const wxRect& rRect);
+ wxRegion(WXHRGN hRegion, WXHDC hPS); // Hangs on to this region
+
+ wxRegion();
+ ~wxRegion();
+
+ //
+ // Copying
+ //
+ inline wxRegion(const wxRegion& rSrc)
+ { Ref(rSrc); }
+ inline wxRegion& operator = (const wxRegion& rSrc)
+ { Ref(rSrc); return (*this); }
+
+ //
+ // Modify region
+ //
+
+ //
+ // Clear current region
+ //
+ void Clear(void);
+
+ bool Offset( wxCoord x
+ ,wxCoord y
+ );
+
+ //
+ // Union rectangle or region with this.
+ //
+ inline bool Union( wxCoord x
+ ,wxCoord y
+ ,wxCoord vWidth
+ ,wxCoord vHeight
+ )
+ {
+ return Combine( x
+ ,y
+ ,vWidth
+ ,vHeight
+ ,wxRGN_OR
+ );
+ }
+ inline bool Union( const wxRect& rRect) { return Combine(rRect, wxRGN_OR); }
+ inline bool Union(const wxRegion& rRegion) { return Combine(rRegion, wxRGN_OR); }
+
+ //
+ // Intersect rectangle or region with this.
+ //
+ inline bool Intersect( wxCoord x
+ ,wxCoord y
+ ,wxCoord vWidth
+ ,wxCoord vHeight
+ )
+ {
+ return Combine( x
+ ,y
+ ,vWidth
+ ,vHeight
+ ,wxRGN_AND
+ );
+ }
+ inline bool Intersect(const wxRect& rRect) { return Combine(rRect, wxRGN_AND); }
+ inline bool Intersect(const wxRegion& rRegion) { return Combine(rRegion, wxRGN_AND); }
+
+ //
+ // Subtract rectangle or region from this: