added Get(MultiLine)TextEvent() overloads returning wxSize which are used by wxPackageManager (patch 1595123)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43745 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -441,13 +441,27 @@ public:
|
||||
wxFont *theFont = NULL) const
|
||||
{ DoGetTextExtent(string, x, y, descent, externalLeading, theFont); }
|
||||
|
||||
wxSize GetTextExtent(const wxString& string) const
|
||||
{
|
||||
wxCoord w, h;
|
||||
DoGetTextExtent(string, &w, &h);
|
||||
return wxSize(w, h);
|
||||
}
|
||||
|
||||
// works for single as well as multi-line strings
|
||||
virtual void GetMultiLineTextExtent(const wxString& text,
|
||||
virtual void GetMultiLineTextExtent(const wxString& string,
|
||||
wxCoord *width,
|
||||
wxCoord *height,
|
||||
wxCoord *heightLine = NULL,
|
||||
wxFont *font = NULL) const;
|
||||
|
||||
wxSize GetMultiLineTextExtent(const wxString& string) const
|
||||
{
|
||||
wxCoord w, h;
|
||||
GetMultiLineTextExtent(string, &w, &h);
|
||||
return wxSize(w, h);
|
||||
}
|
||||
|
||||
// Measure cumulative width of text after each character
|
||||
bool GetPartialTextExtents(const wxString& text, wxArrayInt& widths) const
|
||||
{ return DoGetPartialTextExtents(text, widths); }
|
||||
|
Reference in New Issue
Block a user