X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/1b8c7ba607a15a2ff8a04448138df9ffff7df6c5..b3eb9bf553bff19d1004956aa40c5dae805dc450:/wxPython/src/_region.i diff --git a/wxPython/src/_region.i b/wxPython/src/_region.i index e7d68c7351..779e9deaae 100644 --- a/wxPython/src/_region.i +++ b/wxPython/src/_region.i @@ -40,6 +40,27 @@ enum wxRegionContain }; +// // these constants are used with wxRegion::Combine() in the ports which have +// // this method +// enum wxRegionOp +// { +// // Creates the intersection of the two combined regions. +// wxRGN_AND, + +// // Creates a copy of the region +// wxRGN_COPY, + +// // Combines the parts of first region that are not in the second one +// wxRGN_DIFF, + +// // Creates the union of two combined regions. +// wxRGN_OR, + +// // Creates the union of two regions except for any overlapping areas. +// wxRGN_XOR +// }; + + MustHaveApp(wxRegion); @@ -72,6 +93,9 @@ public: bool IsEmpty(); + // Is region equal (i.e. covers the same area as another one)? + bool IsEqual(const wxRegion& region) const; + bool Union(wxCoord x, wxCoord y, wxCoord width, wxCoord height); %Rename(UnionRect, bool, Union(const wxRect& rect)); %Rename(UnionRegion, bool, Union(const wxRegion& region)); @@ -96,6 +120,13 @@ public: %Rename(UnionBitmapColour, bool, Union(const wxBitmap& bmp, const wxColour& transColour, int tolerance = 0)); + + +// bool Combine(wxCoord x, wxCoord y, wxCoord w, wxCoord h, wxRegionOp op); +// %Rename(CombineRect, bool , Combine(const wxRect& rect, wxRegionOp op)); +// %Rename(CombineRegion, bool , Combine(const wxRegion& region, wxRegionOp op)); + + %property(Box, GetBox, doc="See `GetBox`"); }; @@ -126,6 +157,14 @@ public: return self->operator bool(); } }; + + %property(H, GetH, doc="See `GetH`"); + %property(Height, GetHeight, doc="See `GetHeight`"); + %property(Rect, GetRect, doc="See `GetRect`"); + %property(W, GetW, doc="See `GetW`"); + %property(Width, GetWidth, doc="See `GetWidth`"); + %property(X, GetX, doc="See `GetX`"); + %property(Y, GetY, doc="See `GetY`"); };