X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b159c5c4815594c9a15365dd2a520c3f21a3b3b6..0ffb2aa6e47721eebc485931efaad028b51b0565:/wxPython/src/_dc.i diff --git a/wxPython/src/_dc.i b/wxPython/src/_dc.i index 7d0fa94a4f..edfe3a45e8 100644 --- a/wxPython/src/_dc.i +++ b/wxPython/src/_dc.i @@ -277,6 +277,15 @@ public: "Get the width, height, decent and leading of the text using the current or specified font.\n" "Works for single as well as multi-line strings."); + + %extend { + wxArrayInt GetPartialTextExtents(const wxString& text) { + wxArrayInt widths; + self->GetPartialTextExtents(text, widths); + return widths; + } + } + // size and resolution // -------------------