X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/477c48bf58a5b8c1a44706b13f1008703dec9fb5..10d302224e3555520f3e3c29d4dc7b7a9654b295:/include/wx/dc.h diff --git a/include/wx/dc.h b/include/wx/dc.h index c3f7c1b1b9..66901ddb6e 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -185,6 +185,18 @@ public: // query dimension, colour deps, resolution virtual void DoGetSize(int *width, int *height) const = 0; + void GetSize(int *width, int *height) const + { + return DoGetSize(width, height); + } + + wxSize GetSize() const + { + int w, h; + DoGetSize(&w, &h); + return wxSize(w, h); + } + virtual void DoGetSizeMM(int* width, int* height) const = 0; virtual int GetDepth() const = 0; @@ -570,13 +582,8 @@ public: void GetSize(int *width, int *height) const { m_pimpl->DoGetSize(width, height); } - wxSize GetSize() const - { - int w, h; - m_pimpl->DoGetSize(&w, &h); - return wxSize(w, h); - } + { return m_pimpl->GetSize(); } void GetSizeMM(int* width, int* height) const { m_pimpl->DoGetSizeMM(width, height); }