+inline wxRect NSRectToWxRect(const NSRect& rect)
+{
+ return wxRect((wxCoord)rect.origin.x, (wxCoord)rect.origin.y,
+ (wxCoord)rect.size.width, (wxCoord)rect.size.height);
+}
+
+wxRegion::wxRegion(const NSRect& rect)
+{
+ Union(NSRectToWxRect(rect));
+}
+
+wxRegion::wxRegion(const NSRect *rects, int count)
+{
+ for(int i=0; i<count; i++)
+ {
+ Union(NSRectToWxRect(rects[i]));
+ }
+}
+