added GetTextExtent() overload returning wxSize (patch 1631508)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44728 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-03-10 17:25:36 +00:00
parent 192f8ddc0b
commit 6b06226335
2 changed files with 15 additions and 3 deletions

View File

@@ -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
// ------------------------