X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9eefb5c14a2ca47fd6042f0c41ce8efde6746b3d..ca77701441e39245dcbfce903049e76f166979e5:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index 9c6748a920..34f58e2662 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -283,7 +283,7 @@ public: return NULL; } - virtual void* GetHandle() const = 0; + virtual void* GetHandle() const { return NULL; } // query dimension, colour deps, resolution @@ -433,8 +433,12 @@ public: // clipping + // Note that this pure virtual method has an implementation that updates + // the values returned by DoGetClippingBox() and so can be called from the + // derived class overridden version if it makes sense (i.e. if the clipping + // box coordinates are not already updated in some other way). virtual void DoSetClippingRegion(wxCoord x, wxCoord y, - wxCoord width, wxCoord height) = 0; + wxCoord w, wxCoord h) = 0; // NB: this function works with device coordinates, not the logical ones! virtual void DoSetDeviceClippingRegion(const wxRegion& region) = 0;