From 746ee6b82cc8e821557cdb848ebcaef71f88ae5e Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Thu, 12 Feb 2004 01:14:15 +0000
Subject: [PATCH] Added wxDC::GetPartialTextExtents

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25759 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 wxPython/src/_dc.i | 9 +++++++++
 1 file changed, 9 insertions(+)

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