+ if (s.FirstStage())
+ return;
+
+ wxDataOutputStream data_s(s);
+ wxRect rect = ((wxRegion *)Object())->GetBox();
+
+ data_s.Write16( rect.GetX() );
+ data_s.Write16( rect.GetY() );
+ data_s.Write16( rect.GetWidth() );
+ data_s.Write16( rect.GetHeight() );
+}
+
+void WXSERIAL(wxRegion)::LoadObject(wxObjectInputStream& s)
+{
+ WXSERIAL(wxGDIObject)::LoadObject(s);
+
+ wxDataInputStream data_s(s);
+ wxRegion *region = (wxRegion *)Object();
+ wxRect rect;
+
+ rect.SetX( data_s.Read16() );
+ rect.SetY( data_s.Read16() );
+ rect.SetWidth( data_s.Read16() );
+ rect.SetHeight( data_s.Read16() );
+
+ *region = wxRegion(rect);
+}
+
+// ----------------------------------------------------------------------------
+
+void WXSERIAL(wxColour)::StoreObject(wxObjectOutputStream& s)
+{