Allow using wxTextMeasure::GetLargestStringExtent() with wxArrayString.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Oct 2012 12:28:00 +0000 (12:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 27 Oct 2012 12:28:00 +0000 (12:28 +0000)
commita9f1207c1bbff188c5b258040560dc63276f79af
treefb4b18b6b6a741e3109a72d532c0a8281e7aa5fe
parent1bce253a23047c6153e130d02e776d3d34b05793
Allow using wxTextMeasure::GetLargestStringExtent() with wxArrayString.

Change the signature of this method to take the number of strings and the
pointer to the first of them instead of wxVector<wxString> as this allows it
to be used with all of wxVector<wxString>, wxArrayString and raw arrays of
wxStrings.

Also return the computed size from it instead of filling output parameters.

Closes #14781.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@72802 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/private/textmeasure.h
src/common/textmeasurecmn.cpp