]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/window.h
added ctor for wxChar/WCharBuffer from wxCStrData in ANSI/Unicode build to make it...
[wxWidgets.git] / include / wx / window.h
index 04b76e9670a583402b23922a02a4421a6106e96e..733f3d02da64c8de7f062dd91507e7d9695884a3 100644 (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
     // ------------------------