X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6021b8f80b7b64b5d50702864da5f139710527e4..5b9003ae3213f487fa3be74804b426a8ad0db323:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index acb004af10..af5ebf4501 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -876,6 +876,8 @@ private: class WXDLLEXPORT wxDCClipper { public: + wxDCClipper(wxDC& dc, const wxRegion& r) : m_dc(dc) + { dc.SetClippingRegion(r); } wxDCClipper(wxDC& dc, const wxRect& r) : m_dc(dc) { dc.SetClippingRegion(r.x, r.y, r.width, r.height); } wxDCClipper(wxDC& dc, wxCoord x, wxCoord y, wxCoord w, wxCoord h) : m_dc(dc)