X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/c04c7a3d0ae9f09bd7219b97799d9b185f1c2bab..764471557e06c8816b8cc8eb9924a1e3c78509d8:/include/wx/window.h diff --git a/include/wx/window.h b/include/wx/window.h index 04b76e9670..733f3d02da 100644 --- a/include/wx/window.h +++ b/include/wx/window.h @@ -856,6 +856,13 @@ public: const wxFont *theFont = (const wxFont *) NULL) const = 0; + wxSize GetTextExtent(const wxString& string) const + { + wxCoord w, h; + GetTextExtent(string, &w, &h); + return wxSize(w, h); + } + // client <-> screen coords // ------------------------