deprecate wxDC::SetClippingRegion(wxRegion) overload and replace it with SetDeviceClippingRegion() to avoid confusion due to use of different kind of coordinates in this and other overloads of the same function; also rename wxDCImpl::DoSetClippingRegionAsRegion() to DoSetDeviceClippingRegion(); finally use bounding box of the region passed to wxDCClipper ctor to avoid interpreting coordinates differently for different ctors of the same class (see #8970)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@54024 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -869,9 +869,16 @@ public:
|
||||
wxCoord height);
|
||||
void SetClippingRegion(const wxPoint& pt, const wxSize& sz);
|
||||
void SetClippingRegion(const wxRect& rect);
|
||||
void SetClippingRegion(const wxRegion& region);
|
||||
//@}
|
||||
|
||||
/**
|
||||
Sets the clipping region for this device context.
|
||||
|
||||
Unlike SetClippingRegion(), this function works with physical
|
||||
coordinates and not with the logical ones.
|
||||
*/
|
||||
void SetDeviceClippingRegion(const wxRegion& region);
|
||||
|
||||
/**
|
||||
Sets the device origin (i.e., the origin in pixels after scaling has
|
||||
been applied). This function may be useful in Windows printing
|
||||
|
Reference in New Issue
Block a user