From 42bf070c7e17428344b476fdb500ab85f0b753df Mon Sep 17 00:00:00 2001
From: Robin Dunn <robin@alldunn.com>
Date: Wed, 11 Feb 2004 23:49:31 +0000
Subject: [PATCH] Added wxDC::GetPartialTextExtents

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25752 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
---
 docs/changes.txt     |  1 +
 docs/latex/wx/dc.tex | 16 ++++++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/docs/changes.txt b/docs/changes.txt
index a389c20a73..b17d156e66 100644
--- a/docs/changes.txt
+++ b/docs/changes.txt
@@ -132,6 +132,7 @@ All (GUI):
 - added option to generate C++ headers to wxrc utility (Eduardo Marques)
 - added wxDC::DrawPolyPolygon() for MSW/PS (Carl-Friedrich Braun)
 - wxBufferedDC now allows to preserve the background and is documented
+- added wxDC::GetPartialTextExtents
 
 wxMSW:
 
diff --git a/docs/latex/wx/dc.tex b/docs/latex/wx/dc.tex
index f873f16ad0..b42932d2ff 100644
--- a/docs/latex/wx/dc.tex
+++ b/docs/latex/wx/dc.tex
@@ -637,6 +637,22 @@ Returns true if device context optimization is on.
 See \helpref{wxDC::SetOptimization}{wxsetoptimization} for details.
 
 
+\membersection{wxDC::GetPartialTextExtents}\label{wxdcgetpartialtextextents}
+
+\constfunc{bool}{GetPartialTextExtents}{\param{const wxString\&  }{text}, 
+\param{wxArrayInt\& }{widths}}
+
+Fills the {\it widths} array with the widths from the begining of 
+{\it text} to the coresponding character of {\it text}.  The generic
+version simply builds a running total of the widths of each character
+using \helpref{GetTextExtent}{wxdcgettextextent}, however if the
+various platforms have a native API function that is faster or more
+accurate than the generic implementaiton then it should be used
+instead. 
+
+\pythonnote{This method only takes the {\it text} parameter and
+  returns a Python list of integers.}
+
 \membersection{wxDC::GetPen}\label{wxdcgetpen}
 
 \func{wxPen\&}{GetPen}{\void}
-- 
2.50.0

