X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7012bb9f03e0012c32485655b7af4345b490bf4d..b4eecebd423df0c6efe86d7658cd3df818d67ed8:/wxPython/src/_region.i diff --git a/wxPython/src/_region.i b/wxPython/src/_region.i index 25fc06628b..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)); @@ -97,8 +121,12 @@ public: 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`"); + %property(Box, GetBox, doc="See `GetBox`"); };