Make wxDumpWindow() public and available in wxMSW too
This function was defined in wxGTK and wxOSX, but not in wxMSW or the other ports, but it can be useful there too, so make it public and define it in common code.
This commit is contained in:
@@ -181,28 +181,6 @@ wxIMPLEMENT_DYNAMIC_CLASS(wxBlindPlateWindow, wxWindow);
|
||||
wxBEGIN_EVENT_TABLE(wxBlindPlateWindow, wxWindow)
|
||||
wxEND_EVENT_TABLE()
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// debug helpers
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Function used to dump a brief description of a window.
|
||||
extern
|
||||
wxString wxDumpWindow(wxWindowMac* win)
|
||||
{
|
||||
if ( !win )
|
||||
return "(no window)";
|
||||
|
||||
wxString s = wxString::Format("%s(%p",
|
||||
win->GetClassInfo()->GetClassName(), win);
|
||||
|
||||
wxString label = win->GetLabel();
|
||||
if ( !label.empty() )
|
||||
s += wxString::Format(", \"%s\"", label);
|
||||
s += ")";
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
// constructors and such
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user