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:
@@ -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
|
||||
// ------------------------
|
||||
|
||||
|
Reference in New Issue
Block a user