X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5460b9e30b33b7589d90259abfcad4f5bd6d91e5..0bcd741653d6aa65f79622b28e6c1382fd314fab:/include/wx/textbuf.h diff --git a/include/wx/textbuf.h b/include/wx/textbuf.h index c67269c7e3..79e27e1799 100644 --- a/include/wx/textbuf.h +++ b/include/wx/textbuf.h @@ -145,6 +145,9 @@ public: // delete one line void RemoveLine(size_t n) { m_aLines.RemoveAt(n); m_aTypes.RemoveAt(n); } + // remove all lines + void Clear() { m_aLines.Clear(); m_nCurLine = 0; } + // change the buffer (default argument means "don't change type") // possibly in another format bool Write(wxTextFileType typeNew = wxTextFileType_None,