From: Robin Dunn Date: Thu, 12 Feb 2004 01:14:15 +0000 (+0000) Subject: Added wxDC::GetPartialTextExtents X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/746ee6b82cc8e821557cdb848ebcaef71f88ae5e Added wxDC::GetPartialTextExtents git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- 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 // -------------------